Uploaded image for project: 'ZK CKeditor'
  1. ZK CKeditor
  2. ZKCK-28

quick successive bindings cause exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 4.7.0.0
    • 4.3.3.0
    • Security Level: Jimmy
    • None

      the editor instance in added as the _editor property to the widget in a callback after the editor is properly initialized, and that there is a small delay after widget bind, and editor initialization.

      If widget unbind happens before this process is over, the widget does not yet hold an _editor property during unbind.
      Because of this missing _editor, the editor instance is not cleaned up, and the textarea node state is also not completely reset.

      If widget bind happens again, it fails while crating a 2nd instance for the same dom element, plus other errors due to CKeditor not finding the textarea element anymore.

      Reproduced with:

      <zk>
      	<ckeditor id="ckedit"/>
      	<button label="click for rerender twice" xmlns:w="client" w:onClick="zk.$('@ckeditor').rerender(); setTimeout(function(){zk.$('@ckeditor').rerender();},100)"/>
      </zk>
      

            rudyhuang rudyhuang
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m