SoFunction
Updated on 2025-04-13

FCKEditor Web Editor What experiences are available for use

1. Mounting events, such as onkeydown events, must be implemented in FCKeditor_OnComplete:
Copy the codeThe code is as follows:

function FCKeditor_OnComplete( editorInstance )
{
if () // IE
("onkeypress", FCKeditor_OnKeyup) ;
else// other browser
( 'onkeypress', FCKeditor_OnKeyup, true );
}

2. If the SetHTML function of fckeditor is called after mount, the mount event will be invalid and you need to change it to set the content.
3. Only null values ​​can be obtained by using it, and ('FCKeditor1').
4. Whether the <br> or <p> generated after pressing the carriage return character is determined by the / in the file, it can also be set dynamically, but the attribute name is not FCKConfig, but Config.