Tuesday, 25 February 2014

Adobe AEM/CQ overwriting built-in plugins for richtext editor

Example given here -
to overwrite the built-in link configuration dialog box by adding a field to set a link title:
http://forums.adobe.com/thread/1230814

Very important to compare the code given in the example for changes.

Overview:
  1. Setup in the apps director to create a "widgets" folder with these values
    • jcr:primaryType  = cq:ClientLibraryFolder
    • sling:resourceType = widgets/clientlib
    • categories = cq.wcm.edit
  2. Create a js file that overrides the built-in js plugin, note:
    • Initialize the name of the plugin
    • Register the name to the built-in xtype
    • Uses CQ.form instead of CUI.
  3. Create a js.txt and include the name of js file within



No comments:

Post a Comment