CKEditor Plugin Image Selector

Version 3.1 by Manuel Leduc on 2022/05/16 09:45

Add a tab in the image selection step of the new CKEditor Image Dialog

Usage

The extension point adds a tab inside the image selection modal of the new CKEditor Image Dialog.

ckeditor_image_dialog_select_tabs.png

Definition

This Extension Point is contributed by this extension and was added in version 1.63 of that extension.

Category
Tab
Extension Id
org.xwiki.contrib.ckeditor.plugins.imageSelector
Content to be provided

The minimal code to add to add in the extension point should look like this:

{velocity}}
## Provides the Javascript code to notify the image selector of the selected image.
#set ($discard = $xwiki.jsx.use('Some.JXS.XObject'))
## TODO: add the html content of the selector
{{/velocity}}
Parameters to be provided
  • priority: the order in which the tabs will be displayed. The lower the number is, the more on the left the item is. Examples of correct orders: 100, 200 Please let enough room to add other UIX between existing ones and your own. The UIX with the lowest priority is opened by default
  • title: the title of the tab
  • id: the identifier of the tab

Get Connected