Posts: 184
Threads: 20
Joined: Apr 2010
I want to add my own style markup to the WYSIWYG Editor so that it is available to me for usage on text and images while editing a page.
In the WYSIWYG Editor advanced mode a STYLES drop down and FORMAT dropdown are available to us for styling paragraphs and text. I want to add my own styles here so I can just select my text, choose the style from the drop down menu and I'm done.
How do I achieve this without touching any core files?
Posts: 1,108
Threads: 70
Joined: Aug 2009
Hii Andy,
i think what your looking for is here:
http://get-simple.info/wiki/how_to:edito...stom_files
Mike.
Posts: 184
Threads: 20
Joined: Apr 2010
n00dles101 Wrote:Hii Andy,
i think what your looking for is here:
http://get-simple.info/wiki/how_to:edito...stom_files
Mike.
This worked great. Thanks.
Posts: 184
Threads: 20
Joined: Apr 2010
Ok. Another issue. I have added a WYSIWYG Editor through i18n_customfields. The styles section in this editor is blank now. How do I add my customised style to that?
Also, I am unable to add images in the customfields wysiwyg editor. I have to input the image link in the URL field manually. Selecting from the editor still shows the URL field as blank.
Posts: 2,928
Threads: 195
Joined: Feb 2011
this is a question to the plugindeveloper of the custom fields plugin-developer ;=)
it always depends how the editor is integrated, if it is integrated referring to the general configuration or not
Andyash, I suggest to ask this in the support thread of that plugin, because the problem with the images will affect all plugin-users
Posts: 184
Threads: 20
Joined: Apr 2010
Thanks. Realised this and did it already.
Posts: 184
Threads: 20
Joined: Apr 2010
define('GSEDITOROPTIONS',"stylesSet: 'default:http://www.yourdomain.de/getsimple-root/themes/ckeditorstyles.js'");
I have given up on the above as the styles drop down becomes blank in both Chrome and IE9.
Posts: 2,928
Threads: 195
Joined: Feb 2011
"
www.yourdomain.de/getsimple-root" <= did you replace that with the actual settings?
Posts: 184
Threads: 20
Joined: Apr 2010
Connie Wrote:"www.yourdomain.de/getsimple-root" <= did you replace that with the actual settings?
I did.
Posts: 2,928
Threads: 195
Joined: Feb 2011
let us see you "ckeditorstyles.js"
Posts: 184
Threads: 20
Joined: Apr 2010
Connie Wrote:let us see you "ckeditorstyles.js"