Hi
I'm new to RTE and attempting to implement the editor for the first time in MVC. Below is my code and the markup and JS generated by the editor from my example. Please see my questions inline with the code
Thanks
<script type='text/javascript' src='/richtexteditor/scripts/loader.js'></script>
<div id="mdDescriptionEditor" style="border-color:#7E9DB9;border-width:0px;border-style:Solid;height:320px;width:450px;">
HOW CAN I ADD CLASSES TO THE DIV GENERATED?
<!--RichTextEditor-->
<img src='/richtexteditor/images/zip.gif' onload='this.style.display="none" ; function initcode(){window.rteloader=CreateRTELoader({'toolbar':'member','showcodemode':false,'showtaglist':false,'showpreviewmode':false,'langfiles':'lang,more','skin':'office2007blue','lang':'en-us','showzoomview':false,'ajaxpostbackurl':'/Member/EditorAjaxHandler','showeditmode':false,'showresizecorner':false,'editorbodyclass':'mdCompanyDescriptionDiv centerContainerContent','allowscriptcode':false,'styleblacklist':'position,visibility,display','height':'320px','maxhtmllength':1000,'contentcss':'/Content/example.css','width':'450px','ajaxcontext':'!3wEWAgUOZGVmYXVsdC5jb25maWdkEMAJI0CUGcBhw1NAXQmfkQ!3QQiYTLGYczmhwKooSe6o!2','uniqueid':'mdDescriptionEditor','serverbrowsertype':'WinIE','editorbodyid':'mdCompanyDescriptionDiv','containerid':'mdDescriptionEditor','maxtextlength':1000,'browserlang':'en-US','attrblacklist':'runat,action','folder':'/richtexteditor/','tagblacklist':'script,style,link,applet,bgsound,meta,base,basefont,frameset,frame,form','servertype':'AspNet','uploaderid':'mdDescriptionEditor_Uploader'});rteloader.startLoadTimer(1);};if(window.CreateRTELoader) return initcode();var scripturl='/richtexteditor/scripts/loader.js?'+new Date().getTime();var xh=window.XMLHttpRequest?new window.XMLHttpRequest():window.ActiveXObject('Microsoft.XMLHTTP');xh.onreadystatechange=function(){ if(xh.readyState<4)return; xh.onreadystatechange=new Function('',''); if(xh.status!=200)return alert('Failed to load RichTextEditor loader : http '+xh.status+' , '+scripturl); var runc=new Function('','eval(arguments[0])'); runc(xh.responseText); initcode();};xh.open('GET',scripturl,true);xh.send('');' style='position:absolute;' />
</div>
<input type='hidden' name='mdDescriptionEditor' value='
<p>
Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.
</p>
<p>
Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos.
</p>' />
PrepareEditor("mdDescriptionEditor", delegate(Editor editor)
{
editor.Text = member.Description;
editor.Toolbar = "member";
editor.Width = Unit.Pixel(450);
editor.EditorBodyClass = "mdCompanyDescriptionDiv centerContainerContent"; // WHAT DOES THIS DO? I SEE IT IN THE JS GENERATED IN ONLOAD BUT OTHERWISE NOT ATTACHED TO ANY DOM OBJECT. I NEED TO STYLE THE CONTENTS OF THE EDITOR WITH CLASS NAMES.
editor.ShowPreviewMode = false;
//editor.ShowPreviewToolbar = false;
editor.ShowResizeCorner = false;
editor.AllowScriptCode = false;
editor.ShowCodeMode = false;
//editor.ShowCodeToolbar = false;
editor.ShowEditMode = false;
editor.ShowTagList = false;
editor.ShowZoomView = false;
editor.EditorBodyId = "mdCompanyDescriptionDiv";// WHAT DOES THIS DO? I SEE IT IN THE JS GENERATED IN ONLOAD BUT OTHERWISE NOT ATTACHED TO ANY DOM OBJECT. I NEED TO SET THE EDITOR BODY CONTAINER ID (NOT NAME) ATTRIBUTE TO ACCESS WITH JQUERY USING ALREADY WRITTEN FUNCTIONS.
editor.MaxHTMLLength = 1000;
editor.MaxTextLength = 1000;
});