TextEditor for HTML like TinyMCE
-
wrote on 16 Mar 2019, 21:45 last edited by
Hello,
in my QML application I want to edit a text field with html formatting. Is there a possibility to do this, like TinyMCE?
Thank you for your help.BR
martin -
Hello,
in my QML application I want to edit a text field with html formatting. Is there a possibility to do this, like TinyMCE?
Thank you for your help.BR
martin@msauer75
real HTML or just rich text?
Anyway QML isn't very cooperative regarding text modification capabilities.But you could use QtWebView module and indeed display a TinyMCE editor and use WebView.runJavaScript() to set and retrieve the value of the editor.
-
wrote on 21 Mar 2019, 20:10 last edited by
Hi,
it is HTML text.Is there a sample script how I have to include such function?
BR
martin -
wrote on 21 Mar 2019, 20:55 last edited by
There is support in a lot of the text entry fields for a limited subset of HTML:
html subsetIf you want more than that then you will need to use Webengine. There are examples of Webengine in Qt Creator I believe. A lot of research will need to be done to figure out how exactly to do this in your Qt app.
1/4