2 Feb 2011 2:44 AM #1
this.editor.execCmd issue in Chrome
Please help me in this issue
In HtmlEditor editor there was some text.
this.editor.execCmd('InsertHTML', '<span id=' + id + '>'); this will insert only span into editor.. whole text will get disappeared after this line of execution.
when i tried var textTmp = this.editor.getValue();
textTmp doesnt contains anything except span..How to get the text in editor with sapn inserted at cursor,
2 Feb 2011 2:54 AM #2
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
You want to wrap the selected text inside <span id="xyz">...</span>?
Maybe the 'formatblock' command will work for that. Otherwise you will have to get the currently selected text and use InsertHTML to insert the span including that text (see HTMLEditor plugins for example).
By fraric in forum Ext 3.x: BugsReplies: 2Last Post: 28 Sep 2010, 11:58 PM
By fraric in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 28 Sep 2010, 11:37 PM
By mattgoldspink in forum Ext 3.x: BugsReplies: 2Last Post: 16 Feb 2010, 7:39 AM
By jchau in forum Ext 2.x: BugsReplies: 5Last Post: 2 Jul 2009, 6:35 AM
By fother in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 10 Jun 2009, 3:19 PM