Results 1 to 4 of 4

Thread: [INFOREQ] 3.x HtmlEditor Fix

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Ext JS Dev Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,061
    Vote Rating
    19
      0  

    Default [INFOREQ] 3.x HtmlEditor Fix

    I propose the execCmd function look like this:

    Code:
    	execCmd: function(cmd, value) {
    		var doc = this.getDoc();
    		if (Ext.isIE && cmd.toLowerCase() == 'inserthtml') {
    			doc.selection.createRange().pasteHTML(value)
    		}
    		else {
    	        doc.execCommand(cmd, false, value === undefined ? null : value);
    		}
    		this.syncValue();
    	},
    You may want to do more than inserthtml.

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Is this to fix a specific problem or a feature you are looking to implement?

  3. #3
    Sencha - Ext JS Dev Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,061
    Vote Rating
    19
      0  

    Default

    Well, execCommand() doesn't do insertHtml in IE, and insertHtml is a biggie.

  4. #4
    Sencha - Ext JS Dev Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,061
    Vote Rating
    19
      0  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •