Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextEditor for HTML like TinyMCE

TextEditor for HTML like TinyMCE

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 831 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    msauer75
    wrote on last edited by
    #1

    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

    raven-worxR 1 Reply Last reply
    0
    • M msauer75

      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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • M Offline
        M Offline
        msauer75
        wrote on last edited by
        #3

        Hi,
        it is HTML text.

        Is there a sample script how I have to include such function?

        BR
        martin

        1 Reply Last reply
        0
        • fcarneyF Offline
          fcarneyF Offline
          fcarney
          wrote on last edited by
          #4

          There is support in a lot of the text entry fields for a limited subset of HTML:
          html subset

          If 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.

          C++ is a perfectly valid school of magic.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved