TinyMCE: core tweak; switching order of input processing so length limit is applied to stripped version of the text

This commit is contained in:
Brion Vibber
2010-08-11 14:39:39 -07:00
parent c19696afec
commit 527561cd93
2 changed files with 7 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ class TinyMCEPlugin extends Plugin
* @param array $options
* @return boolean hook return
*/
function onSaveNewNoticeWeb($action, $user, &$content, &$options)
function onStartSaveNewNoticeWeb($action, $user, &$content, &$options)
{
$html = $this->sanitizeHtml($action->arg('status_textarea'));
$options['rendered'] = $html;