Discussion:
[nebula-dev] New topic in forum Nebula, called How add CSS to RichTextEditor ?, by Nicolas FAUVERGUE
f***@eclipse.org
2017-09-18 16:10:04 UTC
Permalink
Hi,

I try to add a css file or attributes to the CKEditor using the 'org.eclipse.nebula.widgets.richtext' plugin by two ways :

1. executeJavascript("CKEDITOR.config.addContentsCss=CKEDITOR.getUrl(\"resources/contents.css\")": My css file is included in my plugin and i tried some possible urls ('platform:/plugin....', full link 'C:/....') but nothing works
2. executeJavascript("CKEDITOR.addCss='p{margin:0;}')": Nothing works too

What am i doing wrong about this approach ?

Thanks in advance for your reply.

Regards,
Nicolas.

To participate in the discussion, go here: https://www.eclipse.org/forums/index.php?t=rview&frm_id=64
Loading...