Ticket #5399: 5399.patch
File 5399.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/plugins/pastefromword/filter/default.js
118 118 return result; 119 119 }; 120 120 121 var cssLengthRelativeUnit = /^( \d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i;121 var cssLengthRelativeUnit = /^([.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i; 122 122 var emptyMarginRegex = /^(?:\b0[^\s]*\s*){1,4}$/; // e.g. 0px 0pt 0px 123 123 124 124 var listBaseIndent = 0, … … 219 219 { 220 220 // Be able to deal with component/short-hand form style. 221 221 var values = margin.split( ' ' ); 222 margin = values[ 3 ] || values[ 1 ] || values [ 0 ];222 margin = CKEDITOR.plugins.pastefromword.utils.convertToPx( values[ 3 ] || values[ 1 ] || values [ 0 ] ); 223 223 margin = parseInt( margin, 10 ); 224 224 225 225 // Figure out the indent unit by looking at the first increament.