Results 1 to 7 of 7

Thread: Qt 4.4 WebKit: WYSIWYG HTML editor?

  1. #1
    Join Date
    May 2008
    Location
    Russia
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Qt 4.4 WebKit: WYSIWYG HTML editor?

    I would like to have HTML WYSIWYG editor as a part of my application. WebKit seems to provide such an ability, bacause Qt Assistant says: "HTML documents can be made fully editable to the user through the use of the contenteditable attribute on HTML elements."
    But no additional information I could found. Is it an example how to do that?

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.4 WebKit: WYSIWYG HTML editor?

    The editing facility is new in HTML 5. It is probably not what you are looking for. http://www.w3.org/html/wg/html5/#editing

  3. The following user says thank you to Brandybuck for this useful post:

    24pm (27th May 2008)

  4. #3
    Join Date
    May 2008
    Location
    Russia
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4 WebKit: WYSIWYG HTML editor?

    Thank you for the link, but it does not help to understand how to use it in Qt. And the following is very interesting: "User agents must support this attribute on all HTML elements."

  5. #4
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.4 WebKit: WYSIWYG HTML editor?

    QtWebKit already supports this. There is nothing you need to do but give it some HTML5 to edit. But you cannot use it to create a WYSIWYG HTML editor, because that is not what it is for. This lets users edit the content of webpages.

    If you don't need full CSS support, you might consider QTextEdit/QTextDocument.

  6. #5
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.4 WebKit: WYSIWYG HTML editor?

    Quote Originally Posted by 24pm View Post
    I would like to have HTML WYSIWYG editor as a part of my application. WebKit seems to provide such an ability?
    WebKit support 50% from javascript && Dom..
    Befor WebKit can edit self page it must able to display..

    I found a lot of page that WebKit can not display.. and ( big sister ) Safari display correct
    if html having error it display blank page

    Animated Image format:
    http://www.miwa-immobilien-allgaeu.d...ng_gif2swf.htm
    gif , swf , mng , apng , svg
    WebKit display only gif .. + first frame from APNG ( APNG having backward compatibility with non-animated PNG files)
    Plug-in mng from QT4 not work on WebKit
    SWF flash plug-in i dont know if exist... Adobe not having...


    Online edit simple way is only window.getSelection() +
    http://mozile.mozdev.org/
    xhtml edit:
    http://kupu.oscom.org/
    http://bitfluxeditor.org/

    all other is commercial or not XHTML

    Ok you can use QTextedit + and is Api QTextDocument ... and after all <div> or <objekt> tag go destroy , QTextDocument not know all tag...

    On QT the unique way to edit a all xhtml tag :
    1 - wait first release from http://sourceforge.net/projects/qxsl-fo/ 1-2 week
    ( from xsl-fo to porting on xhtml is easy all inside QGraphicsView
    any tag or append tag has his item on a group )
    2 - destroy unknow tag from app http://www.qt-apps.org/content/show....?content=59493 Like QTexbrowser
    3 - Miniscribus xhtml export http://www.qt-apps.org/content/show....?content=67552 layer based <div>
    4 - Compose xhtml on http://www.qt-apps.org/content/show....?content=80234 layer based <div>
    3 - build your own application on minimum 20 week

  7. The following user says thank you to patrik08 for this useful post:

    24pm (27th May 2008)

  8. #6
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.4 WebKit: WYSIWYG HTML editor?

    QtWebKit does not support third party plugins (or Java). Only HTML and native image formats can be shown, with help form CSS and Javscript. You may need to provide some assistance for some image formats (MNG). Flash won't display at all because it is not HTML, but a third party proprietary plugin.

  9. #7
    Join Date
    May 2008
    Location
    Russia
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4 WebKit: WYSIWYG HTML editor?


Similar Threads

  1. Qt based HTML editor.
    By William Wilson in forum Qt Programming
    Replies: 5
    Last Post: 12th August 2007, 18:58
  2. WYSIWYG html, Window show png icon mac no!
    By patrik08 in forum Qt Programming
    Replies: 10
    Last Post: 25th May 2006, 12:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.