Problème avec TinyMCE sur IE6

Le
stefen76
Bonjour,

J'ai dcouvert l'diteur de texte javascript Tinymce, je l'ai
install sur mon site en l'intgrant mon Framework. L'diteur est
prsent sur 3 pages diffrentes dans mon backoffice.

Sur Firefox pas de problme tous fonctionne correctement, par contre
sur IE6, sur ma premire page l'diteur fonctionne correctement, mais
ds que je souhaite l'utiliser sur les autres pages IE me renvoit des
erreur javascript dont voici la description :
"Source html non valide pour cette operation", ligne 11

Voici le contenu de la ligne 11 :
<textarea id="tinymce_debug" style="width: 100%; height:
300px"></textarea>';document.body.appendChild(debugDiv);elm=document.getE=
lementById("tinymce_debug");}var
args=this.debug.arguments;for(var
i=0;i<args.length;i++){msg+=args[i];if(i<args.length-1)msg+=',
';}elm.value+=msg+"";};function
TinyMCEControl(settings){this.undoLevels=new
Array();this.undoIndex=0;this.typingUndoIndex=-1;this.undoRedo=true;t=
his.settings=settings;this.settings['theme']=tinyMCE.getParam("theme","=
default");this.settings['width']=tinyMCE.getParam("width",-1);this.settin=
gs['height']=tinyMCE.getParam("height",-1);};TinyMCEControl.prototype.rep=
aint=function(){if(tinyMCE.isMSIE)return;this.getBody().style.display='=
none';this.getBody().style.display='block';};TinyMCEControl.prototype.swi=
tchSettings=function(){if(tinyMCE.configs.length>1&&tinyMCE.currentConfig=
!=this.settings['index']){tinyMCE.settings=this.settings;tinyMCE.curren=
tConfig=this.settings['index'];}};TinyMCEControl.prototype.fixBrokenURLs=
=function(){var
body=this.getBody();var elms=body.getElementsByTagName("img");for(var
i=0;i<elms.length;i++){var
src=elms[i].getAttribute('mce_real_src');if(src&&src!="")elms[i].setAtt=
ribute("src",src);}var
elms=body.getElementsByTagName("a");for(var i=0;i<elms.length;i++){var
href=elms[i].getAttribute('mce_real_href');if(href&&href!="")elms[i].se=
tAttribute("href",href);}};TinyMCEControl.prototype.convertAllRelativeURLs=
=function(){var
body=this.getBody();var elms=body.getElementsByTagName("img");for(var
i=0;i<elms.length;i++){var
src=elms[i].getAttribute('src');if(src&&src!=""){src=tinyMCE.convertR=
elativeToAbsoluteURL(tinyMCE.settings['base_href'],src);elms[i].setAttribut=
e("src",src);elms[i].setAttribute("mce_real_src",src);}}var
elms=body.getElementsByTagName("a");for(var i=0;i<elms.length;i++){var
href=elms[i].getAttribute('href');if(href&&href!=""){href=tinyMCE.con=
vertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],href);elms[i].setAt=
tribute("href",href);elms[i].setAttribute("mce_real_href",href);}}};TinyMCE=
Control.prototype.getSelectedHTML=function(){if(tinyMCE.isSafari){return
this.getRng().toString();}var
elm=document.createElement("body");if(tinyMCE.isGecko)elm.appendChild(thi=
s.getRng().cloneContents());else
elm.innerHTML=this.getRng().htmlText;return
tinyMCE._cleanupHTML(this,this.contentDocument,this.settings,elm,this.visua=
lAid);};TinyMCEControl.prototype.getBookmark=function(){var
rng=this.getRng();if(tinyMCE.isSafari)return
rng;if(tinyMCE.isMSIE)return rng;if(tinyMCE.isGecko)return
rng.cloneRange();return
null;};TinyMCEControl.prototype.moveToBookmark=function(bookmark){if(tiny=
MCE.isSafari){var
sel=this.getSel().realSelection;sel.setBaseAndExtent(bookmark.startContai=
ner,bookmark.startOffset,bookmark.endContainer,bookmark.endOffset);return
true;}if(tinyMCE.isMSIE)return
bookmark.select();if(tinyMCE.isGecko){var
rng=this.getDoc().createRange();var
sel=this.getSel();rng.setStart(bookmark.startContainer,bookmark.startOffs=
et);rng.setEnd(bookmark.endContainer,bookmark.endOffset);sel.removeAllRange=
s();sel.addRange(rng);return
true;}return
false;};TinyMCEControl.prototype.getSelectedText=function(){if(tinyMCE.is=
MSIE){var
doc=this.getDoc();if(doc.selection.type=="Text"){var
rng=doc.selection.createRange();selectedText=rng.text;}else
selectedText='';}else{var
sel=this.getSel();if(sel&&sel.toString)selectedText=sel.toString();else
selectedText='';}return
selectedText;};TinyMCEControl.prototype.selectNode=function(node,collapse=
,select_text_node,to_start){if(!node)return;if(typeof(collapse)=="undef=
ined")collapse=true;if(typeof(select_text_node)=="undefined")select_t=
ext_node=false;if(typeof(to_start)=="undefined")to_start=true;if(ti=
nyMCE.isMSIE){var
rng=this.getBody().createTextRange();try{rng.moveToElementText(node);if(c=
ollapse)rng.collapse(to_start);rng.select();}catch(e){}}else{var
sel=this.getSel();if(!sel)return;if(tinyMCE.isSafari){sel.realSelection.s=
etBaseAndExtent(node,0,node,node.innerText.length);if(collapse){if(to_start=
)sel.realSelection.collapseToStart();else
sel.realSelection.collapseToEnd();}this.scrollToNode(node);return;}var
rng=this.getDoc().createRange();if(select_text_node){var
nodes=tinyMCE.getNodeTree(node,new
Array(),3);if(nodes.length>0)rng.selectNodeContents(nodes[0]);else
rng.selectNodeContents(node);}else
rng.selectNode(node);if(collapse){if(!to_start&&node.nodeType==3){rng.s=
etStart(node,node.nodeValue.length);rng.setEnd(node,node.nodeValue.length);=
}else
rng.collapse(to_start);}sel.removeAllRanges();sel.addRange(rng);}this.scrol=
lToNode(node);tinyMCE.selectedElement=null;if(node.nodeType==1)tinyMC=
E.selectedElement=node;};TinyMCEControl.prototype.scrollToNode=functi=
on(node){var
pos=tinyMCE.getAbsPosition(node);var doc=this.getDoc();var
scrollX=doc.body.scrollLeft+doc.documentElement.scrollLeft;var
scrollY=doc.body.scrollTop+doc.documentElement.scrollTop;var
height=tinyMCE.isMSIE?document.getElementById(this.editorId).style.pixelH=
eight:this.targetElement.clientHeight;if(!tinyMCE.settings['auto_resize']&&=
!(node.absTop>scrollY&&node.absTop<(scrollY-25+height)))this.contentWindow.=
scrollTo(pos.absLeft,pos.absTop-height+25);};TinyMCEControl.prototype.getBo=
dy=function(){return
this.getDoc().body;};TinyMCEControl.prototype.getDoc=function(){return
this.contentWindow.document;};TinyMCEControl.prototype.getWin=function(){=
return
this.contentWindow;};TinyMCEControl.prototype.getSel=function(){if(tinyMC=
E.isMSIE)return
this.getDoc().selection;var
sel=this.contentWindow.getSelection();if(tinyMCE.isSafari&&!sel.getRangeA=
t){var
newSel=new Object();var doc=this.getDoc();function getRangeAt(idx){var
rng=new
Object();rng.startContainer=this.focusNode;rng.endContainer=this.anchor=
Node;rng.commonAncestorContainer=this.focusNode;rng.createContextualFragm=
ent=function(html){if(html.charAt(0)=='<'){var
elm=doc.createElement("div");elm.innerHTML=html;return
elm.firstChild;}return doc.createTextNode("UNSUPPORTED, DUE TO
LIMITATIONS IN
SAFARI!");};rng.deleteContents=function(){doc.execCommand("Delete",false,=
"");};return
rng;}newSel.focusNode=sel.baseNode;newSel.focusOffset=sel.baseOffset;ne=
wSel.anchorNode=sel.extentNode;newSel.anchorOffset=sel.extentOffset;new=
Sel.getRangeAt=getRangeAt;newSel.text=""+sel;newSel.realSelection=sel=
;newSel.toString=function(){return
this.text;};return newSel;}return
sel;};TinyMCEControl.prototype.getRng=function(){var
sel=this.getSel();if(sel==null)return null;if(tinyMCE.isMSIE)return
sel.createRange();if(tinyMCE.isSafari){var
rng=this.getDoc().createRange();var
sel=this.getSel().realSelection;rng.setStart(sel.baseNode,sel.baseOffset)=
;rng.setEnd(sel.extentNode,sel.extentOffset);return
rng;}return
this.getSel().getRangeAt(0);};TinyMCEControl.prototype._insertPara=functi=
on(e){function
isEmpty(para){function isEmptyHTML(html){return html.replace(new
RegExp('[
t]+','g'),'').toLowerCase()=="";}if(para.getElementsByTagName("img=
").length>0)return
false;if(para.getElementsByTagName("table").length>0)return
false;if(para.getElementsByTagName("hr").length>0)return false;var
nodes=tinyMCE.getNodeTree(para,new Array(),3);for(var
i=0;i<nodes.length;i++){if(!isEmptyHTML(nodes[i].nodeValue))return
false;}return true;}var doc=this.getDoc();var sel=this.getSel();var
win=this.contentWindow;var rng=sel.getRangeAt(0);var body=doc.body;var
rootElm=doc.documentElement;var self=this;var blockName="P";var
rngBefore=doc.createRange();rngBefore.setStart(sel.anchorNode,sel.anchorO=
ffset);rngBefore.collapse(true);var
rngAfter=doc.createRange();rngAfter.setStart(sel.focusNode,sel.focusOffse=
t);rngAfter.collapse(true);var
direct=rngBefore.compareBoundaryPoints(rngBefore.START_TO_END,rngAfter)<0=
;var
startNode=direct?sel.anchorNode:sel.focusNode;var
startOffset=direct?sel.anchorOffset:sel.focusOffset;var
endNode=direct?sel.focusNode:sel.anchorNode;var
endOffset=direct?sel.focusOffset:sel.anchorOffset;var
startBlock=tinyMCE.getParentBlockElement(startNode);var
endBlock=tinyMCE.getParentBlockElement(endNode);if(startBlock!=null){bl=
ockName=startBlock.nodeName.toUpperCase();if(blockName=="TD"||blockNa=
me=="TABLE")blockName="P";}if((startBlock!=null&&startBlock.nodeNam=
e.toLowerCase()=="li")||(endBlock!=null&&endBlock.nodeName.toLowerC=
ase()=="li"))return
false;if((startBlock!=null&&startBlock.nodeName.toLowerCase()=="table=
")||(endBlock!=null&&endBlock.nodeName.toLowerCase()=="table"))startB=
lock=endBlock=null;var
paraBefore=(startBlock!=null&&startBlock.nodeName.toUpperCase()==bl=
ockName)?startBlock.cloneNode(false):doc.createElement(blockName);var
paraAfter=(endBlock!=null&&endBlock.nodeName.toUpperCase()==blockNa=
me)?endBlock.cloneNode(false):doc.createElement(blockName);var
startChop=startNode;var
endChop=endNode;node=startChop;do{if(node==body||node.nodeType==
=9||tinyMCE.isBlockElement(node))break;startChop=node;}while((node=no=
de.previousSibling?node.previousSibling:node.parentNode));node=endChop;do=
{if(node==body||node.nodeType==9||tinyMCE.isBlockElement(node))brea=
k;endChop=node;}while((node=node.nextSibling?node.nextSibling:node.pare=
ntNode));if(startBlock==null){rng.deleteContents();sel.removeAllRanges(=
);if(startChop!=rootElm&&endChop!=rootElm){rngBefore=rng.cloneRange()=
;if(startChop==body)rngBefore.setStart(startChop,0);else
rngBefore.setStartBefore(startChop);paraBefore.appendChild(rngBefore.cloneC=
ontents());if(endChop.parentNode.nodeName==blockName)endChop=endChop.=
parentNode;rng.setEndAfter(endChop);var
contents=rng.cloneContents();if(contents.firstChild&&(contents.firstChild=
.nodeName==blockName||contents.firstChild.nodeName.toLowerCase()=="=
body")){var
nodes=contents.firstChild.childNodes;for(var
i=0;i<nodes.length;i++){if(nodes[i].nodeName.toLowerCase()!="body")para=
After.appendChild(nodes[i]);}}else
paraAfter.appendChild(contents);if(isEmpty(paraBefore))paraBefore.innerHTML=
="&nbsp;";if(isEmpty(paraAfter))paraAfter.innerHTML="&nbsp;";rng.delete=
Contents();rngAfter.deleteContents();rngBefore.deleteContents();paraAfter.n=
ormalize();rngBefore.insertNode(paraAfter);paraBefore.normalize();rngBefore=
.insertNode(paraBefore);}else{body.innerHTML="<"+blockName+">&nbsp;</"+bl=
ockName+"><"+blockName+">&nbsp;</"+blockName+">";paraAfter=body.childNode=
s[1];}this.selectNode(paraAfter,true,true);return
true;}if(startChop.nodeName==blockName)rngBefore.setStart(startChop,0);=
else
rngBefore.setStartBefore(startChop);rngBefore.setEnd(startNode,startOffset)=
;paraBefore.appendChild(rngBefore.cloneContents());rngAfter.setEndAfter(end=
Chop);rngAfter.setStart(endNode,endOffset);var
contents=rngAfter.cloneContents();if(contents.firstChild&&contents.firstC=
hild.nodeName==blockName){var
nodes=contents.firstChild.childNodes;for(var
i=0;i<nodes.length;i++){if(nodes[i].nodeName.toLowerCase()!="body")para=
After.appendChild(nodes[i]);}}else
paraAfter.appendChild(contents);if(isEmpty(paraBefore))paraBefore.innerHTML=
="&nbsp;";if(isEmpty(paraAfter))paraAfter.innerHTML="&nbsp;";var
rng=doc.createRange();if(!startChop.previousSibling&&startChop.parentNode=
.nodeName.toUpperCase()==blockName){rng.setStartBefore(startChop.parent=
Node);}else{if(rngBefore.startContainer.nodeName.toUpperCase()==blockNa=
me&&rngBefore.startOffset==0)rng.setStartBefore(rngBefore.startContaine=
r);else
rng.setStart(rngBefore.startContainer,rngBefore.startOffset);}if(!endChop.n=
extSibling&&endChop.parentNode.nodeName.toUpperCase()==blockName)rng.se=
tEndAfter(endChop.parentNode);else
rng.setEnd(rngAfter.endContainer,rngAfter.endOffset);rng.deleteContents();r=
ng.insertNode(paraAfter);rng.insertNode(paraBefore);paraAfter.normalize();p=
araBefore.normalize();this.selectNode(paraAfter,true,true);return
true;};TinyMCEControl.prototype._handleBackSpace=function(evt_type){var
doc=this.getDoc();var sel=this.getSel();if(sel==null)return false;v=
ar
rng=sel.getRangeAt(0);var node=rng.startContainer;var
elm=node.nodeType==3?node.parentNode:node;if(node==null)return;if=
(elm&&elm.nodeName==""){var
para=doc.createElement("p");while(elm.firstChild)para.appendChild(elm.fir=
stChild);elm.parentNode.insertBefore(para,elm);elm.parentNode.removeChild(e=
lm);var
rng=rng.cloneRange();rng.setStartBefore(node.nextSibling);rng.setEndAfter=
(node.nextSibling);rng.extractContents();this.selectNode(node.nextSibling,t=
rue,true);}var
para=tinyMCE.getParentBlockElement(node);if(para!=null&&para.nodeName.t=
oLowerCase()=='p'&&evt_type=="keypress"){var
htm=para.innerHTML;var
block=tinyMCE.getParentBlockElement(node);if(htm==""||htm=="&nbsp=
;"||block.nodeName.toLowerCase()=="li"){var
prevElm=para.previousSibling;while(prevElm!=null&&prevElm.nodeType!=1=
)prevElm=prevElm.previousSibling;if(prevElm==null)return
false;var nodes=tinyMCE.getNodeTree(prevElm,new Array(),3);var
lastTextNode=nodes.length==0?null:nodes[nodes.length-1];if(lastTextNo=
de!=null)this.selectNode(lastTextNode,true,false,false);para.parentNode.r=
emoveChild(para);return
true;}}return
false;};TinyMCEControl.prototype._insertSpace=function(){return
true;};TinyMCEControl.prototype.autoResetDesignMode=function(){if(!tinyMC=
E.isMSIE&&tinyMCE.settings['auto_reset_designmode']){var
sel=this.getSel();if(!sel||!sel.rangeCount||sel.rangeCount==0)eval('t=
ry
{ this.getDoc().designMode = "On"; } catch(e)
{}');}};TinyMCEControl.prototype.isDirty=function(){return
this.startContent!=tinyMCE.trim(this.getBody().innerHTML)&&!tinyMCE.isNot=
Dirty;};TinyMCEControl.prototype._mergeElements=function(pa,ch,override){=
ch=ch.cloneNode(true);var
st=tinyMCE.parseStyle(tinyMCE.getAttrib(pa,"style"));var
stc=tinyMCE.parseStyle(tinyMCE.getAttrib(ch,"style"));var
className=tinyMCE.getAttrib(pa,"class");className+="
"+tinyMCE.getAttrib(ch,"class");if(override){for(var n in
st)stc[n]=st[n];}else{for(var n in
stc)st[n]=stc[n];}tinyMCE.setAttrib(ch,"style",tinyMCE.serializeStyle(st)=
);tinyMCE.setAttrib(ch,"class",tinyMCE.trim(className));pa.parentNode.repla=
ceChild(ch,pa);};TinyMCEControl.prototype.execCommand=function(command,us=
er_interface,value){var
doc=this.getDoc();var win=this.getWin();var
focusElm=this.getFocusElement();if(this.lastSafariSelection&&!new
RegExp('mceStartTyping|mceEndTyping|mceBeginUndoLevel|mceEndUndoLevel|mceAd=
dUndoLevel','gi').test(command)){this.moveToBookmark(this.lastSafariSelecti=
on);tinyMCE.selectedElement=this.lastSafariSelectedElement;}if(!tinyMCE.i=
sMSIE&&!this.useCSS){doc.execCommand("useCSS",false,true);this.useCSS=tru=
e;}this.contentDocument=doc;if(tinyMCE._themeExecCommand(this.editorId,th=
is.getBody(),command,user_interface,value))return;if(focusElm&&focusElm.nod=
eName=="IMG"){var
align=focusElm.getAttribute('align');var
img=command=="JustifyCenter"?focusElm.cloneNode(false):focusElm;switc=
h(command){case
"JustifyLeft":if(align=='left')img.removeAttribute('align');else
img.setAttribute('align','left');var
div=focusElm.parentNode;if(div&&div.nodeName=="DIV"&&div.childNodes.l=
ength==1&&div.parentNode)div.parentNode.replaceChild(img,div);this.sele=
ctNode(img);this.repaint();tinyMCE.triggerNodeChange();return;case
"JustifyCenter":img.removeAttribute('align');var
div=tinyMCE.getParentElement(focusElm,"div");if(div&&div.style.textAlign=
=="center"){if(div.nodeName=="DIV"&&div.childNodes.length==1&&d=
iv.parentNode)div.parentNode.replaceChild(img,div);}else{var
div=this.getDoc().createElement("div");div.style.textAlign='center';div=
.appendChild(img);focusElm.parentNode.replaceChild(div,focusElm);}this.sele=
ctNode(img);this.repaint();tinyMCE.triggerNodeChange();return;case
"JustifyRight":if(align=='right')img.removeAttribute('align');else
img.setAttribute('align','right');var
div=focusElm.parentNode;if(div&&div.nodeName=="DIV"&&div.childNodes.l=
ength==1&&div.parentNode)div.parentNode.replaceChild(img,div);this.sele=
ctNode(img);this.repaint();tinyMCE.triggerNodeChange();return;}}if(tinyMCE.=
settings['force_br_newlines']){var
alignValue="";if(doc.selection.type!="Control"){switch(command){case
"JustifyLeft":alignValue="left";break;case
"JustifyCenter":alignValue="center";break;case
"JustifyFull":alignValue="justify";break;case
"JustifyRight":alignValue="right";break;}if(alignValue!=""){var
rng=doc.selection.createRange();if((divElm=tinyMCE.getParentElement(rng=
.parentElement(),"div"))!=null)divElm.setAttribute("align",alignValue);el=
se
if(rng.pasteHTML&&rng.htmlText.length>0)rng.pasteHTML('<div
align="'+alignValue+'">'+rng.htmlText+"</div>");tinyMCE.triggerNodeChange=
();return;}}}switch(command){case
"mceRepaint":this.repaint();return true;case
"mceStoreSelection":this.selectionBookmark=this.getBookmark();return
true;case
"mceRestoreSelection":this.moveToBookmark(this.selectionBookmark);return
true;case "InsertUnorderedList":case "InsertOrderedList":var
tag=(command=="InsertUnorderedList")?"ul":"ol";if(tinyMCE.isSafari)th=
is.execCommand("mceInsertContent",false,"<"+tag+"><li>&nbsp;</li><"+tag+">"=
);else
this.getDoc().execCommand(command,user_interface,value);tinyMCE.triggerNode=
Change();break;case
"Strikethrough":if(tinyMCE.isSafari)this.execCommand("mceInsertContent",fal=
se,"<strike>"+this.getSelectedHTML()+"</strike>");else
this.getDoc().execCommand(command,user_interface,value);tinyMCE.triggerNode=
Change();break;case
"mceSelectNode":this.selectNode(value);tinyMCE.triggerNodeChange();tinyMCE.=
selectedNode=value;break;case
"FormatBlock":if(value==null||value==""){var
elm=tinyMCE.getParentElement(this.getFocusElement(),"p,div,h1,h2,h3,h4,h5=
,h6,pre,address");if(elm)this.execCommand("mceRemoveNode",false,elm);}else
this.getDoc().execCommand("FormatBlock",false,value);tinyMCE.triggerNodeCha=
nge();break;case
"mceRemoveNode":if(!value)value=tinyMCE.getParentElement(this.getFocusEle=
ment());if(tinyMCE.isMSIE){value.outerHTML=value.innerHTML;}else{var
rng=value.ownerDocument.createRange();rng.setStartBefore(value);rng.setEn=
dAfter(value);rng.deleteContents();rng.insertNode(rng.createContextualFragm=
ent(value.innerHTML));}tinyMCE.triggerNodeChange();break;case
"mceSelectNodeDepth":var parentNode=this.getFocusElement();for(var
i=0;parentNode;i++){if(parentNode.nodeName.toLowerCase()=="body")brea=
k;if(parentNode.nodeName.toLowerCase()=="#text"){i--;parentNode=paren=
tNode.parentNode;continue;}if(i==value){this.selectNode(parentNode,fals=
e);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=parentNode;return;}pa=
rentNode=parentNode.parentNode;}break;case
"SetStyleInfo":var rng=this.getRng();var sel=this.getSel();var
scmd=value['command'];var sname=value['name'];var
svalue=value['value'];var
wrapper=value['wrapper']?value['wrapper']:"span";var
parentElm=null;if(tinyMCE.isMSIE){if(rng.item)parentElm=rng.item(0);els=
e{var
pelm=rng.parentElement();var
prng=doc.selection.createRange();prng.moveToElementText(pelm);if(rng.html=
Text==prng.htmlText||rng.boundingWidth==0)parentElm=pelm;}}else{v=
ar
felm=this.getFocusElement();if(sel.isCollapsed||(/td|tr|tbody|table/ig.te=
st(felm.nodeName)&&sel.anchorNode==felm.parentNode))parentElm=felm;}i=
f(parentElm){if(scmd=="setstyle")eval("parentElm.style."+sname+"
=
svalue;");if(scmd=="setattrib")tinyMCE.setAttrib(parentElm,sname,svalue=
);}else{doc.execCommand("fontname",false,"#mce_temp_font#");var
elementArray=tinyMCE.getElementsByAttributeValue(this.getBody(),"font","f=
ace","#mce_temp_font#");for(var
x=0;x<elementArray.length;x++){elm=elementArray[x];if(elm){var
spanElm=doc.createElement(wrapper);if(scmd=="setstyle")eval("spanElm.=
style."+sname+"
=
svalue;");if(scmd=="setattrib")tinyMCE.setAttrib(spanElm,sname,svalue);=
if(elm.hasChildNodes()){for(var
i=0;i<elm.childNodes.length;i++)spanElm.appendChild(elm.childNodes[i].clo=
neNode(true));}spanElm.setAttribute("mce_new","true");elm.parentNode.replac=
eChild(spanElm,elm);}}}var
nodes=doc.getElementsByTagName(wrapper);for(var
i=nodes.length-1;i>=0;i--){var elm=nodes[i];var
isNew=tinyMCE.getAttrib(elm,"mce_new")=="true";elm.removeAttribute("m=
ce_new");if(elm.childNodes&&elm.childNodes.length==1&&elm.childNodes[0]=
.nodeType==1){this._mergeElements(elm,elm.childNodes[0],isNew);continue=
;}if(elm.parentNode.childNodes.length==1){this._mergeElements(elm.paren=
tNode,elm,false);}}var
nodes=doc.getElementsByTagName(wrapper);for(var
i=nodes.length-1;i>=0;i--){var elm=nodes[i];var isEmpty=true;var
tmp=doc.createElement("body");tmp.appendChild(elm.cloneNode(false));if(new
RegExp('<span>|<span style="">','gi').test(tmp.innerHTML)){for(var
i=elm.childNodes.length-1;i>=0;i--){if(elm.parentNode!=null){elm.pare=
ntNode.insertBefore(elm.childNodes[i].cloneNode(true),elm);elm.parentNode.r=
emoveChild(elm);}}}}tinyMCE.triggerNodeChange();break;case
"FontName":if(tinyMCE.getParam("convert_fonts_to_styles"))this.execCommand(=
"SetStyleInfo",false,{command:"setstyle",name:"fontFamily",value:value});el=
se
this.getDoc().execCommand('FontName',false,value);break;case
"FontSize":if(tinyMCE.getParam("convert_fonts_to_styles")){var
sizes=new Array('',8,10,12,14,18,24,36);var
size=sizes[value]==''?'':sizes[value]+'px';this.execCommand("SetStyle=
Info",false,{command:"setstyle",name:"fontSize",value:size});}else
this.getDoc().execCommand('FontSize',false,value);break;case
"forecolor":if(tinyMCE.getParam("convert_fonts_to_styles"))this.execCommand=
("SetStyleInfo",false,{command:"setstyle",name:"color",value:value});else{i=
f(tinyMCE.isGecko){this.getDoc().execCommand("useCSS",false,true);this.getD=
oc().execCommand('forecolor',false,value);this.getDoc().execCommand("useCSS=
",false,true);}else
this.getDoc().execCommand('forecolor',false,value);}break;case
"HiliteColor":if(tinyMCE.getParam("convert_fonts_to_styles"))this.execComma=
nd("SetStyleInfo",false,{command:"setstyle",name:"backgroundColor",value:va=
lue});else{if(tinyMCE.isGecko){this.getDoc().execCommand("useCSS",false,fal=
se);this.getDoc().execCommand('hilitecolor',false,value);this.getDoc().exec=
Command("useCSS",false,true);}else
this.getDoc().execCommand('BackColor',false,value);}break;case
"Cut":case "Copy":case "Paste":var cmdFailed=false;eval('try
{this.getDoc().execCommand(command, user_interface, value);} catch (e)
{cmdFailed =
true;}');if(tinyMCE.isGecko&&cmdFailed){if(confirm(tinyMCE.getLang('lang_cl=
ipboard_msg')))window.open('http://www.mozilla.org/editor/midasdemo/securit=
yprefs.html','mceExternal');return;}else
tinyMCE.triggerNodeChange();break;case
"mceSetContent":if(!value)value="";value=tinyMCE._customCleanup(this,"i=
nsert_to_editor",value);tinyMCE._setHTML(doc,value);doc.body.innerHTML=ti=
nyMCE._cleanupHTML(this,doc,tinyMCE.settings,doc.body);tinyMCE.handleVisual=
Aid(doc.body,true,this.visualAid,this);tinyMCE._setEventsEnabled(doc.body,t=
rue);return
true;case "mceLink":var selectedText="";if(tinyMCE.isMSIE){var
rng=doc.selection.createRange();selectedText=rng.text;}else
selectedText=this.getSel().toString();if(!tinyMCE.linkElement){if((tinyMC=
E.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=
=0))return;}var
href="",target="",title="",onclick="",action="insert",style_class=
="";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a")tinyMCE.li=
nkElement=tinyMCE.selectedElement;if(tinyMCE.linkElement!=null&&tinyMCE=
.getAttrib(tinyMCE.linkElement,'href')=="")tinyMCE.linkElement=null;i=
f(tinyMCE.linkElement){href=tinyMCE.getAttrib(tinyMCE.linkElement,'href')=
;target=tinyMCE.getAttrib(tinyMCE.linkElement,'target');title=tinyMCE.g=
etAttrib(tinyMCE.linkElement,'title');onclick=tinyMCE.getAttrib(tinyMCE.l=
inkElement,'onclick');style_class=tinyMCE.getAttrib(tinyMCE.linkElement,'=
class');if(onclick=="")onclick=tinyMCE.getAttrib(tinyMCE.linkElement,=
'onclick');onclick=tinyMCE.cleanupEventStr(onclick);mceRealHref=tinyMCE=
.getAttrib(tinyMCE.linkElement,'mce_real_href');if(mceRealHref!="")href=
=mceRealHref;href=eval(tinyMCE.settings['urlconverter_callback']+"(href,
tinyMCE.linkElement,
true);");action="update";}if(this.settings['insertlink_callback']){var
returnVal=eval(this.settings['insertlink_callback']+"(href, target,
title, onclick, action,
style_class);");if(returnVal&&returnVal['href'])tinyMCE.insertLink(returnVa=
l['href'],returnVal['target'],returnVal['title'],returnVal['onclick'],retur=
nVal['style_class']);}else{tinyMCE.openWindow(this.insertLinkTemplate,{href=
:href,target:target,title:title,onclick:onclick,action:action,className:sty=
le_class});}break;case
"mceImage":var
src="",alt="",border="",hspace="",vspace="",width="",height="=
",align="";var
title="",onmouseover="",onmouseout="",action="insert";var
img=tinyMCE.imgElement;if(tinyMCE.selectedElement!=null&&tinyMCE.select=
edElement.nodeName.toLowerCase()=="img"){img=tinyMCE.selectedElement;=
tinyMCE.imgElement=img;}if(img){if(tinyMCE.getAttrib(img,'name').indexOf(=
'mce_')==0)return;src=tinyMCE.getAttrib(img,'src');alt=tinyMCE.getA=
ttrib(img,'alt');if(alt=="")alt=tinyMCE.getAttrib(img,'title');if(tin=
yMCE.isGecko){var
w=img.style.width;if(w!=null&&w!="")img.setAttribute("width",w);var
h=img.style.height;if(h!=null&&h!="")img.setAttribute("height",h);}bo=
rder=tinyMCE.getAttrib(img,'border');hspace=tinyMCE.getAttrib(img,'hspa=
ce');vspace=tinyMCE.getAttrib(img,'vspace');width=tinyMCE.getAttrib(img=
,'width');height=tinyMCE.getAttrib(img,'height');align=tinyMCE.getAttri=
b(img,'align');onmouseover=tinyMCE.getAttrib(img,'onmouseover');onmouseou=
t=tinyMCE.getAttrib(img,'onmouseout');title=tinyMCE.getAttrib(img,'titl=
e');if(tinyMCE.isMSIE){width=img.attributes['width'].specified?width:"";h=
eight=img.attributes['height'].specified?height:"";}onmouseover=tinyMCE=
.getImageSrc(tinyMCE.cleanupEventStr(onmouseover));onmouseout=tinyMCE.get=
ImageSrc(tinyMCE.cleanupEventStr(onmouseout));mceRealSrc=tinyMCE.getAttri=
b(img,'mce_real_src');if(mceRealSrc!="")src=mceRealSrc;src=eval(tinyM=
CE.settings['urlconverter_callback']+"(src,
img,
true);");if(onmouseover!="")onmouseover=eval(tinyMCE.settings['urlconve=
rter_callback']+"(onmouseover,
img,
true);");if(onmouseout!="")onmouseout=eval(tinyMCE.settings['urlconvert=
er_callback']+"(onmouseout,
img,
true);");action="update";}if(this.settings['insertimage_callback']){var
returnVal=eval(this.settings['insertimage_callback']+"(src, alt,
border, hspace, vspace, width, height, align, title, onmouseover,
onmouseout,
action);");if(returnVal&&returnVal['src'])tinyMCE.insertImage(returnVal['sr=
c'],returnVal['alt'],returnVal['border'],returnVal['hspace'],returnVal['vsp=
ace'],returnVal['width'],returnVal['height'],returnVal['align'],returnVal['=
title'],returnVal['onmouseover'],returnVal['onmouseout']);}else
tinyMCE.openWindow(this.insertImageTemplate,{src:src,alt:alt,border:border,=
hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:tit=
le,onmouseover:onmouseover,onmouseout:onmouseout,action:action});break;case
"mceCleanup":tinyMCE._setHTML(this.contentDocument,this.getBody().innerHTML=
);this.getBody().innerHTML=tinyMCE._cleanupHTML(this,this.contentDocument=
,this.settings,this.getBody(),this.visualAid);tinyMCE.handleVisualAid(this.=
getBody(),true,this.visualAid,this);tinyMCE._setEventsEnabled(this.getBody(=
),true);this.repaint();tinyMCE.triggerNodeChange();break;case
"mceReplaceContent":var selectedText="";if(tinyMCE.isMSIE){var
rng=doc.selection.createRange();selectedText=rng.text;}else
selectedText=this.getSel().toString();if(selectedText.length>0){value=t=
inyMCE.replaceVar(value,"selection",selectedText);tinyMCE.execCommand('mceI=
nsertContent',false,value);}tinyMCE.triggerNodeChange();break;case
"mceSetAttribute":if(typeof(value)=='object'){var
targetElms=(typeof(value['targets'])=="undefined")?"p,img,span,div,td=
,h1,h2,h3,h4,h5,h6,pre,address":value['targets'];var
targetNode=tinyMCE.getParentElement(this.getFocusElement(),targetElms);if=
(targetNode){targetNode.setAttribute(value['name'],value['value']);tinyMCE.=
triggerNodeChange();}}break;case
"mceSetCSSClass":this.execCommand("SetStyleInfo",false,{command:"setattrib"=
,name:"class",value:value});break;case
"mceInsertRawHTML":var
key='tiny_mce_marker';this.execCommand('mceBeginUndoLevel');this.execComm=
and('mceInsertContent',false,key);var
scrollX=this.getDoc().body.scrollLeft+this.getDoc().documentElement.scrol=
lLeft;var
scrollY=this.getDoc().body.scrollTop+this.getDoc().documentElement.scroll=
Top;var
html=this.getBody().innerHTML;if((pos=html.indexOf(key))!=-1)this.get=
Body().innerHTML=html.substring(0,pos)+value+html.substring(pos+key.lengt=
h);this.contentWindow.scrollTo(scrollX,scrollY);this.execCommand('mceEndUnd=
oLevel');break;case
"mceInsertContent":if(!tinyMCE.isMSIE){var sel=this.getSel();var
rng=this.getRng();var
isHTML=value.indexOf('<')!=-1;if(isHTML){if(tinyMCE.isSafari){var
tmpRng=this.getDoc().createRange();tmpRng.setStart(this.getBody(),0);tmpR=
ng.setEnd(this.getBody(),0);value=tmpRng.createContextualFragment(value);=
}else
value=rng.createContextualFragment(value);}else{var
el=document.createElement("div");el.innerHTML=value;value=el.firstChi=
ld.nodeValue;value=doc.createTextNode(value);}if(tinyMCE.isSafari&&!isHTM=
L){this.execCommand('InsertText',false,value.nodeValue);tinyMCE.triggerNode=
Change();return
true;}else
if(tinyMCE.isSafari&&isHTML){rng.deleteContents();rng.insertNode(value);tin=
yMCE.triggerNodeChange();return
true;}rng.deleteContents();if(rng.startContainer.nodeType==3){var
node=rng.startContainer.splitText(rng.startOffset);node.parentNode.insert=
Before(value,node);}else
rng.insertNode(value);if(!isHTML){sel.selectAllChildren(doc.body);sel.remov=
eAllRanges();var
rng=doc.createRange();rng.selectNode(value);rng.collapse(false);sel.addRa=
nge(rng);}else
rng.collapse(false);}else{var
rng=doc.selection.createRange();if(rng.item)rng.item(0).outerHTML=value=
;else
rng.pasteHTML(value);}tinyMCE.triggerNodeChange();break;case
"mceStartTyping":if(tinyMCE.settings['custom_undo_redo']&&this.typingUndoIn=
dex==-1){this.typingUndoIndex=this.undoIndex;this.execCommand('mceAdd=
UndoLevel');}break;case
"mceEndTyping":if(tinyMCE.settings['custom_undo_redo']&&this.typingUndoInde=
x!=-1){this.execCommand('mceAddUndoLevel');this.typingUndoIndex=-1;}bre=
ak;case
"mceBeginUndoLevel":this.undoRedo=false;break;case
"mceEndUndoLevel":this.undoRedo=true;this.execCommand('mceAddUndoLevel');=
break;case
"mceAddUndoLevel":if(tinyMCE.settings['custom_undo_redo']&&this.undoRedo){i=
f(this.typingUndoIndex!=-1){this.undoIndex=this.typingUndoIndex;}var
newHTML=tinyMCE.trim(this.getBody().innerHTML);if(newHTML!=this.undoLev=
els[this.undoIndex]){tinyMCE.executeCallback('onchange_callback','_onchange=
',0,this);var
customUndoLevels=tinyMCE.settings['custom_undo_redo_levels'];if(customUnd=
oLevels!=-1&&this.undoLevels.length>customUndoLevels){for(var
i=0;i<this.undoLevels.length-1;i++){this.undoLevels[i]=this.undoLevels[=
i+1];}this.undoLevels.length--;this.undoIndex--;}this.undoIndex++;this.undo=
Levels[this.undoIndex]=newHTML;this.undoLevels.length=this.undoIndex+1;=
tinyMCE.triggerNodeChange(false);}}break;case
"Undo":if(tinyMCE.settings['custom_undo_redo']){tinyMCE.execCommand("mceEnd=
Typing");if(this.undoIndex>0){this.undoIndex--;this.getBody().innerHTML=t=
his.undoLevels[this.undoIndex];this.repaint();}tinyMCE.triggerNodeChange();=
}else
this.getDoc().execCommand(command,user_interface,value);break;case
"Redo":if(tinyMCE.settings['custom_undo_redo']){tinyMCE.execCommand("mceEnd=
Typing");if(this.undoIndex<(this.undoLevels.length-1)){this.undoIndex++;thi=
s.getBody().innerHTML=this.undoLevels[this.undoIndex];this.repaint();}t=
inyMCE.triggerNodeChange();}else
this.getDoc().execCommand(command,user_interface,value);break;case
"mceToggleVisualAid":this.visualAid=!this.visualAid;tinyMCE.handleVisualA=
id(this.getBody(),true,this.visualAid,this);tinyMCE.triggerNodeChange();bre=
ak;case
"removeformat":var
text=this.getSelectedText();if(tinyMCE.isMSIE){try{win.focus();var
rng=doc.selection.createRange();rng.execCommand("RemoveFormat",false,null=
);if(rng.text==rng.parentElement().innerText){rng.moveToElementText(rng=
.parentElement());rng.select();}rng.pasteHTML(rng.text);}catch(e){}}else
this.getDoc().execCommand(command,user_interface,value);if(text.length==
=0)this.execCommand("mceSetCSSClass",false,"");tinyMCE.triggerNodeChange(=
);break;default:this.getDoc().execCommand(command,user_interface,value);tin=
yMCE.triggerNodeChange();}if(command!="mceAddUndoLevel"&&command!="Undo=
"&&command!="Redo"&&command!="mceStartTyping"&&command!="mceEndTyping=
")tinyMCE.execCommand("mceAddUndoLevel");};TinyMCEControl.prototype.queryCo=
mmandValue=function(command){return
this.getDoc().queryCommandValue(command);};TinyMCEControl.prototype.queryCo=
mmandState=function(command){return
this.getDoc().queryCommandState(command);};TinyMCEControl.prototype.onAdd=
=function(replace_element,form_element_name,target_document){var
targetDoc=target_document?target_document:document;this.targetDoc=targe=
tDoc;tinyMCE.themeURL=tinyMCE.baseURL+"/themes/"+this.settings['theme'];t=
his.settings['themeurl']=tinyMCE.themeURL;if(!replace_element){alert("Err=
or:
Could not find the target element.");return false;}var
templateFunction=tinyMCE._getThemeFunction('_getInsertLinkTemplate');if(e=
val("typeof("+templateFunction+")")!='undefined')this.insertLinkTemplate=
=eval(templateFunction+'(this.settings);');var
templateFunction=tinyMCE._getThemeFunction('_getInsertImageTemplate');if(=
eval("typeof("+templateFunction+")")!='undefined')this.insertImageTemplat=
e=eval(templateFunction+'(this.settings);');var
templateFunction=tinyMCE._getThemeFunction('_getEditorTemplate');if(eval(=
"typeof("+templateFunction+")")=='undefined'){alert("Error:
Could not find the template function: "+templateFunction);return
false;}var editorTemplate=eval(templateFunction+'(this.settings,
this.editorId);');var
deltaWidth=editorTemplate['delta_width']?editorTemplate['delta_width']:0;=
var
deltaHeight=editorTemplate['delta_height']?editorTemplate['delta_height']=
:0;var
html='<span id="'+this.editorId+'_parent">'+editorTemplate['html'];var
templateFunction=tinyMCE._getThemeFunction('_handleNodeChange',true);if(e=
val("typeof("+templateFunction+")")!='undefined')this.settings['handleNod=
eChangeCallback']=templateFunction;html=tinyMCE.replaceVar(html,"editor=
_id",this.editorId);this.settings['default_document']=tinyMCE.baseURL+"/b=
lank.htm";this.settings['old_width']=this.settings['width'];this.settings=
['old_height']=this.settings['height'];if(this.settings['width']==-1)=
this.settings['width']=replace_element.offsetWidth;if(this.settings['heig=
ht']==-1)this.settings['height']=replace_element.offsetHeight;if(this=
.settings['width']==0)this.settings['width']=replace_element.style.wi=
dth;if(this.settings['height']==0)this.settings['height']=replace_ele=
ment.style.height;if(this.settings['width']==0)this.settings['width']=
=320;if(this.settings['height']==0)this.settings['height']=240;this=
.settings['area_width']=parseInt(this.settings['width']);this.settings['a=
rea_height']=parseInt(this.settings['height']);this.settings['area_width'=
]+=deltaWidth;this.settings['area_height']+=deltaHeight;if((""+this.set=
tings['width']).indexOf('%')!=-1)this.settings['area_width']="100%";if(=
(""+this.settings['height']).indexOf('%')!=-1)this.settings['area_height'=
]="100%";if((""+replace_element.style.width).indexOf('%')!=-1){this.set=
tings['width']=replace_element.style.width;this.settings['area_width']==
"100%";}if((""+replace_element.style.height).indexOf('%')!=-1){this.setti=
ngs['height']=replace_element.style.height;this.settings['area_height']=
="100%";}html=tinyMCE.applyTemplate(html);this.settings['width']=this=
.settings['old_width'];this.settings['height']=this.settings['old_height'=
];this.visualAid=this.settings['visual'];this.formTargetElementId=form_=
element_name;if(replace_element.nodeName=="TEXTAREA"||replace_element.n=
odeName=="INPUT")this.startContent=replace_element.value;else
this.startContent=replace_element.innerHTML;if(replace_element.nodeName.t=
oLowerCase()!="textarea"){this.oldTargetElement=replace_element.cloneNo=
de(true);if(tinyMCE.settings['debug'])html+='<textarea
wrap="off" id="'+form_element_name+'" name="'+form_element_name+'"
cols="100" rows="15"></textarea>';else html+='<input type="hidden"
type="text" id="'+form_element_name+'" name="'+form_element_name+'"
/>';html+='</span>';if(!tinyMCE.isMSIE){var
rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replac=
e_element);var
fragment=rng.createContextualFragment(html);replace_element.parentNode.re=
placeChild(fragment,replace_element);}else
replace_element.outerHTML=html;}else{html+='</span>';this.oldTargetElem=
ent=replace_element;if(!tinyMCE.settings['debug'])this.oldTargetElement.s=
tyle.display="none";if(!tinyMCE.isMSIE){var
rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replac=
e_element);var
fragment=rng.createContextualFragment(html);replace_element.parentNode.in=
sertBefore(fragment,replace_element);}else
replace_element.insertAdjacentHTML("beforeBegin",html);}var
dynamicIFrame=false;var
tElm=targetDoc.getElementById(this.editorId);if(!tinyMCE.isMSIE){if(tElm&=
&tElm.nodeName.toLowerCase()=="span"){tElm=tinyMCE._createIFrame(tElm=
);dynamicIFrame=true;}this.targetElement=tElm;this.iframeElement=tElm=
;this.contentDocument=tElm.contentDocument;this.contentWindow=tElm.cont=
entWindow;}else{if(tElm&&tElm.nodeName.toLowerCase()=="span")tElm=tin=
yMCE._createIFrame(tElm);else
tElm=targetDoc.frames[this.editorId];this.targetElement=tElm;this.ifram=
eElement=targetDoc.getElementById(this.editorId);this.contentDocument=t=
Elm.window.document;this.contentWindow=tElm.window;this.getDoc().designMo=
de="on";}var
doc=this.contentDocument;if(dynamicIFrame){var html='<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><base
href="'+tinyMCE.settings['base_href']+'"
/><title>blank_page</title><meta http-equiv="Content-Type"
content="text/html; charset=UTF-8"></head><body
class="mceContentBody"></body></html>';try{this.getDoc().designMode="on=
";doc.open();doc.write(html);doc.close();}catch(e){this.getDoc().location.h=
ref=tinyMCE.baseURL+"/blank.htm";}}if(tinyMCE.isMSIE)window.setTimeout("T=
inyMCE.prototype.addEventHandlers('"+this.editorId+"');",1);tinyMCE.setupCo=
ntent(this.editorId,true);return
true;};TinyMCEControl.prototype.getFocusElement=function(){if(tinyMCE.isM=
SIE){var
doc=this.getDoc();var
rng=doc.selection.createRange();if(rng.collapse)rng.collapse(true);var
elm=rng.item?rng.item(0):rng.parentElement();}else{var
sel=this.getSel();var rng=this.getRng();var
elm=rng.commonAncestorContainer;if(!rng.collapsed){if(rng.startContainer=
==rng.endContainer){if(rng.startOffset-rng.endOffset<2){if(rng.startCon=
tainer.hasChildNodes())elm=rng.startContainer.childNodes[rng.startOffset]=
;}}}elm=tinyMCE.getParentElement(elm);}return
elm;};var tinyMCE=new TinyMCE();var tinyMCELang=new Array()


Sachant que l'appel de TinyMCE dans toute mes pages se fait comme ceci
dans le head :
<script language="javascript"
src="composants/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<!-- TinyMCE -->
<script language="javascript">
var pid = "967853";
var pdos = "cauge";

tinyMCE.init({
theme : "advanced",
mode : "exact",
elements : "idcontent",
relative_urls : false,
plugins :
"table,advhr,insertdatetime,paste,directionality,noneditable,contextmenu",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add :
"separator,insertdate,inserttime,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before:
"cut,copy,paste,pastetext,pasteword,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "advhr",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "none",
content_css : "example_full.css",
plugin_insertdate_dateFormat : "%m-%d-%Y",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements :
"hr[class|width|size|noshade],font[face|size|color|style],span[class|align|=
style]",
file_browser_callback : "fileBrowserCallBack",
paste_use_dialog : false,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
theme_advanced_link_targets : "_something=My somthing;_something2=My
somthing2;_something3=My somthing3;"
});

function fileBrowserCallBack(field_name, url, type, win) {
// This is where you insert your custom filebrowser logic
alert("Filebrowser callback: field_name: " + field_name + ", url: " +
url + ", type: " + type);

// Insert new URL, this would normaly be done in a popup
win.document.forms[0].elements[field_name].value = "someurl.htm";
}
</script>
<!-- /TinyMCE -->

et dans le body :
<textarea id="idcontent" name="ct_corps" rows="25" cols="60"
style="width: 100%"></textarea>

Je ne comprends pas pourquoi ca merde.

Si certains d'entre vous utilise ce script Merci pour l'aide.

Stfen
Vos réponses
Trier par : date / pertinence
Olivier Miakinen
Le #539284

J'ai découvert l'éditeur de texte javascript Tinymce, je l'ai
installé sur mon site en l'intégrant à mon Framework. L'éditeur est
présent sur 3 pages différentes dans mon backoffice.

Sur Firefox pas de problème tous fonctionne correctement, par contre
sur IE6, sur ma première page l'éditeur fonctionne correctement, mais
dès que je souhaite l'utiliser sur les autres pages IE me renvoit des
erreur javascript dont voici la description :
"Source html non valide pour cette operation", ligne 11

Voici le contenu de la ligne 11 :
<textarea id="tinymce_debug" style="width: 100%; height:
[quelques milliers de caractères de code]


Beuah.

Une idée : rajoute un saut de ligne après chaque « ; », puis repasse la
page à IE pour qu'il localise le problème un peu plus précisément. Je ne
vois pas qui aurait le courage de décortiquer la totalité de la ligne 11
en l'état.

Par ailleurs, ce serait bien de savoir comment il initialise les
variables isMSIE, isGecko, isSafari, etc. pour décider tout de suite
si ce produit est à jeter immédiatement à la poubelle ou si on peut
quand même en faire quelque chose.


Cordialement,
--
Olivier Miakinen
Aidez Saburi à rester près de sa famille et poursuivre ses études
en France, signez la pétition :

ASM
Le #539033
Bonjour,

J'ai découvert l'éditeur de texte javascript Tinymce, je l'ai
installé sur mon site en l'intégrant à mon Framework. L'éditeur est
présent sur 3 pages différentes dans mon backoffice.

Sur Firefox pas de problème tous fonctionne correctement, par contre
sur IE6, sur ma première page l'éditeur fonctionne correctement, mais
dès que je souhaite l'utiliser sur les autres pages IE me renvoit des
erreur javascript dont voici la description :
"Source html non valide pour cette operation", ligne 11

Voici le contenu de la ligne 11 :
<textarea id="tinymce_debug" style="width: 100%; height:
300px"></textarea>';document.body.appendChild(debugDiv);elm=document.getElementById("tinymce_debug");}var


mais c'est complètement dingue ce bintz !

commencer par
remplacer les '... ></balise>'
par '... ></balise>'

<textarea id="tinymce_debug" style="width: 100%; height:
300px"></textarea>';

et puis essaie que ton tiny passe à la ligne à chaque ;
de son javascript

Sachant que l'appel de TinyMCE dans toute mes pages se fait comme ceci


bon là ... on ne va pas refaire le monde ...
s'il y a un bug dans TnyMCE en avertir les concepteurs.

Je ne comprends pas pourquoi ca merde.


parce c'est la volonté du tout-puissant(*) !




(*) God = Bill Gate
pour ceux qui ont des difficultés en américain

--
Stephane Moriaux et son [moins] vieux Mac

Publicité
Poster une réponse
Anonyme