First things first: I’m seriously impressed! What a versatile, well thought-out framework this is... possibly the best I’ve used, and I really have tried lots of them over the years... but I usually ended up rolling-my-own for one reason or another. Not anymore I hope
Just a few questions:
I’m trying to integrate my favourite editor wysiwygpro into the CMS with a plugin but have come up against a few problems. The editor requires a constant to be defined - the path to itself:
define(’WP_WEB_DIRECTORY’, ’/assets/plugins/wysiwygpro/editor_files/’);
This is defined in the editors’ own configuration file: /assets/plugins/wysiwygpro/editor_files/config.php
I’ve got the editor to load in textareas but the the WP_WEB_DIRECTORY path has become:
’/manager/\"/assets/plugins/wysiwygpro/editor_files\"2’
it’s not escaping the path... anyone know why this happens?
Second problem: the FCKEditor uses JavaScript to replace textareas, and I imagine it uses the DOM to get the textarea content. But WysiwygPro uses PHP to replace the $content of the textarea (you use $editor->set_code($content) ) - so the problem is, how do you get the value of a given textarea? Is it even available to the system event OnRichTextEditorInit ?
It would be great to get this working; WysiwygPro is extremely good at producing clean XHTML, plus it has lots of advanced features that FCKEditor either lacks or implements poorly - like being able to generate a list of links to dynamic content in the links pop-up, and stand-alone image and file managers...
Many thanks in advance if anyone can help!