Ticket #8124: 8124.patch
File 8124.patch, 2.4 KB (added by , 13 years ago) |
---|
-
_source/plugins/dialog/plugin.js
2939 2939 integerRegex = /^\d*$/, 2940 2940 numberRegex = /^\d*(?:\.\d+)?$/, 2941 2941 htmlLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/, 2942 cssLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i; 2942 cssLengthRegex = /^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i, 2943 inlineStyleRegex = /^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/; 2943 2944 2944 2945 CKEDITOR.VALIDATE_OR = 1; 2945 2946 CKEDITOR.VALIDATE_AND = 2; … … 3031 3032 return this.functions( function( val ){ return htmlLengthRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); 3032 3033 }, 3033 3034 3035 'inlineStyle' : function( msg ) 3036 { 3037 return this.functions( function( val ){ return inlineStyleRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); 3038 }, 3039 3034 3040 equals : function( value, msg ) 3035 3041 { 3036 3042 return this.functions( function( val ){ return val == value; }, msg ); -
_source/lang/en.js
123 123 invalidWidth : 'Width must be a number.', 124 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 125 invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', 126 invalidInlineStyle : 'Value specified for the inline style must be one or multiple tuples with the form "name : value" which are separated by semi-colon.', 126 127 127 128 // Put the voice-only part of the label in the span. 128 129 unavailable : '%1<span class="cke_accessibility">, unavailable</span>' -
_source/plugins/dialogadvtab/plugin.js
132 132 label : lang.styles, 133 133 'default' : '', 134 134 135 validate : CKEDITOR.dialog.validate.inlineStyle( lang.invalidInlineStyle ), 135 136 onChange : function(){}, 136 137 137 138 getStyle : function( name, defaultValue )