I have some pre-defined div classes and want to wrap selection content with one of them. Here is what I did:
CKEDITOR.stylesSet.add('my-styles',
[
{ name : 'block1', element : 'div',attributes: { 'class' : 'hidden', 'title' : 'block1' } },
{ name : 'block2', element : 'div', attributes: { 'class' : 'hidden', 'title' : 'block2' } },
{ name : 'block3', element : 'div', attributes: { 'class' : 'hidden', 'title' : 'block3' } },
{ name : 'block4', element : 'div', attributes: { 'class' : 'hidden', 'title' : 'block4' } }
]
);
However, it applied the div tag to each individual block items in the selection. For example,
<ul> <li>item1</li> <li>item2</li> </ul>
Have you manged to find a
Have you manged to find a solution for this issue?