Skip to content

Instantly share code, notes, and snippets.

@tgloeggl
Created January 14, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgloeggl/c43ab1347e017d18605c to your computer and use it in GitHub Desktop.
Save tgloeggl/c43ab1347e017d18605c to your computer and use it in GitHub Desktop.
Toolbar bei Bereichesbearbeitung anzeigen
--- a/public/plugins_packages/core/Forum/javascript/forum.js
+++ b/public/plugins_packages/core/Forum/javascript/forum.js
@@ -243,6 +243,11 @@ STUDIP.Forum = {
name : jQuery('tr[data-area-id=' + area_id + '] span.areaname').text().trim(),
content : jQuery('tr[data-area-id=' + area_id + '] div.areacontent').attr('data-content')
}));
+
+
+ if (!STUDIP.WYSIWYG) {
+ $('span.edit_area textarea').addToolbar();
+ }
},
cancelEditArea: function (area_id) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment