Ticket #3019: 3019.patch

File 3019.patch, 1.3 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/selection/plugin.js

     
    201201                };
    202202        };
    203203
    204         var styleObjectElements = { img:1,hr:1,li:1,table:1,tr:1,td:1,embed:1,object:1,ol:1,ul:1 };
     204        var styleObjectElements =
     205        {
     206                img:1,hr:1,li:1,table:1,tr:1,td:1,embed:1,object:1,ol:1,ul:1,
     207                a:1, input:1, form:1, select:1, textarea:1, button:1, fieldset:1, th:1, thead:1, tfoot:1
     208        };
    205209
    206210        CKEDITOR.dom.selection.prototype =
    207211        {
  • _source/plugins/forms/dialogs/textfield.js

     
    1515                        this.restoreSelection();
    1616
    1717                        var element = this.getParentEditor().getSelection().getSelectedElement();
    18                         if ( element && element.getName() == "input" && ( element.getAttribute( 'type' ) == "text" && !element.getAttribute( 'type' ) ) )
     18                        if ( element && element.getName() == "input" && ( element.getAttribute( 'type' ) == "text" || !element.getAttribute( 'type' ) ) )
    1919                        {
    2020                                this._element = element;
    2121                                this.setupContent( element );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy