CKEDITOR.config.tabSpaces - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: CKEDITOR.config.tabSpaces (/showthread.php?tid=1347) |
CKEDITOR.config.tabSpaces - datiswous - 2011-03-01 Hi, I want to change the default way the TAB-key is used in the editor, to make it an amount of spaces by hitting the TAB-key: On this page: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.tabSpaces Is the following text: Code: <static> {Number} CKEDITOR.config.tabSpaces Since: 3.0 I tried this, but it won't work. Does anyone knows a solution for this? btw. I'm using GS v. 2.03.1 at the moment. CKEDITOR.config.tabSpaces - datiswous - 2011-03-14 Well, what I actually wanted to accomplish is to get the TAB-functionallity as seen in for example Word. I find this to be default behavior on a (get)simple editor. I've also seen it work by default on other editors, like: Richedit Wyzz But I guess nobody knows a solution/cares ? CKEDITOR.config.tabSpaces - ccagle8 - 2011-03-14 Try adding this to the CKEditor config file now on the latest beta. Joshas upgraded CKEDitor for us, and what you were trying to use might be for a later version than 2.03.1 has... Code: config.tabSpaces = 4; CKEDITOR.config.tabSpaces - n00dles101 - 2011-03-14 or rather than editing the core files you can add it to GSCONFIG.php Code: define('GSEDITOROPTIONS', "tabSpaces: 4"); Edit : This works in version 2.03 and above. Mike... CKEDITOR.config.tabSpaces - datiswous - 2011-03-14 Thanks. The sugestion of Chris didn't work (maybe I did something wrong?), tested on latest beta. The solution from Mike did work, but had to change the provided code a bit: Code: # WYSIWYG Editor Options b.t.w. shouldn't this be standard behavior of the editor? edit: tabSpaces:10 seems better. CKEDITOR.config.tabSpaces - ccagle8 - 2011-03-14 i'm beginning to think that it should be default behavior too... do we have any other people thinking the same? CKEDITOR.config.tabSpaces - n00dles101 - 2011-03-14 Yeah agree , should be the default behavior. CKEDITOR.config.tabSpaces - ccagle8 - 2011-03-14 ok, adding it to the SVN now... CKEDITOR.config.tabSpaces - datiswous - 2011-03-15 ccagle8 Wrote:ok, adding it to the SVN now... Yay! |