Hi Everyone,
we are experimenting with using CKEditor in a Webkit pseudo-browser window from the Qt GUI library (PySide bindings) so that we can embed the HTML editor into our PySide/Qt/Python application.
We are seeing an issue that does not occur when we are running the JavaScript code directly in Chrome et al:
When selecting a stretch of text (even a single word), and then changing its style to bold, italics or underline, the operation completes correctly, but after that several apparently random fragments of the text around it are selected. Any ideas how to get CKEditor to behave in this "embedded" Webkit?
Help!
Thanks a lot
Patrick
we are experimenting with using CKEditor in a Webkit pseudo-browser window from the Qt GUI library (PySide bindings) so that we can embed the HTML editor into our PySide/Qt/Python application.
We are seeing an issue that does not occur when we are running the JavaScript code directly in Chrome et al:
When selecting a stretch of text (even a single word), and then changing its style to bold, italics or underline, the operation completes correctly, but after that several apparently random fragments of the text around it are selected. Any ideas how to get CKEditor to behave in this "embedded" Webkit?
Help!
Thanks a lot
Patrick
Re: Issue using CKEditor in Webkit (in Qt)
Some more info:
If you install Python 2.7 and PySide, the minimal code below reproduces the issue in your demo page.
Just selecting part of the text and "BOLD"ing it will randomly select other parts of the text.
Here is the sample code to reproduce ...
from PySide import QtGui, QtCore
import PySide.QtWebKit
import sys
class HTMLEditor(QtGui.QWidget):
def __init__(self, parent = None):
super(HTMLEditor, self).__init__(parent)
view = PySide.QtWebKit.QWebView(parent)
view.load(QtCore.QUrl("http://ckeditor.com/demo"))
layout = QtGui.QVBoxLayout(self)
layout.addWidget(view)
def main(argv = sys.argv):
app = QtGui.QApplication(sys.argv)
form = HTMLEditor()
form.show()
app.exec_()
if __name__ == '__main__':
main()