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
Forum Updated to NodeBB v4.3 + New Features

TextEditor for HTML like TinyMCE

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 710 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 16 Mar 2019, 21:45 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

    R 1 Reply Last reply 18 Mar 2019, 19:28
    0
    • M msauer75
      16 Mar 2019, 21:45

      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

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 18 Mar 2019, 19:28 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 21 Mar 2019, 20:10 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
        • F Offline
          F Offline
          fcarney
          wrote on 21 Mar 2019, 20:55 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

          1/4

          16 Mar 2019, 21:45

          • Login

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