aboutsummaryrefslogtreecommitdiffstats
path: root/view/de
diff options
context:
space:
mode:
Diffstat (limited to 'view/de')
-rw-r--r--view/de/jot-header.tpl16
-rw-r--r--view/de/jot.tpl10
2 files changed, 18 insertions, 8 deletions
diff --git a/view/de/jot-header.tpl b/view/de/jot-header.tpl
index 508715dca..41abdf0f3 100644
--- a/view/de/jot-header.tpl
+++ b/view/de/jot-header.tpl
@@ -2,17 +2,20 @@
<script language="javascript" type="text/javascript" src="$baseurl/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
<script language="javascript" type="text/javascript">
+var editor;
+
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
editor_selector: /(profile-jot-text|prvmail-text)/,
- plugins : "bbcode",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect",
+ plugins : "bbcode,paste",
+ theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
theme_advanced_blockformats : "blockquote,code",
+ paste_text_sticky : true,
entity_encoding : "raw",
add_unload_trigger : false,
remove_linebreaks : false,
@@ -43,8 +46,13 @@ tinyMCE.init({
$('#character-counter').addClass('red');
}
$('#character-counter').text(text);
- });
- }
+ });
+
+ ed.onInit.add(function(ed) {
+ ed.pasteAsPlainText = true;
+ });
+
+ }
});
</script>
diff --git a/view/de/jot.tpl b/view/de/jot.tpl
index d86d8f847..545bbdadd 100644
--- a/view/de/jot.tpl
+++ b/view/de/jot.tpl
@@ -13,10 +13,6 @@
<input type="hidden" name="location" id="jot-location" value="$defloc" />
<input type="hidden" name="coord" id="jot-coord" value="" />
-<div id="profile-jot-plugin-wrapper" >
- $jotplugins
-</div>
-<div id="profile-jot-plugin-end"></div>
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
@@ -37,6 +33,12 @@
<div id="profile-nolocation-wrapper" style="display: none;" >
<img id="profile-nolocation" src="images/noglobe.gif" alt="Browser Standort leeren" title="Browser Standort leeren" onclick="jotClearLocation();" />
</div>
+
+ <div id="profile-jot-plugin-wrapper" >
+ $jotplugins
+ </div>
+
+
<div id="profile-rotator-wrapper" style="display: $visitor;" >
<img id="profile-rotator" src="images/rotator.gif" alt="Bitte warten" title="Bitte warten" style="display: none;" />
</div>