Rank: Newbie Groups: Member
Joined: 9/15/2008 Posts: 3
|
Hi, there is no documentation about arguments for ExecCommand methos available in HTML editor ? A little bit difficult because command don't send error. I want to add a link in editor in javascript like this :
eo_GetContainer(document.getElementById('<%=Editor1.ClientID %>'), 'Editor').execCommand('InsertOrEditLink');
Any idea ? Thanks Steph
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, InsertOrEditLink is directly tied to the "Insert Or Edit Link" dialog. To insert generic HTML into the editor, you can use "InsertHTML". Here is an example of how to use "InsertHTML": http://doc.essentialobjects.com/library/1/jsdoc.public.editor.execcommand.aspxHere is a list of all commands: http://doc.essentialobjects.com/library/1/editor/commands.aspxPlease feel free to let us know if you have any more questions. Thanks!
|