andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
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?
|
|
|
|
n00dles101
Administrator
Posts: 981
Joined: Aug 2009
|
adding own styles to wysiwyg editor
Hii Andy,
i think what your looking for is here:
http://get-simple.info/wiki/how_to:edito...stom_files
Mike.
My Github Repos: Github
Website: DigiMute
|
|
|
|
andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
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.
|
|
|
|
andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
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.
|
|
|
|
Connie
Super Moderator
Posts: 2,719
Joined: Feb 2011
|
adding own styles to wysiwyg editor
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
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
|
|
|
|
andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
Thanks. Realised this and did it already.
|
|
|
|
andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
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.
|
|
|
|
Connie
Super Moderator
Posts: 2,719
Joined: Feb 2011
|
adding own styles to wysiwyg editor
" www.yourdomain.de/getsimple-root" <= did you replace that with the actual settings?
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
|
|
|
|
andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
Connie wrote:"www.yourdomain.de/getsimple-root" <= did you replace that with the actual settings?
I did.
|
|
|
|
Connie
Super Moderator
Posts: 2,719
Joined: Feb 2011
|
adding own styles to wysiwyg editor
let us see you "ckeditorstyles.js"
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
|
|
|
|
andyash
Member
Posts: 173
Joined: Apr 2010
|
adding own styles to wysiwyg editor
Connie wrote:let us see you "ckeditorstyles.js"
|
|
|
|