hi,
I have a problem, I want to have a dialpg box, that allow me to add php code.
I need than it looked like some text box (like placeholder) or my default image in the DesignMode and it should be normal php-code in the SourceMode.
Can anybody help me to solve my problem? plz..
I have a problem, I want to have a dialpg box, that allow me to add php code.
I need than it looked like some text box (like placeholder) or my default image in the DesignMode and it should be normal php-code in the SourceMode.
I`m trying to modify a placeholder plugin, but it always change '?>' and '<?' tags to escape symbols ('?>' and '<?')!
Can anybody help me to solve my problem? plz..
RE: modify placeholder plugin
RE: modify placeholder plugin
How does it work? ...Tell me more, please.
RE: modify placeholder plugin
To preserve any special code such as php <? ?> the editor can be configured to change that "illegal" code to html comments and keep the content outside of the editor.
Look at the FCKConfig.ProtectedSource lines in your config file and other comments in the forum. You can search for the implementation of it to understand what it does.
RE: modify placeholder plugin
Php-code export to FCKeditor good, but there is not it in the DesignMode! there is php-code only in the SourceMode.
I need that I can see my php-code in DesignMode like I can see text in bracket using placeholder plugin or other way and its much better:
php-code should looked like my default image in the DesignMode and in SourceMode like normal php-code.
how do that? where should i search?
RE: modify placeholder plugin
If you want to change that you'll need to improve the current ProtectedSource implementation, search the source for that functions.