X-Git-Url: https://git.donarmstrong.com/?p=roundcube.git;a=blobdiff_plain;f=program%2Fjs%2Ftiny_mce%2Futils%2Fvalidate.js;h=27cbfab811e317865dfbda1c690b09c88d3b7b9b;hp=a6fcf970153598b4acb9db56ff55f49e7fdca72f;hb=07e1de2dcd3f3ff8910a3680493f035b3c693cf0;hpb=7f5f46ce0922d9fdeb02e45c759aaacbd0ea5f9a diff --git a/program/js/tiny_mce/utils/validate.js b/program/js/tiny_mce/utils/validate.js index a6fcf97..27cbfab 100644 --- a/program/js/tiny_mce/utils/validate.js +++ b/program/js/tiny_mce/utils/validate.js @@ -32,7 +32,7 @@ var Validator = { }, isSize : function(s) { - return this.test(s, '^[0-9]+(%|in|cm|mm|em|ex|pt|pc|px)?$'); + return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$'); }, isId : function(s) { @@ -96,8 +96,10 @@ var AutoValidator = { var i, nl, s = this.settings, c = 0; nl = this.tags(f, 'label'); - for (i=0; i