echo $jsc = $editor->getContent("myEditorField");
和getcontent
* Get the editor contents
*
* @param string $editor The name of the editor control
*
* @return string
*/
public function getContent($editor)
{
$this->_loadEditor();
$args['name'] = $editor;
$args['event'] = 'onGetContent';
$return = '';
$results[] = $this->_editor->update($args);
foreach ($results as $result)
{
if (trim($result)) {
$return .= $result;
}
}
return $return;
}
以上代码如何返回此字符串
WFEditor.getContent('myEditorField')