Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Confused with editor.textContent

0 views
Skip to first unread message

hanyuxinting

unread,
Nov 9, 2009, 12:57:18 AM11/9/09
to
Hi,

My code is like this:

var myButton= this.getElementById("myButton");

var myEditor = this.editor.getEditor
(this.editor.contentWindow).rootElement;
myEditor.textContent = myButton.label;

But now,the texts in the editor cannot be deleted any more except that
I input some letters in the editor.

I am confused with it~ Do you have some ideas about it?

How should I make the backspace available at that time~

Thank you~

Neil

unread,
Nov 11, 2009, 10:38:51 AM11/11/09
to
hanyuxinting wrote:

>myEditor.textContent = myButton.label;
>
>
You should always use editor methods to insert and delete text because
those are the ones that the editor knows how to undo.

--
Warning: May contain traces of nuts.

0 new messages