Ticket #7966: 7966_3.patch

File 7966_3.patch, 4.5 KB (added by Wiktor Walc, 13 years ago)
  • _source/lang/en.js

     
    121121                alignBottom             : 'Bottom',
    122122                invalidHeight   : 'Height must be a number.',
    123123                invalidWidth    : 'Width must be a number.',
    124                 invalidCssLength        : 'Specified value must be a valid CSS length unit.',
    125                 invalidHtmlLength       : 'Specified value must be either a number in pixels or a percentage value.',
     124                invalidCssLength        : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).',
     125                invalidHtmlLength       : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).',
    126126
    127127                // Put the voice-only part of the label in the span.
    128128                unavailable             : '%1<span class="cke_accessibility">, unavailable</span>'
  • _source/plugins/flash/dialogs/flash.js

     
    369369                                                                        id : 'width',
    370370                                                                        style : 'width:95px',
    371371                                                                        label : editor.lang.common.width,
    372                                                                         validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength ),
     372                                                                        validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength.replace( '%1', editor.lang.common.width ) ),
    373373                                                                        setup : function( objectNode, embedNode, paramMap, fakeImage )
    374374                                                                        {
    375375                                                                                loadValue.apply( this, arguments );
     
    387387                                                                        id : 'height',
    388388                                                                        style : 'width:95px',
    389389                                                                        label : editor.lang.common.height,
    390                                                                         validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength ),
     390                                                                        validate : CKEDITOR.dialog.validate.htmlLength( editor.lang.common.invalidHtmlLength.replace( '%1', editor.lang.common.height ) ),
    391391                                                                        setup : function( objectNode, embedNode, paramMap, fakeImage )
    392392                                                                        {
    393393                                                                                loadValue.apply( this, arguments );
  • _source/plugins/iframe/dialogs/iframe.js

     
    152152                                                                        style : 'width:100%',
    153153                                                                        labelLayout : 'vertical',
    154154                                                                        label : commonLang.width,
    155                                                                         validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength ),
     155                                                                        validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.width ) ),
    156156                                                                        getValue : defaultToPixel,
    157157                                                                        setup : function( iframeNode, fakeImage )
    158158                                                                        {
     
    178178                                                                        style : 'width:100%',
    179179                                                                        labelLayout : 'vertical',
    180180                                                                        label : commonLang.height,
    181                                                                         validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength ),
     181                                                                        validate : CKEDITOR.dialog.validate.htmlLength( commonLang.invalidHtmlLength.replace( '%1', commonLang.height ) ),
    182182                                                                        getValue : defaultToPixel,
    183183                                                                        setup : function( iframeNode, fakeImage )
    184184                                                                        {
  • _source/plugins/table/dialogs/table.js

     
    411411                                                                                                        label : editor.lang.common.width,
    412412                                                                                                        'default' : 500,
    413413                                                                                                        getValue : defaultToPixel,
    414                                                                                                         validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength ),
     414                                                                                                        validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.width ) ),
    415415                                                                                                        onChange : function()
    416416                                                                                                        {
    417417                                                                                                                var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' );
     
    438438                                                                                                        label : editor.lang.common.height,
    439439                                                                                                        'default' : '',
    440440                                                                                                        getValue : defaultToPixel,
    441                                                                                                         validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength ),
     441                                                                                                        validate : CKEDITOR.dialog.validate.cssLength( editor.lang.common.invalidCssLength.replace( '%1', editor.lang.common.height ) ),
    442442                                                                                                        onChange : function()
    443443                                                                                                        {
    444444                                                                                                                var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy