To WYSIWYG-mantainers: Change in WYSIWYG-module-api
Posted: Wed Feb 01, 2006 8:22 pm
To all maintainers of wysiwyg-modules
After consulting wishy I implemented and extension to the parameterlist for the CreateTextArea function allowing a specific wysiwyg-system to be forced. I use it for the example textarea in the admin page of Xinha, which oddly showed FCK if that was the active one. But other uses are imaginable, like a syntaxhighlighting module for template/css editing without breaking the wysiwyg for contents etc.
Unfortunately I had to require a small change in your modules to support this, for eventhough I could force you WYSIWYGTextArea to be called and inserted with no changes I couldn't do so for the other WYSIWYG-Codegenerating functions. Therefore I built in a member-var of the base module-class called $wysiwygactive and a function WYSIWYGActive return the value of the var for use in admin/footer.php which then will know whether to call these other code-generation functions eventhough the wysiwyg is not the chosen one.
But this member var has to be set to true somewhere in you code, I recommend in WYSIWYGTextArea function as it is not called unless the wysiwyg actually should be used.
I hope this is ok, the changes are in svn. If you have another solution please say so, but I couldn't think of one...
Best regards
Morten/Silmarillion
After consulting wishy I implemented and extension to the parameterlist for the CreateTextArea function allowing a specific wysiwyg-system to be forced. I use it for the example textarea in the admin page of Xinha, which oddly showed FCK if that was the active one. But other uses are imaginable, like a syntaxhighlighting module for template/css editing without breaking the wysiwyg for contents etc.
Unfortunately I had to require a small change in your modules to support this, for eventhough I could force you WYSIWYGTextArea to be called and inserted with no changes I couldn't do so for the other WYSIWYG-Codegenerating functions. Therefore I built in a member-var of the base module-class called $wysiwygactive and a function WYSIWYGActive return the value of the var for use in admin/footer.php which then will know whether to call these other code-generation functions eventhough the wysiwyg is not the chosen one.
But this member var has to be set to true somewhere in you code, I recommend in WYSIWYGTextArea function as it is not called unless the wysiwyg actually should be used.
I hope this is ok, the changes are in svn. If you have another solution please say so, but I couldn't think of one...
Best regards
Morten/Silmarillion