ckeditor - CK Editor add style for a page -


how add style using ck editor ?

i want create style use in class attribute on liferay editor .

for example -

in page javascript section

ckeditor.xxxx(// add style class red color called 'myred') 

and in editor -

<p class="myred">text</p> 

would give red text .

place in theme:

.myred {    color: red; } 

then include class in source mode of editor described in question:

<p class="myred">text</p> 

that's it.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -