A set of Enhanced Image (image2) plugin helpers.
checkHasNaturalRatio( image ) → Boolean
getLinkAttributesGetter() → Function
Returns an attribute getter function. Default getter comes from the Link plugin and is documented by CKEDITOR.plugins.link.getLinkAttributes.
Note: It is possible to override this method and use a custom getter e.g. in the absence of the Link plugin.
Note: If a custom getter is used, a data model format it produces must be compatible with CKEDITOR.plugins.link.getLinkAttributes.
Note: A custom getter must understand the data model format produced by getLinkAttributesParser to work correctly.
A function that gets (composes) link attributes.
getLinkAttributesParser() → Function
Returns an attribute parser function. Default parser comes from the Link plugin and is documented by CKEDITOR.plugins.link.parseLinkAttributes.
Note: It is possible to override this method and use a custom parser e.g. in the absence of the Link plugin.
Note: If a custom parser is used, a data model format produced by the parser must be compatible with getLinkAttributesGetter.
Note: If a custom parser is used, it should be compatible with the CKEDITOR.plugins.link.parseLinkAttributes data model format. Otherwise the Link plugin dialog may not be populated correctly with parsed data. However as long as Enhanced Image is not used with the Link plugin dialog, any custom data model will work, being stored as an internal property of Enhanced Image widget's data only.
A function that parses attributes.
getNatural( image ) → Object