SoFunction
Updated on 2025-04-07

fckeditor Modify records and add line spacing function plug-in

Modified
Add to
Copy the codeThe code is as follows:

= '100%;150%;200%;250%;300%' ;
'Size' :
{
Element : 'span',
Styles : { 'font-size' : '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},

Add this below
Copy the codeThe code is as follows:

'LineHeight' :
{
Element : 'span',
Styles : { 'line-height' : '#("Font")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},

Added in
'LineHeight'

Open the plug-in
( 'LineHeight','zh-cn' ) ;
Note the case of the letter 'LineHeight'.
Upload LineHeight directory under fckeditor\editor\plugins folder
Upload fckeditorcode_gecko.js and fckeditorcode_ie.js in fckeditor\editor\js
These two js are mainly used to solve the problem of jumping out of unknown toolbar projects