FCKeditor编辑器,修改调整行距工具

我把编辑器中的【样式】换成【行距】。

第一,在fckconfig.js里面

FCKConfig.CustomStyles=

{

'RedTitle':{Element:'h3',Styles:{'color':'Red'}}

};

替换成

FCKConfig.CustomStyles=

{

//mark090522

'12px':{Element:'span',Styles:{'line-height':'12px'}},

'14px':{Element:'span',Styles:{'line-height':'14px'}},

'18px':{Element:'span',Styles:{'line-height':'18px'}},

'22px':{Element:'span',Styles:{'line-height':'22px'}},

'26px':{Element:'span',Styles:{'line-height':'26px'}},

'30px':{Element:'span',Styles:{'line-height':'30px'}},

'36px':{Element:'span',Styles:{'line-height':'36px'}},

'42px':{Element:'span',Styles:{'line-height':'42px'}},

'50px':{Element:'span',Styles:{'line-height':'50px'}},

'64px':{Element:'span',Styles:{'line-height':'64px'}},

'80px':{Element:'span',Styles:{'line-height':'80px'}}

//'RedTitle':{Element:'h3',Styles:{'color':'Red'}}

//markend

};

第二:在fckstyles.xml里

<Stylename="Marker:Yellow"element="span">

<Stylename="background-color"value="Yellow"/>

</Style>

<Stylename="Marker:Green"element="span">

<Stylename="background-color"value="Lime"/>

</Style>

<Style name="Big" element="big" />

<Stylename="Small"element="small"/>

<Style name="Typewriter" element="tt" />

<Style name="Computer Code" element="code" />

<Stylename="KeyboardPhrase"element="kbd"/>

<Stylename="SampleText"element="samp"/>

<Style name="Variable" element="var" />

<Style name="Deleted Text" element="del" /><Style name="Inserted Text" element="ins" />

<Style name="Cited Work" element="cite" /><Style name="Inline Quotation" element="q" />

<Style name="Language: RTL" element="span">

<Attributename="dir"value="rtl"/>

</Style>

<Stylename="Language:LTR"element="span">

<Attributename="dir"value="ltr"/>

</Style>

<Stylename="Language:RTLStrong"element="bdo">

<Attributename="dir"value="rtl"/>

</Style>

<Stylename="Language:LTRStrong"element="bdo">

<Attributename="dir"value="ltr"/>

</Style>

将上面的代码注释掉。

第三:在fckeditor/editor/lang/zh-cn.js将Style : "样式",替换成 Style : "行距",

<!--EndFragment-->

相关推荐