aboutsummaryrefslogtreecommitdiff
path: root/mod/tinymce/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tinymce/views')
-rw-r--r--mod/tinymce/views/default/js/tinymce.php1
-rw-r--r--mod/tinymce/views/default/tinymce/embed_custom_insert_js.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/mod/tinymce/views/default/js/tinymce.php b/mod/tinymce/views/default/js/tinymce.php
index 9809aa841..092983d1d 100644
--- a/mod/tinymce/views/default/js/tinymce.php
+++ b/mod/tinymce/views/default/js/tinymce.php
@@ -50,6 +50,7 @@ elgg.tinymce.init = function() {
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_path : true,
+ width : "100%",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
setup : function(ed) {
//show the number of words
diff --git a/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php b/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php
index 84f98c405..d5513cef1 100644
--- a/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php
+++ b/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php
@@ -1,5 +1,5 @@
if (window.tinyMCE) {
- var editor = window.tinyMCE.get(textAreaName);
+ var editor = window.tinyMCE.get(textAreaId);
if (editor) {
editor.execCommand("mceInsertContent", true, content);