Open timriker opened 2 years ago
If uploads are not allowed. phpbb.plupload will not be defined so:
@@ -54,6 +54,7 @@ window.insert_text = function(text, spaces) {
};
// replaces function defined in assets/javascript/plupload.js
+if (phpbb.plupload ) {
phpbb.plupload.updateBbcode = function(action, index) {
var editor = senky_simplewysiwyg_editor,
text = editor.getData(),
@@ -95,3 +96,4 @@ phpbb.plupload.updateBbcode = function(action, index) {
editor.setData(text);
}
};
+};
In
styles/all/template/event/overall_footer_body_after.html
the code:
{% if S_IN_POSTING and S_BBCODE_ALLOWED %}
is not triggered by PM pages. Removing the S_IN_POSTING activates WYSIWYG for PMs.