From 54e134368739b9dc9c22ce062fdf5737cb2d5517 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 16 Aug 2016 13:52:15 +0200 Subject: [PATCH] Revert "Fixed problems qith html editor in textareas in visual console" Cause: https://www.tinymce.com/docs/plugins/bbcode/ and problems with labels in visual console. This reverts commit 96d7aca5bf80d9f8a1da7519d5a4aea3d1c8b2b0. --- .../reporting/visual_console_builder.editor.js | 14 +++++++------- .../reporting/visual_console_builder.editor.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index feea36ca01..fbe5da6276 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1068,13 +1068,13 @@ function hiddenFields(item) { enterprise_hiddenFields(item); } - //~ var code_control = tinyMCE.activeEditor.controlManager.controls['text-label_code']; - //~ if (item == 'label') { - //~ code_control.setDisabled(false); - //~ } - //~ else { - //~ code_control.setDisabled(true); - //~ } + var code_control = tinyMCE.activeEditor.controlManager.controls['text-label_code']; + if (item == 'label') { + code_control.setDisabled(false); + } + else { + code_control.setDisabled(true); + } } function cleanFields(item) { diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.php b/pandora_console/godmode/reporting/visual_console_builder.editor.php index 74582d46e7..c9732c6cd4 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.php +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.php @@ -208,7 +208,7 @@ ui_require_javascript_file ('encode_decode_base64'); width: "400", height: "200", nowrap: true, - plugins : "bbcode", + plugins : "noneditable", inline_styles : true, valid_children : "+body[style]", element_format : "html",