From 2a82af5f6fc1e2e3558ffae3f922145c59b30c8d Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 7 Oct 2013 15:49:55 -0300 Subject: [PATCH] Reverting c0f97fc83 since it breaks the admin features panel --- app/helpers/boxes_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index 6f08a83..7bf7a74 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -100,7 +100,9 @@ module BoxesHelper options[:title] = _("This block is invisible. Your visitors will not see it.") end - result = filter_html(result, block) + if @controller.send(:content_editor?) + result = filter_html(result, block) + end box_decorator.block_target(block.box, block) + content_tag('div', -- libgit2 0.21.2