Answer the question
In order to leave comments, you need to log in
CKEditor4 how to set styles for my plugin and pass a parameter to command?
Good afternoon!
I am writing my own plugin for inserting information from a list of possible options.
There were 2 questions:
1 - I create a data object for output in a loop:
var items = {};
for(var i = 0; i < fields.length; i++){
items[i] = {
label: fields[i][0],
group: 'addfield_group',
order: i,
command: 'qwerty',
};
}
if (editor.addMenuItems) {
editor.addMenuItems( items );
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question