Hi,

i have used simple htmleditor counter plugin for my application.

but it is taking defalt value as 7 in IE and 4 in MOZILLA.

when i type a new character, it is showing current size is 8 in IE and 5 in MOZILLA.

please see my below plugin code which i have used.
Code:


if
(Ext.ux.form == undefined) {
Ext.ns('Ext.ux.form'); }
Ext.ux.form.HtmlEditorCounterPlugin = function (config) { Ext.apply(this, config); };
Ext.extend (Ext.ux.form.HtmlEditorCounterPlugin, Ext.util.Observable, { prefix: '', itemTypeSingular: 'character', itemTypePlural: 'characters', itemTypeNone: 'characters', onRender: function (o) { this.counter = document.createElement("DIV"); this.editor.getToolbar ().add (this.counter); this.set_counter ((this.editor.initialConfig.value || '').length); }, init: function (editor) { this.editor = editor; this.editor.on ('render', this.onRender, this); this.editor.on ('sync', function (ct, html) { this.set_counter(html.length); }, this); }, set_counter: function (s) { this.counter.innerHTML = '<span style="color:#1A4A6E;font-weight:bold;padding-left:20px;">'+this.prefix + s + ((s) ? ((s > 1) ? this.itemTypePlural: this.itemTypeSingular) : this.itemTypeNone)+'&nbsp;&nbsp;'+'</span>'; }
});



Please give me some sugeestion?

thanks in advance