Hi, I've created some plugins to insert custom tags in fckeditor (nothing special, some text I've to replace later).
I read this howto (http://wiki.fckeditor.net/Developer%27s ... n/Plug-ins), but what I want to do is to create a button plugin widthout image button but something like "show source", to take advantage of the multilanguage support.
Anyone know how to accomplish?
Thank you
Thu, 09/06/2007 - 18:23
#1
Re: Plugin button, without image
var oCittas = new FCKToolbarButton('Citta', FCKLang.Citta, null, FCK_TOOLBARITEM_ONLYTEXT);
instead of
var oCittas = new FCKToolbarButton('Citta', 'Citta');
Now I've to find how to force a language.
I've seen in custom_config.js that I can set the default language and set to false the autodetect, but I'm wondering if i can do it in php.
thank you
Re: Plugin button, without image
I've solved putting in a hidden text field the value of the actual language then in fccustomconfig.js

FCKConfig.DefaultLanguage = parent.document.getElementById('fckeditorlang').value.substr(0,2);
But I don't like to much this solution.
If there's a better way please suggest it
Re: Plugin button, without image
Re: Plugin button, without image