tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TJavaScript implementation makes proper configuration of THtmlArea/TinyMCE impossible #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Construct an application/page with a THtmlArea
2. When attempting to configure the "advanced" theme TinyMCE as described
in the TinyMCE documentation, do as instucted an set the following in
prop.Options:
   theme : "advanced"
   theme_advanced_buttons2 : ""
   theme_advanced_buttons3 : ""
3. Load the page, and see all three rows of buttons present and full of
their buttons.

What is the expected output? What do you see instead?

There should be the default button-row 1, with no button rows 2 or 3.  But,
since TJavaScript::encode() will eliminate any empty-value elements from
the resulting object, these parameters are not passed on to TinyMCE.init()

What version of the product are you using? On what operating system?

Prado 3.1.4

Please provide any additional information below.

If you simply remove the if() construct that eliminates empty values from
the array (TJavaScript.php line 161), the empty value will be passed to
TinyMCE, which will then work as expected.

Original issue reported on code.google.com by ChrisRos...@gmail.com on 15 Apr 2009 at 5:12

GoogleCodeExporter commented 9 years ago
Already fixed in 3.1.5a (Issue #87)

Original comment by Christophe.Boulain@gmail.com on 16 Apr 2009 at 6:42