Hello koder i want to implement text editor in my app.& a way to store html code
It would be seen like this
i think you can make your own with help of blocks,
like, add buttons and with help of them you can change text size, text type, text alignment, text html true or false, etc. try that.
Yes it is possible to make such a text editor with Kodular.
you can make it possible with webviewer and some rich text editor, like summernote. also some javascript stunt.
Yeah i want to create this.any possible & easy way
I didnât know javascript stuntâ.thatâs why i post here.i already search on youtube
I know thatâs can be create but that was really complexes
summernote.zip (638 Bytes)
- unzip this file, upload the html file to asset
- when screen1.initialize, set webviewerâs home page to summernote.html
- when some button clicked, call webviewer.EvaluateJS âgetMarkupStr();â. This is one function defined in the summernote.html
- you will get the HTML string in âweb view string changeâ event
Tnx man to share this knowledge
Plz can you share block of this point.tnx again
did you find the evaluateJs block in webviewer?
I got it.tnx for help me
Very interesting script! Have you tried making it work all locally without internet connection?
Wait i am trying now.do you know how to load html from asset
If you want it working offline, you need to download the 3 file(js file and css file) needed in the html file, and upload them to assets.
You can find the 3 files here
Furhter to that, there are 4 files in âfontâ folder also need to send to assets.
these 4 file should be in âfontâ folder in assets. pls search the forum for how to make folder in assets.
Tested it with wxibt, not in Kodular.
If i paste text then it doesnât work
can you give more details?
If i write on text editor then itâs return html string but when i past text on text editor then itâs doesnât return any html string
youâd better to check itâs website for help. This is not an app inventor problem I think.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.