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

ckeditor (plugin) causes vertical scrollbar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.14.0.1

      Steps to Reproduce

      static case:

      <zk>
          <ckeditor/>
      </zk>
      

      dynamic case:

      <zk>
          <zscript><![CDATA[import org.zkforge.ckez.CKeditor;]]></zscript>
          <div>
              <button label="attach ckeditor" onClick="self.getParent().appendChild(new CKeditor())"/> ckeditor causes vertical scrollbar
              <separator/>
              <button label="detach ckeditor" onClick="self.getNextSibling().detach();"/>
          </div>
      </zk>
      

      Current Result

      a ckeditor causes a vertical scrollbar for just one additional pixel

      even after detaching the ckeditor widget the scrollbar remains (-> the hidden div doesn't get cleaned up)

      Expected Result

      no scrollbar

      cleanup after detaching ckeditor

      Debug Information

      the scrollbar is caused by a hidden div created by the copyformatting plugin

      Workaround

      assign a bottom 0px to remove the hidden div from the page flow

      .cke_screen_reader_only {
          bottom: 0px;
      }
      

            katherinelin katherinelin
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: