aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAditi <aditi.iitr@gmail.com>2013-08-06 03:42:14 +0530
committerAditi <aditi.iitr@gmail.com>2013-08-06 03:42:14 +0530
commitb4188c485a8d33b6f0e4ebef2190031bdb20892e (patch)
treea07e71dc6ec8662c4f774f0a7b215eb2a3338e29
parent4af4aec1bfb9189f2294b8057c908532dff54e4e (diff)
downloadmediagoblin-b4188c485a8d33b6f0e4ebef2190031bdb20892e.tar.lz
mediagoblin-b4188c485a8d33b6f0e4ebef2190031bdb20892e.tar.xz
mediagoblin-b4188c485a8d33b6f0e4ebef2190031bdb20892e.zip
Configure tinymce with various plugins.
-rw-r--r--mediagoblin/templates/mediagoblin/extra_head.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/mediagoblin/templates/mediagoblin/extra_head.html b/mediagoblin/templates/mediagoblin/extra_head.html
index 176a77da..f350774e 100644
--- a/mediagoblin/templates/mediagoblin/extra_head.html
+++ b/mediagoblin/templates/mediagoblin/extra_head.html
@@ -20,11 +20,16 @@
<script type="text/javascript"
src="{{request.staticdirect('/tinymce/js/tinymce/tinymce.min.js')}}"></script>
+
<script type="text/javascript">
tinyMCE.init({
selector: "div.blog_form_field_input textarea",
- height: "100%",
- width:"100%"
-
- })
+ height: 300,
+ width: 800,
+ plugins: [
+ "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
+ "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
+ "save table contextmenu directionality emoticons template paste textcolor"
+ ]
+ })
</script>