質問

Does anyone know how to clear the content of Oboout HTML Editor client side? Their online documention says to use oboutGetEditor('editor').setContent(...). When I try oboutGetEditor('editor').setContent(""), I get script error ("Microsoft JScript runtime error: Object doesn't support this property or method) at:

switch(a._mode){case"html":if(a._iframe&&a._iframe.contentWindow&&a._iframe.contentWindow.focus&&(a.isActivated||a._autoFocus)){if(!a._autoFocus&&!a._wasFocused) 
役に立ちましたか?

解決

see on this page: http://www.obout.com/Obout.Ajax.UI/HTMLEditor/docs/client/Editor.aspx

var editorObject = $find("<%= myEditor.ClientID %>");
editorObject .set_content("Some new content...");
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top