Hi,
I am integrating ckEditor with Extjs. After I replace the TextArea by ckeditor, I want to call FCKeditor_OnComplete() so that I can use FCKeditorAPI. But FCKeditor_OnComplete() is never been called. Do I need to place it somewhere else? Thanks in advance.
I am integrating ckEditor with Extjs. After I replace the TextArea by ckeditor, I want to call FCKeditor_OnComplete() so that I can use FCKeditorAPI. But FCKeditor_OnComplete() is never been called. Do I need to place it somewhere else? Thanks in advance.
Ext.Frs.ObjectEditableHTMLField = Ext.extend(Ext.form.TextArea, { initComponent: function () { this.textAreaId = this.id; Ext.Frs.ObjectEditableHTMLField.superclass.initComponent.call(this); }, onRender: function (ct, position) { Ext.Frs.ObjectEditableHTMLField.superclass.onRender.call(this, ct, position); this.ReplaceTextArea(this.textAreaId); }, ReplaceTextArea: function (textAreaId) { CKEDITOR.replace(textAreaId); }, FCKeditor_OnComplete: function( editorInstance ) { editorInstance.Events.AttachEvent( 'OnSelectionChange', DoSomething ) ; } function DoSomething( editorInstance ){} }); Ext.reg('frsobjecteditablehtmlfield', Ext.Frs.ObjectEditableHTMLField);