From e3e4254de6d53bf2d4dae3efdedcb104f2d7650a Mon Sep 17 00:00:00 2001 From: "Matt@MBP-PC.Home" Date: Tue, 3 Jul 2012 14:05:08 -0100 Subject: [PATCH] Set TinyMCE data type to default to showing the label --- src/umbraco.editorControls/tinyMCE3/TinyMCE.cs | 3 +++ .../tinymce/tinyMCEPreValueConfigurator.cs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/umbraco.editorControls/tinyMCE3/TinyMCE.cs b/src/umbraco.editorControls/tinyMCE3/TinyMCE.cs index 49ee6cf134..8669c6f844 100644 --- a/src/umbraco.editorControls/tinyMCE3/TinyMCE.cs +++ b/src/umbraco.editorControls/tinyMCE3/TinyMCE.cs @@ -83,6 +83,9 @@ namespace umbraco.editorControls.tinyMCE3 if (configSettings.Length > 6 && configSettings[6] != "") _showLabel = bool.Parse(configSettings[6]); + else + _showLabel = true; + if (configSettings.Length > 7 && configSettings[7] != "") m_maxImageWidth = int.Parse(configSettings[7]); diff --git a/src/umbraco.editorControls/tinymce/tinyMCEPreValueConfigurator.cs b/src/umbraco.editorControls/tinymce/tinyMCEPreValueConfigurator.cs index a9d8f013b8..a17e03fdee 100644 --- a/src/umbraco.editorControls/tinymce/tinyMCEPreValueConfigurator.cs +++ b/src/umbraco.editorControls/tinymce/tinyMCEPreValueConfigurator.cs @@ -154,6 +154,8 @@ namespace umbraco.editorControls.tinymce _stylesheets = config[5]; if (config.Length > 6 && config[6] != "") _showLabel.Checked = bool.Parse(config[6]); + else + _showLabel.Checked = true; if (config.Length > 7 && config[7] != "") _maxImageWidth.Text = config[7]; else