1. #1
    Ext User
    Join Date
    Jan 2011
    Posts
    5
    Vote Rating
    0
    sonia1588 is on a distinguished road

      0  

    Post this.editor.execCmd issue in Chrome

    this.editor.execCmd issue in Chrome


    Hello

    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. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    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).

Similar Threads

  1. [OPEN-1295] Html Editor under Chrome
    By fraric in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 28 Sep 2010, 11:58 PM
  2. Html Editor under Chrome
    By fraric in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 Sep 2010, 11:37 PM
  3. [OPEN-580] Editor Grid cell editting quirks in IE & Chrome
    By mattgoldspink in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 16 Feb 2010, 7:39 AM
  4. Replies: 5
    Last Post: 2 Jul 2009, 6:35 AM
  5. [OPEN] [FIXED] editor tree grid broken in chrome
    By fother in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 10 Jun 2009, 3:19 PM

Thread Participants: 1

Tags for this Thread