Hello
I'm using the FCKEditor to edit PHP files that contains both PHP and HTML code. Right now, when I'm in Source mode, it shows my PHP calls (because I've set it up in the .js file) but it sort of adapts it and so it's not the file content exactly.
What I would like the FCKEditor to do is show me the parsed file when in design mode and the exact PHP file in source mode.
Is that possible?
Thank you!
Thu, 01/10/2008 - 16:28
#1
Re: Use with PHP: Source = Plain Text & Design = Parsed HTML
Re: Use with PHP: Source = Plain Text & Design = Parsed HTML
I know some forums ignore the RTFM type questions. If this is one, can someone tell me?

Seriously, I've gone through the documentation and I've seen nothing that can help me.
At the moment, the source is fine when loaded in the FCK Editor (because I've enabled PHP tags) but the page loads only the design (which is static) and doesn't load any text (which is PHP generated). The problem with this is that when I add a tag through FCK it prints out behind text generated in PHP.
Help?
Re: Use with PHP: Source = Plain Text & Design = Parsed HTML
You'll need to write a plugin that does all the conversion from PHP to HTML and back, kinda like the mediawiki+FCKeditor project does.
Re: Use with PHP: Source = Plain Text & Design = Parsed HTML
mmm I'm not sure I know how to do that
Is there a manual or something of the likes for creating plugins?
Re: Use with PHP: Source = Plain Text & Design = Parsed HTML
Read the docs: http://wiki.fckeditor.net/Developer%27s ... n/Plug-ins and the MediaWiki+FCKeditor project to understand that converting from PHP to HTML and back isn't an easy task.