Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Image plugin of RTE plugin ( rich text xtype) is not working, when used in custom widget.

Avatar

Level 1

The image plugin work well only on firefox when used as dialog widget with xtype rich text . It doesn't work on chrome/IE. However when I try to use it in my custom widget as below I am unable to drop the image even on firefox.


//Object to disable the indent and outdent features

richPlugins = ({
"image": ({features:'*'}),
"table":({features:'*'}),
"misctools": ({features:["specialchars","sourceedit"]}),
"findreplace": ({features:["find","replace"]}),
"lists": ({features:['ordered','unordered']})
});
 
 
this.answerField = new CQ.form.RichText({
hideLabel: true,
rtePlugins: richPlugins,
width:'100%'
});
this.add(this.answerField);

 
Rest of the plugins work well. Please suggest.
Thanks

Divya

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Level 10

What is the javascript error in the console?

Avatar

Correct answer by
Level 10