english/libraries/joomla/html/editor.php
/**
	 * Save the editor content
	 *
	 * @param   string  The name of the editor control
	 *
	 * @return  string
	 * @since   11.1
	 */
Save the editor content
@param   string  The name of the editor control


Save the editor content @param string The name of the editor control
public function save($editor)
	{
		$this->_loadEditor();
		if (is_null(($this->_editor))) {
			return;
		}
		$args[] = $editor;
		$args['event'] = 'onSave';
		$return = '';
		$results[] = $this->_editor->update($args);
		foreach ($results as $result)
		{
			if (trim($result)) {
				$return .= $result;
			}
		}
		return $return;
	}
public function save ( $ editor ) { $ this -> _loadEditor ( ) ; if ( is_null ( ( $ this -> _editor ) ) ) { return ; } $ args [ ] = $ editor ; $ args [ 'event' ] = 'onSave' ; $ return = '' ; $ results [ ] = $ this -> _editor -> update ( $ args ) ; foreach ( $ results as $ result ) { if ( trim ( $ result ) ) { $ return .= $ result ; } } return $ return ; }
Save the editor content
 @param   string  The name of the editor control
Save the editor content @param string The name of the editor control
// Check whether editor is already loaded