includes/clientside/tinymce/plugins/style/js/props.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 459 31c23016ab62
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
     8 	"Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" + 
     8 	"Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" + 
     9 	"Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" + 
     9 	"Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" + 
    10 	"Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif";
    10 	"Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif";
    11 
    11 
    12 var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger";
    12 var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger";
    13 var defaultMeasurement = "+pixels=px;points=pt;in;cm;mm;picas;ems;exs;%";
    13 var defaultMeasurement = "+pixels=px;points=pt;em;in;cm;mm;picas;ems;exs;%";
    14 var defaultSpacingMeasurement = "pixels=px;points=pt;in;cm;mm;picas;+ems;exs;%";
    14 var defaultSpacingMeasurement = "pixels=px;points=pt;in;cm;mm;picas;+ems;exs;%";
    15 var defaultIndentMeasurement = "pixels=px;+points=pt;in;cm;mm;picas;ems;exs;%";
    15 var defaultIndentMeasurement = "pixels=px;+points=pt;in;cm;mm;picas;ems;exs;%";
    16 var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900";
    16 var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900";
    17 var defaultTextStyle = "normal;italic;oblique";
    17 var defaultTextStyle = "normal;italic;oblique";
    18 var defaultVariant = "normal;small-caps";
    18 var defaultVariant = "normal;small-caps";
   384 
   384 
   385 	ce.style.cssText = "";
   385 	ce.style.cssText = "";
   386 
   386 
   387 	// Build text styles
   387 	// Build text styles
   388 	ce.style.fontFamily = f.text_font.value;
   388 	ce.style.fontFamily = f.text_font.value;
   389 	ce.style.fontSize = f.text_size.value + (isNum(f.text_size.value) ? f.text_size_measurement.value : "");
   389 	ce.style.fontSize = f.text_size.value + (isNum(f.text_size.value) ? (f.text_size_measurement.value || 'px') : "");
   390 	ce.style.fontStyle = f.text_style.value;
   390 	ce.style.fontStyle = f.text_style.value;
   391 	ce.style.lineHeight = f.text_lineheight.value + (isNum(f.text_lineheight.value) ? f.text_lineheight_measurement.value : "");
   391 	ce.style.lineHeight = f.text_lineheight.value + (isNum(f.text_lineheight.value) ? f.text_lineheight_measurement.value : "");
   392 	ce.style.textTransform = f.text_case.value;
   392 	ce.style.textTransform = f.text_case.value;
   393 	ce.style.fontWeight = f.text_weight.value;
   393 	ce.style.fontWeight = f.text_weight.value;
   394 	ce.style.fontVariant = f.text_variant.value;
   394 	ce.style.fontVariant = f.text_variant.value;