Features:
Loading Function: Now you can configure yourself your Editor
['undo','redo','bold','underline','italic','cut','copy','paste','editItem','strike',
'forecolor','backcolor','justifyleft','justifycenter','justifyright','justifyfull',
'orderedlist','unorderedlist','outdent','indent','subscript','superscript','special',
'table','makeBig','Smilies','clear','print','help','fontname','fontsize','formatblock'];
Example:
mySelFunction=['bold','italic','underline']
new HtmlArea('hello',{form:'FormHello',width:'400px',height:'100px',align:'bottom',toolbar:mySelFunction,ViewSource:true});
Parameters:
form: '',
width: '100%',
height:'',
align:'top',
inlineEdit:false,
toolbar:'',
ViewSource:true,
picupload :false,
uploadfolder :'',
title:'ownCMS WYSIWYG Editor',
lang:'de',
onReadyLoad: Class.empty
Es können gezielt Textareas angesprochen werden
new HtmlArea('hello3',{form:'FormHello1',width:'600px',height:'200px',toolbar1:true,toolbar2:false,toolbar3:false,ViewSource:true});
Es muss nur die ID (inplaceEdit) und die Option inlineEdit auf true gesetzt werden und über die save() Funktion bekommt man den Inhalt wieder in das Feld zurück
new HtmlArea($('inplaceEdit'),{inlineEdit:true,width:'600px',height:'400px'});