1. i am using ckeditor as asp.net control in a page.now in code behind i register a focus function -
CKEditor1.config.CKEditorInstanceEventHandler = new System.Collections.Generic.List<object>();
CKEditor1.config.CKEditorInstanceEventHandler.Add(new object[] { "focus", "function (evt) { var s2 = evt.editor.getData().replace(/<[^>]*?>/g, ''); if(s2.toLowerCase().indexOf('hint text') != -1) { evt.editor.setData(''); evt.editor.focus(); } }" });
but the snap error i get only in chrome browser when i click in ckeditor but in the above code when i remove evt.editor.setData(''); things ok but this is not what i want i want to hide hint text on focus.also when i try to register other javascript functions like blur then those not works except what is first registered like here the focus function only works!!!!!!!! Plz help admin....
2. also how do i set my own custom font size values of the font size tool of ckeditor asp.net control?
CKEditor1.config.CKEditorInstanceEventHandler = new System.Collections.Generic.List<object>();
CKEditor1.config.CKEditorInstanceEventHandler.Add(new object[] { "focus", "function (evt) { var s2 = evt.editor.getData().replace(/<[^>]*?>/g, ''); if(s2.toLowerCase().indexOf('hint text') != -1) { evt.editor.setData(''); evt.editor.focus(); } }" });
but the snap error i get only in chrome browser when i click in ckeditor but in the above code when i remove evt.editor.setData(''); things ok but this is not what i want i want to hide hint text on focus.also when i try to register other javascript functions like blur then those not works except what is first registered like here the focus function only works!!!!!!!! Plz help admin....
2. also how do i set my own custom font size values of the font size tool of ckeditor asp.net control?
Re: ckeditor as asp.net control shows error on focus in chro