Enable TinyMCE for the blog form

This commit is contained in:
Evan Prodromou
2011-06-20 12:21:04 -04:00
parent 12ab4629f3
commit 182a8cf377
2 changed files with 42 additions and 0 deletions

View File

@@ -207,4 +207,13 @@ class BlogPlugin extends MicroAppPlugin
return null;
}
function onEndShowScripts($action)
{
$action->script(common_path('plugins/TinyMCE/js/jquery.tinymce.js'));
$action->inlineScript('var _tinymce_path = "'.common_path('plugins/TinyMCE/js/tiny_mce.js').'";'."\n".
'var _tinymce_placeholder = "'.common_path('plugins/TinyMCE/icons/placeholder.png').'";'."\n");
$action->script($this->path('blog.js'));
return true;
}
}