View Single Post
Old 03-12-2019, 07:47 AM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,799
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by maicol07 View Post
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
RbnJrg is offline   Reply With Quote