diff --git a/src/Umbraco.Tests/CodeFirst/TestModels/ModelWithNewDataType.cs b/src/Umbraco.Tests/CodeFirst/TestModels/ModelWithNewDataType.cs index 948b76c493..cea693cd47 100644 --- a/src/Umbraco.Tests/CodeFirst/TestModels/ModelWithNewDataType.cs +++ b/src/Umbraco.Tests/CodeFirst/TestModels/ModelWithNewDataType.cs @@ -1,6 +1,6 @@ using Umbraco.Tests.CodeFirst.Attributes; using umbraco.editorControls.textfield; -using umbraco.editorControls.tinymce; +using umbraco.editorControls.tinyMCE3; namespace Umbraco.Tests.CodeFirst.TestModels { @@ -9,7 +9,7 @@ namespace Umbraco.Tests.CodeFirst.TestModels [PropertyType(typeof(TextFieldDataType), PropertyGroup = "Content")] public string Title { get; set; } - [PropertyType(typeof(TinyMCEDataType), PropertyGroup = "Content")] + [PropertyType(typeof(tinyMCE3dataType), PropertyGroup = "Content")] public string BodyContent { get; set; } } } \ No newline at end of file diff --git a/src/umbraco.editorControls/tinyMCE3/webcontrol/plugin/GzipModule.cs b/src/umbraco.editorControls/tinyMCE3/webcontrol/plugin/GzipModule.cs index c60e67030b..c8da3ea402 100644 --- a/src/umbraco.editorControls/tinyMCE3/webcontrol/plugin/GzipModule.cs +++ b/src/umbraco.editorControls/tinyMCE3/webcontrol/plugin/GzipModule.cs @@ -9,7 +9,7 @@ using System; using System.Web; using System.Text.RegularExpressions; using System.IO; -using umbraco.IO; +using Umbraco.Core.IO; namespace umbraco.editorControls.tinyMCE3.webcontrol.plugin { diff --git a/src/umbraco.editorControls/tinymce/TinyMCEDataType.cs b/src/umbraco.editorControls/tinymce/TinyMCEDataType.cs deleted file mode 100644 index 2225f4f601..0000000000 --- a/src/umbraco.editorControls/tinymce/TinyMCEDataType.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Umbraco.Core; - -namespace umbraco.editorControls.tinymce -{ - public class TinyMCEDataType : umbraco.cms.businesslogic.datatype.BaseDataType, umbraco.interfaces.IDataType - { - private umbraco.interfaces.IDataEditor _Editor; - private umbraco.interfaces.IData _baseData; - private umbraco.interfaces.IDataPrevalue _prevalueeditor; - - public override umbraco.interfaces.IDataEditor DataEditor - { - get - { - if (_Editor == null) - _Editor = new TinyMCELegacyControl(); - return _Editor; - } - } - - public override umbraco.interfaces.IData Data - { - get - { - if (_baseData == null) - _baseData = new cms.businesslogic.datatype.DefaultData(this); - return _baseData; - } - } - public override Guid Id - { - get { return new Guid(Constants.PropertyEditors.TinyMCE); } - } - - public override string DataTypeName - { - get { return "TinyMCE wysiwyg (Obsolete, upgrade to tinymce v3!)"; } - } - - public override umbraco.interfaces.IDataPrevalue PrevalueEditor - { - get - { - if (_prevalueeditor == null) - _prevalueeditor = new TinyMCELegacyControl(); - return _prevalueeditor; - } - } - } -} diff --git a/src/umbraco.editorControls/tinymce/TinyMCELegacyControl.cs b/src/umbraco.editorControls/tinymce/TinyMCELegacyControl.cs deleted file mode 100644 index 93e2c8dcef..0000000000 --- a/src/umbraco.editorControls/tinymce/TinyMCELegacyControl.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using umbraco.interfaces; -using System.Web.UI.WebControls; -using System.Drawing; - -namespace umbraco.editorControls.tinymce -{ - class TinyMCELegacyControl : WebControl, IDataEditor, IDataPrevalue - { - - protected Label lbl; - - protected override void CreateChildControls() - { - base.CreateChildControls(); - lbl = new Label(); - lbl.ID = "InvalidDataTypeLabel"; - lbl.Text = "This is an old version of the Richtext Editor (TinyMCE2), which is deprecated and no longer supported in Umbraco 4. Please upgrade by going to >> Developer >> Data Types >> Richtext editor >> And choose \"TinyMCE3 wysiwyg\" as the rendercontrol. If you don't have administrative priviledges in umbraco, you should contact your administrator"; - lbl.ForeColor = Color.Red; - lbl.Font.Bold = true; - - this.Controls.Add(lbl); - } - - - #region IDataEditor Members - - public void Save() - { - - } - - public bool ShowLabel - { - get { return false; } - } - - public bool TreatAsRichTextEditor - { - get { return false; } - } - - public System.Web.UI.Control Editor - { - get - { - return this; - } - } - - #endregion - - #region IDataPrevalue Members - - void IDataPrevalue.Save() - { - - } - - System.Web.UI.Control IDataPrevalue.Editor - { - get { return this; } - } - - #endregion - } -} diff --git a/src/umbraco.editorControls/tinymce/tinyMCEConfiguration.cs b/src/umbraco.editorControls/tinymce/tinyMCEConfiguration.cs index 29bcee442b..fcfcbedcd1 100644 --- a/src/umbraco.editorControls/tinymce/tinyMCEConfiguration.cs +++ b/src/umbraco.editorControls/tinymce/tinyMCEConfiguration.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Text; using System.Collections; using System.Xml; -using umbraco.IO; +using Umbraco.Core.IO; namespace umbraco.editorControls.tinymce { @@ -44,7 +44,7 @@ namespace umbraco.editorControls.tinymce } public static string PluginPath = IOHelper.ResolveUrl( SystemDirectories.Umbraco ) + "/plugins/tinymce3"; - public static string JavascriptPath = IOHelper.ResolveUrl( SystemDirectories.Umbraco_client ) + "/tinymce3"; + public static string JavascriptPath = IOHelper.ResolveUrl( SystemDirectories.UmbracoClient ) + "/tinymce3"; private static string _invalidElements; diff --git a/src/umbraco.editorControls/umbraco.editorControls.csproj b/src/umbraco.editorControls/umbraco.editorControls.csproj index 8bb21115ee..35d05d8f27 100644 --- a/src/umbraco.editorControls/umbraco.editorControls.csproj +++ b/src/umbraco.editorControls/umbraco.editorControls.csproj @@ -387,8 +387,6 @@ Code - -