Joomla JEditor getcontent方法?

时间:2014-01-07 13:08:28

标签: joomla joomla-extensions joomla3.0

 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')

0 个答案:

没有答案