Second styles plugin for RTE Touch UI AEM 6.3

Avatar

Avatar

CT1012

Avatar

CT1012

CT1012

26-08-2018

Currently we've OOTB styles plugin configured for RTE in AEM 6.3, we need to add second styles plugin(duplicate styles plugin with name "sizes").

I tried to use the same script from styles which i found under the path

/libs/clientlibs/granite/coralui2/optional/rte/js/components/rte/plugins/StylesPlugin.js

but not working fine. Tried to use the same functions from StylesPluginImpl.js too.

TFS

View Entire Topic

Avatar

Avatar

CT1012

Avatar

CT1012

CT1012

28-08-2018

It is breaking the RTE and i'm seeing the below error in browser

richtext.js:42258 Uncaught TypeError: Cannot read property 'isAnyFeatureEnabled' of undefined

    at featureEnabled (richtext.js:42258)

    at popoverAvailable (richtext.js:42274)

    at instanceGenerator._buildToolbar (richtext.js:42321)

    at instanceGenerator.createToolbar (richtext.js:42478)

    at instanceGenerator.createToolbar (richtext.js:4906)

    at instanceGenerator.initializeEditorKernel (richtext.js:47715)

    at instanceGenerator.startEditing (richtext.js:48082)

    at instanceGenerator.start (richtext.js:48112)

    at processConfig (richtext.js:38740)

    at Object.success (richtext.js:38769)

dialogFullScreen popovers I've added under _cq_dialog

#fontstyles in toolbar

&

<fontstyles

     jcr:primaryType="nt:unstructured"

     items="fontstyles:getStyles:styles-pulldown"

     ref="fontstyles"/>