Quote:
Originally Posted by maicol07
Hi,
is there a way or a plugin to add to the toolbar a button to add a CSS class to an element (for example the selected text)?
Thanks
|
Yes, use the Clip Editor.
1. Go to Tools/Clip Editor...
2. In the dialog that appear, press the button "Add Entry".
3. In the field "Name" type the name of your desired class, i.e. "My Class" (no quotes).
4. Do double click in the field "Text" and write: "<span class="your_class_here">\1</span>" (no quotes).
5. Press Enter and do click on the button "Save" and then on the button "Close".
That's all. Now if you set as visible the "Clip bar", you'll see a button named "My Class". Select the text you want, press on that button and you'll have the text styled with your class.
Regards
Rubén