Class CKEditor


  • @Unstable
    public class CKEditor
    extends BaseElement
    Models a CKEditor instance.
    Since:
    1.13
    Version:
    $Id: 84d4888ca91a1028609e907c2a1e9a74b1b9c806 $
    • Constructor Detail

      • CKEditor

        public CKEditor​(String name)
        Create a new instance that can be used to interact with the specified CKEditor instance.
        Parameters:
        name - the editor field name
    • Method Detail

      • waitToLoad

        public CKEditor waitToLoad()
        Waits for CKEditor to load.
        Returns:
        this editor instance
      • clickImageButton

        public ImageDialogSelectModal clickImageButton()
        Click on the CKEditor image button.
        Returns:
        a page object for the image selection modal
        Since:
        14.7RC1
      • clickLinkButton

        public LinkSelectorModal clickLinkButton()
        Click on the link button on the toolbar.
        Returns:
        the page object to interact with the link selection modal
        Since:
        15.0RC1, 14.10.3
      • clickImageButtonWhenImageExists

        public ImageDialogEditModal clickImageButtonWhenImageExists()
        Click on the CKEditor image button when an image widget is on focus (i.e., the image modal will be opened in edit mode).
        Returns:
        a page object for the image edit modal
        Since:
        14.8RC1
      • executeOnIframe

        public void executeOnIframe​(Runnable runnable)
        Execute the runnable on the context of the CKEditor iframe.
        Parameters:
        runnable - the action to run on the context of the CKEditor iframe
        Since:
        14.8RC1