(How to set config settings when instantiating) |
(question/suggestion - server side security) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | How to set config settings when instantiating:<br> | + | How to set config settings when instantiating:<br> |
− | $oFCKeditor->Config['varName'] = 'value';<br> | + | $oFCKeditor->Config['varName'] = 'value';<br> |
+ | |||
+ | <br> | ||
+ | |||
+ | These variables will be available as editorInstance.Config.varName<br> | ||
+ | |||
+ | <br> | ||
+ | |||
+ | There are some settings that should be explained before the config options as they can be set only here, not in the config file:<br> | ||
+ | |||
+ | $oFCKeditor->Width = '100%' ;<br> $oFCKeditor->Height = '200' ;<br> $oFCKeditor->ToolbarSet = 'Default' ;<br><br> | ||
<br> | <br> | ||
− | + | It may be worth mentioning that you need to do some server-side security checking (which isn't included with FCKeditor if I am right?). Seeing you are likely to display the input from FCKeditor directly on some page as HTML, people could post some malicious javascript which would be executed for everyone visiting the page (for example stealing their session id's), right? --[[User:Froink|Froink]] 12:58, 21 July 2009 (UTC) |
Latest revision as of 13:58, 21 July 2009
How to set config settings when instantiating:
$oFCKeditor->Config['varName'] = 'value';
These variables will be available as editorInstance.Config.varName
There are some settings that should be explained before the config options as they can be set only here, not in the config file:
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '200' ;
$oFCKeditor->ToolbarSet = 'Default' ;
It may be worth mentioning that you need to do some server-side security checking (which isn't included with FCKeditor if I am right?). Seeing you are likely to display the input from FCKeditor directly on some page as HTML, people could post some malicious javascript which would be executed for everyone visiting the page (for example stealing their session id's), right? --Froink 12:58, 21 July 2009 (UTC)