Methods

Gets the list of smilies in the correct format for the editor.

getEditorSmilies(array $smilies) : array

Parameters

$smilies

arraynull

If null, pulls from default list.

Returns

array[smilie text] => array(0 => title, 1 => url)

Gets the editor template.

getEditorTemplate(\XenForo_View $view, string $formCtrlName, string $message, array $editorOptions) : \XenForo_Template_Abstract

The WYSIWYG editor will be used if supported by the browser.

Parameters

$formCtrlName

string

Name of the textarea. If using the WYSIWYG editor, this will have _html appended to it.

$message

string

Default message to put in editor. This should contain BB code

$editorOptions

array

Array of options for the editor. Defaults are provided for any unspecified Currently supported: editorId - (string) override normal {formCtrlName}_html id templateName - (string) override normal 'editor' name disable - (boolean) true to prevent WYSIWYG from activating

Returns

getQuickReplyEditor()

getQuickReplyEditor(\XenForo_View $view, $formCtrlName, $message, array $editorOptions) 

Parameters

$view

$formCtrlName

$message

$editorOptions

 Properties

 

Array of editor IDs already used, prevents duplicate IDs.

$_editorIds : array