Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Experiences with Javascript-implemented HTML editor running in QWebEngine?
QtWS25 Last Chance

Experiences with Javascript-implemented HTML editor running in QWebEngine?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 800 Views
  • 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.
  • P Offline
    P Offline
    Phil_W
    wrote on last edited by
    #1

    We're curious about whether people have had success running a Javascript-implemented HTML editor in QWebEngine (or QWebKit, which is, of course, gone as of Qt 5.6). Or opinions about whether or not that is a sound thing to do? We would need the HTML document to be provided by, and returned to our C++ Qt application code.

    Our group is just on the precipice of porting our large application from Qt 4.8 to Qt 5.5.1. We've been using QTextEdit for HTML-ish rich text support, but are finding that to be insufficiently expressive. We're wondering if we could use something like TinyMCE or Summernote in the way I suggested above. Any other suggestions for similar/better Javascript HTML editor packages?

    raven-worxR 1 Reply Last reply
    0
    • P Phil_W

      We're curious about whether people have had success running a Javascript-implemented HTML editor in QWebEngine (or QWebKit, which is, of course, gone as of Qt 5.6). Or opinions about whether or not that is a sound thing to do? We would need the HTML document to be provided by, and returned to our C++ Qt application code.

      Our group is just on the precipice of porting our large application from Qt 4.8 to Qt 5.5.1. We've been using QTextEdit for HTML-ish rich text support, but are finding that to be insufficiently expressive. We're wondering if we could use something like TinyMCE or Summernote in the way I suggested above. Any other suggestions for similar/better Javascript HTML editor packages?

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

      @Phil_W
      Yes it's possible. Easier with QtWebKit, but also doable with QtWebEngine i think.
      I've done it myself already. Most of the stuff you can do in JavaScript (Tip: check out document.execCommand())

      But it's also possible - as you said - to simply load TinyMCE into a web view widget.

      --- 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
      1

      • Login

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