SoFunction
Updated on 2025-04-07

Javascript fckeditor editor value acquisition and assignment implementation code

Get HTML content in the editor
Copy the codeThe code is as follows:

function getEditorHTMLContents(EditorName)
{
var oEditor = (EditorName);
return((true));
}

Get the Chinese content of the editor
Copy the codeThe code is as follows:

function getEditorTextContents(EditorName)
{
var oEditor = (EditorName);
return();
}

Set content in the editor
Copy the codeThe code is as follows:

function SetEditorContents(EditorName, ContentStr)
{
var oEditor = (EditorName) ;
(ContentStr) ;
}

FCKeditor plug-in development