2

Is it possible to give a 'p' tag multiple classes via two independent style definitions? Say for instance, a user wants to add the class 'color-blue' to a p tag. And after, they want to add another class 'uppercase' to the 'p' tag.

var one = new CKEDITOR.style( { element: 'p', attributes: { 'class': 'color-blue' } } );
var two = new CKEDITOR.style( { element: 'p', attributes: { 'class': 'uppercase' } } );
editor.applyStyle(one);
editor.applyStyle(two);

it seems like this will overlap the class. what is the right way to do this?

Sean
  • 779
  • 6
  • 18

1 Answers1

1

No, CKEditor doesn't allow that in their style system.

AlfonsoML
  • 12,634
  • 2
  • 46
  • 53