htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: WYSIWYG Forums: WYSIWYG Editor Discussion:
'this._doc.selection' is null or not an object


 


kalyan
New User

Dec 7, 2005, 2:12 AM

Post #1 of 1 (30646 views)
Shortcut
'this._doc.selection' is null or not an object Can't Post

Hi,

I am getting an error like 'this._doc.selection' is null or not an object when I try to insert some text into the HtmlArea using insertHTML() method. (I am using HTMLAREA 3.0 version). Please help me out

my code snippet:

<
script type="text/javascript">

_editor_url =
"/htmlArea/";

_editor_lang =
"en";

</
script>

<
script type="text/javascript" src="/htmlArea/htmlarea.js"></script>

<
script type="text/javascript" defer="1"/>

var
editor = null;

var
config = null;

function
editorInit(){

editor =
new HTMLArea("clauseText");

config = editor.config;

config.toolbar = [

[
"copy", "cut", "paste", "space",

"bold", "italic", "underline","insertorderedlist", "insertunorderedlist",

"popupeditor", "textindicator"]

];

HTMLArea.replaceAll(config);

}

</
script>

<
SCRIPT>

function display() {

editor.insertHTML("adding");

}

</
SCRIPT>

 
 
 


Search for (options)