Ticket #5552: 5552.patch

File 5552.patch, 820 bytes (added by Minh Nguyen, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    20232023                                        attributes = ( attributesArg && attributesArg.call ? attributesArg( elementDefinition ) : attributesArg ) || {},
    20242024                                        innerHTML = ( contentsArg && contentsArg.call ? contentsArg.call( this, dialog, elementDefinition ) : contentsArg ) || '',
    20252025                                        domId = this.domId = attributes.id || CKEDITOR.tools.getNextNumber() + '_uiElement',
    2026                                         id = this.id = elementDefinition.id,
     2026                                        id = this.id = elementDefinition.id ? elementDefinition.id : 'cke_' + CKEDITOR.tools.getNextNumber(),,
    20272027                                        i;
    20282028
    20292029                                // Set the id, a unique id is required for getElement() to work.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy