I love the CMSMS, but I am used to the Innovastudio wysiwyg editor for my other projects.
I understand this is a commerical package, but TinyMCE and the other free editors just are not good enough.
Most of the problems I encounter is the HTML formatting, which is a real pain in the...
The Innova editor has a great build in assetmanager and also the possibilty to resize images with GD.
And most important it does not f*ck up the code!
Although I am not a programmer, I could use some help to try to integrate this wysiwyg to the CMSMS.
I am trying to fugure out how to make a module for this, but my lack of knowledge of php is not helping here.
Of course I will share the module with you later.
Maybe you can help me out here?
Thanks!
Mark
Here is some info, of course I can send you a copy of the program for testing purposes:
-----------------
First of all I would like to concentrate on showing the wysiwyg area.
- I have added a new module with module maker to the CMS.
- Folder is: /modules/innova/
- The editor is installed in: /modules/innova/editor
- The scripts of the editor are in: /modules/innova/editor/scripts
Basicly I need to add this code to the module to make it work:
Code: Select all
<__script__ language=JavaScript src='module/innova/editor/scripts/innovaeditor.js'></__script>
<textarea id="txtContent" name="txtContent" rows=4 cols=30>
<?
function encodeHTML($sHTML)
{
$sHTML=ereg_replace("&","&",$sHTML);
$sHTML=ereg_replace("<","<",$sHTML);
$sHTML=ereg_replace(">",">",$sHTML);
return $sHTML;
}
if(isset($_POST["txtContent"]))
{
$sContent=stripslashes($_POST['txtContent']); //Remove slashes
echo encodeHTML($sContent);
}
?>
</textarea>
<__script__>
var oEdit1 = new InnovaEditor("oEdit1");
oEdit1.REPLACE("txtContent");
</__script>