Hi
I have a weird problem where CKeditor enhanced works, but when you click the Switch Editor to Source Mode it does not load.
I have to refresh the page to clear it.
Also if I change to Standard editor in my Settings it also does not work.I'm having trouble isolating what is going on.
I can provide a test account if needed to vB staff if someone could have a quick look.
It has me stumped as to why.
Help please!
Thanks, Kym
Edit: Tracing using Firebug...
q.getCommand(y[command]) is undefined
at line 134 of ckeditor.js (which is how Firebug reports it)
Which appears to in this chunk...
I have a weird problem where CKeditor enhanced works, but when you click the Switch Editor to Source Mode it does not load.
I have to refresh the page to clear it.
Also if I change to Standard editor in my Settings it also does not work.I'm having trouble isolating what is going on.
I can provide a test account if needed to vB staff if someone could have a quick look.
It has me stumped as to why.
Help please!
Thanks, Kym
Edit: Tracing using Firebug...
q.getCommand(y[command]) is undefined
at line 134 of ckeditor.js (which is how Firebug reports it)
Which appears to in this chunk...
Code:
}};e.editor.prototype.esSetCaretToPos=function(q){this.esSetSelectionRange(q,q);};function a(q,r,s){for(var t=0;t<q.toolbox.toolbars.length;t++){var u=q.toolbox.toolbars[t];for(var v=0;v<u.items.length;v++){var w=u.items[v];if(r=='button'&&w.button&&w.button.label==s||r=='combo'&&w.combo&&w.combo.label==s)return w;}}};function b(q,r,s){var t=a(q,'button',r);if(t){var u=e.document.getById(t.id);u.setAttribute('title',s);}};function c(q,r,s){var t=a(q,'button',r);if(t)YAHOO.util.Dom.setStyle(t.id,'display',s);};function d(q){e.on('dialogDefinition',function(r){var s=r.data.name,t=r.data.definition;if(s=='smiley'){t.getContents('tab1').elements[0].html=t.getContents('tab1').elements[0].html.replace(/src="\.\/([a-z]+:\/\/)/gi,'src="$1');var u=t.getContents('tab1').elements[0].onClick;t.getContents('tab1').elements[0].onClick=i.override(u,function(v){return function(w){var x=w.data.getTarget(),y=x.getName();if(y=='a')x=x.getChild(0);else if(y!='img')return;var z=x.getAttribute('title');r.editor.insertHtml(z);this._.dialog.hide();w.data.preventDefault();};});}});};n.add('enhancedsourcearea',{requires:['editingblock','wysiwygarea'],saveSelection:function(q,r){r.savedselection=document.selection.createRange();},init:function(q){var r=n.enhancedsourcearea,s,t=e.document.getWindow();q.textarea=s=new l('textarea');if(g){YAHOO.util.Event.on(q.textarea.$,'keyup',this.saveSelection,q);YAHOO.util.Event.on(q.textarea.$,'click',this.saveSelection,q);YAHOO.util.Event.on(q.textarea.$,'select',this.saveSelection,q);}q.getSelection=i.override(q.getSelection,function(u){return function(){if(this.mode!='enhancedsourcearea')return u.call(this);else return new h.selection(document);};});d(q);q.on('editingBlockReady',function(){var u,v={};b(q,q.lang.source,q.lang.vbulletin.switch_editor_mode_source);c(q,q.lang.vbulletin.email,'none');q.addMode('enhancedsource',{load:function(w,x){c(q,q.lang.vbulletin.email,'');b(q,q.lang.source,q.lang.vbulletin.switch_editor_mode_wysiwyg);if(YAHOO.util.Dom.get(q.editorid+'_mode'))YAHOO.util.Dom.get(q.editorid+'_mode').value=0;var y=['bold','italic','underline','justifyleft','justifycenter','justifyright','numberedlist','bulletedlist'];for(command in y)q.getCommand(y[command]).setState(2);if(g&&f.version<8)w.setStyle('position','relative');s.setAttributes({dir:q.config.contentsLangDirection,tabIndex:f.webkit?-1:q.tabIndex,role:'textbox','aria-label':q.lang.editorTitle.replace('%1',q.name)});s.addClass('cke_source');s.addClass('cke_enable_context_menu');
Comment