From d0ac097f11c61100916c6b32801ff8911e080aa5 Mon Sep 17 00:00:00 2001 From: isaosano Date: Mon, 9 Nov 2015 17:38:21 +0900 Subject: [PATCH] keep the values of input data when we use inserting html mode(fixes #3861, BP from #3413) --- lib/widget/opWidgetFormRichTextarea.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/widget/opWidgetFormRichTextarea.class.php b/lib/widget/opWidgetFormRichTextarea.class.php index 8981eee86..39806406a 100644 --- a/lib/widget/opWidgetFormRichTextarea.class.php +++ b/lib/widget/opWidgetFormRichTextarea.class.php @@ -29,6 +29,14 @@ class opWidgetFormRichTextarea extends sfWidgetFormTextarea 'theme_advanced_buttons2' => '', 'theme_advanced_buttons3' => '', 'convert_urls' => 0, + 'valid_children' => 'div[*], *', + 'valid_elements' => '*[*]', + 'extended_valid_elements' => '*[*]', + 'convert_fonts_to_spans' => false, + 'forced_root_block' => false, + 'force_p_newlines' => false, + 'preformatted' => true, + 'apply_source_formatting' => true, ); public function __construct($options = array(), $attributes = array())