TextEditor for HTML like TinyMCE
-
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.
-
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.