Using asp.net version of FCKeditor.
I have to insert "big" font sizes (60pt,100pt,160pt etc). So my problem is that they show up in font-size-dropdown-box abnormally big.
Is there a way to turn of font size preview in dropdown box ?
OR
Another solution would be modifying fckconfig.js :
FCKConfig.FontSizes = '10/60;10/80;10/100;10/160;' ; ///// font size / size label
FCKConfig.CoreStyles =
{
....
'Size' :
{
Element : 'span',
Styles : { 'font-size': '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},
....
and in line ### Styles : { 'font-size': '#("Size","fontSize")' } ##### replace "Size" with "Size Label" or is it undocumented or not implemented .......
So thas my problem and do anyone have a solution ?
paha
from Estonia
I have to insert "big" font sizes (60pt,100pt,160pt etc). So my problem is that they show up in font-size-dropdown-box abnormally big.
Is there a way to turn of font size preview in dropdown box ?
OR
Another solution would be modifying fckconfig.js :
FCKConfig.FontSizes = '10/60;10/80;10/100;10/160;' ; ///// font size / size label
FCKConfig.CoreStyles =
{
....
'Size' :
{
Element : 'span',
Styles : { 'font-size': '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},
....
and in line ### Styles : { 'font-size': '#("Size","fontSize")' } ##### replace "Size" with "Size Label" or is it undocumented or not implemented .......
So thas my problem and do anyone have a solution ?
paha
from Estonia
Re: FCKeditor disable font size preview in dropdown box
editor/js/fckeditorcode_ie.js
FCKToolbarFontSizeCombo.prototype.GetStyles = function() {
var A = FCKStyles.GetStyle('_FCK_Size'); if (!A) {
alert("The FCKConfig.CoreStyles['FontFace'] setting was not found. Please check the fckconfig.js file");
return {};
};
var B = {};
var C = FCKConfig.FontSizes.split(';');
for (var i = 0; i < C.length; i++) {
var D = C[i].split('/');
var E = D[0];
var F = D[1] || E;
// var F = D[1];
var G = FCKTools.CloneObject(A);
G.SetVariable('Size', E);
G.SetVariable('Label1', F);
G.Label = "<span style='font-size:10px'>" + F + "</div>"; //F; <------ SOLUTION !!!
B[F] = G;
};
return B;
};