Changeset 7176 for CKEditor/trunk
- Timestamp:
- 08/04/11 06:33:39 (22 months ago)
- Location:
- CKEditor/trunk
- Files:
-
- 7 edited
-
CHANGES.html (modified) (1 diff)
-
_source/lang/en.js (modified) (1 diff)
-
_source/plugins/dialog/plugin.js (modified) (2 diffs)
-
_source/plugins/dialogadvtab/plugin.js (modified) (1 diff)
-
_source/plugins/flash/dialogs/flash.js (modified) (1 diff)
-
_source/plugins/image/dialogs/image.js (modified) (1 diff)
-
_source/plugins/link/dialogs/link.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r7175 r7176 49 49 <li><a href="http://dev.ckeditor.com/ticket/8155">#8155</a> : Tooltips in the Special Character dialog window corrected.</li> 50 50 <li><a href="http://dev.ckeditor.com/ticket/8163">#8163</a> : The name of the <code><a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.filebrowserWindowFeatures">filebrowserWindowFeatures</a></code> configuration setting corrected to match the documented name.</li> 51 <li><a href="http://dev.ckeditor.com/ticket/8124">#8124</a> : The "style" field in advanced dialog tab are now validated according to CSS style attribute syntax.</li> 51 52 <li>Updated the following language files:<ul> 52 53 <li><a href="http://dev.ckeditor.com/ticket/8128">#8128</a> : Italian;</li> -
CKEditor/trunk/_source/lang/en.js
r7025 r7176 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. -
CKEditor/trunk/_source/plugins/dialog/plugin.js
r7065 r7176 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; … … 3030 3031 { 3031 3032 return this.functions( function( val ){ return htmlLengthRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); 3033 }, 3034 3035 'inlineStyle' : function( msg ) 3036 { 3037 return this.functions( function( val ){ return inlineStyleRegex.test( CKEDITOR.tools.trim( val ) ); }, msg ); 3032 3038 }, 3033 3039 -
CKEditor/trunk/_source/plugins/dialogadvtab/plugin.js
r6979 r7176 133 133 'default' : '', 134 134 135 validate : CKEDITOR.dialog.validate.inlineStyle( lang.invalidInlineStyle ), 135 136 onChange : function(){}, 136 137 -
CKEditor/trunk/_source/plugins/flash/dialogs/flash.js
r7050 r7176 662 662 type : 'text', 663 663 id : 'style', 664 validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), 664 665 label : editor.lang.common.cssStyle, 665 666 setup : loadValue, -
CKEditor/trunk/_source/plugins/image/dialogs/image.js
r6975 r7176 1350 1350 id : 'txtdlgGenStyle', 1351 1351 label : editor.lang.common.cssStyle, 1352 validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), 1352 1353 'default' : '', 1353 1354 setup : function( type, element ) -
CKEditor/trunk/_source/plugins/link/dialogs/link.js
r7039 r7176 1160 1160 'default' : '', 1161 1161 id : 'advStyles', 1162 validate : CKEDITOR.dialog.validate.inlineStyle( editor.lang.common.invalidInlineStyle ), 1162 1163 setup : setupAdvParams, 1163 1164 commit : commitAdvParams
Note: See TracChangeset
for help on using the changeset viewer.
