diff --git a/OLD/PalmTidy/AssemblyInfo.cs b/OLD/PalmTidy/AssemblyInfo.cs deleted file mode 100644 index 177a4f0e70..0000000000 --- a/OLD/PalmTidy/AssemblyInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.0.*")] - -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] -[assembly: AssemblyKeyName("")] diff --git a/OLD/PalmTidy/tidy.cs b/OLD/PalmTidy/tidy.cs deleted file mode 100644 index 899c33f785..0000000000 --- a/OLD/PalmTidy/tidy.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; - -using System.Runtime.InteropServices; - - -// GPL Licensed work -// (c) Christian Palm + umbraco crew 2005 -// Kudos to Christian Palm for finally making a -// Tidy solution that just works -// palmdk@gmail.com - -namespace CPalmTidy -{ - /// - /// Summary description for tidy. - /// - public class Tidy - { - public string error; - public string outputFile; - public string inputFile; - public string configFile; - - public Tidy() - { - this.error = ""; - this.outputFile = ""; - this.inputFile = ""; - this.configFile = ""; - } - - public bool Run() - { - int i = CallTidyMain(this.inputFile, this.outputFile, this.configFile); - this.error = i.ToString(); - //this.error = "this.inputFile: " + this.inputFile + "
this.outputFile: " + this.outputFile + "
this.configFile: " + this.configFile; - return true; - } - - [DllImport(@"TidyDll.dll")] - static extern int CallTidyMain( - [MarshalAs(UnmanagedType.LPStr)] string inFileName, - [MarshalAs(UnmanagedType.LPStr)] string outFileName, - [MarshalAs(UnmanagedType.LPStr)] string optionsFileName - ); - - - public string ErrorValue - { - get - { - return this.error; - } - } - - public string ConfigFile - { - get - { - return this.configFile; - } - set - { - this.configFile = value; - } - } - - public string OutputFile - { - get - { - return this.outputFile; - } - set - { - this.outputFile = value; - } - } - - public string InputFile - { - get - { - return this.inputFile; - } - set - { - this.inputFile = value; - } - } - - - } -} diff --git a/OLD/PalmTidy/umbraco.CPalmTidy.csproj b/OLD/PalmTidy/umbraco.CPalmTidy.csproj deleted file mode 100644 index dd1bbddbbb..0000000000 --- a/OLD/PalmTidy/umbraco.CPalmTidy.csproj +++ /dev/null @@ -1,106 +0,0 @@ - - - Local - 8.0.50727 - 2.0 - {C584F126-315D-4136-A3EA-E87A108D27DA} - Debug - AnyCPU - - - - - umbraco.CPalmTidy - - - JScript - Grid - IE50 - false - Library - umbraco.CPalmTidy - OnBuildSuccess - - - - - - - SAK - SAK - SAK - SAK - 2.0 - - - bin\Debug\ - false - 285212672 - false - - - DEBUG;TRACE - bin\Debug\umbraco.CPalmTidy.XML - true - 4096 - false - - - false - false - false - false - 4 - full - prompt - - - bin\Release\ - false - 285212672 - false - - - TRACE - - - false - 4096 - false - - - true - false - false - false - 4 - none - prompt - - - - System - - - System.Data - - - System.XML - - - - - Code - - - Code - - - - - - - - - - \ No newline at end of file diff --git a/OLD/assets/Umbraco.sdf b/OLD/assets/Umbraco.sdf deleted file mode 100644 index 90935a7f0b..0000000000 Binary files a/OLD/assets/Umbraco.sdf and /dev/null differ diff --git a/OLD/umbraco.Juno/Properties/AssemblyInfo.cs b/OLD/umbraco.Juno/Properties/AssemblyInfo.cs deleted file mode 100644 index d5b59a2a3d..0000000000 --- a/OLD/umbraco.Juno/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("umbraco.Juno")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("umbraco.Juno")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("6a24821f-2031-4e6b-af37-c045c9de9ce3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OLD/umbraco.Juno/umbraco.Juno.csproj b/OLD/umbraco.Juno/umbraco.Juno.csproj deleted file mode 100644 index 015aca1f88..0000000000 --- a/OLD/umbraco.Juno/umbraco.Juno.csproj +++ /dev/null @@ -1,58 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {6C9A6403-6457-4989-BF20-A575535B89AF} - Library - Properties - umbraco.Juno - umbraco.Juno - v4.0 - 512 - SAK - SAK - SAK - SAK - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/Properties/AssemblyInfo.cs b/OLD/umbraco.Legacy/Properties/AssemblyInfo.cs deleted file mode 100644 index 44bcc57804..0000000000 --- a/OLD/umbraco.Legacy/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("umbraco.Legacy")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyProduct("umbraco.Legacy")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")] diff --git a/OLD/umbraco.Legacy/controls/datePicker.cs b/OLD/umbraco.Legacy/controls/datePicker.cs deleted file mode 100644 index 92a97079dc..0000000000 --- a/OLD/umbraco.Legacy/controls/datePicker.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.ComponentModel; -using System.Collections; -using System.Collections.Specialized; -using System.Globalization; - - -namespace umbraco.controls -{ - /// - /// Summary description for datePicker. - /// - [DefaultProperty("Text"), - ToolboxData("<{0}:datePicker runat=server>")] - public class datePicker_old : System.Web.UI.WebControls.WebControl - { - private DateTime _datetime = new DateTime(1900, 1, 1); - private bool _showTime = false; - - private int _yearsBack = 100; - private string[] _minutes = {"00", "15", "30", "45"}; - private string[] _hours = {"--", "00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"}; - private string[] _days = {"--", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}; - private ArrayList _months = new ArrayList(); - private ArrayList _years = new ArrayList(); - private string _globalAlias = "Da-dk"; - - public string CustomMinutes - { - set {_minutes = value.Split(", ".ToCharArray());} - } - - public bool ShowTime - { - set {_showTime = value;} - get {return _showTime;} - } - - public string GlobalizationAlias - { - set {_globalAlias = value;} - get {return _globalAlias;} - } - - public int YearsBack - { - set {_yearsBack = value;} - get {return _yearsBack;} - } - - [Bindable(true), - Category("Appearance"), - DefaultValue("")] - public DateTime DateTime - { - get - { - return _datetime; - } - - set - { - try - { - _datetime = value; - } - catch { - } - } - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad (e); - if (Page.IsPostBack) - { - try - { - _datetime = DateTime.Parse(System.Web.HttpContext.Current.Request.Form[this.ClientID]); - - } - catch {} - } - } - - protected override void OnInit(EventArgs e) - { - - base.OnInit (e); - } - - - /// - /// Render this control to the output parameter specified. - /// - /// The HTML writer to write out to - protected override void Render(HtmlTextWriter output) - { - - System.Web.HttpContext.Current.Trace.Warn("rendering datetime control!"); - DateTimeFormatInfo dtInfo = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat; - - string daySelect = "--", monthSelect = "--", yearSelect = "--", hourSelect = "--", minuteSelect = "--"; - - - if (_datetime.Year > 1900) - { - daySelect = _datetime.Day.ToString(); - monthSelect = dtInfo.MonthNames[_datetime.Month-1]; - yearSelect = _datetime.Year.ToString(); - hourSelect = _datetime.Hour.ToString(); - if (hourSelect.Length < 2) - hourSelect = "0" + hourSelect; - minuteSelect = markMinute(_datetime.Minute); - } - - _months.Add("--"); - for (int i=0;i<12;i++) - { - _months.Add(dtInfo.MonthNames[i]); - } - - _years.Add("--"); - for (int i=DateTime.Now.Year-_yearsBack; i\"Pick")); - - base.RenderChildren(output); - - output.WriteLine(""); - } - - private string markMinute(int minute) - { - int _currentDiff = 100; - int _currentMinute = 0; - System.Collections.ArrayList _localMinutes = new ArrayList(); - foreach (string s in _minutes) - { - _localMinutes.Add(s); - } - _localMinutes.Add("60"); - - foreach (string s in _localMinutes) - { - if (s.Trim() != "") - { - if (_currentDiff > Math.Abs(int.Parse(s)-minute)) - { - _currentMinute = int.Parse(s); - _currentDiff = Math.Abs(int.Parse(s)-minute); - } - } - - } - - if (_currentMinute == 60) - return "00"; - else - { - if (_currentMinute.ToString().Length == 1) - return "0" + _currentMinute.ToString(); - else - return _currentMinute.ToString(); - } - } - } -} diff --git a/OLD/umbraco.Legacy/controls/datePickerWithpopup.cs b/OLD/umbraco.Legacy/controls/datePickerWithpopup.cs deleted file mode 100644 index 75d4b7744c..0000000000 --- a/OLD/umbraco.Legacy/controls/datePickerWithpopup.cs +++ /dev/null @@ -1,240 +0,0 @@ -using System; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.ComponentModel; -using System.Collections; -using System.Collections.Specialized; -using System.Globalization; -using ClientDependency.Core; -using umbraco.IO; - -namespace umbraco.controls -{ - - /// - /// Summary description for datePicker. - /// - [DefaultProperty("Text"), - ToolboxData("<{0}:datePicker runat=server>")] - [ClientDependency(200, ClientDependencyType.Javascript, "datepicker/cal_s.js", "UmbracoClient")] - [ClientDependency(201, ClientDependencyType.Javascript, "datepicker/cal_set_s.js", "UmbracoClient")] - [ClientDependency(202, ClientDependencyType.Javascript, "datepicker/lang/calendar-en.js", "UmbracoClient")] - [ClientDependency(ClientDependencyType.Css, "datepicker/aqua/theme.css", "UmbracoClient")] - public class datePicker : TextBox - { - private DateTime _datetime = DateTime.Now; - private bool _showTime = false; - private bool _emptyDateAsDefault = false; - - private int _yearsBack = 100; - private string[] _minutes = { "00", "15", "30", "45" }; - private string[] _hours = { "--", "00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" }; - private string[] _days = { "--", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }; - private ArrayList _months = new ArrayList(); - private ArrayList _years = new ArrayList(); - - private string _globalAlias = "Da-dk"; - - private string dateFormatJs = "%Y-%m-%d"; - private string dateFormatNet = "yyyy-MM-dd"; - private string dateFormatJsSelect = ""; - private string dateTimeVisibleValue = ""; - - public string CustomMinutes - { - set { _minutes = value.Split(", ".ToCharArray()); } - } - public bool EmptyDateAsDefault - { - set { _emptyDateAsDefault = value; } - } - - public bool ShowTime - { - set { _showTime = value; } - get { return _showTime; } - } - - public string GlobalizationAlias - { - set { _globalAlias = value; } - get { return _globalAlias; } - } - - public int YearsBack - { - set { _yearsBack = value; } - get { return _yearsBack; } - } - - [Bindable(true), - Category("Appearance"), - DefaultValue("")] - public DateTime DateTime - { - get - { - return _datetime; - } - - set - { - try - { - _datetime = value; - this.Text = _datetime.ToString(); - } - catch - { - } - } - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - if (Page.IsPostBack) - { - try - { - string dateVal = this.Text; - - DateTime tempDate; - tempDate = DateTime.Parse(dateVal); - if (_showTime) - { - tempDate = new DateTime( - int.Parse(dateVal.Substring(0, 4)), - int.Parse(dateVal.Substring(5, 2)), - int.Parse(dateVal.Substring(8, 2)), - int.Parse(dateVal.Substring(11, 2)), - int.Parse(dateVal.Substring(14, 2)), 0); - } - else - tempDate = new DateTime( - int.Parse(dateVal.Substring(0, 4)), - int.Parse(dateVal.Substring(5, 2)), - int.Parse(dateVal.Substring(8, 2)), 0, 0, 0); - - _datetime = tempDate; - - } - catch - { - _datetime = new DateTime(1, 1, 1, 0, 0, 0); - } - } - else - { - if (this.Text != "") - _datetime = DateTime.Parse(this.Text); - } - } - - protected override void OnInit(EventArgs e) - { - if (this.ShowTime) - { - dateFormatJs += " %H:%M"; - dateFormatNet += " HH:mm"; - dateFormatJsSelect = ",\n" + - " showsTime : true,\n" + - " timeFormat : 24 \n"; - } - base.OnInit(e); - } - - protected override void OnPreRender(EventArgs e) - { - if (!_emptyDateAsDefault) - { - if (_datetime.Year != 1 || _datetime.Month != 1 || _datetime.Day != 1) - { - this.Text = _datetime.ToString(dateFormatNet); - dateTimeVisibleValue = _datetime.ToString(dateFormatNet); - } - else - { - this.Text = ""; - dateTimeVisibleValue = ui.Text("noDate"); - } - } - base.OnPreRender(e); - } - - - /// - /// Render this control to the output parameter specified. - /// - /// The HTML writer to write out to - /// - protected override void Render(HtmlTextWriter output) - { - - // DateTimeFormatInfo dtInfo = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat; - - base.Render(output); - //output.WriteLine(""); - output.WriteLine("" + dateTimeVisibleValue + " "); - output.WriteLine(""); - output.WriteLine("" + ui.Text("removeDate") + ""); - - string strSetup = " Calendar.setup({" + - " inputField : \"" + this.ClientID + "\",\n" + - " ifFormat : \"" + dateFormatJs + "\",\n" + - " displayArea : \"" + this.ClientID + "_show_e\",\n" + - " daFormat : \"" + dateFormatJs + "\",\n" + - " button : \"" + this.ClientID + "_f_trigger_e\",\n" + - " singleClick : true\n" + - dateFormatJsSelect + - " });"; - - try - { - if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack) - ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Calendar.Setup_" + this.ClientID, strSetup, true); - else - Page.ClientScript.RegisterStartupScript(this.GetType(), "Calendar.Setup_" + this.ClientID, strSetup, true); - } - catch - { - Page.ClientScript.RegisterStartupScript(this.GetType(), "Calendar.Setup_" + this.ClientID, strSetup, true); - } - } - - private string markMinute(int minute) - { - int _currentDiff = 100; - int _currentMinute = 0; - System.Collections.ArrayList _localMinutes = new ArrayList(); - foreach (string s in _minutes) - { - _localMinutes.Add(s); - } - _localMinutes.Add("60"); - - foreach (string s in _localMinutes) - { - if (s.Trim() != "") - { - if (_currentDiff > Math.Abs(int.Parse(s) - minute)) - { - _currentMinute = int.Parse(s); - _currentDiff = Math.Abs(int.Parse(s) - minute); - } - } - - } - - if (_currentMinute == 60) - return "00"; - else - { - if (_currentMinute.ToString().Length == 1) - return "0" + _currentMinute.ToString(); - else - return _currentMinute.ToString(); - } - } - } -} diff --git a/OLD/umbraco.Legacy/controls/dateTimePicker.cs b/OLD/umbraco.Legacy/controls/dateTimePicker.cs deleted file mode 100644 index c40a18bf01..0000000000 --- a/OLD/umbraco.Legacy/controls/dateTimePicker.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; - -namespace umbraco.controls { - public class calendar : PlaceHolder { - - public bool ShowTime { get; set; } - public DateTime? SelectedDateTime { get; set; } - - private DateTime _date; - - public TextBox tb_hours = new TextBox(); - public TextBox tb_minutes = new TextBox(); - public TextBox tb_date = new TextBox(); - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - } - - protected override void OnPreRender(EventArgs e) - { - base.OnPreRender(e); - _date = System.DateTime.Now; - - - - if (SelectedDateTime.HasValue) - _date = SelectedDateTime.Value; - - if (ShowTime) { - tb_minutes.Columns = 2; - tb_hours.Columns = 2; - - tb_hours.Text = _date.Hour.ToString(); - tb_minutes.Text = fixTime(_date.Minute); - Literal lit = new Literal(); - lit.Text = ":"; - - this.Controls.Add(tb_hours); - this.Controls.Add(lit); - this.Controls.Add(tb_minutes); - } - - tb_date.ID = base.ID + "_datePickField"; - this.Controls.Add(tb_date); - - AjaxControlToolkit.CalendarExtender cal = new AjaxControlToolkit.CalendarExtender(); - cal.TargetControlID = tb_date.UniqueID; - cal.SelectedDate = _date; - this.Controls.Add(cal); - } - - private static string fixTime(int input){ - if (input.ToString().Length == 1) - return "0" + input.ToString(); - else - return input.ToString(); - } - - - - } - - -} diff --git a/OLD/umbraco.Legacy/editorControls/tinymce/TinyMCE.cs b/OLD/umbraco.Legacy/editorControls/tinymce/TinyMCE.cs deleted file mode 100644 index c1f971c567..0000000000 --- a/OLD/umbraco.Legacy/editorControls/tinymce/TinyMCE.cs +++ /dev/null @@ -1,506 +0,0 @@ -using System; -using System.Collections; -using System.Text.RegularExpressions; -using System.Web; -using System.Web.UI; -using umbraco.BasePages; -using umbraco.BusinessLogic; -using umbraco.cms.businesslogic.web; -using umbraco.editorControls.wysiwyg; -using umbraco.interfaces; -using umbraco.uicontrols; - -namespace umbraco.editorControls.tinymce { - public class TinyMCE : webcontrol.TinyMCE, IDataEditor, IMenuElement { - private IData _data; - private bool _enableContextMenu = false; - private string _editorButtons = ""; - private string _advancedUsers = ""; - private bool _fullWidth = false; - private int _width = 0; - private int _height = 0; - private bool _showLabel = false; - private string _plugins = ""; - private ArrayList _stylesheets = new ArrayList(); - - private ArrayList _menuIcons = new ArrayList(); - private SortedList _buttons = new SortedList(); - private SortedList _mceButtons = new SortedList(); - private bool _isInitialized = false; - private string _activateButtons = ""; - private string _disableButtons = "help,visualaid,"; - private int m_maxImageWidth = 500; - - public virtual string Plugins { - get { return _plugins; } - set { _plugins = value; } - } - - public TinyMCE(IData Data, string Configuration) { - _data = Data; - string[] configSettings = Configuration.Split("|".ToCharArray()); - - if (configSettings.Length > 0) { - _editorButtons = configSettings[0]; - - if (configSettings.Length > 1) - if (configSettings[1] == "1") - _enableContextMenu = true; - - if (configSettings.Length > 2) - _advancedUsers = configSettings[2]; - - if (configSettings.Length > 3) { - if (configSettings[3] == "1") - _fullWidth = true; - else if (configSettings[4].Split(',').Length > 1) { - _width = int.Parse(configSettings[4].Split(',')[0]); - _height = int.Parse(configSettings[4].Split(',')[1]); - } - } - - // default width/height - if (_width < 1) - _width = 500; - if (_height < 1) - _height = 400; - - // add stylesheets - if (configSettings.Length > 4) { - foreach (string s in configSettings[5].Split(",".ToCharArray())) - _stylesheets.Add(s); - } - - if (configSettings.Length > 6 && configSettings[6] != "") - _showLabel = bool.Parse(configSettings[6]); - - if (configSettings.Length > 7 && configSettings[7] != "") - m_maxImageWidth = int.Parse(configSettings[7].ToString()); - - // sizing - if (!_fullWidth) { - config.Add("width", _width.ToString()); - config.Add("height", _height.ToString()); - } - - if (_enableContextMenu) - _plugins += ",contextmenu"; - - // config.Add("theme_advanced_statusbar_location", "none"); - - // If the editor is used in umbraco, use umbraco's own toolbar - bool onFront = false; - if (HttpContext.Current.Request.Path.ToLower().IndexOf(GlobalSettings.Path.ToLower()) > -1) - config.Add("theme_advanced_toolbar_location", "external"); - else { - onFront = true; - config.Add("theme_advanced_toolbar_location", "top"); - } - - // load plugins - IDictionaryEnumerator pluginEnum = tinyMCEConfiguration.Plugins.GetEnumerator(); - while (pluginEnum.MoveNext()) { - tinyMCEPlugin plugin = (tinyMCEPlugin)pluginEnum.Value; - if (plugin.UseOnFrontend || (!onFront && !plugin.UseOnFrontend)) - _plugins += "," + plugin.Name; - } - if (_plugins.StartsWith(",")) - _plugins = _plugins.Substring(1, _plugins.Length - 1); - if (_plugins.EndsWith(",")) - _plugins = _plugins.Substring(0, _plugins.Length - 1); - - config.Add("plugins", _plugins); - - // Check advanced settings - if (("," + _advancedUsers + ",").IndexOf("," + UmbracoEnsuredPage.CurrentUser.UserType.Id + ",") > -1) - config.Add("umbracoAdvancedMode", "true"); - else - config.Add("umbracoAdvancedMode", "false"); - - // Check maximum image width - config.Add("umbracoMaximumDefaultImageWidth", m_maxImageWidth.ToString()); - - // Styles - string cssFiles = String.Empty; - string styles = string.Empty; - foreach (string styleSheetId in _stylesheets) { - if (styleSheetId.Trim() != "") - try { - StyleSheet s = StyleSheet.GetStyleSheet(int.Parse(styleSheetId), false, false); - cssFiles += GlobalSettings.Path + "/../css/" + s.Text + ".css"; - - foreach (StylesheetProperty p in s.Properties) { - if (styles != string.Empty) { - styles += ";"; - } - if (p.Alias.StartsWith(".")) - styles += p.Text + "=" + p.Alias; - else - styles += p.Text + "=" + p.Alias; - } - - cssFiles += ","; - } catch (Exception ee) { - Log.Add(LogTypes.Error, -1, - string.Format( - string.Format("Error adding stylesheet to tinymce (id: {{0}}). {0}", ee), - styleSheetId)); - } - } - - config.Add("content_css", cssFiles); - config.Add("theme_advanced_styles", styles); - - // Add buttons - IDictionaryEnumerator ide = tinyMCEConfiguration.Commands.GetEnumerator(); - while (ide.MoveNext()) { - tinyMCECommand cmd = (tinyMCECommand)ide.Value; - if (_editorButtons.IndexOf("," + cmd.Alias + ",") > -1) - _activateButtons += cmd.Alias + ","; - else - _disableButtons += cmd.Alias + ","; - } - - if (_activateButtons.Length > 0) - _activateButtons = _activateButtons.Substring(0, _activateButtons.Length - 1); - if (_disableButtons.Length > 0) - _disableButtons = _disableButtons.Substring(0, _disableButtons.Length - 1); - - // Add buttons - initButtons(); - _activateButtons = ""; - - int separatorPriority = 0; - ide = _mceButtons.GetEnumerator(); - while (ide.MoveNext()) { - string mceCommand = ide.Value.ToString(); - int curPriority = (int)ide.Key; - - // Check priority - if (separatorPriority > 0 && - Math.Floor(decimal.Parse(curPriority.ToString()) / 10) > - Math.Floor(decimal.Parse(separatorPriority.ToString()) / 10)) - _activateButtons += "separator,"; - - _activateButtons += mceCommand + ","; - - separatorPriority = curPriority; - } - - - config.Add("theme_advanced_buttons1", _activateButtons); - config.Add("theme_advanced_buttons2", ""); - config.Add("theme_advanced_buttons3", ""); - config.Add("theme_advanced_toolbar_align", "left"); - config.Add("theme_advanced_disable", _disableButtons); - - config.Add("theme_advanced_path ", "true"); - config.Add("extended_valid_elements", "div[*]"); - config.Add("document_base_url", "/"); - config.Add("event_elements", "div"); - - - if (HttpContext.Current.Request.Path.IndexOf(GlobalSettings.Path) > -1) - config.Add("language", User.GetUser(BasePage.GetUserId(BasePage.umbracoUserContextID)).Language); - else - config.Add("language", System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName); - - if (_fullWidth) { - config.Add("auto_resize", "true"); - base.Cols = 30; - base.Rows = 30; - } else { - base.Cols = 0; - base.Rows = 0; - } - } - } - - #region IDataEditor Members - - #region TreatAsRichTextEditor - - public virtual bool TreatAsRichTextEditor { - get { return false; } - } - - #endregion - - #region ShowLabel - - public virtual bool ShowLabel { - get { return _showLabel; } - } - - #endregion - - #region Editor - - public Control Editor { - get { return this; } - } - - #endregion - - #region Save() - - public virtual void Save() { - string parsedString = base.Text.Trim(); - if (parsedString != string.Empty) { - parsedString = replaceMacroTags(parsedString).Trim(); - - // clean macros and add paragraph element for tidy - bool removeParagraphs = false; - if (parsedString.Length > 16 && parsedString.ToLower().Substring(0, 17) == "|||?umbraco_macro") { - removeParagraphs = true; - parsedString = "

" + parsedString + "

"; - } - - // tidy html - - if (UmbracoSettings.TidyEditorContent) { - string tidyTxt = library.Tidy(parsedString, false); - if (tidyTxt != "[error]") { - // compensate for breaking macro tags by tidy - parsedString = tidyTxt.Replace("/?>", "/>"); - if (removeParagraphs) { - if (parsedString.Length - parsedString.Replace("<", "").Length == 2) - parsedString = parsedString.Replace("

", "").Replace("

", ""); - } - } else { - // TODO - // How to log errors? _data.NodeId does not exist? - //BusinessLogic.Log.Add(BusinessLogic.LogTypes.Error, BusinessLogic.User.GetUser(0), _data.NodeId, "Error tidying txt from property: " + _data.PropertyId.ToString()); - } - } - - // rescue umbraco tags - parsedString = parsedString.Replace("|||?", "").Replace("|*|", "\""); - - // fix images - parsedString = tinyMCEImageHelper.cleanImages(parsedString); - - // parse current domain and instances of slash before anchor (to fix anchor bug) - // NH 31-08-2007 - if (HttpContext.Current.Request.ServerVariables != null) { - parsedString = parsedString.Replace(helper.GetBaseUrl(HttpContext.Current) + "/#", "#"); - parsedString = parsedString.Replace(helper.GetBaseUrl(HttpContext.Current), ""); - } - - // if text is an empty parargraph, make it all empty - if (parsedString.ToLower() == "

") - parsedString = ""; - } - _data.Value = parsedString; - - // update internal webcontrol value with parsed result - base.Text = parsedString; - } - - #endregion - - protected override void OnLoad(EventArgs e) { - base.OnLoad(e); - try { - base.NodeId = ((cms.businesslogic.datatype.DefaultData)_data).NodeId; - base.VersionId = ((cms.businesslogic.datatype.DefaultData)_data).Version; - config.Add("umbraco_toolbar_id", - ElementIdPreFix + ((cms.businesslogic.datatype.DefaultData)_data).PropertyId.ToString()); - } catch { - // Empty catch as this is caused by the document doesn't exists yet, - // like when using this on an autoform - } - Page.ClientScript.RegisterClientScriptBlock(GetType(), "tinymce", - ""); - Page.ClientScript.RegisterClientScriptBlock(GetType(), "tinymceUmbPasteCheck", - ""); - } - - protected override void Render(HtmlTextWriter output) { - base.JavascriptLocation = GlobalSettings.ClientPath + "/tinymce/tiny_mce.js"; - base.Render(output); - } - - protected override void OnInit(EventArgs e) { - base.OnInit(e); - if (!Page.IsPostBack) { - if (_data != null && _data.Value != null) - base.Text = _data.Value.ToString(); - } - } - - private string replaceMacroTags(string text) { - while (findStartTag(text) > -1) { - string result = text.Substring(findStartTag(text), findEndTag(text) - findStartTag(text)); - text = text.Replace(result, generateMacroTag(result)); - } - return text; - } - - private string generateMacroTag(string macroContent) { - string macroAttr = macroContent.Substring(5, macroContent.IndexOf(">") - 5); - string macroTag = "|||?UMBRACO_MACRO "; - Hashtable attributes = ReturnAttributes(macroAttr); - IDictionaryEnumerator ide = attributes.GetEnumerator(); - while (ide.MoveNext()) { - if (ide.Key.ToString().IndexOf("umb_") != -1) { - // Hack to compensate for Firefox adding all attributes as lowercase - string orgKey = ide.Key.ToString(); - if (orgKey == "umb_macroalias") - orgKey = "umb_macroAlias"; - - macroTag += orgKey.Substring(4, orgKey.ToString().Length - 4) + "=|*|" + - ide.Value.ToString() + "|*| "; - } - } - macroTag += "/|||"; - - return macroTag; - } - - public static Hashtable ReturnAttributes(String tag) { - Hashtable ht = new Hashtable(); - MatchCollection m = - Regex.Matches(tag, "(?\\S*)=\"(?[^\"]*)\"", - RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match attributeSet in m) - ht.Add(attributeSet.Groups["attributeName"].Value.ToString(), - attributeSet.Groups["attributeValue"].Value.ToString()); - - return ht; - } - - private int findStartTag(string text) { - string temp = ""; - text = text.ToLower(); - if (text.IndexOf("ismacro=\"true\"") > -1) { - temp = text.Substring(0, text.IndexOf("ismacro=\"true\"")); - return temp.LastIndexOf("<"); - } - return -1; - } - - private int findEndTag(string text) { - string find = ""; - - int endMacroIndex = text.ToLower().IndexOf(find); - string tempText = text.ToLower().Substring(endMacroIndex + find.Length, text.Length - endMacroIndex - find.Length); - int finalEndPos = 0; - while (tempText.Length > 5) - if (tempText.Substring(finalEndPos, 6) == "") - break; - else - finalEndPos++; - - return endMacroIndex + find.Length + finalEndPos + 6; - } - - #endregion - - #region IDataFieldWithButtons Members - - public object[] MenuIcons { - get { - initButtons(); - - object[] tempIcons = new object[_menuIcons.Count]; - for (int i = 0; i < _menuIcons.Count; i++) - tempIcons[i] = _menuIcons[i]; - return tempIcons; - } - } - - private void initButtons() { - if (!_isInitialized) { - _isInitialized = true; - - // Add icons for the editor control: - // Html - // Preview - // Style picker, showstyles - // Bold, italic, Text Gen - // Align: left, center, right - // Lists: Bullet, Ordered, indent, undo indent - // Link, Anchor - // Insert: Image, macro, table, formular - - foreach (string button in _activateButtons.Split(',')) { - if (button.Trim() != "") { - try { - tinyMCECommand cmd = (tinyMCECommand)tinyMCEConfiguration.Commands[button]; - - string appendValue = ""; - if (cmd.Value != "") - appendValue = ", '" + cmd.Value + "'"; - _mceButtons.Add(cmd.Priority, cmd.Command); - _buttons.Add(cmd.Priority, - new editorButton(cmd.Alias, ui.Text("buttons", cmd.Alias, null), cmd.Icon, - "tinyMCE.execInstanceCommand('" + ClientID + "', '" + - cmd.Command + "', " + cmd.UserInterface + appendValue + ")")); - } catch (Exception ee) { - Log.Add(LogTypes.Error, User.GetUser(0), -1, - string.Format("TinyMCE: Error initializing button '{0}': {1}", button, ee.ToString())); - } - } - } - - // add save icon - int separatorPriority = 0; - IDictionaryEnumerator ide = _buttons.GetEnumerator(); - while (ide.MoveNext()) { - object buttonObj = ide.Value; - int curPriority = (int)ide.Key; - - // Check priority - if (separatorPriority > 0 && - Math.Floor(decimal.Parse(curPriority.ToString()) / 10) > - Math.Floor(decimal.Parse(separatorPriority.ToString()) / 10)) - _menuIcons.Add("|"); - - try { - editorButton e = (editorButton)buttonObj; - - MenuIconI menuItem = new MenuIconClass(); - - menuItem.OnClickCommand = e.onClickCommand; - menuItem.ImageURL = e.imageUrl; - menuItem.AltText = e.alttag; - menuItem.ID = e.id; - _menuIcons.Add(menuItem); - } catch { - } - - separatorPriority = curPriority; - } - } - } - - #endregion - - #region IMenuElement Members - - public string ElementName { - get { return "div"; } - } - - public string ElementIdPreFix { - get { return "umbTinymceMenu"; } - } - - public string ElementClass { - get { return "tinymceMenuBar"; } - } - - public int ExtraMenuWidth { - get { - initButtons(); - return _buttons.Count * 40 + 300; - } - } - - #endregion - } -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/editorControls/tinymce/tinyMCEImageHelper.cs b/OLD/umbraco.Legacy/editorControls/tinymce/tinyMCEImageHelper.cs deleted file mode 100644 index 650f826c12..0000000000 --- a/OLD/umbraco.Legacy/editorControls/tinymce/tinyMCEImageHelper.cs +++ /dev/null @@ -1,205 +0,0 @@ -using System; -using System.Collections; -using System.Drawing; -using System.Drawing.Drawing2D; -using System.Drawing.Imaging; -using System.Text.RegularExpressions; -using System.Web; -using umbraco.BusinessLogic; -using umbraco.IO; - -namespace umbraco.editorControls.tinymce -{ - internal class tinyMCEImageHelper - { - public static string cleanImages(string html) - { - string[] allowedAttributes = UmbracoSettings.ImageAllowedAttributes.ToLower().Split(','); - string pattern = @"]*>"; - MatchCollection tags = - Regex.Matches(html + " ", pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - { - if (tag.Value.ToLower().IndexOf("umbraco_macro") == -1) - { - string cleanTag = "", " >"), - "(?\\S*)=\"(?[^\"]*)\"|(?\\S*)=(?[^\"|\\s]*)\\s", - RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match attributeSet in m) - { - ht.Add(attributeSet.Groups["attributeName"].Value.ToString().ToLower(), - attributeSet.Groups["attributeValue"].Value.ToString()); - if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() == "width") - orgWidth = int.Parse(attributeSet.Groups["attributeValue"].Value.ToString()); - else if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() == "height") - orgHeight = int.Parse(attributeSet.Groups["attributeValue"].Value.ToString()); - } - - // If rel attribute exists and if it's different from current sizing we should resize the image! - if (helper.FindAttribute(ht, "rel") != "") - { - int newWidth = 0, newHeight = 0; - - // if size has changed resize image serverside - string[] newDims = helper.FindAttribute(ht, "rel").Split(",".ToCharArray()); - if (newDims.Length > 0 && - (newDims[0] != helper.FindAttribute(ht, "width") || - newDims[1] != helper.FindAttribute(ht, "height"))) - { - try - { - cleanTag += doResize(ht, out newWidth, out newHeight); - } - catch (Exception err) - { - cleanTag += " src=\"" + helper.FindAttribute(ht, "src") + "\""; - if (helper.FindAttribute(ht, "width") != "") - { - cleanTag += " width=\"" + helper.FindAttribute(ht, "width") + "\""; - cleanTag += " height=\"" + helper.FindAttribute(ht, "height") + "\""; - } - Log.Add(LogTypes.Error, User.GetUser(0), -1, - "Error resizing image in editor: " + err.ToString()); - } - } else - { - cleanTag = StripSrc(cleanTag, ht); - - if (helper.FindAttribute(ht, "width") != "") - { - cleanTag += " width=\"" + helper.FindAttribute(ht, "width") + "\""; - cleanTag += " height=\"" + helper.FindAttribute(ht, "height") + "\""; - } - - } - } - else - { - // Add src, width and height properties - cleanTag = StripSrc(cleanTag, ht); - - - if (helper.FindAttribute(ht, "width") != "") - { - cleanTag += " width=\"" + helper.FindAttribute(ht, "width") + "\""; - cleanTag += " height=\"" + helper.FindAttribute(ht, "height") + "\""; - } - - } - - - // Build image tag - foreach (string attr in allowedAttributes) - { - if (helper.FindAttribute(ht, attr) != "") - { - string attrValue = helper.FindAttribute(ht, attr); - cleanTag += " " + attr + "=\"" + attrValue + "\""; - } - } - - - if (bool.Parse(GlobalSettings.EditXhtmlMode)) - cleanTag += "/"; - cleanTag += ">"; - html = html.Replace(tag.Value, cleanTag); - } - } - - return html; - } - - private static string StripSrc(string cleanTag, Hashtable ht) - { - string src = helper.FindAttribute(ht, "src"); - // update orgSrc to remove umbraco reference - if (src.IndexOf("/media/") > -1) - src = src.Substring(src.IndexOf("/media/"), src.Length - src.IndexOf("/media/")); - - cleanTag += " src=\"" + src + "\""; - return cleanTag; - } - - private static string doResize(Hashtable attributes, out int finalWidth, out int finalHeight) - { - string resizeDim = helper.FindAttribute(attributes, "width") + "," + - helper.FindAttribute(attributes, "height"); - string[] resizeDimSplit = resizeDim.Split(','); - string orgSrc = HttpContext.Current.Server.HtmlDecode(helper.FindAttribute(attributes, "src").Replace("%20", " ")); - string[] orgDim = helper.FindAttribute(attributes, "rel").Split(",".ToCharArray()); - float orgWidth = float.Parse(orgDim[0]); - float orgHeight = float.Parse(orgDim[1]); - string newSrc = ""; - int newWidth = int.Parse(resizeDimSplit[0]); - int newHeight = int.Parse(resizeDimSplit[1]); - - if (orgHeight > 0 && orgWidth > 0 && resizeDim != "" && orgSrc != "") - { - // Check dimensions - if (Math.Abs(orgWidth/newWidth) > Math.Abs(orgHeight/newHeight)) - { - newHeight = (int) Math.Round((float) newWidth*(orgHeight/orgWidth)); - } - else - { - newWidth = (int) Math.Round((float) newHeight*(orgWidth/orgHeight)); - } - - // update orgSrc to remove umbraco reference - if (orgSrc.IndexOf("/media/") > -1) - orgSrc = orgSrc.Substring(orgSrc.IndexOf("/media/"), orgSrc.Length - orgSrc.IndexOf("/media/")); - - string ext = orgSrc.Substring(orgSrc.LastIndexOf(".") + 1, orgSrc.Length - orgSrc.LastIndexOf(".") - 1); - newSrc = orgSrc.Replace("." + ext, "_" + newWidth.ToString() + "x" + newHeight.ToString() + ".jpg"); - - string fullSrc = IOHelper.MapPath(orgSrc); - string fullSrcNew = IOHelper.MapPath(newSrc); - - // Load original image - Image image = Image.FromFile(fullSrc); - - - // Create new image with best quality settings - Bitmap bp = new Bitmap(newWidth, newHeight); - Graphics g = Graphics.FromImage(bp); - g.SmoothingMode = SmoothingMode.HighQuality; - g.InterpolationMode = InterpolationMode.HighQualityBicubic; - g.PixelOffsetMode = PixelOffsetMode.HighQuality; - - // Copy the old image to the new and resized - Rectangle rect = new Rectangle(0, 0, newWidth, newHeight); - g.DrawImage(image, rect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel); - - // Copy metadata - ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders(); - ImageCodecInfo codec = null; - for (int i = 0; i < codecs.Length; i++) - { - if (codecs[i].MimeType.Equals("image/jpeg")) - codec = codecs[i]; - } - - // Set compresion ratio to 90% - EncoderParameters ep = new EncoderParameters(); - ep.Param[0] = new EncoderParameter(Encoder.Quality, 90L); - - // Save the new image - bp.Save(fullSrcNew, codec, ep); - } - - // return the new width and height - finalWidth = newWidth; - finalHeight = newHeight; - - return - " src=\"" + newSrc + "\" width=\"" + newWidth.ToString() + "\" height=\"" + newHeight.ToString() + - "\""; - } - } -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/editorControls/tinymce/webcontrol/TinyMCE.cs b/OLD/umbraco.Legacy/editorControls/tinymce/webcontrol/TinyMCE.cs deleted file mode 100644 index 78ec302f6a..0000000000 --- a/OLD/umbraco.Legacy/editorControls/tinymce/webcontrol/TinyMCE.cs +++ /dev/null @@ -1,403 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Specialized; -using System.Text.RegularExpressions; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using umbraco.BusinessLogic; -using umbraco.cms.businesslogic.macro; -using umbraco.cms.businesslogic.media; -using umbraco.cms.businesslogic.property; -using Content = umbraco.cms.businesslogic.Content; - -namespace umbraco.editorControls.tinymce.webcontrol { - public class TinyMCE : WebControl, IPostBackDataHandler { - private string _javascriptLocation = GlobalSettings.ClientPath + "/tinymce"; - private string _coreFile = "/tiny_mce.js"; - private int _rows = 13; - private int _cols = 60; - public NameValueCollection config; - private string temp; - - private int _nodeId = -1; - private Guid _versionId; - - public int NodeId { - set { _nodeId = value; } - } - - public Guid VersionId { - set { _versionId = value; } - } - - public string CoreFile { - get { return _coreFile; } - } - - - public TinyMCE() { - config = new NameValueCollection(); - config.Add("mode", "exact"); - config.Add("theme", "advanced"); - - //content_css : "/mycontent.css" - temp = string.Empty; - - - //this._config.SetStringParam(TinyMCEConfig.StringParameter.mode, "exact"); - //this._config.SetStringParam(TinyMCEConfig.StringParameter.theme, "advanced"); - //this._config.SetStringParam(TinyMCEConfig.StringParameter.plugins, "advlink,noneditable,advimage,flash"); - //this._config.SetStringParam(TinyMCEConfig.StringParameter.theme_advanced_buttons3_add, "flash"); - } - - // - /// The text of the editor - /// - public string Text { - get { return (string)ViewState["text"]; } - set { ViewState["text"] = value; } - } - - // - /// The number of rows in the textarea that gets converted to the editor. - /// This affects the size of the editor. Default is 10 - /// - public int Rows { - get { return _rows; } - set { _rows = value; } - } - - // - /// The number of columns in the textarea that gets converted to the editor. - /// This affects the size of the editor. Default is 40. - /// - public int Cols { - get { return _cols; } - set { _cols = value; } - } - - // - /// Path to the TinyMCE javascript, default is "jscripts/tiny_mce/tiny_mce.js" - /// - public string JavascriptLocation { - get { return _javascriptLocation; } - set { _javascriptLocation = value; } - } - - /// - /// Draws the editor - /// - /// The writer to draw the editor to - protected override void Render(HtmlTextWriter writer) { - writer.WriteLine("\n"); - - writer.WriteLine("\n"); - writer.WriteLine("\n"); - - if (Cols > 0) - writer.Write(""); - } - - private string formatMedia(string html) { - // Local media path - string localMediaPath = getLocalMediaPath(); - - // Find all media images - string pattern = "]*src=\"(?/media[^\"]*)\" [^>]*>"; - - MatchCollection tags = - Regex.Matches(html, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - if (tag.Groups.Count > 0) { - // Replace /> to ensure we're in old-school html mode - string tempTag = "", " >"), - "(?\\S*)=\"(?[^\"]*)\"|(?\\S*)=(?[^\"|\\s]*)\\s", - RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match attributeSet in m) { - if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() != "src") - ht.Add(attributeSet.Groups["attributeName"].Value.ToString(), - attributeSet.Groups["attributeValue"].Value.ToString()); - } - - // build the element - // Build image tag - IDictionaryEnumerator ide = ht.GetEnumerator(); - while (ide.MoveNext()) - tempTag += " " + ide.Key.ToString() + "=\"" + ide.Value.ToString() + "\""; - - // Find the original filename, by removing the might added width and height - orgSrc = - orgSrc.Replace( - "_" + helper.FindAttribute(ht, "width") + "x" + helper.FindAttribute(ht, "height"), ""). - Replace("%20", " "); - - // Check for either id or guid from media - string mediaId = getIdFromSource(orgSrc, localMediaPath); - - Media imageMedia = null; - - try { - int mId = int.Parse(mediaId); - Property p = new Property(mId); - imageMedia = new Media(Content.GetContentFromVersion(p.VersionId).Id); - } catch { - try { - imageMedia = new Media(Content.GetContentFromVersion(new Guid(mediaId)).Id); - } catch { - } - } - - // Check with the database if any media matches this url - if (imageMedia != null) { - try { - // Check extention - if (imageMedia.getProperty("umbracoExtension").Value.ToString() != orgSrc.Substring(orgSrc.LastIndexOf(".") + 1, orgSrc.Length - orgSrc.LastIndexOf(".") - 1)) - orgSrc = orgSrc.Substring(0, orgSrc.LastIndexOf(".") + 1) + - imageMedia.getProperty("umbracoExtension").Value.ToString(); - - // Format the tag - tempTag = tempTag + " rel=\"" + - imageMedia.getProperty("umbracoWidth").Value.ToString() + "," + - imageMedia.getProperty("umbracoHeight").Value.ToString() + "\" src=\"" + orgSrc + - "\""; - tempTag += "/>"; - - // Replace the tag - html = html.Replace(tag.Value, tempTag); - } catch (Exception ee) { - Log.Add(LogTypes.Error, User.GetUser(0), -1, - "Error reading size data from media: " + imageMedia.Id.ToString() + ", " + - ee.ToString()); - } - } else - Log.Add(LogTypes.Error, User.GetUser(0), -1, - "Error reading size data from media (not found): " + orgSrc); - } - return html; - } - - private string getIdFromSource(string src, string localMediaPath) { - // important - remove out the umbraco path + media! - src = src.Replace(localMediaPath, ""); - - string _id = ""; - - // Check for directory id naming - if (src.Length - src.Replace("/", "").Length > 0) { - string[] dirSplit = src.Split("/".ToCharArray()); - string tempId = dirSplit[0]; - try { - // id - _id = int.Parse(tempId).ToString(); - } catch { - // guid - _id = tempId; - } - } else { - string[] fileSplit = src.Replace("/media/", "").Split("-".ToCharArray()); - - // guid or id - if (fileSplit.Length > 3) { - for (int i = 0; i < 5; i++) - _id += fileSplit[i] + "-"; - _id = _id.Substring(0, _id.Length - 1); - } else - _id = fileSplit[0]; - } - - return _id; - } - - private string getLocalMediaPath() { - string[] umbracoPathSplit = GlobalSettings.Path.Split("/".ToCharArray()); - string umbracoPath = ""; - for (int i = 0; i < umbracoPathSplit.Length - 1; i++) - umbracoPath += umbracoPathSplit[i] + "/"; - return umbracoPath + "media/"; - } - - - private string parseMacrosToHtml(string input) { - int nodeId = _nodeId; - Guid versionId = _versionId; - string content = input; - - - string pattern = @"(<\?UMBRACO_MACRO\W*[^>]*/>)"; - MatchCollection tags = - Regex.Matches(content, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - - // Page for macro rendering - page p = new page(nodeId, versionId); - HttpContext.Current.Items["macrosAdded"] = 0; - HttpContext.Current.Items["pageID"] = nodeId.ToString(); - - foreach (Match tag in tags) { - try { - // Create div - Hashtable attributes = helper.ReturnAttributes(tag.Groups[1].Value); - string div = macro.renderMacroStartTag(attributes, nodeId, versionId).Replace(""", "&quot;"); - - // Insert macro contents here... - macro m; - if (helper.FindAttribute(attributes, "macroID") != "") - m = new macro(int.Parse(helper.FindAttribute(attributes, "macroID"))); - else { - // legacy: Check if the macroAlias is typed in lowercasing - string macroAlias = helper.FindAttribute(attributes, "macroAlias"); - if (macroAlias == "") { - macroAlias = helper.FindAttribute(attributes, "macroalias"); - attributes.Remove("macroalias"); - attributes.Add("macroAlias", macroAlias); - } - - if (macroAlias != "") - m = new macro(Macro.GetByAlias(macroAlias).Id); - else - throw new ArgumentException("umbraco is unable to identify the macro. No id or macroalias was provided for the macro in the macro tag.", tag.Groups[1].Value); - } - - if (helper.FindAttribute(attributes, "macroAlias") == "") - attributes.Add("macroAlias", m.Alias); - - - try { - div += macro.MacroContentByHttp(nodeId, versionId, attributes); - } catch { - div += "No macro content available for WYSIWYG editing"; - } - - - div += macro.renderMacroEndTag(); - content = content.Replace(tag.Groups[1].Value, div); - } catch (Exception ee) { - Log.Add(LogTypes.Error, this._nodeId, "Macro Parsing Error: " + ee.ToString()); - string div = "

umbraco was unable to parse a macro tag, which means that parts of this content might be corrupt.

Best solution is to rollback to a previous version by right clicking the node in the tree and then try to insert the macro again.

Please report this to your system administrator as well - this error has been logged.

"; - content = content.Replace(tag.Groups[1].Value, div); - } - - } - return content; - } - - private static readonly object TextChangedEvent = new object(); - - /// - /// Raises an event when the text in the editor changes. - /// - public event EventHandler TextChanged { - add { Events.AddHandler(TextChangedEvent, value); } - remove { Events.RemoveHandler(TextChangedEvent, value); } - } - - /// - /// Event for text change. - /// - /// - protected virtual void OnTextChanged(EventArgs e) { - if (Events != null) { - EventHandler oEventHandler = (EventHandler)Events[TextChangedEvent]; - if (oEventHandler != null) { - oEventHandler(this, e); - } - } - } - - /// - /// Called when a postback occurs on the page the control is placed at - /// - /// The key of the editor data - /// All the posted data - /// - bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection) { - string newText = postCollection[postDataKey]; - - if (newText != Text) { - Text = newText; - return true; - } - - return false; - } - - /// - /// Raises an event when postback occurs - /// - void IPostBackDataHandler.RaisePostDataChangedEvent() { - OnTextChanged(EventArgs.Empty); - } - } - - public enum TinyMceButtons { - code, - bold, - italic, - underline, - strikethrough, - justifyleft, - justifycenter, - justifyright, - justifyfull, - bullist, - numlist, - outdent, - indent, - cut, - copy, - pasteword, - undo, - redo, - link, - unlink, - image, - table, - hr, - removeformat, - sub, - sup, - charmap, - anchor, - umbracomacro - } -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/editorControls/wysiwyg/WysiwygDataType.cs b/OLD/umbraco.Legacy/editorControls/wysiwyg/WysiwygDataType.cs deleted file mode 100644 index 2baa07007f..0000000000 --- a/OLD/umbraco.Legacy/editorControls/wysiwyg/WysiwygDataType.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; - -namespace umbraco.editorControls.wysiwyg -{ - /// - /// Summary description for WysiwygDataType. - /// - public class WysiwygDataType : cms.businesslogic.datatype.BaseDataType,interfaces.IDataType - { - private editor _Editor; - private cms.businesslogic.datatype.DefaultData _baseData; - private interfaces.IDataPrevalue _prevalueeditor; - - public override interfaces.IDataEditor DataEditor - { - get - { - if (_Editor == null) - { - _Editor = new editor((cms.businesslogic.datatype.DefaultData)Data); - - } - return _Editor; - } - } - - public override interfaces.IData Data - { - get - { - if (_baseData == null) - _baseData = new cms.businesslogic.datatype.DefaultData(this); - return _baseData; - } - } - public override Guid Id - { - get {return new Guid("a3776494-0574-4d93-b7de-efdfdec6f2d1");} - } - - public override string DataTypeName - { - get {return "Editor";} - } - - public override interfaces.IDataPrevalue PrevalueEditor - { - get - { - if (_prevalueeditor == null) - _prevalueeditor = new DefaultPrevalueEditor(this,false); - return _prevalueeditor; - } - } - } -} diff --git a/OLD/umbraco.Legacy/editorControls/wysiwyg/editor.cs b/OLD/umbraco.Legacy/editorControls/wysiwyg/editor.cs deleted file mode 100644 index f05d2df0fa..0000000000 --- a/OLD/umbraco.Legacy/editorControls/wysiwyg/editor.cs +++ /dev/null @@ -1,563 +0,0 @@ -using System; -using System.Collections; -using System.Drawing; -using System.Drawing.Drawing2D; -using System.Drawing.Imaging; -using System.Text.RegularExpressions; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using umbraco.BusinessLogic; -using umbraco.interfaces; -using umbraco.uicontrols; - -namespace umbraco.editorControls.wysiwyg -{ - /// - /// Generates a field for typing numeric data - /// - public class editor : HiddenField, IDataFieldWithButtons - { - private ArrayList _buttons = new ArrayList(); - private bool _isInitialized = false; - private String _text; - private ArrayList _menuIcons = new ArrayList(); - - private bool _browserIsCompatible = false; - - private cms.businesslogic.datatype.DefaultData _data; - - public editor(cms.businesslogic.datatype.DefaultData Data) - { - _data = Data; - - if (HttpContext.Current.Request.Browser.Win32 && - HttpContext.Current.Request.Browser.Browser == "IE") - _browserIsCompatible = true; - } - - public virtual bool TreatAsRichTextEditor - { - get { return true; } - } - - public bool ShowLabel - { - get { return false; } - } - - public Control Editor - { - get { return this; } - } - - public String Text - { - get - { - if (_text == null) return ""; - HttpContext.Current.Trace.Warn("return text", _text); - return _text; - } - set - { - _text = " " + value + " "; - if (_text.Trim() != "") - { - // Check for umbraco tags - string pattern = @"[^'](<\?UMBRACO_MACRO\W*[^>]*/>)[^']"; - MatchCollection tags = - Regex.Matches(_text, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - { - _text = - _text.Replace(tag.Groups[1].Value, - "" + tag.Groups[1].Value + ""); - } - - // Clean urls - // _text = _text.Replace("http://" + System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"], "").Replace("HTTP://" + System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"], ""); - } - base.Value = _text.Trim(); - } - } - - - public virtual object[] MenuIcons - { - get - { - initButtons(); - - object[] tempIcons = new object[_menuIcons.Count]; - for (int i = 0; i < _menuIcons.Count; i++) - tempIcons[i] = _menuIcons[i]; - return tempIcons; - } - } - - public override string Value - { - get { return base.Value; } - set - { - base.Value = " " + value + " "; - // Check for umbraco tags - string pattern = @"[^'](<\?UMBRACO_MACRO\W*[^>]*/>)[^']"; - MatchCollection tags = - Regex.Matches(base.Value + " ", pattern, - RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - { - base.Value = - base.Value.Replace(tag.Groups[1].Value, - "" + tag.Groups[1].Value + ""); - } - - Text = base.Value.Trim(); - } - } - - private string cleanImages(string html) - { - string[] allowedAttributes = UmbracoSettings.ImageAllowedAttributes.ToLower().Split(','); - string pattern = @"]*>"; - MatchCollection tags = - Regex.Matches(html + " ", pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - { - if (tag.Value.ToLower().IndexOf("umbraco_macro") == -1) - { - string cleanTag = "", " >"), - "(?\\S*)=\"(?[^\"]*)\"|(?\\S*)=(?[^\"|\\s]*)\\s", - RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match attributeSet in m) - ht.Add(attributeSet.Groups["attributeName"].Value.ToString().ToLower(), - attributeSet.Groups["attributeValue"].Value.ToString()); - - // Build image tag - foreach (string attr in allowedAttributes) - { - if (helper.FindAttribute(ht, attr) != "") - cleanTag += " " + attr + "=\"" + helper.FindAttribute(ht, attr) + "\""; - } - - // If umbracoResizeImage attribute exists we should resize the image! - if (helper.FindAttribute(ht, "umbracoresizeimage") != "") - { - try - { - cleanTag += doResize(ht); - } - catch (Exception err) - { - cleanTag += " src=\"" + helper.FindAttribute(ht, "src") + "\""; - if (helper.FindAttribute(ht, "width") != "") - { - cleanTag += " width=\"" + helper.FindAttribute(ht, "width") + "\""; - cleanTag += " height=\"" + helper.FindAttribute(ht, "height") + "\""; - } - Log.Add(LogTypes.Error, User.GetUser(0), -1, - "Error resizing image in editor: " + err.ToString()); - } - } - else - { - // Add src, width and height properties - cleanTag += " src=\"" + helper.FindAttribute(ht, "src") + "\""; - - if (helper.FindAttribute(ht, "width") != "") - { - cleanTag += " width=\"" + helper.FindAttribute(ht, "width") + "\""; - cleanTag += " height=\"" + helper.FindAttribute(ht, "height") + "\""; - } - } - - if (bool.Parse(GlobalSettings.EditXhtmlMode)) - cleanTag += "/"; - cleanTag += ">"; - html = html.Replace(tag.Value, cleanTag); - } - } - - return html; - } - - private string doResize(Hashtable attributes) - { - string resizeDim = helper.FindAttribute(attributes, "umbracoresizeimage"); - string[] resizeDimSplit = resizeDim.Split(','); - string orgSrc = helper.FindAttribute(attributes, "src").Replace("%20", " "); - int orgHeight = int.Parse(helper.FindAttribute(attributes, "umbracoorgheight")); - int orgWidth = int.Parse(helper.FindAttribute(attributes, "umbracoorgwidth")); - string beforeWidth = helper.FindAttribute(attributes, "umbracobeforeresizewidth"); - string beforeHeight = helper.FindAttribute(attributes, "umbracobeforeresizeheight"); - string newSrc = ""; - - if (orgHeight > 0 && orgWidth > 0 && resizeDim != "" && orgSrc != "") - { - // Check filename - if (beforeHeight != "" && beforeWidth != "") - { - orgSrc = orgSrc.Replace("_" + beforeWidth + "x" + beforeHeight, ""); - } - string ext = orgSrc.Substring(orgSrc.LastIndexOf(".") + 1, orgSrc.Length - orgSrc.LastIndexOf(".") - 1); - newSrc = orgSrc.Replace("." + ext, "_" + resizeDimSplit[0] + "x" + resizeDimSplit[1] + ".jpg"); - - string fullSrc = HttpContext.Current.Server.MapPath(orgSrc); - string fullSrcNew = HttpContext.Current.Server.MapPath(newSrc); - - // Load original image - System.Drawing.Image image = System.Drawing.Image.FromFile(fullSrc); - - // Create new image with best quality settings - Bitmap bp = new Bitmap(int.Parse(resizeDimSplit[0]), int.Parse(resizeDimSplit[1])); - Graphics g = Graphics.FromImage(bp); - g.SmoothingMode = SmoothingMode.HighQuality; - g.InterpolationMode = InterpolationMode.HighQualityBicubic; - g.PixelOffsetMode = PixelOffsetMode.HighQuality; - - // Copy the old image to the new and resized - Rectangle rect = new Rectangle(0, 0, int.Parse(resizeDimSplit[0]), int.Parse(resizeDimSplit[1])); - g.DrawImage(image, rect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel); - - // Copy metadata - ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders(); - ImageCodecInfo codec = null; - for (int i = 0; i < codecs.Length; i++) - { - if (codecs[i].MimeType.Equals("image/jpeg")) - codec = codecs[i]; - } - - // Set compresion ratio to 90% - EncoderParameters ep = new EncoderParameters(); - ep.Param[0] = new EncoderParameter(Encoder.Quality, 90L); - - // Save the new image - bp.Save(fullSrcNew, codec, ep); - orgSrc = newSrc; - } - - return " src=\"" + newSrc + "\" width=\"" + resizeDimSplit[0] + "\" height=\"" + resizeDimSplit[1] + "\""; - } - - public void Save() - { - if (Text.Trim() != "") - { - // Parse for servername - if (HttpContext.Current.Request.ServerVariables != null) - { - _text = _text.Replace(helper.GetBaseUrl(HttpContext.Current) + GlobalSettings.Path + "/", ""); - _text = _text.Replace(helper.GetBaseUrl(HttpContext.Current), ""); - } - - // Parse for editing scriptname - string pattern2 = GlobalSettings.Path + "/richTextHolder.aspx?[^#]*#"; - MatchCollection tags2 = - Regex.Matches(_text, pattern2, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags2) - { - _text = _text.Replace(tag.Value, ""); - HttpContext.Current.Trace.Warn("editor-match", tag.Value); - } - - // Parse for macros inside images - string pattern = @"]*>)'[^>]*>"; - MatchCollection tags = - Regex.Matches(_text, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - if (tag.Groups.Count > 0) - { - string umbTag = tag.Groups[1].Value; - // Check for backwards compliance with old macro-tag format ( vs. new format with closed tags: ) - if (umbTag.IndexOf("/>") < 0) - umbTag = umbTag.Substring(0, umbTag.Length - 1) + "/>"; - - _text = _text.Replace(tag.Value, umbTag); - } - - - // check for image tags - _text = cleanImages(_text); - - _text = replaceMacroTags(_text).Trim(); - - // clean macros and add paragraph element for tidy - bool removeParagraphs = false; - if (_text.Length > 15 && _text.ToLower().Substring(0, 17) == "|||?umbraco_macro") - { - removeParagraphs = true; - _text = "

" + _text + "

"; - } - - // tidy html - - if (UmbracoSettings.TidyEditorContent) - { - string tidyTxt = library.Tidy(_text, false); - if (tidyTxt != "[error]") - { - // compensate for breaking macro tags by tidy - _text = tidyTxt.Replace("/?>", "/>"); - if (removeParagraphs) - { - if (_text.Length - _text.Replace("<", "").Length == 2) - _text = _text.Replace("

", "").Replace("

", ""); - } - } - else - Log.Add(LogTypes.Error, User.GetUser(0), _data.NodeId, - "Error tidying txt from property: " + _data.PropertyId.ToString()); - } - - // rescue umbraco tags - _text = _text.Replace("|||?", "").Replace("|*|", "\""); - - // if text is an empty parargraph, make it all empty - if (_text.ToLower() == "

") - _text = ""; - } - - // cms.businesslogic.Content.GetContentFromVersion(_version).getProperty(_alias).Value = Text; - - _data.Value = Text; - } - - private string replaceMacroTags(string text) - { - while (findStartTag(text) > -1) - { - string result = text.Substring(findStartTag(text), findEndTag(text) - findStartTag(text)); - text = text.Replace(result, generateMacroTag(result)); - } - return text; - } - - private string generateMacroTag(string macroContent) - { - string macroAttr = macroContent.Substring(5, macroContent.IndexOf(">") - 5); - string macroTag = "|||?UMBRACO_MACRO "; - Hashtable attributes = ReturnAttributes(macroAttr); - IDictionaryEnumerator ide = attributes.GetEnumerator(); - while (ide.MoveNext()) - { - if (ide.Key.ToString().IndexOf("umb_") != -1) - macroTag += ide.Key.ToString().Substring(4, ide.Key.ToString().Length - 4) + "=|*|" + - ide.Value.ToString() + "|*| "; - } - macroTag += "/|||"; - - return macroTag; - } - - public static Hashtable ReturnAttributes(String tag) - { - Hashtable ht = new Hashtable(); - MatchCollection m = - Regex.Matches(tag, "(?\\S*)=\"(?[^\"]*)\"", - RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match attributeSet in m) - ht.Add(attributeSet.Groups["attributeName"].Value.ToString(), - attributeSet.Groups["attributeValue"].Value.ToString()); - - return ht; - } - - private int findStartTag(string text) - { - string temp = ""; - text = text.ToLower(); - if (text.IndexOf("ismacro=\"true\"") > -1) - { - temp = text.Substring(0, text.IndexOf("ismacro=\"true\"")); - return temp.LastIndexOf("<"); - } - return -1; - } - - private int findEndTag(string text) - { - string find = ""; - return text.ToLower().IndexOf("") + find.Length; - } - - private void initButtons() - { - if (!_isInitialized) - { - _isInitialized = true; - - // Test for browser compliance - if (_browserIsCompatible) - { - // Add icons for the editor control: - // Html - // Preview - // Style picker, showstyles - // Bold, italic, Text Gen - // Align: left, center, right - // Lists: Bullet, Ordered, indent, undo indent - // Link, Anchor - // Insert: Image, macro, table, formular - _buttons.Add( - new editorButton("html", ui.Text("buttons", "htmlEdit", null), - GlobalSettings.Path + "/images/editor/html.gif", "viewHTML('" + ClientID + "')")); - _buttons.Add("split"); - _buttons.Add( - new editorButton("showstyles", ui.Text("buttons", "styleShow", null) + " (CTRL+SHIFT+V)", - GlobalSettings.Path + "/images/editor/showStyles.gif", - "umbracoShowStyles('" + ClientID + "')")); - _buttons.Add("split"); - _buttons.Add( - new editorButton("bold", ui.Text("buttons", "bold", null) + " (CTRL+B)", - GlobalSettings.Path + "/images/editor/bold.gif", - "umbracoEditorCommand('" + ClientID + "', 'bold', '')")); - _buttons.Add( - new editorButton("italic", ui.Text("buttons", "italic", null) + " (CTRL+I)", - GlobalSettings.Path + "/images/editor/italic.gif", - "umbracoEditorCommand('" + ClientID + "', 'italic', '')")); - _buttons.Add( - new editorButton("graphicheadline", ui.Text("buttons", "graphicHeadline", null) + "(CTRL+B)", - GlobalSettings.Path + "/images/editor/umbracoTextGen.gif", - "umbracoTextGen('" + ClientID + "')")); - _buttons.Add("split"); - _buttons.Add( - new editorButton("justifyleft", ui.Text("buttons", "justifyLeft", null), - GlobalSettings.Path + "/images/editor/left.gif", - "umbracoEditorCommand('" + ClientID + "', 'justifyleft', '')")); - _buttons.Add( - new editorButton("justifycenter", ui.Text("buttons", "justifyCenter", null), - GlobalSettings.Path + "/images/editor/center.gif", - "umbracoEditorCommand('" + ClientID + "', 'justifycenter', '')")); - _buttons.Add( - new editorButton("justifyright", ui.Text("buttons", "justifyRight", null), - GlobalSettings.Path + "/images/editor/right.gif", - "umbracoEditorCommand('" + ClientID + "', 'justifyright', '')")); - _buttons.Add("split"); - _buttons.Add( - new editorButton("listBullet", ui.Text("buttons", "listBullet", null), - GlobalSettings.Path + "/images/editor/bullist.gif", - "umbracoEditorCommand('" + ClientID + "', 'insertUnorderedList', '')")); - _buttons.Add( - new editorButton("listNumeric", ui.Text("buttons", "listNumeric", null), - GlobalSettings.Path + "/images/editor/numlist.gif", - "umbracoEditorCommand('" + ClientID + "', 'insertOrderedList', '')")); - _buttons.Add( - new editorButton("deindent", ui.Text("buttons", "deindent", null), - GlobalSettings.Path + "/images/editor/deindent.gif", - "umbracoEditorCommand('" + ClientID + "', 'Outdent', '')")); - _buttons.Add( - new editorButton("indent", ui.Text("buttons", "indent", null), - GlobalSettings.Path + "/images/editor/inindent.gif", - "umbracoEditorCommand('" + ClientID + "', 'Indent', '')")); - _buttons.Add("split"); - _buttons.Add( - new editorButton("linkInsert", ui.Text("buttons", "linkInsert", null), - GlobalSettings.Path + "/images/editor/link.gif", - "umbracoLink('" + ClientID + "')")); - _buttons.Add( - new editorButton("linkLocal", ui.Text("buttons", "linkLocal", null), - GlobalSettings.Path + "/images/editor/anchor.gif", - "umbracoAnchor('" + ClientID + "')")); - _buttons.Add("split"); - _buttons.Add( - new editorButton("pictureInsert", ui.Text("buttons", "pictureInsert", null), - GlobalSettings.Path + "/images/editor/image.gif", - "umbracoImage('" + ClientID + "')")); - _buttons.Add( - new editorButton("macroInsert", ui.Text("buttons", "macroInsert", null), - GlobalSettings.Path + "/images/editor/insMacro.gif", - "umbracoInsertMacro('" + ClientID + "', '" + GlobalSettings.Path + "')")); - _buttons.Add( - new editorButton("tableInsert", ui.Text("buttons", "tableInsert", null), - GlobalSettings.Path + "/images/editor/instable.gif", - "umbracoInsertTable('" + ClientID + "', '" + GlobalSettings.Path + "')")); - _buttons.Add( - new editorButton("formFieldInsert", ui.Text("buttons", "formFieldInsert", null), - GlobalSettings.Path + "/images/editor/form.gif", - "umbracoInsertForm('" + ClientID + "', '" + GlobalSettings.Path + "')")); - - // add save icon - foreach (object o in _buttons) - { - try - { - MenuIconI menuItem = new MenuIconClass(); - - editorButton e = (editorButton)o; - menuItem.OnClickCommand = e.onClickCommand; - menuItem.ImageURL = e.imageUrl; - menuItem.AltText = e.alttag; - menuItem.ID = e.id; - _menuIcons.Add(menuItem); - } - catch - { - _menuIcons.Add("|"); - } - } - } - } - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "UMBRACO_EDITOR", GlobalSettings.Path + "/js/editorBarFunctions.js"); - } - - /// - /// Render this control to the output parameter specified. - /// - /// The HTML writer to write out to - protected override void Render(HtmlTextWriter output) - { - if (_browserIsCompatible) - { - base.Render(output); - output.Write(""); - output.Write(""); - - string strScript = "function umbracoRichTextSave" + ClientID + "() {\nif (document.frames[\"" + - ClientID + "_holder\"].document.getElementById(\"holder\")) document.getElementById(\"" + - ClientID + "\").value = document.frames[\"" + ClientID + - "_holder\"].document.getElementById(\"holder\").innerHTML;\n}" + - - "addSaveHandler('umbracoRichTextSave" + ClientID + "();');"; - try - { - if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack) - ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "umbracoRichTextSave" + this.ClientID, strScript, true); - else - Page.ClientScript.RegisterStartupScript(this.GetType(), "umbracoRichTextSave" + this.ClientID, strScript, true); - } - catch - { - Page.ClientScript.RegisterStartupScript(this.GetType(), "umbracoRichTextSave" + this.ClientID, strScript, true); - } - } - else - { - output.WriteLine(""); - output.WriteLine( - "

(Unfortunately WYSIWYG editing is only useLiveEditing in Internet Explorer on Windows. More info)

"); - } - } - } - - -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco.Legacy.csproj b/OLD/umbraco.Legacy/umbraco.Legacy.csproj deleted file mode 100644 index f334e8a0f0..0000000000 --- a/OLD/umbraco.Legacy/umbraco.Legacy.csproj +++ /dev/null @@ -1,1112 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {27A2590E-1313-4A33-89FD-92811540B69C} - {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - umbraco.Legacy - umbraco.Legacy - v3.5 - - - - - - - - - - - 3.5 - - - - true - full - false - bin\ - DEBUG;TRACE - prompt - 4 - AllRules.ruleset - - - pdbonly - true - bin\ - TRACE - prompt - 4 - AllRules.ruleset - - - - False - ..\..\foreign dlls\LEGACY\AjaxControlToolkit.dll - - - False - ..\..\foreign dlls\ClientDependency.Core.dll - - - False - ..\..\foreign dlls\LEGACY\DotNetOpenMail.dll - - - - - 3.5 - - - 3.5 - - - 3.5 - - - 3.5 - - - - - - - - - - - - Properties\SolutionInfo.cs - - - - - - - - - - - - edit.aspx - ASPXCodeBehind - - - edit.aspx - - - - - - modalHolder.aspx - ASPXCodeBehind - - - modalHolder.aspx - - - paste.aspx - ASPXCodeBehind - - - paste.aspx - - - editCell.aspx - ASPXCodeBehind - - - editCell.aspx - - - insertAnchor.aspx - ASPXCodeBehind - - - insertAnchor.aspx - - - insertFormField.aspx - ASPXCodeBehind - - - insertFormField.aspx - - - insertImage.aspx - ASPXCodeBehind - - - insertImage.aspx - - - insertLink.aspx - ASPXCodeBehind - - - insertLink.aspx - - - insertTextGen.aspx - ASPXCodeBehind - - - insertTextGen.aspx - - - contextmenu.aspx - ASPXCodeBehind - - - contextmenu.aspx - - - insertImage.aspx - ASPXCodeBehind - - - insertImage.aspx - - - insertLink.aspx - ASPXCodeBehind - - - insertLink.aspx - - - insertMacro.aspx - ASPXCodeBehind - - - insertMacro.aspx - - - paste.aspx - ASPXCodeBehind - - - paste.aspx - - - task.aspx - ASPXCodeBehind - - - task.aspx - - - viewHtml.aspx - ASPXCodeBehind - - - viewHtml.aspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - edit.aspx.cs - Designer - - - paste.aspx.cs - Designer - - - editCell.aspx.cs - Designer - - - insertAnchor.aspx.cs - Designer - - - insertFormField.aspx.cs - Designer - - - insertImage.aspx.cs - Designer - - - insertLink.aspx.cs - Designer - - - insertTextGen.aspx.cs - Designer - - - contextmenu.aspx.cs - Designer - - - task.aspx.cs - Designer - - - viewHtml.aspx.cs - Designer - - - - - {255F5DF1-4E43-4758-AC05-7A0B68EB021B} - umbraco.editorControls - - - {6EDD2061-82F2-461B-BB6E-879245A832DE} - umbraco.controls - - - {E469A9CE-1BEC-423F-AC44-713CD72457EA} - umbraco.businesslogic - - - {CCD75EC3-63DB-4184-B49D-51C1DD337230} - umbraco.cms - - - {C7CB79F0-1C97-4B33-BFA7-00731B579AE2} - umbraco.datalayer - - - {511F6D8D-7717-440A-9A57-A507E9A8B27F} - umbraco.interfaces - - - {651E1350-91B6-44B7-BD60-7207006D7003} - umbraco.presentation - - - - - - - - - - - - - - - - - False - True - 54188 - / - - - False - False - - - False - - - - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx b/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx deleted file mode 100644 index aa9ad9432e..0000000000 --- a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx +++ /dev/null @@ -1,52 +0,0 @@ -<%@ Page language="c#" Codebehind="edit.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.edit" %> - - - - - - -
- - - -
- - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.cs b/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.cs deleted file mode 100644 index a0e4e6593b..0000000000 --- a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.cms.presentation -{ - /// - /// Summary description for edit. - /// - public partial class edit : BasePages.UmbracoEnsuredPage - { - protected uicontrols.TabView TabView1; - protected System.Web.UI.WebControls.TextBox documentName; - private cms.businesslogic.media.Media _document; - controls.ContentControl tmp; - protected void Page_Load(object sender, System.EventArgs e) - { - _document = new cms.businesslogic.media.Media(int.Parse(Request.QueryString["id"])); - tmp = new controls.ContentControl(_document,controls.ContentControl.publishModes.NoPublish, "TabView1"); - tmp.Width = Unit.Pixel(666); - tmp.Height = Unit.Pixel(666); - plc.Controls.Add(tmp); - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.designer.cs deleted file mode 100644 index f7fe400dab..0000000000 --- a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.designer.cs +++ /dev/null @@ -1,19 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.cms.presentation { - - public partial class edit { - protected System.Web.UI.HtmlControls.HtmlForm contentForm; - protected System.Web.UI.HtmlControls.HtmlInputHidden doSave; - protected System.Web.UI.HtmlControls.HtmlInputHidden doPublish; - protected System.Web.UI.WebControls.PlaceHolder plc; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.resx b/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.resx deleted file mode 100644 index b1fe6ff387..0000000000 --- a/OLD/umbraco.Legacy/umbraco/ContentItem/edit.aspx.resx +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - False - - - True - - - Private - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/controls/CheckboxTree.cs b/OLD/umbraco.Legacy/umbraco/controls/CheckboxTree.cs deleted file mode 100644 index 124705c0f7..0000000000 --- a/OLD/umbraco.Legacy/umbraco/controls/CheckboxTree.cs +++ /dev/null @@ -1,181 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Collections; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; -using System.Text; - -using umbraco.cms.presentation.Trees; - -namespace umbraco.presentation.controls { - public class CheckboxTree : System.Web.UI.WebControls.TreeView { - - protected override void OnInit(EventArgs e) { - base.OnInit(e); - if (ScriptManager.GetCurrent(this.Page) == null) - throw new Exception("This control requires a ScriptManager"); - - //RenderJS(); - RenderJS(); - - } - - protected override void Render(HtmlTextWriter writer) { - base.Render(writer); - } - /// - /// Return the instance on the loadContent class. This lazily instantiates the loadContent object and if it is - /// already created, it will return the already created instance. - /// - private loadContent ContentTree { - get { - if (m_contentTree != null) - return m_contentTree; - - m_contentTree = new loadContent("content"); - m_contentTree.FunctionToCall = m_clientNodeClicked; - m_contentTree.IsDialog = true; - m_contentTree.DialogMode = TreeDialogModes.id; - return m_contentTree; - } - } - - private loadContent m_contentTree; - private string m_clientNodeChecked = "void(0);"; - private string m_clientNodeClicked = "void(0);"; - private bool m_showCheckBoxes = true; - private string m_imagesRootPath = GlobalSettings.Path + "/images/umbraco/"; - private string m_unpublishedColor = "#999999"; - - /// - /// The JavaScript method to call when a node is clicked. The method will receive a node ID as it's parameter. - /// - public string OnClientNodeClicked { - get { return m_clientNodeClicked; } - set { m_clientNodeClicked = value; } - } - - /// - /// The JavaScript method to call when a node is checked. The method will receive a comma seperated list of node IDs that are checked. - /// - public string OnClientNodeChecked { - get { return m_clientNodeChecked; } - set { m_clientNodeChecked = value; } - } - - public bool ShowCheckBoxes { - get { return m_showCheckBoxes; } - set { m_showCheckBoxes = value; } - } - - public string ImagesRootPath { - get { return m_imagesRootPath; } - set { m_imagesRootPath = value; } - } - - public string UnpublishedColor { - get { return m_unpublishedColor; } - set { m_unpublishedColor = value; } - } - - /// - /// The JavaScript function that is called when a node is checked - /// - protected const string JSSelectNode = "ContentTreeControl_CheckedNode"; - - /// - /// Registers JavaScript for the contentTree - /// - private void RenderJS() { - StringBuilder sb = new StringBuilder(); - ContentTree.RenderJS(ref sb); - Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "treeJS", sb.ToString(), true); - } - - /// - /// Get the XmlTree for the Content Tree for the node ID passed in. - /// - /// - /// - public static XmlTree GetNodeData(int? nodeID, CheckboxTree cbTree) { - XmlTree xTree = new XmlTree(); - cbTree.ContentTree.id = (nodeID == null ? cbTree.ContentTree.StartNodeID : nodeID.Value); - cbTree.ContentTree.Render(ref xTree); - return xTree; - } - - /// - /// Converts an XmlTree to a TreeNodeCollection - /// - /// - /// - /// - public static TreeNodeCollection FromXmlTree(XmlTree xTree, TreeNode parentNode, CheckboxTree cbTree) { - TreeNodeCollection nodes = new TreeNodeCollection(parentNode); - foreach (XmlTreeNode xNode in xTree) { - if (xNode != null) { - TreeNode node = FromXmlTreeNode(xNode, cbTree); - nodes.Add(node); - } - } - return nodes; - } - - /// - /// Converts an XmlTreeNode to a TreeNode - /// - /// - /// - public static TreeNode FromXmlTreeNode(XmlTreeNode xNode, CheckboxTree cbTree) { - TreeNode node = new TreeNode(xNode.Text, xNode.NodeID, cbTree.ImagesRootPath + xNode.Icon, xNode.Action, ""); - node.ImageUrl = ""; - - node.PopulateOnDemand = (string.IsNullOrEmpty(xNode.Source) ? false : true); - //node.SelectAction = (string.IsNullOrEmpty(xNode.Source) ? TreeNodeSelectAction.Select : TreeNodeSelectAction.Expand); - node.SelectAction = TreeNodeSelectAction.None; - - string nodeMarkup = ""; - - //add our custom checkbox - if (cbTree.ShowCheckBoxes) - nodeMarkup += string.Format("", - "chk" + node.Value, node.Value, cbTree.OnClientNodeChecked); - - if (xNode.Icon.StartsWith(".")) { - nodeMarkup += "
"; - } else { - nodeMarkup += ""; - } - - //show the node as being not published - if (xNode.NotPublished.Value) - nodeMarkup += string.Format("{1}", cbTree.UnpublishedColor, node.Text); - else { - nodeMarkup += string.Format("{0}", node.Text); - } - - node.Text = nodeMarkup; - - return node; - } - - /* - /// - /// Populates child nodes on demand - /// - /// - /// - protected void objTree_TreeNodePopulate(object sender, TreeNodeEventArgs e) { - XmlTree xTree = GetNodeData(int.Parse(e.Node.Value)); - TreeNodeCollection nodes = FromXmlTree(xTree, e.Node); - foreach (TreeNode node in nodes) - e.Node.ChildNodes.Add(node); - } */ - } - -} diff --git a/OLD/umbraco.Legacy/umbraco/controls/progressBar.cs b/OLD/umbraco.Legacy/umbraco/controls/progressBar.cs deleted file mode 100644 index 0c9bde5614..0000000000 --- a/OLD/umbraco.Legacy/umbraco/controls/progressBar.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; - - -namespace umbraco.controls -{ - /// - /// Summary description for progressBar. - /// - public class progressBar : System.Web.UI.WebControls.WebControl - { - public progressBar() - { - } - - - protected override void Render(System.Web.UI.HtmlTextWriter writer) - { - writer.WriteLine("


"); - } - - - } -} diff --git a/OLD/umbraco.Legacy/umbraco/controls/windowCloser.cs b/OLD/umbraco.Legacy/umbraco/controls/windowCloser.cs deleted file mode 100644 index d3b97354b2..0000000000 --- a/OLD/umbraco.Legacy/umbraco/controls/windowCloser.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.ComponentModel; - -namespace umbraco.controls -{ - /// - /// Summary description for windowCloser. - /// - [DefaultProperty("Text"), - ToolboxData("<{0}:windowCloser runat=server>")] - public class windowCloser : System.Web.UI.WebControls.WebControl - { - private string text; - private string secondText; - private string seconds; - - [Bindable(true), - Category("Appearance"), - DefaultValue("")] - public string Text - { - get - { - return text; - } - - set - { - text = value; - } - } - [Bindable(true), - Category("Appearance"), - DefaultValue("")] - public string SecondText - { - get - { - return secondText; - } - - set - { - secondText = value; - } - } - [Bindable(true), - Category("Appearance"), - DefaultValue("")] - public string Seconds - { - get - { - return seconds; - } - - set - { - seconds = value; - } - } - - protected override void OnInit(EventArgs e) - { - Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "windowCloser", ""); - base.OnInit (e); - } - - /// - /// Render this control to the output parameter specified. - /// - /// The HTML writer to write out to - protected override void Render(HtmlTextWriter output) - { -output.Write(text + " " + seconds + " " + secondText + "...\n\n"); - } - } -} diff --git a/OLD/umbraco.Legacy/umbraco/css/buttonbg.gif b/OLD/umbraco.Legacy/umbraco/css/buttonbg.gif deleted file mode 100644 index 6268a1bc0d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/css/buttonbg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/css/buttonbgdown.gif b/OLD/umbraco.Legacy/umbraco/css/buttonbgdown.gif deleted file mode 100644 index 8c6bcbe03f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/css/buttonbgdown.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/css/cbback.gif b/OLD/umbraco.Legacy/umbraco/css/cbback.gif deleted file mode 100644 index 467da46f25..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/css/cbback.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/css/modal.css b/OLD/umbraco.Legacy/umbraco/css/modal.css deleted file mode 100644 index 2ecfc693ed..0000000000 --- a/OLD/umbraco.Legacy/umbraco/css/modal.css +++ /dev/null @@ -1,89 +0,0 @@ -#MB_overlay { - position: absolute; - margin: auto; - top: 0; left: 0; - width: 100%; height: 100%; - z-index: 9999; - background-color: #000!important; -} -#MB_overlay[id] { position: fixed; } - -#MB_window { - position: absolute; - top: 0; - border: 0 solid; - text-align: left; - z-index: 10000; -} -#MB_window[id] { position: fixed!important; } - -#MB_frame { - position: relative; - background-color: #fff; - height: 100%; -} - -#MB_header { - margin: 0; - padding: 0; -} - -#MB_content { - padding: 0px; - overflow: hidden; - height: 100%; -} - -#MB_caption { - font: bold 100% "Lucida Grande", Arial, sans-serif; - text-shadow: #FFF 0 1px 0; - padding: .5em 2em .5em .75em; - margin: 0; - text-align: left; -} - -#MB_close { - display: block; - position: absolute; - right: 5px; top: 4px; - padding: 2px 3px; - font-weight: bold; - text-decoration: none; - font-size: 13px; -} -#MB_close:hover { - background: transparent; -} - -#MB_loading { - padding: 1.5em; - text-indent: -10000px; - background: transparent url(spinner.gif) 50% 0 no-repeat; -} - -/* Color scheme */ -#MB_frame { - padding-bottom: 0px; -} -#MB_window { - background-color: #EFEFEF; - color: #000; -} - -#MB_content {border-top: 1px solid #F9F9F9; } - -#MB_header { - background: url(../images/modalGradiant.gif) repeat-x bottom #fff; - border-bottom: 1px solid #CCC; -} - -#MB_caption { color: #378080 } -#MB_close { color: #777 } -#MB_close:hover { color: #000 } - - -/* Alert message */ -.MB_alert { - margin: 10px 0; - text-align: center; -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/css/officexp.css b/OLD/umbraco.Legacy/umbraco/css/officexp.css deleted file mode 100644 index 3cb82efb14..0000000000 --- a/OLD/umbraco.Legacy/umbraco/css/officexp.css +++ /dev/null @@ -1,267 +0,0 @@ -/* menu body */ - -.menu-body { - color: Black; - margin: 0; - padding: 0; - overflow: hidden; - border: 0; - cursor: default; -} - -.menu-body .outer-border { - border: 1px solid #666666; - margin: 0; - padding: 0; - -} - -.menu-body .inner-border { - width: 100%; - - border: 1px solid #f9f8f7; - border-width: 1px 0 1px 0; - padding: 0 1px 0 1px; - margin: 0; - background: #f9f8f7 url("background.gif") repeat-y; -} - -/* menu body */ - -/*****************************************************************************/ - -/* menu items */ - -.menu-body td { - font: Menu; - color: Black; -} - -.menu-body .hover td { - background-color: #FFEEC2; -} - -.menu-body .disabled-hover td { - background-color: white; -} - -.menu-body td.empty-icon-cell { - padding: 2px; - border: 0; -} - -.menu-body td.empty-icon-cell span { - width: 16px; -} - -.menu-body td.icon-cell { - padding: 2px; - border: 0; -} - - -.menu-body td.icon-cell img { - width: 16px; - height: 16px; - margin: 0; -} - -.menu-body .hover td.icon-cell img { - filter: none; - position: relative; - left: 0px; - top: 0px; -} - - -.menu-body .disabled-hover td.icon-cell img, -.menu-body .disabled td.icon-cell img { - display: static; - filter: Gray() Alpha(Opacity=40); -} - - -.menu-body .disabled-hover td.empty-icon-cell, -.menu-body .hover td.empty-icon-cell, -.menu-body .disabled-hover td.icon-cell, -.menu-body .hover td.icon-cell { - border: 1px solid #0A246A; - border-right: 0; - padding: 1px 2px 1px 1px; -} - -.menu-body td.label-cell { - width: 100%; - padding: 2px 5px 2px 5px; - border: 0; -} - -.menu-body .disabled-hover td.label-cell, -.menu-body .hover td.label-cell, -.menu-body .disabled-hover td.shortcut-cell, -.menu-body .hover td.shortcut-cell { - padding: 1px 5px 1px 5px; - border: 1px solid #0A246A; - border-left: 0; - border-right: 0; -} - -.menu-body td.shortcut-cell { - padding: 2px 5px 2px 5px; -} - -.menu-body td.arrow-cell { - width: 20px; - padding: 2px 2px 2px 0px; - font-family: Webdings,Lucida Grande; -} - -/* end menu items */ - -/*****************************************************************************/ - -/* disabled items */ - -.menu-body .disabled-hover td.arrow-cell, -.menu-body .hover td.arrow-cell { - padding: 1px 1px 1px 0px; - border: 1px solid #0A246A; - border-left: 0; -} - -.menu-body #scroll-up-item td, -.menu-body #scroll-down-item td { - font-family: Webdings !important; - text-align: center; - padding: 10px; -} - -.menu-body .disabled td { - color: #cccccc; -} - -.menu-body .disabled-hover td { background-color: white; - color: #cccccc; } /* end disabled items */ - -/*****************************************************************************/ - -/* separator */ - -.menu-body .separator td { - font-size: 0.001mm; - padding: 1px 0px 1px 27px; -} - -.menu-body .separator-line { - overflow: hidden; - border-top: 1px solid #dbd8d1; - height: 1px; -} - -/* end separator */ - -/*****************************************************************************/ - -/* Scroll buttons */ - -.menu-body #scroll-up-item, -.menu-body #scroll-down-item { - width: 100%; -} - -.menu-body #scroll-up-item td, -.menu-body #scroll-down-item td { - font-family: Webdings; - text-align: center; - padding: 1px 5px 1px 5px; -} - -.menu-body #scroll-up-item .disabled-hover td, -.menu-body #scroll-up-item .hover td, -.menu-body #scroll-down-item .disabled-hover td, -.menu-body #scroll-down-item .hover td { - border: 1px solid #0A246A; - padding: 0px 4px 0px 4px; -} - -/* End scroll buttons */ - -/*****************************************************************************/ - -/* radio and check box items */ - -.menu-body .checked { - padding: 0px; -} - -.menu-body .checked.hover { - padding: 0px; -} - -.menu-body .checked .check-box, -.menu-body .checked .radio-button { - display: inline-block; - font-family: Webdings; - overflow: hidden; - color: MenuText; - text-align: center; - vertical-align: center; - background-color: #b6bdd2; - border: 1px solid #0A246A; -} - -.menu-body .check-box { - width: 19px; - height: 19px; - font-size: 133%; - padding-bottom: 5px; - padding-left: 1px; -} - -.menu-body .radio-button { - width: 19px; - height: 19px; - font-size: 50%; - padding: 5px; -} - -/* end radio and check box items */ - -/*****************************************************************************/ - -/* Menu Bar */ - -.menu-bar { - background: ButtonFace; - cursor: default; - padding: 1px; -} - -.menu-bar .menu-button { - background: ButtonFace; - color: ButtonText; - font: Menu; - padding: 3px 7px 3px 7px; - border: 0; - margin: 0; - display: inline-block; - white-space: nowrap; - cursor: default; -} - -.menu-bar .menu-button.active { - background: #dbd8d1; - padding: 2px 6px 3px 6px; - border: 1px solid #666666; - border-bottom: 0; -} - -.menu-bar .menu-button.hover { - background: #b6bdd2; - padding: 2px 6px 2px 6px; - border-width: 1px; - border-style: solid; - border-color: #0A246A; -} - -/* End Menu Bar */ \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/css/umbContext.css b/OLD/umbraco.Legacy/umbraco/css/umbContext.css deleted file mode 100644 index 9d40c1d5c8..0000000000 --- a/OLD/umbraco.Legacy/umbraco/css/umbContext.css +++ /dev/null @@ -1,131 +0,0 @@ - #cmenu - { - background: #f0f0f0 url(../images/contextMenuBg.gif) repeat-y left; - border:1px solid #979797; - padding: 3px; - width: 180px; - } - - .menuicon,.menuiconon - { - cursor:pointer; - font-family:Arial,Lucida Grande; - font-size:11px; - height:20px; - margin:1px; - color: #1a1818; - } - - .menuicon { - padding:2px; - } - - .menuiconon { - padding:1px; - background:#dcecf3; - border: 1px solid #a8d8eb; - } - - #cmenu img { - height:16px; - width:16px; - margin:1px 10px 0 2px; - } - - #cmenu .splitter { - border-top: 1px solid #e0e0e0; - border-bottom: 1px solid #fff; - height:0px; - margin:4px 0px 4px 28px; - padding: 0px; - display:block; - width: 150px; - } - -/* css sprites */ -.menuSpr { - float: left; - background-image: url(../images/actions/sprites.png); - background-position: -7px -8px; - margin: 1px 13px 1px 0px; - margin-top: 1px; - width: 17px; - height: 16px; -} - -.sprNew { - background-position: -7px -339px; -} -.sprCreateFolder { - background-position: -7px -108px; -} -.sprSendToTranslate { - background-position: -7px -636px; -} -.sprBinEmpty { - background-position: -7px -42px; -} -.sprTranslate { - background-position: -7px -636px; -} -.sprSave { - background-position: -7px -603px; -} -.sprImportDocumentType { - background-position: -7px -273px; -} -.sprExportDocumentType { - background-position: -7px -240px; -} -.sprAudit { - background-position: -7px -8px; -} -.sprPackage2 { - background-position: -7px -405px; -} -.sprDelete { - background-position: -7px -174px; -} -.sprMove { - background-position: -7px -141px; -} -.sprCopy { - background-position: -7px -75px; -} -.sprSort { - background-position: -7px -670px; -} -.sprPermission { - background-position: -7px -438px; -} -.sprProtect { - background-position: -7px -471px; -} -.sprRollback { - background-position: -7px -570px; -} -.sprRefresh { - background-position: -7px -537px; -} -.sprNotify { - background-position: -7px -372px; -} -.sprUpdate { - background-position: -7px -603px; -} -.sprPublish { - background-position: -7px -504px; -} -.sprToPublish { - background-position: -7px -504px; -} -.sprLogout { - background-position: -7px -306px; -} -.sprDomain { - background-position: -7px -207px; -} - -.sprLiveEdit { - background-position: -7px -706px; -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/css/umbContext_background.gif b/OLD/umbraco.Legacy/umbraco/css/umbContext_background.gif deleted file mode 100644 index 21674f15d6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/css/umbContext_background.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/css/umbracoTabs.css b/OLD/umbraco.Legacy/umbraco/css/umbracoTabs.css deleted file mode 100644 index 64067ed3d6..0000000000 --- a/OLD/umbraco.Legacy/umbraco/css/umbracoTabs.css +++ /dev/null @@ -1,39 +0,0 @@ -.dynamic-tab-pane-control .tab-page { - height: 90%; -} - -.dynamic-tab-pane-control .tab-page .dynamic-tab-pane-control .tab-page { - height: 100px; -} - -html, body { - background: ThreeDFace; -} - -form { - margin: 0; - padding: 0; -} - -/* over ride styles from webfxlayout */ - -body { - margin: 10px; - width: auto; - height: auto; -} - -.dynamic-tab-pane-control h2 { - text-align: center; - width: auto; -} - -.dynamic-tab-pane-control h2 a { - display: inline; - width: auto; -} - -.dynamic-tab-pane-control a:hover { - background: transparent; -} - diff --git a/OLD/umbraco.Legacy/umbraco/css/xtree.css b/OLD/umbraco.Legacy/umbraco/css/xtree.css deleted file mode 100644 index 5b0825b691..0000000000 --- a/OLD/umbraco.Legacy/umbraco/css/xtree.css +++ /dev/null @@ -1,120 +0,0 @@ -.overlayHolder -{ - position: relative; - display: inline; -} - - -.treeOverlay -{ - filter: Alpha(Opacity=80); - position: absolute; - z-index: 500; - left: 8; - top: 6; -} - - -.newVersionOverlay -{ - position: absolute; - z-index: 500; - left: 0px; - top: 0px; - width: 8px; - height: 8px; - background: no-repeat url(../images/newVersion_overlay.png); - _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/newVersion_overlay.png'); -} - -.newProtectOverlay -{ - position: absolute; - z-index: 500; - left: 6px; - top: 9px; - width: 8px; - height: 8px; - background: no-repeat url(../images/protect_overlay.gif); - _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/protect_overlay.gif'); -} - -.webfx-tree-container -{ - margin: 0px; - padding: 0px; - font: icon; - white-space: nowrap; -} - -.webfx-tree-item -{ - padding: 0px 0px 4px 0px; - margin: 0px; - font: icon; - color: WindowText; - white-space: nowrap; - height: 16px; -} - -.webfx-tree-item a, .webfx-tree-item a:active, .webfx-tree-item a:hover -{ -} - - -.webfx-tree-item a -{ - color: #2f2f2f; - text-decoration: none; - outline: none; -} - -.webfx-tree-item a:hover -{ - text-decoration: underline; -} - -.webfx-tree-item a:active -{ - text-decoration: none; -} - -.webfx-tree-item img -{ - vertical-align: middle; - border: 0px; -} - -.webfx-tree-icon -{ - width: 16px; - height: 16px; - padding-right: 7px; -} - -.umbraco-tree-icon-grey -{ - filter: Alpha(Opacity=30); -} - - -/* -keep strong focus instead of different selector colors on inactive/active -.webfx-tree-item a.selected-inactive, .webfx-tree-item a.selected { - color: windowtext; - background: #e5e5e5; - border: 1px solid #d9d9d9; - padding: 2px; -} -*/ - - -.webfx-tree-item a.selected-inactive, .webfx-tree-item a.selected -{ - color: windowtext; - background: #d5effc; - border: 1px solid #99defd; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - padding: 1px; -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx deleted file mode 100644 index aa3ec162a1..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx +++ /dev/null @@ -1,71 +0,0 @@ -<%@ Page language="c#" Codebehind="editCell.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.editCell" %> - - - - umbraco :: <%=umbraco.ui.Text("defaultdialogs", "insertformfield", this.getUser())%>                                                                   - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "insertlink", this.getUser())%>

-
- - - - - - - - - - - - - - - -
- <%=umbraco.ui.Text("width")%> - - "> -
- <%=umbraco.ui.Text("justify")%> - - -
- <%=umbraco.ui.Text("justifyVertical")%> - - -

-   - -
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.cs deleted file mode 100644 index 18ab199bea..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - /// - /// Summary description for editCell. - /// - public partial class editCell : BasePages.UmbracoEnsuredPage - { - - protected void Page_Load(object sender, System.EventArgs e) - { - string[] aligns = {"", "left", "center", "right"}; - string[] valigns = {"", "top", "middle", "bottom"}; - - foreach(string s in aligns) - { - ListItem li = new ListItem(s, s); - if (s == helper.Request("align").ToLower()) - li.Selected = true; - tableAlign.Items.Add(li); - } - foreach(string s in valigns) - { - ListItem li = new ListItem(s, s); - if (s == helper.Request("valign").ToLower()) - li.Selected = true; - tableVAlign.Items.Add(li); - } - - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.designer.cs deleted file mode 100644 index 80584550b3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.designer.cs +++ /dev/null @@ -1,52 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class editCell { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - - /// - /// macroProperties control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable macroProperties; - - /// - /// tableAlign control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList tableAlign; - - /// - /// tableVAlign control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList tableVAlign; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.resx deleted file mode 100644 index dd0ea4d8e3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/editCell.aspx.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.0.0.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx deleted file mode 100644 index f3a55c737e..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx +++ /dev/null @@ -1,52 +0,0 @@ -<%@ Page language="c#" Codebehind="insertAnchor.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.insertAnchor" %> - - - - - umbraco :: <%=umbraco.ui.Text("defaultdialogs", "insertAnchor", this.getUser())%>                                                                   - - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "insertAnchor", this.getUser())%>

-
- - - - - -
- <%=umbraco.ui.Text("defaultdialogs", "anchorInsert", this.getUser())%> - - ">

- "> -   ')) window.close();" value="<%=umbraco.ui.Text("general", "cancel", this.getUser())%>"> -

- -
- - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.cs deleted file mode 100644 index 491fb4a221..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - /// - /// Summary description for insertAnchor. - /// - public partial class insertAnchor : BasePages.UmbracoEnsuredPage - { - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.designer.cs deleted file mode 100644 index 7ebd0a279c..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.designer.cs +++ /dev/null @@ -1,25 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class insertAnchor { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.resx deleted file mode 100644 index dd0ea4d8e3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertAnchor.aspx.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.0.0.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx deleted file mode 100644 index 48170306c5..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx +++ /dev/null @@ -1,165 +0,0 @@ -<%@ Page language="c#" Codebehind="insertFormField.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.insertFormField" %> - - - - umbraco :: <%=umbraco.ui.Text("buttons", "formFieldInsert", this.getUser())%>                                                                   - - - - - - - - - - - - -

<%=umbraco.ui.Text("buttons", "formFieldInsert", this.getUser())%>

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%=umbraco.ui.Text("type", this.getUser())%> - - - - - -
-
<%=umbraco.ui.Text("name", this.getUser())%> - - " size="40" class="guiInputText">
-
<%=umbraco.ui.Text("width", this.getUser())%> - " size="6" class="guiInputText" disabled>
-
<%=umbraco.ui.Text("height", this.getUser())%> - " size="6" class="guiInputText" disabled>
-
<%=umbraco.ui.Text("value", this.getUser())%> - " size="20" class="guiInputText">
-
<%=umbraco.ui.Text("reciept", this.getUser())%> - " size="20" class="guiInputText" disabled>
-
<%=umbraco.ui.Text("showPageOnSend", this.getUser())%> - " size="20" class="guiInputText" disabled>
-
- " class="inpButton" onClick="insertFormField();">
-
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.cs deleted file mode 100644 index cd579708f6..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - /// - /// Summary description for insertFormField. - /// - public partial class insertFormField : BasePages.UmbracoEnsuredPage - { - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.designer.cs deleted file mode 100644 index ddfa857ec9..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.designer.cs +++ /dev/null @@ -1,88 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class insertFormField { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - - /// - /// macroProperties control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable macroProperties; - - /// - /// formNavnLabel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableCell formNavnLabel; - - /// - /// formSizeLabel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableCell formSizeLabel; - - /// - /// formHeightLabel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableCell formHeightLabel; - - /// - /// formValueLabel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableCell formValueLabel; - - /// - /// formSendToLabel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableCell formSendToLabel; - - /// - /// formRedirectLabel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableCell formRedirectLabel; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.resx deleted file mode 100644 index dd0ea4d8e3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertFormField.aspx.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.0.0.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx deleted file mode 100644 index dfe56c8041..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx +++ /dev/null @@ -1,98 +0,0 @@ -<%@ Page language="c#" Codebehind="insertImage.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.insertImage" %> - - - - umbraco :: - <%=umbraco.ui.Text("defaultdialogs", "insertimage", this.getUser())%> - - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "insertimage",this.getUser())%>

-
- - - - - - - - - - -
- -
- - - - - - - - - -
- <%=umbraco.ui.Text("alternativeTextHelp")%> -
- -
- "/> -
- -
- - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.cs deleted file mode 100644 index 8572c5c3f6..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - public partial class insertImage : BasePages.UmbracoEnsuredPage - { - protected uicontrols.TabView tbv = new uicontrols.TabView(); - - - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - uicontrols.TabPage tp = tbv.NewTabPage(ui.Text("choose")); - tp.HasMenu = false; - tp.Controls.Add(new LiteralControl("
 
")); - uicontrols.TabPage tp2 = tbv.NewTabPage(ui.Text("create") + " " + ui.Text("new")); - - tp2.HasMenu = false; - tp2.Controls.Add(new LiteralControl("")); - PlaceHolder1.Controls.Add(tbv); - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - tbv.ID="tabview1"; - tbv.Width = 500; - tbv.Height = 290; - - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.designer.cs deleted file mode 100644 index 08c824034b..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.designer.cs +++ /dev/null @@ -1,52 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class insertImage { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - - /// - /// Table1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable Table1; - - /// - /// PlaceHolder1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1; - - /// - /// Table2 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable Table2; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.resx deleted file mode 100644 index b1fe6ff387..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertImage.aspx.resx +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - False - - - True - - - Private - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx deleted file mode 100644 index 0d36d5d0d3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx +++ /dev/null @@ -1,92 +0,0 @@ -<%@ Page language="c#" Codebehind="insertLink.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.insertLink" %> - - - - umbraco :: <%=umbraco.ui.Text("defaultdialogs", "insertlink", this.getUser())%>                                                                   - - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "insertlink", this.getUser())%>

-
- - - - - - - - - - - - - - - -
<%=umbraco.ui.Text("defaultdialogs", "link", this.getUser())%> -    - - "/>
<%=umbraco.ui.Text("defaultdialogs", "linknewwindow", this.getUser())%> - - - <%=umbraco.ui.Text("general", "yes", this.getUser())%> -
<%=umbraco.ui.Text("defaultdialogs", "linkinternal", this.getUser())%> - -
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.cs deleted file mode 100644 index 9b1a57a518..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - /// - /// Summary description for insertLink. - /// - public partial class insertLink : BasePages.UmbracoEnsuredPage - { - protected uicontrols.TabView tbv = new uicontrols.TabView(); - - protected void Page_Load(object sender, System.EventArgs e) - { - if (Request.QueryString["linkName"] != null) - { - string link = Request.QueryString["linkName"]; -// actualLink.Value = link; -// if (link.IndexOf("{#") > -1) -// linkText.Text = link.Substring(link.IndexOf(",")+1, link.Length-2-link.IndexOf(",")); -// else - linkText.Text = link; - } - - if (helper.Request("linkNewWindow") == "_blank") - linkNewWindow.Checked = true; - - - uicontrols.TabPage tp = tbv.NewTabPage(ui.Text("content")); - tp.HasMenu = false; - tp.Controls.Add(new LiteralControl("")); - uicontrols.TabPage tp2 = tbv.NewTabPage(ui.Text("media")); - tp2.HasMenu = false; - tp2.Controls.Add(new LiteralControl("")); - - ph.Controls.Add(tbv); - } - - public BusinessLogic.User GetUser() - { - return base.getUser(); - } - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - tbv.ID="tabview1"; - tbv.Width = 300; - tbv.Height = 250; - - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - - } - #endregion - - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.designer.cs deleted file mode 100644 index 8df6fb5602..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.designer.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class insertLink { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - - /// - /// macroProperties control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable macroProperties; - - /// - /// linkText control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox linkText; - - /// - /// actualLink control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlInputHidden actualLink; - - /// - /// linkNewWindow control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CheckBox linkNewWindow; - - /// - /// ph control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder ph; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.resx deleted file mode 100644 index 7f99b555bc..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertLink.aspx.resx +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - Private - - - False - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx deleted file mode 100644 index 335d297cf9..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx +++ /dev/null @@ -1,96 +0,0 @@ - <%@ Page language="c#" Codebehind="insertTextGen.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.insertTextGen" %> - - - - umbraco :: <%=umbraco.ui.Text("defaultdialogs", "insertgraphicheadline", this.getUser())%>                                                                   - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "insertgraphicheadline", this.getUser())%>

-
- - - - - - - - - - - - - - - - - - - - - - - -
<%=umbraco.ui.Text("graphicheadline", "text", this.getUser())%> -    -
<%=umbraco.ui.Text("graphicheadline", "font", this.getUser())%> - - - : -
- - <%=umbraco.ui.Text("graphicheadline", "bold", this.getUser())%> -
<%=umbraco.ui.Text("graphicheadline", "color", this.getUser())%> - -
<%=umbraco.ui.Text("graphicheadline", "backgroundcolor", this.getUser())%> - -
- -
-
- - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.cs deleted file mode 100644 index 3daf88b2d9..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; -using System.Xml; - -namespace umbraco.dialogs -{ - /// - /// Summary description for insertTextGen. - /// - public partial class insertTextGen : BasePages.UmbracoEnsuredPage - { - - - - - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - - // Load form config file - XmlDocument fontConfig = new XmlDocument(); - fontConfig.Load(IO.IOHelper.MapPath(IO.SystemDirectories.Umbraco + "/config/fonts/fonts.xml")); - - foreach (XmlNode font in fontConfig.SelectSingleNode("//fonts")) - fontList.Items.Add(new ListItem(font.FirstChild.Value, font.Attributes.GetNamedItem("filename").Value)); - foreach (XmlNode fontSize in fontConfig.SelectSingleNode("//sizes")) - fontSizeList.Items.Add(new ListItem(fontSize.FirstChild.Value)); - - ArrayList _colors = new ArrayList(); - ArrayList _bgColors = new ArrayList(); - foreach (XmlNode color in fontConfig.SelectSingleNode("//colors")) - _colors.Add(new ListItem(color.FirstChild.Value)); - foreach (XmlNode bgColor in fontConfig.SelectSingleNode("//bgcolors")) - _bgColors.Add(new ListItem(bgColor.FirstChild.Value)); - PlaceholderColor.Controls.Add(colorRange(_colors, "pickerColor")); - PlaceHolderBgColor.Controls.Add(colorRange(_bgColors, "pickerBgColor")); - - } - - private Control colorRange(ArrayList Colors, string Alias) - { - Control _colors = new Control(); - _colors.Controls.Add(new LiteralControl("")); - _colors.Controls.Add(new LiteralControl("  " + ui.Text("choose") + ": ")); - foreach (object color in Colors) - { - _colors.Controls.Add( - new LiteralControl("")); - } - - return _colors; - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.designer.cs deleted file mode 100644 index dc4f29ef7b..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.designer.cs +++ /dev/null @@ -1,88 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class insertTextGen { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - - /// - /// macroProperties control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable macroProperties; - - /// - /// Text control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox Text; - - /// - /// fontList control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList fontList; - - /// - /// fontSizeList control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList fontSizeList; - - /// - /// isBold control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CheckBox isBold; - - /// - /// PlaceholderColor control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder PlaceholderColor; - - /// - /// PlaceHolderBgColor control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolderBgColor; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.resx deleted file mode 100644 index b1fe6ff387..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/insertTextGen.aspx.resx +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - False - - - True - - - Private - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx deleted file mode 100644 index db6d87523b..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx +++ /dev/null @@ -1,16 +0,0 @@ -<%@ Page language="c#" MasterPageFile="../masterpages/umbracoDialog.Master" Codebehind="modalHolder.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.modalHolder" %> - - - - - - - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx.cs deleted file mode 100644 index e226ecb8f9..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - /// - /// Summary description for modalHolder. - /// - public partial class modalHolder : System.Web.UI.Page - { - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx.designer.cs deleted file mode 100644 index 281f822aa2..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/modalHolder.aspx.designer.cs +++ /dev/null @@ -1,16 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3053 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class modalHolder { - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx b/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx deleted file mode 100644 index 73357aba36..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx +++ /dev/null @@ -1,59 +0,0 @@ -<%@ Page language="c#" Codebehind="paste.aspx.cs" AutoEventWireup="True" Inherits="umbraco.dialogs.paste" %> - - - - - umbraco :: <%=umbraco.ui.Text("defaultdialogs", "paste", this.getUser())%>                                                                   - - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "paste", this.getUser())%>

-
- - - -
- - <%=umbraco.ui.Text("paste", "errorMessage", this.getUser())%>

-
-
-
-
- "> -

- -
- - - diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.cs b/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.cs deleted file mode 100644 index 64dfcce569..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.dialogs -{ - /// - /// Summary description for paste. - /// - public partial class paste : BasePages.UmbracoEnsuredPage - { - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.designer.cs deleted file mode 100644 index 29ace86390..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.designer.cs +++ /dev/null @@ -1,16 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.dialogs { - - - public partial class paste { - } -} diff --git a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.resx b/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.resx deleted file mode 100644 index dd0ea4d8e3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/dialogs/paste.aspx.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.0.0.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/L.gif b/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/L.gif deleted file mode 100644 index 6705b809c0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/L.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/Lminus.gif b/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/Lminus.gif deleted file mode 100644 index d62372d625..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/Lminus.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/Lplus.gif b/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/Lplus.gif deleted file mode 100644 index 844a2222b0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/__TODELETE__xp/Lplus.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxbody-l.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxbody-l.png deleted file mode 100644 index 1bd3e96a72..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxbody-l.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxbody-r.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxbody-r.png deleted file mode 100644 index b4e9a046f1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxbody-r.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxhead-l.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxhead-l.png deleted file mode 100644 index 0070f3e44a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxhead-l.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxhead-r.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxhead-r.png deleted file mode 100644 index 7a016e8107..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/boxhead-r.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bg-white.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bg-white.png deleted file mode 100644 index bb42f43069..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bg-white.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bg.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bg.png deleted file mode 100644 index e4c2d6357f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bg.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bot-white.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bot-white.png deleted file mode 100644 index 0ab6fe80bb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bot-white.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bot.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bot.png deleted file mode 100644 index b24ee27283..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/container_bot.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/backgrounds/create.png b/OLD/umbraco.Legacy/umbraco/images/backgrounds/create.png deleted file mode 100644 index 25c52245eb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/backgrounds/create.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/delcell.GIF b/OLD/umbraco.Legacy/umbraco/images/cMenu/delcell.GIF deleted file mode 100644 index 21eacbcf1d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/delcell.GIF and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/delcol.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/delcol.gif deleted file mode 100644 index dd45165d9b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/delcol.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/delrow.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/delrow.gif deleted file mode 100644 index b0ed32d677..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/delrow.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editA.GIF b/OLD/umbraco.Legacy/umbraco/images/cMenu/editA.GIF deleted file mode 100644 index d8bafe3915..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editA.GIF and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignCenter.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignCenter.gif deleted file mode 100644 index 4447f7c8cd..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignCenter.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignLeft.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignLeft.gif deleted file mode 100644 index 8f244a1c98..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignLeft.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignReset.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignReset.gif deleted file mode 100644 index 6b3588a9c8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignReset.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignRight.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignRight.gif deleted file mode 100644 index 9499e134cb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editAlignRight.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editCel.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editCel.gif deleted file mode 100644 index 86fbe069f6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editCel.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editClass.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editClass.gif deleted file mode 100644 index c4ac22b0d9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editClass.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editImageAlignLeft.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editImageAlignLeft.gif deleted file mode 100644 index 0d02967382..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editImageAlignLeft.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editImageAlignRight.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editImageAlignRight.gif deleted file mode 100644 index d77fa8a002..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editImageAlignRight.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editImg.GIF b/OLD/umbraco.Legacy/umbraco/images/cMenu/editImg.GIF deleted file mode 100644 index 4d3142b5b2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editImg.GIF and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/editMacro.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/editMacro.gif deleted file mode 100644 index ae9989b67c..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/editMacro.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/edittable.GIF b/OLD/umbraco.Legacy/umbraco/images/cMenu/edittable.GIF deleted file mode 100644 index 467a1b9672..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/edittable.GIF and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/inscell.GIF b/OLD/umbraco.Legacy/umbraco/images/cMenu/inscell.GIF deleted file mode 100644 index ff49bed4bf..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/inscell.GIF and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/inscol.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/inscol.gif deleted file mode 100644 index efaaba107a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/inscol.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/insrow.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/insrow.gif deleted file mode 100644 index b4b7077749..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/insrow.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/mrgcell.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/mrgcell.gif deleted file mode 100644 index ab892734b3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/mrgcell.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/properties.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/properties.gif deleted file mode 100644 index d9f67a89c6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/properties.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/cMenu/spltcell.gif b/OLD/umbraco.Legacy/umbraco/images/cMenu/spltcell.gif deleted file mode 100644 index 238892d9b1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/cMenu/spltcell.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/custom/dguBox.gif b/OLD/umbraco.Legacy/umbraco/images/custom/dguBox.gif deleted file mode 100644 index 7d2b02ddd6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/custom/dguBox.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/custom/noColor.gif b/OLD/umbraco.Legacy/umbraco/images/custom/noColor.gif deleted file mode 100644 index 24e8430256..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/custom/noColor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/install/config_bg_left.png b/OLD/umbraco.Legacy/umbraco/images/install/config_bg_left.png deleted file mode 100644 index c63aa7193e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/install/config_bg_left.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/install/config_bg_right.png b/OLD/umbraco.Legacy/umbraco/images/install/config_bg_right.png deleted file mode 100644 index b0d98cbf37..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/install/config_bg_right.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/install/config_bottom.png b/OLD/umbraco.Legacy/umbraco/images/install/config_bottom.png deleted file mode 100644 index d3dc9ab106..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/install/config_bottom.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/bin.png b/OLD/umbraco.Legacy/umbraco/images/tree/bin.png deleted file mode 100644 index e7a32d3de7..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/bin.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/bin_closed.png b/OLD/umbraco.Legacy/umbraco/images/tree/bin_closed.png deleted file mode 100644 index afe22ba99e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/bin_closed.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/bin_empty.png b/OLD/umbraco.Legacy/umbraco/images/tree/bin_empty.png deleted file mode 100644 index 7d7dd1b221..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/bin_empty.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/db.gif b/OLD/umbraco.Legacy/umbraco/images/tree/db.gif deleted file mode 100644 index 77c7e1b870..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/db.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/doc.gif b/OLD/umbraco.Legacy/umbraco/images/tree/doc.gif deleted file mode 100644 index db7c7650f0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/doc.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/edit1.gif b/OLD/umbraco.Legacy/umbraco/images/tree/edit1.gif deleted file mode 100644 index 266f205024..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/edit1.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/edit2.gif b/OLD/umbraco.Legacy/umbraco/images/tree/edit2.gif deleted file mode 100644 index 9490679329..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/edit2.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/file.gif b/OLD/umbraco.Legacy/umbraco/images/tree/file.gif deleted file mode 100644 index ccf731c129..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/file.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/fileFolder.gif b/OLD/umbraco.Legacy/umbraco/images/tree/fileFolder.gif deleted file mode 100644 index e912b72949..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/fileFolder.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/folder.gif b/OLD/umbraco.Legacy/umbraco/images/tree/folder.gif deleted file mode 100644 index fd39f01f46..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/folder.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/folder2.gif b/OLD/umbraco.Legacy/umbraco/images/tree/folder2.gif deleted file mode 100644 index 9abd1e1d35..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/folder2.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/folder_o.gif b/OLD/umbraco.Legacy/umbraco/images/tree/folder_o.gif deleted file mode 100644 index 3e1cb3e877..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/folder_o.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/help.gif b/OLD/umbraco.Legacy/umbraco/images/tree/help.gif deleted file mode 100644 index 2a69fc52d8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/help.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/hjerte.gif b/OLD/umbraco.Legacy/umbraco/images/tree/hjerte.gif deleted file mode 100644 index 60573df6b4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/hjerte.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/home.gif b/OLD/umbraco.Legacy/umbraco/images/tree/home.gif deleted file mode 100644 index 0edaba645c..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/home.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconF.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconF.gif deleted file mode 100644 index 4b548ddb8e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconF.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_off.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconF_off.gif deleted file mode 100644 index d5025e86cc..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_off.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_on.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconF_on.gif deleted file mode 100644 index 8ee3a5d200..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_on.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_open.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconF_open.gif deleted file mode 100644 index b5cec9b431..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_open.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_open_on.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconF_open_on.gif deleted file mode 100644 index 713aacbe6a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconF_open_on.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconT.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconT.gif deleted file mode 100644 index 71b8c81a34..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconT.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/iconT_full.gif b/OLD/umbraco.Legacy/umbraco/images/tree/iconT_full.gif deleted file mode 100644 index 859656e101..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/iconT_full.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/icon_txt.gif b/OLD/umbraco.Legacy/umbraco/images/tree/icon_txt.gif deleted file mode 100644 index 284c18e812..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/icon_txt.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/icon_txt_on.gif b/OLD/umbraco.Legacy/umbraco/images/tree/icon_txt_on.gif deleted file mode 100644 index e577992258..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/icon_txt_on.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/icontids.gif b/OLD/umbraco.Legacy/umbraco/images/tree/icontids.gif deleted file mode 100644 index 05d4d3eec3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/icontids.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/nada.gif b/OLD/umbraco.Legacy/umbraco/images/tree/nada.gif deleted file mode 100644 index a5a99828b8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/nada.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/pic.gif b/OLD/umbraco.Legacy/umbraco/images/tree/pic.gif deleted file mode 100644 index 7335c857be..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/pic.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/picfolder.gif b/OLD/umbraco.Legacy/umbraco/images/tree/picfolder.gif deleted file mode 100644 index 011a0139b4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/picfolder.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/search.gif b/OLD/umbraco.Legacy/umbraco/images/tree/search.gif deleted file mode 100644 index 38793a5897..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/search.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/start.gif b/OLD/umbraco.Legacy/umbraco/images/tree/start.gif deleted file mode 100644 index 53b66096b6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/start.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/t.gif b/OLD/umbraco.Legacy/umbraco/images/tree/t.gif deleted file mode 100644 index c3e4d01432..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/t.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/tr.gif b/OLD/umbraco.Legacy/umbraco/images/tree/tr.gif deleted file mode 100644 index 908a2a69df..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/tr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/trb.gif b/OLD/umbraco.Legacy/umbraco/images/tree/trb.gif deleted file mode 100644 index 1ddc3c4911..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/trb.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/trbm.gif b/OLD/umbraco.Legacy/umbraco/images/tree/trbm.gif deleted file mode 100644 index 35d0965be8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/trbm.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/trbp.gif b/OLD/umbraco.Legacy/umbraco/images/tree/trbp.gif deleted file mode 100644 index d7793f5df8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/trbp.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/trm.gif b/OLD/umbraco.Legacy/umbraco/images/tree/trm.gif deleted file mode 100644 index 37d16225a8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/trm.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/trp.gif b/OLD/umbraco.Legacy/umbraco/images/tree/trp.gif deleted file mode 100644 index e352de1877..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/trp.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc.gif deleted file mode 100644 index 40979d436a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc2.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc2.gif deleted file mode 100644 index e8ca3e76d1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc2.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc3.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc3.gif deleted file mode 100644 index 520ecc7cf1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc3.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc4.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc4.gif deleted file mode 100644 index 73fa29a81b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc4.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc5.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc5.gif deleted file mode 100644 index 7150c74de6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/doc5.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/folder.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/folder.gif deleted file mode 100644 index a1887eb8c4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/folder.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/folder_o.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/folder_o.gif deleted file mode 100644 index e906f21ada..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/folder_o.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaFile.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaFile.gif deleted file mode 100644 index a2f8f6e3a9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaFile.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaMovie.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaMovie.gif deleted file mode 100644 index 903261eea1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaMovie.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaMulti.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaMulti.gif deleted file mode 100644 index 1f63d6221f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaMulti.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaPhoto.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaPhoto.gif deleted file mode 100644 index 6decee8367..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/mediaPhoto.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/member.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/member.gif deleted file mode 100644 index 7d81e654d6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/member.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/memberType.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/memberType.gif deleted file mode 100644 index b97fb097b1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/memberType.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/newsletter.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/newsletter.gif deleted file mode 100644 index 07b127c37b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/newsletter.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingAgent.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingAgent.gif deleted file mode 100644 index 2cda7b08d8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingAgent.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingCss.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingCss.gif deleted file mode 100644 index 64df987eb3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingCss.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingDatatype.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingDatatype.gif deleted file mode 100644 index 02bcba9798..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingDatatype.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingMacro.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingMacro.gif deleted file mode 100644 index 2ad8a722fb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingMacro.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingTemplate.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingTemplate.gif deleted file mode 100644 index c2b633e9fd..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/settingTemplate.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/user.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/user.gif deleted file mode 100644 index 9b6edd62e3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/user.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/userGroup.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/userGroup.gif deleted file mode 100644 index 5eb76affa7..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/userGroup.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/userType.gif b/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/userType.gif deleted file mode 100644 index 5425d17ca2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/umbraco/userType.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/tree/wait.gif b/OLD/umbraco.Legacy/umbraco/images/tree/wait.gif deleted file mode 100644 index 2c0f25eccf..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/tree/wait.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/umbraco.gif b/OLD/umbraco.Legacy/umbraco/images/umbraco.gif deleted file mode 100644 index 3c5b4e2ad9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/umbraco.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/umbraco.png b/OLD/umbraco.Legacy/umbraco/images/umbraco.png deleted file mode 100644 index 691cb7a534..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/umbraco.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/umbracoField.gif b/OLD/umbraco.Legacy/umbraco/images/umbracoField.gif deleted file mode 100644 index 6b058253bd..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/umbracoField.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/umbracoScriptlet.gif b/OLD/umbraco.Legacy/umbraco/images/umbracoScriptlet.gif deleted file mode 100644 index 47423b2c24..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/umbracoScriptlet.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/undo.small.png b/OLD/umbraco.Legacy/umbraco/images/undo.small.png deleted file mode 100644 index fe9d0782a6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/undo.small.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/uploadTranslation.png b/OLD/umbraco.Legacy/umbraco/images/uploadTranslation.png deleted file mode 100644 index a7702e6499..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/uploadTranslation.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/versions.png b/OLD/umbraco.Legacy/umbraco/images/versions.png deleted file mode 100644 index 13dcc8cf20..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/versions.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/images/wait.gif b/OLD/umbraco.Legacy/umbraco/images/wait.gif deleted file mode 100644 index 2c0f25eccf..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco/images/wait.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco/js/contentContextmenu.js b/OLD/umbraco.Legacy/umbraco/js/contentContextmenu.js deleted file mode 100644 index 814c530fd9..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/contentContextmenu.js +++ /dev/null @@ -1,183 +0,0 @@ - -// set css file to use for menus -cssFile = "css/officexp.css" -Menu.prototype.cssFile = cssFile; - -var tmp; - -// Build context menu - - -var oldOpenState = null; // used to only change when needed -var lastKeyCode = 0; - -function rememberKeyCode() { - lastKeyCode = window.event.keyCode; -} - -function showContextMenu() { - if (parent.nodeID != '-1' && parent.nodeType != '') { - - var el = window.event.srcElement; - - var macroElement = null; - - // check for edit - var showEditMenu = true //el != null && - // (el.tagName == "INPUT" || el.tagName == "TEXTAREA" || el.tagName == "DIV"); - - - var elList = ', '; - var hasTable = false; - // check for anchor - while ( el != null && el.tagName != "BODY") { - if (el.tagName == "TABLE") - hasTable = true; - - // New 2.1 macro checker - if (el.tagName == 'IMG' || el.tagName == 'DIV') { - var elementAttributeList = ''; - for (var temp=0; temp -1 || elementAttributeList.indexOf('ismacro:') > -1) { - elList = ', MACRO, '; - macroElement = el; - break; - } - else if (!hasTable && el.tagName != 'DIV') - elList += 'IMG' + ', '; - } else { - if (!hasTable && el.tagName != "BODY") { - elList += el.tagName + ', '; - } - } - - el = el.parentNode; - } - - ////////////////////////////////////////////////////////// - // Vi bygger menu'en udfra elementListen! - ////////////////////////////////////////////////////////// - var eMenu = new Menu() - - // foerst standard funktioner - if (elList.indexOf(', IMG,') == -1 && elList.indexOf(', MACRO,') == -1) { - eMenu.add( resetItem = new MenuItem( "Reset paragraph", function () { umbracoAlign(el, "") }, "images/cMenu/editAlignReset.gif" ) ); - eMenu.add( leftItem = new MenuItem( "Align left", function () { umbracoAlign(el, "left") }, "images/cMenu/editAlignLeft.gif" ) ); - eMenu.add( centerItem = new MenuItem( "Center", function () { umbracoAlign(el, "center") }, "images/cMenu/editAlignCenter.gif" ) ); - eMenu.add( rightItem = new MenuItem( "Align right", function () { umbracoAlign(el, "right") }, "images/cMenu/editAlignRight.gif" ) ); - } - - // TAG: A - link - if (elList.indexOf(', A,') > -1) { - eMenu.add( new MenuSeparator() ); - eMenu.add( linkItem = new MenuItem( "Edit Link", function () { umbracoEditA(el) }, "images/cMenu/editA.gif" ) ); - linkItem.mnemonic = "l"; - } - - // TAG: IMG - Billede - if (elList.indexOf(', IMG,') > -1) { - eMenu.add( new MenuSeparator() ); - eMenu.add( resetItem = new MenuItem( "Reset image", function () { umbracoAlign(el, "") }, "images/cMenu/editAlignReset.gif" ) ); - eMenu.add( leftItem = new MenuItem( "Align image left", function () { umbracoAlign(el, "left") }, "images/cMenu/editImageAlignLeft.gif" ) ); - eMenu.add( rightItem = new MenuItem( "Align image right", function () { umbracoAlign(el, "right") }, "images/cMenu/editImageAlignRight.gif" ) ); -// eMenu.add( new MenuSeparator() ); -// eMenu.add( imgItem = new MenuItem( "Rediger Billede", function () { umbracoEditImg(el) }, "images/cMenu/editImg.gif" ) ); -// imgItem.mnemonic = "b"; - } - - // TAG: MACRO - Makro - if (elList.indexOf(', MACRO,') > -1) { - eMenu.add( new MenuSeparator() ); - eMenu.add( macroItem = new MenuItem( "Edit Macro", function () { umbracoEditMacro(macroElement) }, "images/cMenu/editMacro.gif" ) ); - macroItem.mnemonic = "m"; - } - - // TAG: P, SPAN, DIV - Elementer hvor det er class/style som skal redigeres - if (elList.indexOf(', P,') > -1 || elList.indexOf(', SPAN,') > -1 || elList.indexOf(', DIV,') > -1) { -// eMenu.add( classItem = new MenuItem( "Rediger Formatering", function () { umbracoEditClass(el) }, "images/cMenu/editClass.gif" ) ); -// classItem.mnemonic = "f"; - } - - // TAG: TD, TR, TABLE - Tabel-redigering - if (elList.indexOf(', TD,') > -1 || elList.indexOf(', TR,') > -1 || elList.indexOf(', TABLE,') > -1) { - eMenu.add( new MenuSeparator() ); - -/* eMenu.add( tableItem = new MenuItem( "Rediger Tabel", function () { umbracoEditTable(el) }, "images/cMenu/editTable.gif" ) ); - tableItem.mnemonic = "t"; - - // Evt. ogsaa cell-edit - if (elList.indexOf(', TD,') > -1) { - eMenu.add( cellItem = new MenuItem( "Rediger Celle", function () { umbracoEditCell(el) }, "images/cMenu/editcel.gif" ) ); - cellItem.mnemonic = "c"; - } - eMenu.add( new MenuSeparator() ); -*/ - - eMenu.add( cellItem = new MenuItem( "Insert row", function () { umbracoAddRow(el) }, "images/cMenu/insrow.gif" ) ); - eMenu.add( cellItem = new MenuItem( "Insert column", function () { umbracoAddCol(el) }, "images/cMenu/inscol.gif" ) ); - eMenu.add( new MenuSeparator() ); - eMenu.add( cellItem = new MenuItem( "Remove row", function () { umbracoDeleteRow(el) }, "images/cMenu/delRow.gif" ) ); - eMenu.add( cellItem = new MenuItem( "Remove column", function () { umbracoDeleteCol(el) }, "images/cMenu/delcol.gif" ) ); - eMenu.add( new MenuSeparator() ); - eMenu.add( cellItem = new MenuItem( "Split cells", function () { umbracoSplitCell(el) }, "images/cMenu/spltCell.gif" ) ); - eMenu.add( cellItem = new MenuItem( "Collect cells", function () { umbracoGlueCell(el) }, "images/cMenu/mrgCell.gif" ) ); - - // Evt. ogs cell-edit - if (elList.indexOf(', TD,') > -1) { - eMenu.add( cellItem = new MenuItem( "Edit Cell", function () { umbracoEditCell(el) }, "/umbraco/images/cMenu/editcel.gif" ) ); - cellItem.mnemonic = "c"; - } - - } - - - ////////////////////////////////////////////////////////// - // Slut paa at bygge menu - ////////////////////////////////////////////////////////// - - - var showOpenItems = el != null && el.tagName == "A"; - - if ( showOpenItems != oldOpenState ) { - oldOpenState = showOpenItems; - } - - if ( showOpenItems ) { - openItem.action = openNewWinItem.action = el.href; - } - - // find left and top - var left, top; - - if ( showEditMenu ) - el = window.event.srcElement; - else if ( !showOpenItems ) - el = document.documentElement; - - if ( lastKeyCode == 93 ) { // context menu key - left = posLib.getScreenLeft( el ); - top = posLib.getScreenTop( el ); - } - else { - left = window.event.screenX; - top = window.event.screenY; - } - - eMenu.invalidate(); - eMenu.show( left, top ); - - event.returnValue = false; - lastKeyCode = 0 - } -}; - -var functionsFrame = parent.parent.right; -var tabFrame = functionsFrame; -//tabFrame.initializeHasChanged(); - -document.attachEvent( "oncontextmenu", showContextMenu ); diff --git a/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx b/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx deleted file mode 100644 index a2c1b1215e..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx +++ /dev/null @@ -1,53 +0,0 @@ -<%@ Page language="c#" Codebehind="contextmenu.aspx.cs" AutoEventWireup="True" Inherits="umbraco.js.contextmenu" %> - -function showContextMenu(el) { - menu.el = el; - if (parent.nodeType != '') { - var menuContent = parent.nodeMenu; - var menuitems = new Array(); - if (menuContent) { - for (var i=0;i - /// Summary description for contextmenu. - /// - public partial class contextmenu : BasePages.UmbracoEnsuredPage - { - protected void Page_Load(object sender, System.EventArgs e) - { - Response.ContentType = "text/javascript"; - Response.Write(new BusinessLogic.Actions.Action().ReturnJavascript(System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName)); - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx.designer.cs deleted file mode 100644 index 44fed24bbc..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx.designer.cs +++ /dev/null @@ -1,16 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3053 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.js { - - - public partial class contextmenu { - } -} diff --git a/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx.resx b/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx.resx deleted file mode 100644 index dd0ea4d8e3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/contextmenu.aspx.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.0.0.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/OLD/umbraco.Legacy/umbraco/js/contextmenu.js b/OLD/umbraco.Legacy/umbraco/js/contextmenu.js deleted file mode 100644 index bcc6197141..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/contextmenu.js +++ /dev/null @@ -1,115 +0,0 @@ - -// set css file to use for menus -cssFile = "css/officexp.css" -Menu.prototype.cssFile = cssFile; - -var tmp; - -// Build array of menu methods -var menuMethods = new Array( - menuItem("C", "new.gif", "Create", "createNew()"), - menuItem("D", "delete.small.png", "Delete", "deleteThis()"), - menuItem("M", "cut.small.png", "Move", "moveThis()"), - menuItem("O", "copy.small.png", "Copy", "copyThis()"), - menuItem("S", "sort.png", "Sort", "sortThis()"), - menuItem("R", "permission.png", "Rights", "permissionThis()"), - menuItem("P", "protect.png", "Public access", "accessThis()"), - menuItem("L", "refresh.png", "Reload", "refreshNode()") ); - -// edit menu - -var undoItem, cutItem, copyItem, pasteItem, deleteItem, selectAllItem; - -var oldOpenState = null; // used to only change when needed -var lastKeyCode = 0; - -function rememberKeyCode() { - lastKeyCode = window.event.keyCode; -} - -function showContextMenu() { - var eMenu = new Menu() - if (parent.nodeID != '-1' && parent.nodeType != '') { - - var menuItems = parent.nodeMenu; - - for (var i=0;i 40 ) return true; - - var d = new Date( dp._selectedDate ).valueOf(); - if ( kc == 37 ) // left - d -= 24 * 60 * 60 * 1000; - else if ( kc == 39 ) // right - d += 24 * 60 * 60 * 1000; - else if ( kc == 38 ) // up - d -= 7 * 24 * 60 * 60 * 1000; - else if ( kc == 40 ) // down - d += 7 * 24 * 60 * 60 * 1000; - - dp.setDate( new Date( d ) ); - return false; - } - - // ie6 extension - this._el.onmousewheel = function ( e ) { - if ( e == null ) e = doc.parentWindow.event; - var n = - e.wheelDelta / 120; - var d = new Date( dp._selectedDate ); - var m = d.getMonth() + n; - d.setMonth( m ); - - - dp._dontChangeNone = true; - dp.setDate( d ); - dp._dontChangeNone = false; - - return false; - } - - return this._el; -}; - -DatePicker.prototype.setDate = function ( oDate ) { - - this._hideLabelPopup(); - - // if null then set None - if ( oDate == null ) { - if ( !this._none ) { - this._none = true; - this._setTopLabel(); - this._updateTable(); - - if ( typeof this.onchange == "function" ) - this.onchange(); - } - return; - } - - // if string or number create a Date object - if ( typeof oDate == "string" || typeof oDate == "number" ) { - oDate = new Date( oDate ); - } - - - // do not update if not really changed - if ( this._selectedDate.getDate() != oDate.getDate() || - this._selectedDate.getMonth() != oDate.getMonth() || - this._selectedDate.getFullYear() != oDate.getFullYear() || - this._none ) { - - if ( !this._dontChangeNone ) - this._none = false; - - this._selectedDate = new Date( oDate ); - - this._setTopLabel(); - this._updateTable(); - - if ( typeof this.onchange == "function" ) - this.onchange(); - } - - if ( !this._dontChangeNone ) - this._none = false; -} - - -DatePicker.prototype.getDate = function () { - if ( this._none ) return null; - return new Date( this._selectedDate ); // create a new instance -} - -// creates the table elements and inserts them into the date picker -DatePicker.prototype._createTable = function ( doc ) { - var str, i; - var rows = 6; - var cols = 7; - var currentWeek = 0; - - var table = doc.createElement( "table" ); - table.className = "gridTable"; - table.cellSpacing = 0; - - var tBody = doc.createElement( "tbody" ); - table.appendChild( tBody ); - - // days row - var tr = doc.createElement( "tr" ); - tr.className = "daysRow"; - - var td, tn; - var nbsp = String.fromCharCode( 160 ); - for ( i = 0; i < cols; i++ ) { - td = doc.createElement( "td" ); - td.appendChild( doc.createTextNode( nbsp ) ); - tr.appendChild( td ); - } - tBody.appendChild( tr ); - - // upper line - tr = doc.createElement( "tr" ); - td = doc.createElement( "td" ); - td.className = "upperLine"; - td.colSpan = 7; - tr.appendChild( td ); - tBody.appendChild( tr ); - - // rest - for ( i = 0; i < rows; i++ ) { - tr = doc.createElement( "tr" ); - for ( var j = 0; j < cols; j++ ) { - td = doc.createElement( "td" ); - td.appendChild( doc.createTextNode( nbsp ) ); - tr.appendChild( td ); - } - tBody.appendChild( tr ); - } - str += ""; - - if ( this._table != null ) - this._table.appendChild( table ) -}; -// this method updates all the text nodes inside the table as well -// as all the classNames on the tds -DatePicker.prototype._updateTable = function () { - // if no element no need to continue - if ( this._table == null ) return; - - var i; - var str = ""; - var rows = 6; - var cols = 7; - var currentWeek = 0; - - var cells = new Array( rows ); - this._matrix = new Array( rows ) - for ( i = 0; i < rows; i++ ) { - cells[i] = new Array( cols ); - this._matrix[i] = new Array( cols ); - } - - // Set the tmpDate to this month - var tmpDate = new Date( this._selectedDate.getFullYear(), - this._selectedDate.getMonth(), 1 ); - var today = new Date(); - // go thorugh all days this month and store the text - // and the class name in the cells matrix - for ( i = 1; i < 32; i++ ) { - tmpDate.setDate( i ); - // convert to ISO, Monday is 0 and 6 is Sunday - var weekDay = ( tmpDate.getDay() + 6 ) % 7; - var colIndex = ( weekDay - this._firstWeekDay + 7 ) % 7; - if ( tmpDate.getMonth() == this._selectedDate.getMonth() ) { - - var isToday = tmpDate.getDate() == today.getDate() && - tmpDate.getMonth() == today.getMonth() && - tmpDate.getFullYear() == today.getFullYear(); - - cells[currentWeek][colIndex] = { text: "", className: "" }; - - if ( this._selectedDate.getDate() == tmpDate.getDate() && !this._none ) - cells[currentWeek][colIndex].className += "selected "; - if ( isToday ) - cells[currentWeek][colIndex].className += "today "; - if ( ( tmpDate.getDay() + 6 ) % 7 == this._redWeekDay ) // ISO - cells[currentWeek][colIndex].className += "red"; - - cells[currentWeek][colIndex].text = - this._matrix[currentWeek][colIndex] = tmpDate.getDate(); - - if ( colIndex == 6 ) - currentWeek++; - } - } - - // fix day letter order if not standard - var weekDays = DatePicker.days; - if (this._firstWeekDay != 0) { - weekDays = new Array(7); - for ( i = 0; i < 7; i++) - weekDays[i] = DatePicker.days[ (i + this._firstWeekDay) % 7]; - } - - // update text in days row - var tds = this._table.firstChild.tBodies[0].rows[0].cells; - for ( i = 0; i < cols; i++ ) - tds[i].firstChild.data = weekDays[i]; - - // update the text nodes and class names - var trs = this._table.firstChild.tBodies[0].rows; - var tmpCell; - var nbsp = String.fromCharCode( 160 ); - for ( var y = 0; y < rows; y++ ) { - for (var x = 0; x < cols; x++) { - tmpCell = trs[y + 2].cells[x]; - if ( typeof cells[y][x] != "undefined" ) { - tmpCell.className = cells[y][x].className; - tmpCell.firstChild.data = cells[y][x].text; - } - else { - tmpCell.className = ""; - tmpCell.firstChild.data = nbsp; - } - } - } -} - -// sets the label showing the year and selected month -DatePicker.prototype._setTopLabel = function () { - var str = this._selectedDate.getFullYear() + " " + DatePicker.months[ this._selectedDate.getMonth() ]; - if ( this._topLabel != null ) - this._topLabel.lastChild.data = str; -} - -DatePicker.prototype.goToNextMonth = function () { - var d = new Date( this._selectedDate ); - d.setDate( Math.min(d.getDate(), DatePicker.getDaysPerMonth(d.getMonth() + 1, - d.getFullYear())) ); // no need to catch dec -> jan for the year - d.setMonth( d.getMonth() + 1 ); - this.setDate( d ); -} - -DatePicker.prototype.goToPreviousMonth = function () { - var d = new Date( this._selectedDate ); - d.setDate( Math.min(d.getDate(), DatePicker.getDaysPerMonth(d.getMonth() - 1, - d.getFullYear())) ); // no need to catch jan -> dec for the year - d.setMonth( d.getMonth() - 1 ); - this.setDate( d ); -} - -DatePicker.prototype.goToToday = function () { - if ( this._none ) - // change the selectedDate to force update if none was true - this._selectedDate = new Date( this._selectedDate + 10000000000 ); - this._none = false; - this.setDate( new Date() ); -} - -DatePicker.prototype.setShowToday = function ( bShowToday ) { - if ( typeof bShowToday == "string" ) - bShowToday = !/false|0|no/i.test( bShowToday ); - - if ( this._todayButton != null ) - this._todayButton.style.visibility = bShowToday ? "visible" : "hidden"; - this._showToday = bShowToday; -} - -DatePicker.prototype.getShowToday = function () { - return this._showToday; -} - -DatePicker.prototype.setShowNone = function ( bShowNone ) { - if ( typeof bShowNone == "string" ) - bShowNone = !/false|0|no/i.test( bShowNone ); - - if ( this._noneButton != null ) - this._noneButton.style.visibility = bShowNone ? "visible" : "hidden"; - this._showNone = bShowNone; -} - -DatePicker.prototype.getShowNone = function () { - return this._showNone; -} - -// 0 is monday and 6 is sunday as in the ISO standard -DatePicker.prototype.setFirstWeekDay = function ( nFirstWeekDay ) { - if ( this._firstWeekDay != nFirstWeekDay ) { - this._firstWeekDay = nFirstWeekDay; - this._updateTable(); - } -} - -DatePicker.prototype.getFirstWeekDay = function () { - return this._firstWeekDay; -} - -// 0 is monday and 6 is sunday as in the ISO standard -DatePicker.prototype.setRedWeekDay = function ( nRedWeekDay ) { - if ( this._redWeekDay != nRedWeekDay ) { - this._redWeekDay = nRedWeekDay; - this._updateTable(); - } -} - -DatePicker.prototype.getRedWeekDay = function () { - return this._redWeekDay; -} - - -DatePicker.prototype._showLabelPopup = function () { - - /* - this._labelPopup document.createElement( "DIV" ); - div.className = "month-popup"; - div.noWrap = true; - el.unselectable = div.unselectable = "on"; - el.onselectstart = div.onselectstart = function () { return false; }; - */ - - var dateContext = function ( dp, d ) { - return function ( e ) { - dp._dontChangeNone = true; - dp._hideLabelPopup(); - dp.setDate( d ); - dp._dontChangeNone = false; - return false; - }; - }; - - var dp = this; - - // clear all old elements in the popup - while ( this._labelPopup.hasChildNodes() ) - this._labelPopup.removeChild( this._labelPopup.firstChild ); - - var a, tmp, tmp2; - for ( var i = -3; i < 4; i++ ) { - tmp = new Date( this._selectedDate ); - tmp2 = new Date( this._selectedDate ); // need another tmp to catch year change when checking leap - tmp2.setDate(1); - tmp2.setMonth( tmp2.getMonth() + i ); - tmp.setDate( Math.min(tmp.getDate(), DatePicker.getDaysPerMonth(tmp.getMonth() + i, - tmp2.getFullYear())) ); - tmp.setMonth( tmp.getMonth() + i ); - - a = this._document.createElement( "a" ); - a.href = "javascript:void 0;"; - a.onclick = dateContext( dp, tmp ); - a.appendChild( this._document.createTextNode( tmp.getFullYear() + " " + - DatePicker.months[ tmp.getMonth() ] ) ); - if ( i == 0 ) - a.className = "selected"; - this._labelPopup.appendChild( a ); - } - - this._topLabel.parentNode.insertBefore( this._labelPopup, this._topLabel.parentNode.firstChild ); -}; - -DatePicker.prototype._hideLabelPopup = function () { - if ( this._labelPopup.parentNode ) - this._labelPopup.parentNode.removeChild( this._labelPopup ); -}; - -DatePicker._daysPerMonth = [31,28,31,30,31,30,31,31,30,31,30,31]; -DatePicker.getDaysPerMonth = function (nMonth, nYear) { - nMonth = (nMonth + 12) % 12; - var res = DatePicker._daysPerMonth[nMonth]; - if (nMonth == 1) { - res += nYear % 4 == 0 && !(nYear % 400 == 0) ? 1 : 0; - } - return res; -}; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/js/editorBarFunctions.js b/OLD/umbraco.Legacy/umbraco/js/editorBarFunctions.js deleted file mode 100644 index e68ab1c572..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/editorBarFunctions.js +++ /dev/null @@ -1,371 +0,0 @@ - -var templateEditing = false; -var macroEditElement = null; - -function openDialog(diaTitle, diaDoc, dwidth, dheight) -{ - window.status = ""; - strFeatures = "dialogWidth=" + dwidth + "px;dialogHeight=" + dheight + "px;scrollbars=no;" - + "center=yes;border=thin;help=no;status=no" - strTitle = window.showModalDialog(diaDoc, "MyDialog", strFeatures); - return strTitle; - -} - -function setRichTextObject(id) { - currentRichTextDocument = document.frames[id + "_holder"].document; - currentRichTextObject = document.frames[id + "_holder"].document.getElementById("holder"); -} - -function umbracoEditorCommand(id,commandKey,option) - { - setRichTextObject(id); - currentRichTextDocument = document.frames[id + "_holder"].document; - currentRichTextDocument.execCommand(commandKey,true,option); - currentRichTextDocument.focus(); - } - - function umbracoInsertField(theObject, tagUrl, tagName, tagText, width, height,path,move) { - var fieldName = parent.parent.openDialog("umbracoField", path + tagUrl + ".aspx?tagName=" + tagName + "&tagText=" + tagText + "&move=" + move + "&objectId=" + theObject.id, width, height); - - } - - function umbracoInsertFieldDo(theObjectId, Text, move) { - - - var theObject = document.getElementById(theObjectId); - - if (Text) { - if (move != 'undefined') - insertAtCaretAndMove(theObject, Text, move); - else - insertAtCaret(theObject, Text) - } - - } - - - -/////////////////////////////////////////// -// UMBRACO MAKRO-FUNKTIONER -/////////////////////////////////////////// - - function umbracoInsertMacro(id, path) { - setRichTextObject(id); - macroEditElement = null; - if (document.selection.createRange().parentElement().tagName != 'BODY') - var fieldTag = nytVindue(path+"/dialogs/editMacro.aspx?editor=true&umbPageId=" + umbPageId + "&umbVersionId=" + umbVersionId , 600, 350); - } - - function umbracoTemplateInsertMacro() { - var fieldTag = nytVindue("../dialogs/editMacro.aspx", 600, 350); - } - - function umbracoInsertMacroDo(fieldTag) { - fieldTag = fieldTag.replace(/\'/gi,"'"); - - if (!templateEditing) { - currentRichTextDocument.selection.createRange().pasteHTML('\'''); - } else - insertAtCaret(document.forms[0].TemplateBody, fieldTag + "") - } - - function umbracoEditMacroDo(fieldTag, macroName, renderedContent) { - if (macroEditElement != null) { - macroEditElement.outerHTML = renderedContent; - } else { - currentRichTextDocument.selection.createRange().pasteHTML(renderedContent); - } - macroEditElement = null; - } - - function nytVindue(side, bredde, hoejde) { - window.open(side, 'nytVindue', 'width=' + bredde + ',height=' + hoejde + ',scrollbars=yes'); - } - - -///////////////////////////////////////////////////////// -// BILLEDE FUNKTIONER -///////////////////////////////////////////////////////// - - function umbracoImage(id) { - if (id != undefined) - setRichTextObject(id) - if (document.selection.createRange().parentElement().tagName != 'BODY') { - - var imageToInsert = ""; - imageToInsert = "" + openDialog("insertImage", "dialogs/insertimage.aspx", 560, 540); - - - if (imageToInsert.toString() != 'undefined' && imageToInsert != '') { - - var imageName; - var imageSource; - var imageWidth; - var imageHeight; - var imageWidthHeightString = ''; - var orgWidth; - var orgHeight; - imageToInsert = imageToInsert.split('|||'); - imageName = imageToInsert[0]; - imageSource = imageToInsert[1]; - imageWidth = imageToInsert[2]; - imageHeight = imageToInsert[3]; - imageTitle = imageToInsert[4]; - orgWidth = imageToInsert[5]; - orgHeight = imageToInsert[6]; - - if (imageWidth != '' && imageWidth != '0' && imageWidth.toString() != 'undefined' && imageHeight != '' && imageHeight != '0' && imageHeight.toString() != 'undefined') - imageWidthHeightString = ' onResize="umbracoImageResizeUpdateSize()" onResizeEnd="defaultStatus = \'\'; umbracoImageResize(this);" onresizestart="umbracoImageResizeStart(this);" width="' + imageWidth + '" height="' + imageHeight + '" umbracoOrgWidth="' + orgWidth + '" umbracoOrgHeight="' + orgHeight + '"' - - document.selection.createRange().pasteHTML('' + imageName + ''); - } - } - } - - -///////////////////////////////////////////////////////// -// RELATIONER FUNKTIONER -///////////////////////////////////////////////////////// - - function doRelation() { - var fieldTag = nytVindue(umbracoConstGuiFolderName + "/umbracoRelation.aspx?table=dataStructure&id=" + umbracoQuerystring, 600, 350); - } - -///////////////////////////////////////////////////////// -// TABEL FUNKTIONER -///////////////////////////////////////////////////////// - - function umbracoInsertTable(id) { - setRichTextObject(id) - var tableToInsert = ""; - tableToInsert = "" + openDialog("insertTable", "dialogs/insertTable.aspx", 470, 560); - - if (tableToInsert.toString() != 'undefined' && tableToInsert != '') { - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - if (rng.text != '' && sel.type == 'Text') - rng.pasteHTML (tableToInsert + rng.html) - else - rng.pasteHTML (tableToInsert); - } - } - - } - currentRichTextDocument.focus(); - } - - - -///////////////////////////////////////////////////////// -// LINK FUNKTIONER -///////////////////////////////////////////////////////// - -function umbracoAnchor(id) { - setRichTextObject(id) - insertAnchor = "" + openDialog("insertAnchor", "dialogs/insertAnchor.aspx", 390, 260); - - if (insertAnchor != '' && insertAnchor != 'undefined') { - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - var theHTML = currentRichTextDocument.selection.createRange().htmlText; - currentRichTextDocument.selection.createRange().pasteHTML(''+ theHTML +''); - } - } - } -} - - function umbracoLink(id) { - setRichTextObject(id) - var linkToInsert = ""; - var sel = currentRichTextDocument.selection; - var tagContent = ''; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - // test for links in range! - if (rng.text == '') { - var currentElement = rng.parentElement(); - while (currentElement.tagName != 'A' && currentElement.parentNode.tagName != 'BODY') { - currentElement = currentElement.parentNode; - } - if (currentElement.tagName == 'A') { - // use editing method in richtextfunctions.js which is - // located in the iframe of the editing document - document.frames[id + "_holder"].umbracoEditA(currentElement); - return ""; - } - } - if (rng.text != '' && sel.type == 'Text') { - tagContent = rng.htmlText; - linkToInsert = "" + openDialog("insertLink", "dialogs/insertlink.aspx", 440, 480); - if (linkToInsert.toString() != 'undefined' && linkToInsert != '') { - if (linkToInsert.substr(0,4) == 'true') { - currentRichTextDocument.execCommand('CreateLink',false,formatLink(linkToInsert.substr(linkToInsert.indexOf('|')+1, linkToInsert.length))); - if (rng.parentElement().tagName == "A"){ - rng.parentElement().target="_blank"; - } - } - else { - currentRichTextDocument.execCommand('CreateLink',false,formatLink(linkToInsert.substr(linkToInsert.indexOf('|')+1, linkToInsert.length))); - } - } - } else { - if (sel.type == 'Control') { - var tag = rng.item(0); - var tagContent = '<' + tag.tagName; - var tagAttr = tag.attributes; - for (var i=0;i' + tagContent + ''; - else - tagContent = '' + tagContent + ''; - } - - rng.item(0).outerHTML = tagContent; - } - - } - - } - } - - currentRichTextObject.focus(); - } - - function formatLink(link) { - return link.replace(/\%3f/g,'\?'); - } - - function umbracoScriptlet() { - var fieldName = parent.parent.openDialog("umbracoScriptlet", "settings/umbracoScriptlet.aspx", 500, 250); - var fieldImg = "\"""; - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null && sel.type == 'Text') - rng.pasteHTML(fieldImg); - } - } - - function doSubmitAndPublish() { - document.contentForm.doPublish.value = "true"; - doSubmit(); - } - -/* function doSubmit() - { - // Hvis der er tndt for styles, skal vi lige slukke for dem! - if (typeof(currentRichTextObject) != 'undefined') - if (currentRichTextObject) - if (currentRichTextObject.innerHTML.indexOf('styleMarkStart.gif') > 0) - umbracoShowStyles(); - -// invokeSaveHandlers(); - document.contentForm.doSave.value = "true"; - document.contentForm.submit(); - } -*/ - function viewHTML(id) - { - setRichTextObject(id) - window.open("viewHTML.aspx?rnd="+top.returnRandom(), 'nytVindue', 'width=700,height=500,scrollbars=auto'); - } - -function umbracoInsertForm(id) { - setRichTextObject(id) - - - var formField = openDialog("umbracoForm", "dialogs/insertFormField.aspx?rnd="+top.returnRandom(), 450, 480); - if (formField) { - - currentRichTextDocument.selection.createRange().pasteHTML(formField); - } -} - -function umbracoTextGen(id) { - setRichTextObject(id) - var textGen = openDialog("umbracoTextGen", "dialogs/inserttextGen.aspx?rnd="+top.returnRandom(), 450, 330); - if (textGen) - currentRichTextDocument.selection.createRange().pasteHTML(textGen.replace(/&/g,"&")); -} - -function addStyle(stylePickerID, id) { - setRichTextObject(id) - var styleToApply = stylePickerID[stylePickerID.selectedIndex].value; - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - if (styleToApply != '') { - setClass(styleToApply); - } - } - } - stylePickerID.selectedIndex = 0; -// currentRichTextDocument.all["theContent"].contentEditable = true; - currentRichTextObject.focus(); - } - -function setClass(theClass) { - if (currentRichTextDocument.selection.type == 'Text') { - var oSel = currentRichTextDocument.selection; - var theHTML = oSel.createRange().htmlText; - oSel.clear(); - theHTML = theHTML.replace(//gi,""); - theHTML = theHTML.replace(/<\/span>/gi,""); - theHTML = theHTML.replace(//gi,""); - theHTML = theHTML.replace(/<\/h\/?.*?>/gi,""); - theHTML = theHTML.replace(/

/gi,""); - theHTML = theHTML.replace(/<\/p>/gi,""); - if (theClass.indexOf(".") > -1) - theClass = ''+ theHTML +''; - else { - theClass = '<' + theClass + '>'+ theHTML +''; - } - - currentRichTextDocument.selection.createRange().pasteHTML(theClass); - } else { - alert(parent.uiKeys['errors_stylesMustMarkBeforeSelect']); - } -} - -function umbracoShowStyles(id) { - - setRichTextObject(id) - var theHTML = currentRichTextObject.innerHTML; - if (theHTML.indexOf('styleMarkStart.gif') > 0) { - //document.all.showStyles.className = 'editorIcon'; - theHTML = theHTML.replace(/\"Style:/gi,"") - theHTML = theHTML.replace(/\"Formatering/gi,"") - } else { - if (theHTML.indexOf(' -1 || theHTML.indexOf(' -1) { - //document.all.showStyles.className = 'editorIconOn'; - theHTML = theHTML.replace(//gi,"\"Style:") - theHTML = theHTML.replace(//gi,"") - theHTML = theHTML.replace(/<\/span>/gi,"\"Formatering") - } else - alert(parent.uiKeys['errors_stylesNoStylesOnPage']); - } - - currentRichTextObject.innerHTML = theHTML; -} diff --git a/OLD/umbraco.Legacy/umbraco/js/prototype.js b/OLD/umbraco.Legacy/umbraco/js/prototype.js deleted file mode 100644 index e1aa82cb65..0000000000 --- a/OLD/umbraco.Legacy/umbraco/js/prototype.js +++ /dev/null @@ -1,4221 +0,0 @@ -/* Prototype JavaScript framework, version 1.6.0.2 - * (c) 2005-2008 Sam Stephenson - * - * Prototype is freely distributable under the terms of an MIT-style license. - * For details, see the Prototype web site: http://www.prototypejs.org/ - * - *--------------------------------------------------------------------------*/ - -var Prototype = { - Version: '1.6.0.2', - - Browser: { - IE: !!(window.attachEvent && !window.opera), - Opera: !!window.opera, - WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1, - Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1, - MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) - }, - - BrowserFeatures: { - XPath: !!document.evaluate, - ElementExtensions: !!window.HTMLElement, - SpecificElementExtensions: - document.createElement('div').__proto__ && - document.createElement('div').__proto__ !== - document.createElement('form').__proto__ - }, - - ScriptFragment: ']*>([\\S\\s]*?)<\/script>', - JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/, - - emptyFunction: function() { }, - K: function(x) { return x } -}; - -if (Prototype.Browser.MobileSafari) - Prototype.BrowserFeatures.SpecificElementExtensions = false; - - -/* Based on Alex Arnell's inheritance implementation. */ -var Class = { - create: function() { - var parent = null, properties = $A(arguments); - if (Object.isFunction(properties[0])) - parent = properties.shift(); - - function klass() { - this.initialize.apply(this, arguments); - } - - Object.extend(klass, Class.Methods); - klass.superclass = parent; - klass.subclasses = []; - - if (parent) { - var subclass = function() { }; - subclass.prototype = parent.prototype; - klass.prototype = new subclass; - parent.subclasses.push(klass); - } - - for (var i = 0; i < properties.length; i++) - klass.addMethods(properties[i]); - - if (!klass.prototype.initialize) - klass.prototype.initialize = Prototype.emptyFunction; - - klass.prototype.constructor = klass; - - return klass; - } -}; - -Class.Methods = { - addMethods: function(source) { - var ancestor = this.superclass && this.superclass.prototype; - var properties = Object.keys(source); - - if (!Object.keys({ toString: true }).length) - properties.push("toString", "valueOf"); - - for (var i = 0, length = properties.length; i < length; i++) { - var property = properties[i], value = source[property]; - if (ancestor && Object.isFunction(value) && - value.argumentNames().first() == "$super") { - var method = value, value = Object.extend((function(m) { - return function() { return ancestor[m].apply(this, arguments) }; - })(property).wrap(method), { - valueOf: function() { return method }, - toString: function() { return method.toString() } - }); - } - this.prototype[property] = value; - } - - return this; - } -}; - -var Abstract = { }; - -Object.extend = function(destination, source) { - for (var property in source) - destination[property] = source[property]; - return destination; -}; - -Object.extend(Object, { - inspect: function(object) { - try { - if (Object.isUndefined(object)) return 'undefined'; - if (object === null) return 'null'; - return object.inspect ? object.inspect() : String(object); - } catch (e) { - if (e instanceof RangeError) return '...'; - throw e; - } - }, - - toJSON: function(object) { - var type = typeof object; - switch (type) { - case 'undefined': - case 'function': - case 'unknown': return; - case 'boolean': return object.toString(); - } - - if (object === null) return 'null'; - if (object.toJSON) return object.toJSON(); - if (Object.isElement(object)) return; - - var results = []; - for (var property in object) { - var value = Object.toJSON(object[property]); - if (!Object.isUndefined(value)) - results.push(property.toJSON() + ': ' + value); - } - - return '{' + results.join(', ') + '}'; - }, - - toQueryString: function(object) { - return $H(object).toQueryString(); - }, - - toHTML: function(object) { - return object && object.toHTML ? object.toHTML() : String.interpret(object); - }, - - keys: function(object) { - var keys = []; - for (var property in object) - keys.push(property); - return keys; - }, - - values: function(object) { - var values = []; - for (var property in object) - values.push(object[property]); - return values; - }, - - clone: function(object) { - return Object.extend({ }, object); - }, - - isElement: function(object) { - return object && object.nodeType == 1; - }, - - isArray: function(object) { - return object != null && typeof object == "object" && - 'splice' in object && 'join' in object; - }, - - isHash: function(object) { - return object instanceof Hash; - }, - - isFunction: function(object) { - return typeof object == "function"; - }, - - isString: function(object) { - return typeof object == "string"; - }, - - isNumber: function(object) { - return typeof object == "number"; - }, - - isUndefined: function(object) { - return typeof object == "undefined"; - } -}); - -Object.extend(Function.prototype, { - argumentNames: function() { - var names = this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip"); - return names.length == 1 && !names[0] ? [] : names; - }, - - bind: function() { - if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this; - var __method = this, args = $A(arguments), object = args.shift(); - return function() { - return __method.apply(object, args.concat($A(arguments))); - } - }, - - bindAsEventListener: function() { - var __method = this, args = $A(arguments), object = args.shift(); - return function(event) { - return __method.apply(object, [event || window.event].concat(args)); - } - }, - - curry: function() { - if (!arguments.length) return this; - var __method = this, args = $A(arguments); - return function() { - return __method.apply(this, args.concat($A(arguments))); - } - }, - - delay: function() { - var __method = this, args = $A(arguments), timeout = args.shift() * 1000; - return window.setTimeout(function() { - return __method.apply(__method, args); - }, timeout); - }, - - wrap: function(wrapper) { - var __method = this; - return function() { - return wrapper.apply(this, [__method.bind(this)].concat($A(arguments))); - } - }, - - methodize: function() { - if (this._methodized) return this._methodized; - var __method = this; - return this._methodized = function() { - return __method.apply(null, [this].concat($A(arguments))); - }; - } -}); - -Function.prototype.defer = Function.prototype.delay.curry(0.01); - -Date.prototype.toJSON = function() { - return '"' + this.getUTCFullYear() + '-' + - (this.getUTCMonth() + 1).toPaddedString(2) + '-' + - this.getUTCDate().toPaddedString(2) + 'T' + - this.getUTCHours().toPaddedString(2) + ':' + - this.getUTCMinutes().toPaddedString(2) + ':' + - this.getUTCSeconds().toPaddedString(2) + 'Z"'; -}; - -var Try = { - these: function() { - var returnValue; - - for (var i = 0, length = arguments.length; i < length; i++) { - var lambda = arguments[i]; - try { - returnValue = lambda(); - break; - } catch (e) { } - } - - return returnValue; - } -}; - -RegExp.prototype.match = RegExp.prototype.test; - -RegExp.escape = function(str) { - return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1'); -}; - -/*--------------------------------------------------------------------------*/ - -var PeriodicalExecuter = Class.create({ - initialize: function(callback, frequency) { - this.callback = callback; - this.frequency = frequency; - this.currentlyExecuting = false; - - this.registerCallback(); - }, - - registerCallback: function() { - this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); - }, - - execute: function() { - this.callback(this); - }, - - stop: function() { - if (!this.timer) return; - clearInterval(this.timer); - this.timer = null; - }, - - onTimerEvent: function() { - if (!this.currentlyExecuting) { - try { - this.currentlyExecuting = true; - this.execute(); - } finally { - this.currentlyExecuting = false; - } - } - } -}); -Object.extend(String, { - interpret: function(value) { - return value == null ? '' : String(value); - }, - specialChar: { - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '\\': '\\\\' - } -}); - -Object.extend(String.prototype, { - gsub: function(pattern, replacement) { - var result = '', source = this, match; - replacement = arguments.callee.prepareReplacement(replacement); - - while (source.length > 0) { - if (match = source.match(pattern)) { - result += source.slice(0, match.index); - result += String.interpret(replacement(match)); - source = source.slice(match.index + match[0].length); - } else { - result += source, source = ''; - } - } - return result; - }, - - sub: function(pattern, replacement, count) { - replacement = this.gsub.prepareReplacement(replacement); - count = Object.isUndefined(count) ? 1 : count; - - return this.gsub(pattern, function(match) { - if (--count < 0) return match[0]; - return replacement(match); - }); - }, - - scan: function(pattern, iterator) { - this.gsub(pattern, iterator); - return String(this); - }, - - truncate: function(length, truncation) { - length = length || 30; - truncation = Object.isUndefined(truncation) ? '...' : truncation; - return this.length > length ? - this.slice(0, length - truncation.length) + truncation : String(this); - }, - - strip: function() { - return this.replace(/^\s+/, '').replace(/\s+$/, ''); - }, - - stripTags: function() { - return this.replace(/<\/?[^>]+>/gi, ''); - }, - - stripScripts: function() { - return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); - }, - - extractScripts: function() { - var matchAll = new RegExp(Prototype.ScriptFragment, 'img'); - var matchOne = new RegExp(Prototype.ScriptFragment, 'im'); - return (this.match(matchAll) || []).map(function(scriptTag) { - return (scriptTag.match(matchOne) || ['', ''])[1]; - }); - }, - - evalScripts: function() { - return this.extractScripts().map(function(script) { return eval(script) }); - }, - - escapeHTML: function() { - var self = arguments.callee; - self.text.data = this; - return self.div.innerHTML; - }, - - unescapeHTML: function() { - var div = new Element('div'); - div.innerHTML = this.stripTags(); - return div.childNodes[0] ? (div.childNodes.length > 1 ? - $A(div.childNodes).inject('', function(memo, node) { return memo+node.nodeValue }) : - div.childNodes[0].nodeValue) : ''; - }, - - toQueryParams: function(separator) { - var match = this.strip().match(/([^?#]*)(#.*)?$/); - if (!match) return { }; - - return match[1].split(separator || '&').inject({ }, function(hash, pair) { - if ((pair = pair.split('='))[0]) { - var key = decodeURIComponent(pair.shift()); - var value = pair.length > 1 ? pair.join('=') : pair[0]; - if (value != undefined) value = decodeURIComponent(value); - - if (key in hash) { - if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; - hash[key].push(value); - } - else hash[key] = value; - } - return hash; - }); - }, - - toArray: function() { - return this.split(''); - }, - - succ: function() { - return this.slice(0, this.length - 1) + - String.fromCharCode(this.charCodeAt(this.length - 1) + 1); - }, - - times: function(count) { - return count < 1 ? '' : new Array(count + 1).join(this); - }, - - camelize: function() { - var parts = this.split('-'), len = parts.length; - if (len == 1) return parts[0]; - - var camelized = this.charAt(0) == '-' - ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) - : parts[0]; - - for (var i = 1; i < len; i++) - camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1); - - return camelized; - }, - - capitalize: function() { - return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase(); - }, - - underscore: function() { - return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase(); - }, - - dasherize: function() { - return this.gsub(/_/,'-'); - }, - - inspect: function(useDoubleQuotes) { - var escapedString = this.gsub(/[\x00-\x1f\\]/, function(match) { - var character = String.specialChar[match[0]]; - return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16); - }); - if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"'; - return "'" + escapedString.replace(/'/g, '\\\'') + "'"; - }, - - toJSON: function() { - return this.inspect(true); - }, - - unfilterJSON: function(filter) { - return this.sub(filter || Prototype.JSONFilter, '#{1}'); - }, - - isJSON: function() { - var str = this; - if (str.blank()) return false; - str = this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, ''); - return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str); - }, - - evalJSON: function(sanitize) { - var json = this.unfilterJSON(); - try { - if (!sanitize || json.isJSON()) return eval('(' + json + ')'); - } catch (e) { } - throw new SyntaxError('Badly formed JSON string: ' + this.inspect()); - }, - - include: function(pattern) { - return this.indexOf(pattern) > -1; - }, - - startsWith: function(pattern) { - return this.indexOf(pattern) === 0; - }, - - endsWith: function(pattern) { - var d = this.length - pattern.length; - return d >= 0 && this.lastIndexOf(pattern) === d; - }, - - empty: function() { - return this == ''; - }, - - blank: function() { - return /^\s*$/.test(this); - }, - - interpolate: function(object, pattern) { - return new Template(this, pattern).evaluate(object); - } -}); - -if (Prototype.Browser.WebKit || Prototype.Browser.IE) Object.extend(String.prototype, { - escapeHTML: function() { - return this.replace(/&/g,'&').replace(//g,'>'); - }, - unescapeHTML: function() { - return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); - } -}); - -String.prototype.gsub.prepareReplacement = function(replacement) { - if (Object.isFunction(replacement)) return replacement; - var template = new Template(replacement); - return function(match) { return template.evaluate(match) }; -}; - -String.prototype.parseQuery = String.prototype.toQueryParams; - -Object.extend(String.prototype.escapeHTML, { - div: document.createElement('div'), - text: document.createTextNode('') -}); - -with (String.prototype.escapeHTML) div.appendChild(text); - -var Template = Class.create({ - initialize: function(template, pattern) { - this.template = template.toString(); - this.pattern = pattern || Template.Pattern; - }, - - evaluate: function(object) { - if (Object.isFunction(object.toTemplateReplacements)) - object = object.toTemplateReplacements(); - - return this.template.gsub(this.pattern, function(match) { - if (object == null) return ''; - - var before = match[1] || ''; - if (before == '\\') return match[2]; - - var ctx = object, expr = match[3]; - var pattern = /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/; - match = pattern.exec(expr); - if (match == null) return before; - - while (match != null) { - var comp = match[1].startsWith('[') ? match[2].gsub('\\\\]', ']') : match[1]; - ctx = ctx[comp]; - if (null == ctx || '' == match[3]) break; - expr = expr.substring('[' == match[3] ? match[1].length : match[0].length); - match = pattern.exec(expr); - } - - return before + String.interpret(ctx); - }); - } -}); -Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; - -var $break = { }; - -var Enumerable = { - each: function(iterator, context) { - var index = 0; - iterator = iterator.bind(context); - try { - this._each(function(value) { - iterator(value, index++); - }); - } catch (e) { - if (e != $break) throw e; - } - return this; - }, - - eachSlice: function(number, iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var index = -number, slices = [], array = this.toArray(); - while ((index += number) < array.length) - slices.push(array.slice(index, index+number)); - return slices.collect(iterator, context); - }, - - all: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result = true; - this.each(function(value, index) { - result = result && !!iterator(value, index); - if (!result) throw $break; - }); - return result; - }, - - any: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result = false; - this.each(function(value, index) { - if (result = !!iterator(value, index)) - throw $break; - }); - return result; - }, - - collect: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var results = []; - this.each(function(value, index) { - results.push(iterator(value, index)); - }); - return results; - }, - - detect: function(iterator, context) { - iterator = iterator.bind(context); - var result; - this.each(function(value, index) { - if (iterator(value, index)) { - result = value; - throw $break; - } - }); - return result; - }, - - findAll: function(iterator, context) { - iterator = iterator.bind(context); - var results = []; - this.each(function(value, index) { - if (iterator(value, index)) - results.push(value); - }); - return results; - }, - - grep: function(filter, iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var results = []; - - if (Object.isString(filter)) - filter = new RegExp(filter); - - this.each(function(value, index) { - if (filter.match(value)) - results.push(iterator(value, index)); - }); - return results; - }, - - include: function(object) { - if (Object.isFunction(this.indexOf)) - if (this.indexOf(object) != -1) return true; - - var found = false; - this.each(function(value) { - if (value == object) { - found = true; - throw $break; - } - }); - return found; - }, - - inGroupsOf: function(number, fillWith) { - fillWith = Object.isUndefined(fillWith) ? null : fillWith; - return this.eachSlice(number, function(slice) { - while(slice.length < number) slice.push(fillWith); - return slice; - }); - }, - - inject: function(memo, iterator, context) { - iterator = iterator.bind(context); - this.each(function(value, index) { - memo = iterator(memo, value, index); - }); - return memo; - }, - - invoke: function(method) { - var args = $A(arguments).slice(1); - return this.map(function(value) { - return value[method].apply(value, args); - }); - }, - - max: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result; - this.each(function(value, index) { - value = iterator(value, index); - if (result == null || value >= result) - result = value; - }); - return result; - }, - - min: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var result; - this.each(function(value, index) { - value = iterator(value, index); - if (result == null || value < result) - result = value; - }); - return result; - }, - - partition: function(iterator, context) { - iterator = iterator ? iterator.bind(context) : Prototype.K; - var trues = [], falses = []; - this.each(function(value, index) { - (iterator(value, index) ? - trues : falses).push(value); - }); - return [trues, falses]; - }, - - pluck: function(property) { - var results = []; - this.each(function(value) { - results.push(value[property]); - }); - return results; - }, - - reject: function(iterator, context) { - iterator = iterator.bind(context); - var results = []; - this.each(function(value, index) { - if (!iterator(value, index)) - results.push(value); - }); - return results; - }, - - sortBy: function(iterator, context) { - iterator = iterator.bind(context); - return this.map(function(value, index) { - return {value: value, criteria: iterator(value, index)}; - }).sort(function(left, right) { - var a = left.criteria, b = right.criteria; - return a < b ? -1 : a > b ? 1 : 0; - }).pluck('value'); - }, - - toArray: function() { - return this.map(); - }, - - zip: function() { - var iterator = Prototype.K, args = $A(arguments); - if (Object.isFunction(args.last())) - iterator = args.pop(); - - var collections = [this].concat(args).map($A); - return this.map(function(value, index) { - return iterator(collections.pluck(index)); - }); - }, - - size: function() { - return this.toArray().length; - }, - - inspect: function() { - return '#'; - } -}; - -Object.extend(Enumerable, { - map: Enumerable.collect, - find: Enumerable.detect, - select: Enumerable.findAll, - filter: Enumerable.findAll, - member: Enumerable.include, - entries: Enumerable.toArray, - every: Enumerable.all, - some: Enumerable.any -}); -function $A(iterable) { - if (!iterable) return []; - if (iterable.toArray) return iterable.toArray(); - var length = iterable.length || 0, results = new Array(length); - while (length--) results[length] = iterable[length]; - return results; -} - -if (Prototype.Browser.WebKit) { - $A = function(iterable) { - if (!iterable) return []; - if (!(Object.isFunction(iterable) && iterable == '[object NodeList]') && - iterable.toArray) return iterable.toArray(); - var length = iterable.length || 0, results = new Array(length); - while (length--) results[length] = iterable[length]; - return results; - }; -} - -Array.from = $A; - -Object.extend(Array.prototype, Enumerable); - -if (!Array.prototype._reverse) Array.prototype._reverse = Array.prototype.reverse; - -Object.extend(Array.prototype, { - _each: function(iterator) { - for (var i = 0, length = this.length; i < length; i++) - iterator(this[i]); - }, - - clear: function() { - this.length = 0; - return this; - }, - - first: function() { - return this[0]; - }, - - last: function() { - return this[this.length - 1]; - }, - - compact: function() { - return this.select(function(value) { - return value != null; - }); - }, - - flatten: function() { - return this.inject([], function(array, value) { - return array.concat(Object.isArray(value) ? - value.flatten() : [value]); - }); - }, - - without: function() { - var values = $A(arguments); - return this.select(function(value) { - return !values.include(value); - }); - }, - - reverse: function(inline) { - return (inline !== false ? this : this.toArray())._reverse(); - }, - - reduce: function() { - return this.length > 1 ? this : this[0]; - }, - - uniq: function(sorted) { - return this.inject([], function(array, value, index) { - if (0 == index || (sorted ? array.last() != value : !array.include(value))) - array.push(value); - return array; - }); - }, - - intersect: function(array) { - return this.uniq().findAll(function(item) { - return array.detect(function(value) { return item === value }); - }); - }, - - clone: function() { - return [].concat(this); - }, - - size: function() { - return this.length; - }, - - inspect: function() { - return '[' + this.map(Object.inspect).join(', ') + ']'; - }, - - toJSON: function() { - var results = []; - this.each(function(object) { - var value = Object.toJSON(object); - if (!Object.isUndefined(value)) results.push(value); - }); - return '[' + results.join(', ') + ']'; - } -}); - -// use native browser JS 1.6 implementation if available -if (Object.isFunction(Array.prototype.forEach)) - Array.prototype._each = Array.prototype.forEach; - -if (!Array.prototype.indexOf) Array.prototype.indexOf = function(item, i) { - i || (i = 0); - var length = this.length; - if (i < 0) i = length + i; - for (; i < length; i++) - if (this[i] === item) return i; - return -1; -}; - -if (!Array.prototype.lastIndexOf) Array.prototype.lastIndexOf = function(item, i) { - i = isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1; - var n = this.slice(0, i).reverse().indexOf(item); - return (n < 0) ? n : i - n - 1; -}; - -Array.prototype.toArray = Array.prototype.clone; - -function $w(string) { - if (!Object.isString(string)) return []; - string = string.strip(); - return string ? string.split(/\s+/) : []; -} - -if (Prototype.Browser.Opera){ - Array.prototype.concat = function() { - var array = []; - for (var i = 0, length = this.length; i < length; i++) array.push(this[i]); - for (var i = 0, length = arguments.length; i < length; i++) { - if (Object.isArray(arguments[i])) { - for (var j = 0, arrayLength = arguments[i].length; j < arrayLength; j++) - array.push(arguments[i][j]); - } else { - array.push(arguments[i]); - } - } - return array; - }; -} -Object.extend(Number.prototype, { - toColorPart: function() { - return this.toPaddedString(2, 16); - }, - - succ: function() { - return this + 1; - }, - - times: function(iterator) { - $R(0, this, true).each(iterator); - return this; - }, - - toPaddedString: function(length, radix) { - var string = this.toString(radix || 10); - return '0'.times(length - string.length) + string; - }, - - toJSON: function() { - return isFinite(this) ? this.toString() : 'null'; - } -}); - -$w('abs round ceil floor').each(function(method){ - Number.prototype[method] = Math[method].methodize(); -}); -function $H(object) { - return new Hash(object); -}; - -var Hash = Class.create(Enumerable, (function() { - - function toQueryPair(key, value) { - if (Object.isUndefined(value)) return key; - return key + '=' + encodeURIComponent(String.interpret(value)); - } - - return { - initialize: function(object) { - this._object = Object.isHash(object) ? object.toObject() : Object.clone(object); - }, - - _each: function(iterator) { - for (var key in this._object) { - var value = this._object[key], pair = [key, value]; - pair.key = key; - pair.value = value; - iterator(pair); - } - }, - - set: function(key, value) { - return this._object[key] = value; - }, - - get: function(key) { - return this._object[key]; - }, - - unset: function(key) { - var value = this._object[key]; - delete this._object[key]; - return value; - }, - - toObject: function() { - return Object.clone(this._object); - }, - - keys: function() { - return this.pluck('key'); - }, - - values: function() { - return this.pluck('value'); - }, - - index: function(value) { - var match = this.detect(function(pair) { - return pair.value === value; - }); - return match && match.key; - }, - - merge: function(object) { - return this.clone().update(object); - }, - - update: function(object) { - return new Hash(object).inject(this, function(result, pair) { - result.set(pair.key, pair.value); - return result; - }); - }, - - toQueryString: function() { - return this.map(function(pair) { - var key = encodeURIComponent(pair.key), values = pair.value; - - if (values && typeof values == 'object') { - if (Object.isArray(values)) - return values.map(toQueryPair.curry(key)).join('&'); - } - return toQueryPair(key, values); - }).join('&'); - }, - - inspect: function() { - return '#'; - }, - - toJSON: function() { - return Object.toJSON(this.toObject()); - }, - - clone: function() { - return new Hash(this); - } - } -})()); - -Hash.prototype.toTemplateReplacements = Hash.prototype.toObject; -Hash.from = $H; -var ObjectRange = Class.create(Enumerable, { - initialize: function(start, end, exclusive) { - this.start = start; - this.end = end; - this.exclusive = exclusive; - }, - - _each: function(iterator) { - var value = this.start; - while (this.include(value)) { - iterator(value); - value = value.succ(); - } - }, - - include: function(value) { - if (value < this.start) - return false; - if (this.exclusive) - return value < this.end; - return value <= this.end; - } -}); - -var $R = function(start, end, exclusive) { - return new ObjectRange(start, end, exclusive); -}; - -var Ajax = { - getTransport: function() { - return Try.these( - function() {return new XMLHttpRequest()}, - function() {return new ActiveXObject('Msxml2.XMLHTTP')}, - function() {return new ActiveXObject('Microsoft.XMLHTTP')} - ) || false; - }, - - activeRequestCount: 0 -}; - -Ajax.Responders = { - responders: [], - - _each: function(iterator) { - this.responders._each(iterator); - }, - - register: function(responder) { - if (!this.include(responder)) - this.responders.push(responder); - }, - - unregister: function(responder) { - this.responders = this.responders.without(responder); - }, - - dispatch: function(callback, request, transport, json) { - this.each(function(responder) { - if (Object.isFunction(responder[callback])) { - try { - responder[callback].apply(responder, [request, transport, json]); - } catch (e) { } - } - }); - } -}; - -Object.extend(Ajax.Responders, Enumerable); - -Ajax.Responders.register({ - onCreate: function() { Ajax.activeRequestCount++ }, - onComplete: function() { Ajax.activeRequestCount-- } -}); - -Ajax.Base = Class.create({ - initialize: function(options) { - this.options = { - method: 'post', - asynchronous: true, - contentType: 'application/x-www-form-urlencoded', - encoding: 'UTF-8', - parameters: '', - evalJSON: true, - evalJS: true - }; - Object.extend(this.options, options || { }); - - this.options.method = this.options.method.toLowerCase(); - - if (Object.isString(this.options.parameters)) - this.options.parameters = this.options.parameters.toQueryParams(); - else if (Object.isHash(this.options.parameters)) - this.options.parameters = this.options.parameters.toObject(); - } -}); - -Ajax.Request = Class.create(Ajax.Base, { - _complete: false, - - initialize: function($super, url, options) { - $super(options); - this.transport = Ajax.getTransport(); - this.request(url); - }, - - request: function(url) { - this.url = url; - this.method = this.options.method; - var params = Object.clone(this.options.parameters); - - if (!['get', 'post'].include(this.method)) { - // simulate other verbs over post - params['_method'] = this.method; - this.method = 'post'; - } - - this.parameters = params; - - if (params = Object.toQueryString(params)) { - // when GET, append parameters to URL - if (this.method == 'get') - this.url += (this.url.include('?') ? '&' : '?') + params; - else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) - params += '&_='; - } - - try { - var response = new Ajax.Response(this); - if (this.options.onCreate) this.options.onCreate(response); - Ajax.Responders.dispatch('onCreate', this, response); - - this.transport.open(this.method.toUpperCase(), this.url, - this.options.asynchronous); - - if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1); - - this.transport.onreadystatechange = this.onStateChange.bind(this); - this.setRequestHeaders(); - - this.body = this.method == 'post' ? (this.options.postBody || params) : null; - this.transport.send(this.body); - - /* Force Firefox to handle ready state 4 for synchronous requests */ - if (!this.options.asynchronous && this.transport.overrideMimeType) - this.onStateChange(); - - } - catch (e) { - this.dispatchException(e); - } - }, - - onStateChange: function() { - var readyState = this.transport.readyState; - if (readyState > 1 && !((readyState == 4) && this._complete)) - this.respondToReadyState(this.transport.readyState); - }, - - setRequestHeaders: function() { - var headers = { - 'X-Requested-With': 'XMLHttpRequest', - 'X-Prototype-Version': Prototype.Version, - 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' - }; - - if (this.method == 'post') { - headers['Content-type'] = this.options.contentType + - (this.options.encoding ? '; charset=' + this.options.encoding : ''); - - /* Force "Connection: close" for older Mozilla browsers to work - * around a bug where XMLHttpRequest sends an incorrect - * Content-length header. See Mozilla Bugzilla #246651. - */ - if (this.transport.overrideMimeType && - (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005) - headers['Connection'] = 'close'; - } - - // user-defined headers - if (typeof this.options.requestHeaders == 'object') { - var extras = this.options.requestHeaders; - - if (Object.isFunction(extras.push)) - for (var i = 0, length = extras.length; i < length; i += 2) - headers[extras[i]] = extras[i+1]; - else - $H(extras).each(function(pair) { headers[pair.key] = pair.value }); - } - - for (var name in headers) - this.transport.setRequestHeader(name, headers[name]); - }, - - success: function() { - var status = this.getStatus(); - return !status || (status >= 200 && status < 300); - }, - - getStatus: function() { - try { - return this.transport.status || 0; - } catch (e) { return 0 } - }, - - respondToReadyState: function(readyState) { - var state = Ajax.Request.Events[readyState], response = new Ajax.Response(this); - - if (state == 'Complete') { - try { - this._complete = true; - (this.options['on' + response.status] - || this.options['on' + (this.success() ? 'Success' : 'Failure')] - || Prototype.emptyFunction)(response, response.headerJSON); - } catch (e) { - this.dispatchException(e); - } - - var contentType = response.getHeader('Content-type'); - if (this.options.evalJS == 'force' - || (this.options.evalJS && this.isSameOrigin() && contentType - && contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))) - this.evalResponse(); - } - - try { - (this.options['on' + state] || Prototype.emptyFunction)(response, response.headerJSON); - Ajax.Responders.dispatch('on' + state, this, response, response.headerJSON); - } catch (e) { - this.dispatchException(e); - } - - if (state == 'Complete') { - // avoid memory leak in MSIE: clean up - this.transport.onreadystatechange = Prototype.emptyFunction; - } - }, - - isSameOrigin: function() { - var m = this.url.match(/^\s*https?:\/\/[^\/]*/); - return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({ - protocol: location.protocol, - domain: document.domain, - port: location.port ? ':' + location.port : '' - })); - }, - - getHeader: function(name) { - try { - return this.transport.getResponseHeader(name) || null; - } catch (e) { return null } - }, - - evalResponse: function() { - try { - return eval((this.transport.responseText || '').unfilterJSON()); - } catch (e) { - this.dispatchException(e); - } - }, - - dispatchException: function(exception) { - (this.options.onException || Prototype.emptyFunction)(this, exception); - Ajax.Responders.dispatch('onException', this, exception); - } -}); - -Ajax.Request.Events = - ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete']; - -Ajax.Response = Class.create({ - initialize: function(request){ - this.request = request; - var transport = this.transport = request.transport, - readyState = this.readyState = transport.readyState; - - if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) { - this.status = this.getStatus(); - this.statusText = this.getStatusText(); - this.responseText = String.interpret(transport.responseText); - this.headerJSON = this._getHeaderJSON(); - } - - if(readyState == 4) { - var xml = transport.responseXML; - this.responseXML = Object.isUndefined(xml) ? null : xml; - this.responseJSON = this._getResponseJSON(); - } - }, - - status: 0, - statusText: '', - - getStatus: Ajax.Request.prototype.getStatus, - - getStatusText: function() { - try { - return this.transport.statusText || ''; - } catch (e) { return '' } - }, - - getHeader: Ajax.Request.prototype.getHeader, - - getAllHeaders: function() { - try { - return this.getAllResponseHeaders(); - } catch (e) { return null } - }, - - getResponseHeader: function(name) { - return this.transport.getResponseHeader(name); - }, - - getAllResponseHeaders: function() { - return this.transport.getAllResponseHeaders(); - }, - - _getHeaderJSON: function() { - var json = this.getHeader('X-JSON'); - if (!json) return null; - json = decodeURIComponent(escape(json)); - try { - return json.evalJSON(this.request.options.sanitizeJSON || - !this.request.isSameOrigin()); - } catch (e) { - this.request.dispatchException(e); - } - }, - - _getResponseJSON: function() { - var options = this.request.options; - if (!options.evalJSON || (options.evalJSON != 'force' && - !(this.getHeader('Content-type') || '').include('application/json')) || - this.responseText.blank()) - return null; - try { - return this.responseText.evalJSON(options.sanitizeJSON || - !this.request.isSameOrigin()); - } catch (e) { - this.request.dispatchException(e); - } - } -}); - -Ajax.Updater = Class.create(Ajax.Request, { - initialize: function($super, container, url, options) { - this.container = { - success: (container.success || container), - failure: (container.failure || (container.success ? null : container)) - }; - - options = Object.clone(options); - var onComplete = options.onComplete; - options.onComplete = (function(response, json) { - this.updateContent(response.responseText); - if (Object.isFunction(onComplete)) onComplete(response, json); - }).bind(this); - - $super(url, options); - }, - - updateContent: function(responseText) { - var receiver = this.container[this.success() ? 'success' : 'failure'], - options = this.options; - - if (!options.evalScripts) responseText = responseText.stripScripts(); - - if (receiver = $(receiver)) { - if (options.insertion) { - if (Object.isString(options.insertion)) { - var insertion = { }; insertion[options.insertion] = responseText; - receiver.insert(insertion); - } - else options.insertion(receiver, responseText); - } - else receiver.update(responseText); - } - } -}); - -Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { - initialize: function($super, container, url, options) { - $super(options); - this.onComplete = this.options.onComplete; - - this.frequency = (this.options.frequency || 2); - this.decay = (this.options.decay || 1); - - this.updater = { }; - this.container = container; - this.url = url; - - this.start(); - }, - - start: function() { - this.options.onComplete = this.updateComplete.bind(this); - this.onTimerEvent(); - }, - - stop: function() { - this.updater.options.onComplete = undefined; - clearTimeout(this.timer); - (this.onComplete || Prototype.emptyFunction).apply(this, arguments); - }, - - updateComplete: function(response) { - if (this.options.decay) { - this.decay = (response.responseText == this.lastText ? - this.decay * this.options.decay : 1); - - this.lastText = response.responseText; - } - this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency); - }, - - onTimerEvent: function() { - this.updater = new Ajax.Updater(this.container, this.url, this.options); - } -}); -function $(element) { - if (arguments.length > 1) { - for (var i = 0, elements = [], length = arguments.length; i < length; i++) - elements.push($(arguments[i])); - return elements; - } - if (Object.isString(element)) - element = document.getElementById(element); - return Element.extend(element); -} - -if (Prototype.BrowserFeatures.XPath) { - document._getElementsByXPath = function(expression, parentElement) { - var results = []; - var query = document.evaluate(expression, $(parentElement) || document, - null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); - for (var i = 0, length = query.snapshotLength; i < length; i++) - results.push(Element.extend(query.snapshotItem(i))); - return results; - }; -} - -/*--------------------------------------------------------------------------*/ - -if (!window.Node) var Node = { }; - -if (!Node.ELEMENT_NODE) { - // DOM level 2 ECMAScript Language Binding - Object.extend(Node, { - ELEMENT_NODE: 1, - ATTRIBUTE_NODE: 2, - TEXT_NODE: 3, - CDATA_SECTION_NODE: 4, - ENTITY_REFERENCE_NODE: 5, - ENTITY_NODE: 6, - PROCESSING_INSTRUCTION_NODE: 7, - COMMENT_NODE: 8, - DOCUMENT_NODE: 9, - DOCUMENT_TYPE_NODE: 10, - DOCUMENT_FRAGMENT_NODE: 11, - NOTATION_NODE: 12 - }); -} - -(function() { - var element = this.Element; - this.Element = function(tagName, attributes) { - attributes = attributes || { }; - tagName = tagName.toLowerCase(); - var cache = Element.cache; - if (Prototype.Browser.IE && attributes.name) { - tagName = '<' + tagName + ' name="' + attributes.name + '">'; - delete attributes.name; - return Element.writeAttribute(document.createElement(tagName), attributes); - } - if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName)); - return Element.writeAttribute(cache[tagName].cloneNode(false), attributes); - }; - Object.extend(this.Element, element || { }); -}).call(window); - -Element.cache = { }; - -Element.Methods = { - visible: function(element) { - return $(element).style.display != 'none'; - }, - - toggle: function(element) { - element = $(element); - Element[Element.visible(element) ? 'hide' : 'show'](element); - return element; - }, - - hide: function(element) { - $(element).style.display = 'none'; - return element; - }, - - show: function(element) { - $(element).style.display = ''; - return element; - }, - - remove: function(element) { - element = $(element); - element.parentNode.removeChild(element); - return element; - }, - - update: function(element, content) { - element = $(element); - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) return element.update().insert(content); - content = Object.toHTML(content); - element.innerHTML = content.stripScripts(); - content.evalScripts.bind(content).defer(); - return element; - }, - - replace: function(element, content) { - element = $(element); - if (content && content.toElement) content = content.toElement(); - else if (!Object.isElement(content)) { - content = Object.toHTML(content); - var range = element.ownerDocument.createRange(); - range.selectNode(element); - content.evalScripts.bind(content).defer(); - content = range.createContextualFragment(content.stripScripts()); - } - element.parentNode.replaceChild(content, element); - return element; - }, - - insert: function(element, insertions) { - element = $(element); - - if (Object.isString(insertions) || Object.isNumber(insertions) || - Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML))) - insertions = {bottom:insertions}; - - var content, insert, tagName, childNodes; - - for (var position in insertions) { - content = insertions[position]; - position = position.toLowerCase(); - insert = Element._insertionTranslations[position]; - - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) { - insert(element, content); - continue; - } - - content = Object.toHTML(content); - - tagName = ((position == 'before' || position == 'after') - ? element.parentNode : element).tagName.toUpperCase(); - - childNodes = Element._getContentFromAnonymousElement(tagName, content.stripScripts()); - - if (position == 'top' || position == 'after') childNodes.reverse(); - childNodes.each(insert.curry(element)); - - content.evalScripts.bind(content).defer(); - } - - return element; - }, - - wrap: function(element, wrapper, attributes) { - element = $(element); - if (Object.isElement(wrapper)) - $(wrapper).writeAttribute(attributes || { }); - else if (Object.isString(wrapper)) wrapper = new Element(wrapper, attributes); - else wrapper = new Element('div', wrapper); - if (element.parentNode) - element.parentNode.replaceChild(wrapper, element); - wrapper.appendChild(element); - return wrapper; - }, - - inspect: function(element) { - element = $(element); - var result = '<' + element.tagName.toLowerCase(); - $H({'id': 'id', 'className': 'class'}).each(function(pair) { - var property = pair.first(), attribute = pair.last(); - var value = (element[property] || '').toString(); - if (value) result += ' ' + attribute + '=' + value.inspect(true); - }); - return result + '>'; - }, - - recursivelyCollect: function(element, property) { - element = $(element); - var elements = []; - while (element = element[property]) - if (element.nodeType == 1) - elements.push(Element.extend(element)); - return elements; - }, - - ancestors: function(element) { - return $(element).recursivelyCollect('parentNode'); - }, - - descendants: function(element) { - return $(element).select("*"); - }, - - firstDescendant: function(element) { - element = $(element).firstChild; - while (element && element.nodeType != 1) element = element.nextSibling; - return $(element); - }, - - immediateDescendants: function(element) { - if (!(element = $(element).firstChild)) return []; - while (element && element.nodeType != 1) element = element.nextSibling; - if (element) return [element].concat($(element).nextSiblings()); - return []; - }, - - previousSiblings: function(element) { - return $(element).recursivelyCollect('previousSibling'); - }, - - nextSiblings: function(element) { - return $(element).recursivelyCollect('nextSibling'); - }, - - siblings: function(element) { - element = $(element); - return element.previousSiblings().reverse().concat(element.nextSiblings()); - }, - - match: function(element, selector) { - if (Object.isString(selector)) - selector = new Selector(selector); - return selector.match($(element)); - }, - - up: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return $(element.parentNode); - var ancestors = element.ancestors(); - return Object.isNumber(expression) ? ancestors[expression] : - Selector.findElement(ancestors, expression, index); - }, - - down: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return element.firstDescendant(); - return Object.isNumber(expression) ? element.descendants()[expression] : - element.select(expression)[index || 0]; - }, - - previous: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return $(Selector.handlers.previousElementSibling(element)); - var previousSiblings = element.previousSiblings(); - return Object.isNumber(expression) ? previousSiblings[expression] : - Selector.findElement(previousSiblings, expression, index); - }, - - next: function(element, expression, index) { - element = $(element); - if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); - var nextSiblings = element.nextSiblings(); - return Object.isNumber(expression) ? nextSiblings[expression] : - Selector.findElement(nextSiblings, expression, index); - }, - - select: function() { - var args = $A(arguments), element = $(args.shift()); - return Selector.findChildElements(element, args); - }, - - adjacent: function() { - var args = $A(arguments), element = $(args.shift()); - return Selector.findChildElements(element.parentNode, args).without(element); - }, - - identify: function(element) { - element = $(element); - var id = element.readAttribute('id'), self = arguments.callee; - if (id) return id; - do { id = 'anonymous_element_' + self.counter++ } while ($(id)); - element.writeAttribute('id', id); - return id; - }, - - readAttribute: function(element, name) { - element = $(element); - if (Prototype.Browser.IE) { - var t = Element._attributeTranslations.read; - if (t.values[name]) return t.values[name](element, name); - if (t.names[name]) name = t.names[name]; - if (name.include(':')) { - return (!element.attributes || !element.attributes[name]) ? null : - element.attributes[name].value; - } - } - return element.getAttribute(name); - }, - - writeAttribute: function(element, name, value) { - element = $(element); - var attributes = { }, t = Element._attributeTranslations.write; - - if (typeof name == 'object') attributes = name; - else attributes[name] = Object.isUndefined(value) ? true : value; - - for (var attr in attributes) { - name = t.names[attr] || attr; - value = attributes[attr]; - if (t.values[attr]) name = t.values[attr](element, value); - if (value === false || value === null) - element.removeAttribute(name); - else if (value === true) - element.setAttribute(name, name); - else element.setAttribute(name, value); - } - return element; - }, - - getHeight: function(element) { - return $(element).getDimensions().height; - }, - - getWidth: function(element) { - return $(element).getDimensions().width; - }, - - classNames: function(element) { - return new Element.ClassNames(element); - }, - - hasClassName: function(element, className) { - if (!(element = $(element))) return; - var elementClassName = element.className; - return (elementClassName.length > 0 && (elementClassName == className || - new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName))); - }, - - addClassName: function(element, className) { - if (!(element = $(element))) return; - if (!element.hasClassName(className)) - element.className += (element.className ? ' ' : '') + className; - return element; - }, - - removeClassName: function(element, className) { - if (!(element = $(element))) return; - element.className = element.className.replace( - new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip(); - return element; - }, - - toggleClassName: function(element, className) { - if (!(element = $(element))) return; - return element[element.hasClassName(className) ? - 'removeClassName' : 'addClassName'](className); - }, - - // removes whitespace-only text node children - cleanWhitespace: function(element) { - element = $(element); - var node = element.firstChild; - while (node) { - var nextNode = node.nextSibling; - if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) - element.removeChild(node); - node = nextNode; - } - return element; - }, - - empty: function(element) { - return $(element).innerHTML.blank(); - }, - - descendantOf: function(element, ancestor) { - element = $(element), ancestor = $(ancestor); - var originalAncestor = ancestor; - - if (element.compareDocumentPosition) - return (element.compareDocumentPosition(ancestor) & 8) === 8; - - if (element.sourceIndex && !Prototype.Browser.Opera) { - var e = element.sourceIndex, a = ancestor.sourceIndex, - nextAncestor = ancestor.nextSibling; - if (!nextAncestor) { - do { ancestor = ancestor.parentNode; } - while (!(nextAncestor = ancestor.nextSibling) && ancestor.parentNode); - } - if (nextAncestor && nextAncestor.sourceIndex) - return (e > a && e < nextAncestor.sourceIndex); - } - - while (element = element.parentNode) - if (element == originalAncestor) return true; - return false; - }, - - scrollTo: function(element) { - element = $(element); - var pos = element.cumulativeOffset(); - window.scrollTo(pos[0], pos[1]); - return element; - }, - - getStyle: function(element, style) { - element = $(element); - style = style == 'float' ? 'cssFloat' : style.camelize(); - var value = element.style[style]; - if (!value) { - var css = document.defaultView.getComputedStyle(element, null); - value = css ? css[style] : null; - } - if (style == 'opacity') return value ? parseFloat(value) : 1.0; - return value == 'auto' ? null : value; - }, - - getOpacity: function(element) { - return $(element).getStyle('opacity'); - }, - - setStyle: function(element, styles) { - element = $(element); - var elementStyle = element.style, match; - if (Object.isString(styles)) { - element.style.cssText += ';' + styles; - return styles.include('opacity') ? - element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element; - } - for (var property in styles) - if (property == 'opacity') element.setOpacity(styles[property]); - else - elementStyle[(property == 'float' || property == 'cssFloat') ? - (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 'styleFloat') : - property] = styles[property]; - - return element; - }, - - setOpacity: function(element, value) { - element = $(element); - element.style.opacity = (value == 1 || value === '') ? '' : - (value < 0.00001) ? 0 : value; - return element; - }, - - getDimensions: function(element) { - element = $(element); - var display = $(element).getStyle('display'); - if (display != 'none' && display != null) // Safari bug - return {width: element.offsetWidth, height: element.offsetHeight}; - - // All *Width and *Height properties give 0 on elements with display none, - // so enable the element temporarily - var els = element.style; - var originalVisibility = els.visibility; - var originalPosition = els.position; - var originalDisplay = els.display; - els.visibility = 'hidden'; - els.position = 'absolute'; - els.display = 'block'; - var originalWidth = element.clientWidth; - var originalHeight = element.clientHeight; - els.display = originalDisplay; - els.position = originalPosition; - els.visibility = originalVisibility; - return {width: originalWidth, height: originalHeight}; - }, - - makePositioned: function(element) { - element = $(element); - var pos = Element.getStyle(element, 'position'); - if (pos == 'static' || !pos) { - element._madePositioned = true; - element.style.position = 'relative'; - // Opera returns the offset relative to the positioning context, when an - // element is position relative but top and left have not been defined - if (window.opera) { - element.style.top = 0; - element.style.left = 0; - } - } - return element; - }, - - undoPositioned: function(element) { - element = $(element); - if (element._madePositioned) { - element._madePositioned = undefined; - element.style.position = - element.style.top = - element.style.left = - element.style.bottom = - element.style.right = ''; - } - return element; - }, - - makeClipping: function(element) { - element = $(element); - if (element._overflow) return element; - element._overflow = Element.getStyle(element, 'overflow') || 'auto'; - if (element._overflow !== 'hidden') - element.style.overflow = 'hidden'; - return element; - }, - - undoClipping: function(element) { - element = $(element); - if (!element._overflow) return element; - element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; - element._overflow = null; - return element; - }, - - cumulativeOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return Element._returnOffset(valueL, valueT); - }, - - positionedOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - if (element) { - if (element.tagName == 'BODY') break; - var p = Element.getStyle(element, 'position'); - if (p !== 'static') break; - } - } while (element); - return Element._returnOffset(valueL, valueT); - }, - - absolutize: function(element) { - element = $(element); - if (element.getStyle('position') == 'absolute') return; - // Position.prepare(); // To be done manually by Scripty when it needs it. - - var offsets = element.positionedOffset(); - var top = offsets[1]; - var left = offsets[0]; - var width = element.clientWidth; - var height = element.clientHeight; - - element._originalLeft = left - parseFloat(element.style.left || 0); - element._originalTop = top - parseFloat(element.style.top || 0); - element._originalWidth = element.style.width; - element._originalHeight = element.style.height; - - element.style.position = 'absolute'; - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.width = width + 'px'; - element.style.height = height + 'px'; - return element; - }, - - relativize: function(element) { - element = $(element); - if (element.getStyle('position') == 'relative') return; - // Position.prepare(); // To be done manually by Scripty when it needs it. - - element.style.position = 'relative'; - var top = parseFloat(element.style.top || 0) - (element._originalTop || 0); - var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0); - - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.height = element._originalHeight; - element.style.width = element._originalWidth; - return element; - }, - - cumulativeScrollOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.scrollTop || 0; - valueL += element.scrollLeft || 0; - element = element.parentNode; - } while (element); - return Element._returnOffset(valueL, valueT); - }, - - getOffsetParent: function(element) { - if (element.offsetParent) return $(element.offsetParent); - if (element == document.body) return $(element); - - while ((element = element.parentNode) && element != document.body) - if (Element.getStyle(element, 'position') != 'static') - return $(element); - - return $(document.body); - }, - - viewportOffset: function(forElement) { - var valueT = 0, valueL = 0; - - var element = forElement; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - - // Safari fix - if (element.offsetParent == document.body && - Element.getStyle(element, 'position') == 'absolute') break; - - } while (element = element.offsetParent); - - element = forElement; - do { - if (!Prototype.Browser.Opera || element.tagName == 'BODY') { - valueT -= element.scrollTop || 0; - valueL -= element.scrollLeft || 0; - } - } while (element = element.parentNode); - - return Element._returnOffset(valueL, valueT); - }, - - clonePosition: function(element, source) { - var options = Object.extend({ - setLeft: true, - setTop: true, - setWidth: true, - setHeight: true, - offsetTop: 0, - offsetLeft: 0 - }, arguments[2] || { }); - - // find page position of source - source = $(source); - var p = source.viewportOffset(); - - // find coordinate system to use - element = $(element); - var delta = [0, 0]; - var parent = null; - // delta [0,0] will do fine with position: fixed elements, - // position:absolute needs offsetParent deltas - if (Element.getStyle(element, 'position') == 'absolute') { - parent = element.getOffsetParent(); - delta = parent.viewportOffset(); - } - - // correct by body offsets (fixes Safari) - if (parent == document.body) { - delta[0] -= document.body.offsetLeft; - delta[1] -= document.body.offsetTop; - } - - // set position - if (options.setLeft) element.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px'; - if (options.setTop) element.style.top = (p[1] - delta[1] + options.offsetTop) + 'px'; - if (options.setWidth) element.style.width = source.offsetWidth + 'px'; - if (options.setHeight) element.style.height = source.offsetHeight + 'px'; - return element; - } -}; - -Element.Methods.identify.counter = 1; - -Object.extend(Element.Methods, { - getElementsBySelector: Element.Methods.select, - childElements: Element.Methods.immediateDescendants -}); - -Element._attributeTranslations = { - write: { - names: { - className: 'class', - htmlFor: 'for' - }, - values: { } - } -}; - -if (Prototype.Browser.Opera) { - Element.Methods.getStyle = Element.Methods.getStyle.wrap( - function(proceed, element, style) { - switch (style) { - case 'left': case 'top': case 'right': case 'bottom': - if (proceed(element, 'position') === 'static') return null; - case 'height': case 'width': - // returns '0px' for hidden elements; we want it to return null - if (!Element.visible(element)) return null; - - // returns the border-box dimensions rather than the content-box - // dimensions, so we subtract padding and borders from the value - var dim = parseInt(proceed(element, style), 10); - - if (dim !== element['offset' + style.capitalize()]) - return dim + 'px'; - - var properties; - if (style === 'height') { - properties = ['border-top-width', 'padding-top', - 'padding-bottom', 'border-bottom-width']; - } - else { - properties = ['border-left-width', 'padding-left', - 'padding-right', 'border-right-width']; - } - return properties.inject(dim, function(memo, property) { - var val = proceed(element, property); - return val === null ? memo : memo - parseInt(val, 10); - }) + 'px'; - default: return proceed(element, style); - } - } - ); - - Element.Methods.readAttribute = Element.Methods.readAttribute.wrap( - function(proceed, element, attribute) { - if (attribute === 'title') return element.title; - return proceed(element, attribute); - } - ); -} - -else if (Prototype.Browser.IE) { - // IE doesn't report offsets correctly for static elements, so we change them - // to "relative" to get the values, then change them back. - Element.Methods.getOffsetParent = Element.Methods.getOffsetParent.wrap( - function(proceed, element) { - element = $(element); - var position = element.getStyle('position'); - if (position !== 'static') return proceed(element); - element.setStyle({ position: 'relative' }); - var value = proceed(element); - element.setStyle({ position: position }); - return value; - } - ); - - $w('positionedOffset viewportOffset').each(function(method) { - Element.Methods[method] = Element.Methods[method].wrap( - function(proceed, element) { - element = $(element); - var position = element.getStyle('position'); - if (position !== 'static') return proceed(element); - // Trigger hasLayout on the offset parent so that IE6 reports - // accurate offsetTop and offsetLeft values for position: fixed. - var offsetParent = element.getOffsetParent(); - if (offsetParent && offsetParent.getStyle('position') === 'fixed') - offsetParent.setStyle({ zoom: 1 }); - element.setStyle({ position: 'relative' }); - var value = proceed(element); - element.setStyle({ position: position }); - return value; - } - ); - }); - - Element.Methods.getStyle = function(element, style) { - element = $(element); - style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize(); - var value = element.style[style]; - if (!value && element.currentStyle) value = element.currentStyle[style]; - - if (style == 'opacity') { - if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/)) - if (value[1]) return parseFloat(value[1]) / 100; - return 1.0; - } - - if (value == 'auto') { - if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none')) - return element['offset' + style.capitalize()] + 'px'; - return null; - } - return value; - }; - - Element.Methods.setOpacity = function(element, value) { - function stripAlpha(filter){ - return filter.replace(/alpha\([^\)]*\)/gi,''); - } - element = $(element); - var currentStyle = element.currentStyle; - if ((currentStyle && !currentStyle.hasLayout) || - (!currentStyle && element.style.zoom == 'normal')) - element.style.zoom = 1; - - var filter = element.getStyle('filter'), style = element.style; - if (value == 1 || value === '') { - (filter = stripAlpha(filter)) ? - style.filter = filter : style.removeAttribute('filter'); - return element; - } else if (value < 0.00001) value = 0; - style.filter = stripAlpha(filter) + - 'alpha(opacity=' + (value * 100) + ')'; - return element; - }; - - Element._attributeTranslations = { - read: { - names: { - 'class': 'className', - 'for': 'htmlFor' - }, - values: { - _getAttr: function(element, attribute) { - return element.getAttribute(attribute, 2); - }, - _getAttrNode: function(element, attribute) { - var node = element.getAttributeNode(attribute); - return node ? node.value : ""; - }, - _getEv: function(element, attribute) { - attribute = element.getAttribute(attribute); - return attribute ? attribute.toString().slice(23, -2) : null; - }, - _flag: function(element, attribute) { - return $(element).hasAttribute(attribute) ? attribute : null; - }, - style: function(element) { - return element.style.cssText.toLowerCase(); - }, - title: function(element) { - return element.title; - } - } - } - }; - - Element._attributeTranslations.write = { - names: Object.extend({ - cellpadding: 'cellPadding', - cellspacing: 'cellSpacing' - }, Element._attributeTranslations.read.names), - values: { - checked: function(element, value) { - element.checked = !!value; - }, - - style: function(element, value) { - element.style.cssText = value ? value : ''; - } - } - }; - - Element._attributeTranslations.has = {}; - - $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' + - 'encType maxLength readOnly longDesc').each(function(attr) { - Element._attributeTranslations.write.names[attr.toLowerCase()] = attr; - Element._attributeTranslations.has[attr.toLowerCase()] = attr; - }); - - (function(v) { - Object.extend(v, { - href: v._getAttr, - src: v._getAttr, - type: v._getAttr, - action: v._getAttrNode, - disabled: v._flag, - checked: v._flag, - readonly: v._flag, - multiple: v._flag, - onload: v._getEv, - onunload: v._getEv, - onclick: v._getEv, - ondblclick: v._getEv, - onmousedown: v._getEv, - onmouseup: v._getEv, - onmouseover: v._getEv, - onmousemove: v._getEv, - onmouseout: v._getEv, - onfocus: v._getEv, - onblur: v._getEv, - onkeypress: v._getEv, - onkeydown: v._getEv, - onkeyup: v._getEv, - onsubmit: v._getEv, - onreset: v._getEv, - onselect: v._getEv, - onchange: v._getEv - }); - })(Element._attributeTranslations.read.values); -} - -else if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) { - Element.Methods.setOpacity = function(element, value) { - element = $(element); - element.style.opacity = (value == 1) ? 0.999999 : - (value === '') ? '' : (value < 0.00001) ? 0 : value; - return element; - }; -} - -else if (Prototype.Browser.WebKit) { - Element.Methods.setOpacity = function(element, value) { - element = $(element); - element.style.opacity = (value == 1 || value === '') ? '' : - (value < 0.00001) ? 0 : value; - - if (value == 1) - if(element.tagName == 'IMG' && element.width) { - element.width++; element.width--; - } else try { - var n = document.createTextNode(' '); - element.appendChild(n); - element.removeChild(n); - } catch (e) { } - - return element; - }; - - // Safari returns margins on body which is incorrect if the child is absolutely - // positioned. For performance reasons, redefine Element#cumulativeOffset for - // KHTML/WebKit only. - Element.Methods.cumulativeOffset = function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - if (element.offsetParent == document.body) - if (Element.getStyle(element, 'position') == 'absolute') break; - - element = element.offsetParent; - } while (element); - - return Element._returnOffset(valueL, valueT); - }; -} - -if (Prototype.Browser.IE || Prototype.Browser.Opera) { - // IE and Opera are missing .innerHTML support for TABLE-related and SELECT elements - Element.Methods.update = function(element, content) { - element = $(element); - - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) return element.update().insert(content); - - content = Object.toHTML(content); - var tagName = element.tagName.toUpperCase(); - - if (tagName in Element._insertionTranslations.tags) { - $A(element.childNodes).each(function(node) { element.removeChild(node) }); - Element._getContentFromAnonymousElement(tagName, content.stripScripts()) - .each(function(node) { element.appendChild(node) }); - } - else element.innerHTML = content.stripScripts(); - - content.evalScripts.bind(content).defer(); - return element; - }; -} - -if ('outerHTML' in document.createElement('div')) { - Element.Methods.replace = function(element, content) { - element = $(element); - - if (content && content.toElement) content = content.toElement(); - if (Object.isElement(content)) { - element.parentNode.replaceChild(content, element); - return element; - } - - content = Object.toHTML(content); - var parent = element.parentNode, tagName = parent.tagName.toUpperCase(); - - if (Element._insertionTranslations.tags[tagName]) { - var nextSibling = element.next(); - var fragments = Element._getContentFromAnonymousElement(tagName, content.stripScripts()); - parent.removeChild(element); - if (nextSibling) - fragments.each(function(node) { parent.insertBefore(node, nextSibling) }); - else - fragments.each(function(node) { parent.appendChild(node) }); - } - else element.outerHTML = content.stripScripts(); - - content.evalScripts.bind(content).defer(); - return element; - }; -} - -Element._returnOffset = function(l, t) { - var result = [l, t]; - result.left = l; - result.top = t; - return result; -}; - -Element._getContentFromAnonymousElement = function(tagName, html) { - var div = new Element('div'), t = Element._insertionTranslations.tags[tagName]; - if (t) { - div.innerHTML = t[0] + html + t[1]; - t[2].times(function() { div = div.firstChild }); - } else div.innerHTML = html; - return $A(div.childNodes); -}; - -Element._insertionTranslations = { - before: function(element, node) { - element.parentNode.insertBefore(node, element); - }, - top: function(element, node) { - element.insertBefore(node, element.firstChild); - }, - bottom: function(element, node) { - element.appendChild(node); - }, - after: function(element, node) { - element.parentNode.insertBefore(node, element.nextSibling); - }, - tags: { - TABLE: ['', '
', 1], - TBODY: ['', '
', 2], - TR: ['', '
', 3], - TD: ['
', '
', 4], - SELECT: ['', 1] - } -}; - -(function() { - Object.extend(this.tags, { - THEAD: this.tags.TBODY, - TFOOT: this.tags.TBODY, - TH: this.tags.TD - }); -}).call(Element._insertionTranslations); - -Element.Methods.Simulated = { - hasAttribute: function(element, attribute) { - attribute = Element._attributeTranslations.has[attribute] || attribute; - var node = $(element).getAttributeNode(attribute); - return node && node.specified; - } -}; - -Element.Methods.ByTag = { }; - -Object.extend(Element, Element.Methods); - -if (!Prototype.BrowserFeatures.ElementExtensions && - document.createElement('div').__proto__) { - window.HTMLElement = { }; - window.HTMLElement.prototype = document.createElement('div').__proto__; - Prototype.BrowserFeatures.ElementExtensions = true; -} - -Element.extend = (function() { - if (Prototype.BrowserFeatures.SpecificElementExtensions) - return Prototype.K; - - var Methods = { }, ByTag = Element.Methods.ByTag; - - var extend = Object.extend(function(element) { - if (!element || element._extendedByPrototype || - element.nodeType != 1 || element == window) return element; - - var methods = Object.clone(Methods), - tagName = element.tagName, property, value; - - // extend methods for specific tags - if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]); - - for (property in methods) { - value = methods[property]; - if (Object.isFunction(value) && !(property in element)) - element[property] = value.methodize(); - } - - element._extendedByPrototype = Prototype.emptyFunction; - return element; - - }, { - refresh: function() { - // extend methods for all tags (Safari doesn't need this) - if (!Prototype.BrowserFeatures.ElementExtensions) { - Object.extend(Methods, Element.Methods); - Object.extend(Methods, Element.Methods.Simulated); - } - } - }); - - extend.refresh(); - return extend; -})(); - -Element.hasAttribute = function(element, attribute) { - if (element.hasAttribute) return element.hasAttribute(attribute); - return Element.Methods.Simulated.hasAttribute(element, attribute); -}; - -Element.addMethods = function(methods) { - var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag; - - if (!methods) { - Object.extend(Form, Form.Methods); - Object.extend(Form.Element, Form.Element.Methods); - Object.extend(Element.Methods.ByTag, { - "FORM": Object.clone(Form.Methods), - "INPUT": Object.clone(Form.Element.Methods), - "SELECT": Object.clone(Form.Element.Methods), - "TEXTAREA": Object.clone(Form.Element.Methods) - }); - } - - if (arguments.length == 2) { - var tagName = methods; - methods = arguments[1]; - } - - if (!tagName) Object.extend(Element.Methods, methods || { }); - else { - if (Object.isArray(tagName)) tagName.each(extend); - else extend(tagName); - } - - function extend(tagName) { - tagName = tagName.toUpperCase(); - if (!Element.Methods.ByTag[tagName]) - Element.Methods.ByTag[tagName] = { }; - Object.extend(Element.Methods.ByTag[tagName], methods); - } - - function copy(methods, destination, onlyIfAbsent) { - onlyIfAbsent = onlyIfAbsent || false; - for (var property in methods) { - var value = methods[property]; - if (!Object.isFunction(value)) continue; - if (!onlyIfAbsent || !(property in destination)) - destination[property] = value.methodize(); - } - } - - function findDOMClass(tagName) { - var klass; - var trans = { - "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph", - "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": "DList", - "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": "Heading", - "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote", - "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", "CAPTION": - "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", "THEAD": - "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", "TR": - "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET": - "FrameSet", "IFRAME": "IFrame" - }; - if (trans[tagName]) klass = 'HTML' + trans[tagName] + 'Element'; - if (window[klass]) return window[klass]; - klass = 'HTML' + tagName + 'Element'; - if (window[klass]) return window[klass]; - klass = 'HTML' + tagName.capitalize() + 'Element'; - if (window[klass]) return window[klass]; - - window[klass] = { }; - window[klass].prototype = document.createElement(tagName).__proto__; - return window[klass]; - } - - if (F.ElementExtensions) { - copy(Element.Methods, HTMLElement.prototype); - copy(Element.Methods.Simulated, HTMLElement.prototype, true); - } - - if (F.SpecificElementExtensions) { - for (var tag in Element.Methods.ByTag) { - var klass = findDOMClass(tag); - if (Object.isUndefined(klass)) continue; - copy(T[tag], klass.prototype); - } - } - - Object.extend(Element, Element.Methods); - delete Element.ByTag; - - if (Element.extend.refresh) Element.extend.refresh(); - Element.cache = { }; -}; - -document.viewport = { - getDimensions: function() { - var dimensions = { }; - var B = Prototype.Browser; - $w('width height').each(function(d) { - var D = d.capitalize(); - dimensions[d] = (B.WebKit && !document.evaluate) ? self['inner' + D] : - (B.Opera) ? document.body['client' + D] : document.documentElement['client' + D]; - }); - return dimensions; - }, - - getWidth: function() { - return this.getDimensions().width; - }, - - getHeight: function() { - return this.getDimensions().height; - }, - - getScrollOffsets: function() { - return Element._returnOffset( - window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, - window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); - } -}; -/* Portions of the Selector class are derived from Jack Slocum’s DomQuery, - * part of YUI-Ext version 0.40, distributed under the terms of an MIT-style - * license. Please see http://www.yui-ext.com/ for more information. */ - -var Selector = Class.create({ - initialize: function(expression) { - this.expression = expression.strip(); - this.compileMatcher(); - }, - - shouldUseXPath: function() { - if (!Prototype.BrowserFeatures.XPath) return false; - - var e = this.expression; - - // Safari 3 chokes on :*-of-type and :empty - if (Prototype.Browser.WebKit && - (e.include("-of-type") || e.include(":empty"))) - return false; - - // XPath can't do namespaced attributes, nor can it read - // the "checked" property from DOM nodes - if ((/(\[[\w-]*?:|:checked)/).test(this.expression)) - return false; - - return true; - }, - - compileMatcher: function() { - if (this.shouldUseXPath()) - return this.compileXPathMatcher(); - - var e = this.expression, ps = Selector.patterns, h = Selector.handlers, - c = Selector.criteria, le, p, m; - - if (Selector._cache[e]) { - this.matcher = Selector._cache[e]; - return; - } - - this.matcher = ["this.matcher = function(root) {", - "var r = root, h = Selector.handlers, c = false, n;"]; - - while (e && le != e && (/\S/).test(e)) { - le = e; - for (var i in ps) { - p = ps[i]; - if (m = e.match(p)) { - this.matcher.push(Object.isFunction(c[i]) ? c[i](m) : - new Template(c[i]).evaluate(m)); - e = e.replace(m[0], ''); - break; - } - } - } - - this.matcher.push("return h.unique(n);\n}"); - eval(this.matcher.join('\n')); - Selector._cache[this.expression] = this.matcher; - }, - - compileXPathMatcher: function() { - var e = this.expression, ps = Selector.patterns, - x = Selector.xpath, le, m; - - if (Selector._cache[e]) { - this.xpath = Selector._cache[e]; return; - } - - this.matcher = ['.//*']; - while (e && le != e && (/\S/).test(e)) { - le = e; - for (var i in ps) { - if (m = e.match(ps[i])) { - this.matcher.push(Object.isFunction(x[i]) ? x[i](m) : - new Template(x[i]).evaluate(m)); - e = e.replace(m[0], ''); - break; - } - } - } - - this.xpath = this.matcher.join(''); - Selector._cache[this.expression] = this.xpath; - }, - - findElements: function(root) { - root = root || document; - if (this.xpath) return document._getElementsByXPath(this.xpath, root); - return this.matcher(root); - }, - - match: function(element) { - this.tokens = []; - - var e = this.expression, ps = Selector.patterns, as = Selector.assertions; - var le, p, m; - - while (e && le !== e && (/\S/).test(e)) { - le = e; - for (var i in ps) { - p = ps[i]; - if (m = e.match(p)) { - // use the Selector.assertions methods unless the selector - // is too complex. - if (as[i]) { - this.tokens.push([i, Object.clone(m)]); - e = e.replace(m[0], ''); - } else { - // reluctantly do a document-wide search - // and look for a match in the array - return this.findElements(document).include(element); - } - } - } - } - - var match = true, name, matches; - for (var i = 0, token; token = this.tokens[i]; i++) { - name = token[0], matches = token[1]; - if (!Selector.assertions[name](element, matches)) { - match = false; break; - } - } - - return match; - }, - - toString: function() { - return this.expression; - }, - - inspect: function() { - return "#"; - } -}); - -Object.extend(Selector, { - _cache: { }, - - xpath: { - descendant: "//*", - child: "/*", - adjacent: "/following-sibling::*[1]", - laterSibling: '/following-sibling::*', - tagName: function(m) { - if (m[1] == '*') return ''; - return "[local-name()='" + m[1].toLowerCase() + - "' or local-name()='" + m[1].toUpperCase() + "']"; - }, - className: "[contains(concat(' ', @class, ' '), ' #{1} ')]", - id: "[@id='#{1}']", - attrPresence: function(m) { - m[1] = m[1].toLowerCase(); - return new Template("[@#{1}]").evaluate(m); - }, - attr: function(m) { - m[1] = m[1].toLowerCase(); - m[3] = m[5] || m[6]; - return new Template(Selector.xpath.operators[m[2]]).evaluate(m); - }, - pseudo: function(m) { - var h = Selector.xpath.pseudos[m[1]]; - if (!h) return ''; - if (Object.isFunction(h)) return h(m); - return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m); - }, - operators: { - '=': "[@#{1}='#{3}']", - '!=': "[@#{1}!='#{3}']", - '^=': "[starts-with(@#{1}, '#{3}')]", - '$=': "[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']", - '*=': "[contains(@#{1}, '#{3}')]", - '~=': "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]", - '|=': "[contains(concat('-', @#{1}, '-'), '-#{3}-')]" - }, - pseudos: { - 'first-child': '[not(preceding-sibling::*)]', - 'last-child': '[not(following-sibling::*)]', - 'only-child': '[not(preceding-sibling::* or following-sibling::*)]', - 'empty': "[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]", - 'checked': "[@checked]", - 'disabled': "[@disabled]", - 'enabled': "[not(@disabled)]", - 'not': function(m) { - var e = m[6], p = Selector.patterns, - x = Selector.xpath, le, v; - - var exclusion = []; - while (e && le != e && (/\S/).test(e)) { - le = e; - for (var i in p) { - if (m = e.match(p[i])) { - v = Object.isFunction(x[i]) ? x[i](m) : new Template(x[i]).evaluate(m); - exclusion.push("(" + v.substring(1, v.length - 1) + ")"); - e = e.replace(m[0], ''); - break; - } - } - } - return "[not(" + exclusion.join(" and ") + ")]"; - }, - 'nth-child': function(m) { - return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m); - }, - 'nth-last-child': function(m) { - return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m); - }, - 'nth-of-type': function(m) { - return Selector.xpath.pseudos.nth("position() ", m); - }, - 'nth-last-of-type': function(m) { - return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", m); - }, - 'first-of-type': function(m) { - m[6] = "1"; return Selector.xpath.pseudos['nth-of-type'](m); - }, - 'last-of-type': function(m) { - m[6] = "1"; return Selector.xpath.pseudos['nth-last-of-type'](m); - }, - 'only-of-type': function(m) { - var p = Selector.xpath.pseudos; return p['first-of-type'](m) + p['last-of-type'](m); - }, - nth: function(fragment, m) { - var mm, formula = m[6], predicate; - if (formula == 'even') formula = '2n+0'; - if (formula == 'odd') formula = '2n+1'; - if (mm = formula.match(/^(\d+)$/)) // digit only - return '[' + fragment + "= " + mm[1] + ']'; - if (mm = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b - if (mm[1] == "-") mm[1] = -1; - var a = mm[1] ? Number(mm[1]) : 1; - var b = mm[2] ? Number(mm[2]) : 0; - predicate = "[((#{fragment} - #{b}) mod #{a} = 0) and " + - "((#{fragment} - #{b}) div #{a} >= 0)]"; - return new Template(predicate).evaluate({ - fragment: fragment, a: a, b: b }); - } - } - } - }, - - criteria: { - tagName: 'n = h.tagName(n, r, "#{1}", c); c = false;', - className: 'n = h.className(n, r, "#{1}", c); c = false;', - id: 'n = h.id(n, r, "#{1}", c); c = false;', - attrPresence: 'n = h.attrPresence(n, r, "#{1}", c); c = false;', - attr: function(m) { - m[3] = (m[5] || m[6]); - return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m); - }, - pseudo: function(m) { - if (m[6]) m[6] = m[6].replace(/"/g, '\\"'); - return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m); - }, - descendant: 'c = "descendant";', - child: 'c = "child";', - adjacent: 'c = "adjacent";', - laterSibling: 'c = "laterSibling";' - }, - - patterns: { - // combinators must be listed first - // (and descendant needs to be last combinator) - laterSibling: /^\s*~\s*/, - child: /^\s*>\s*/, - adjacent: /^\s*\+\s*/, - descendant: /^\s/, - - // selectors follow - tagName: /^\s*(\*|[\w\-]+)(\b|$)?/, - id: /^#([\w\-\*]+)(\b|$)/, - className: /^\.([\w\-\*]+)(\b|$)/, - pseudo: -/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/, - attrPresence: /^\[([\w]+)\]/, - attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ - }, - - // for Selector.match and Element#match - assertions: { - tagName: function(element, matches) { - return matches[1].toUpperCase() == element.tagName.toUpperCase(); - }, - - className: function(element, matches) { - return Element.hasClassName(element, matches[1]); - }, - - id: function(element, matches) { - return element.id === matches[1]; - }, - - attrPresence: function(element, matches) { - return Element.hasAttribute(element, matches[1]); - }, - - attr: function(element, matches) { - var nodeValue = Element.readAttribute(element, matches[1]); - return nodeValue && Selector.operators[matches[2]](nodeValue, matches[5] || matches[6]); - } - }, - - handlers: { - // UTILITY FUNCTIONS - // joins two collections - concat: function(a, b) { - for (var i = 0, node; node = b[i]; i++) - a.push(node); - return a; - }, - - // marks an array of nodes for counting - mark: function(nodes) { - var _true = Prototype.emptyFunction; - for (var i = 0, node; node = nodes[i]; i++) - node._countedByPrototype = _true; - return nodes; - }, - - unmark: function(nodes) { - for (var i = 0, node; node = nodes[i]; i++) - node._countedByPrototype = undefined; - return nodes; - }, - - // mark each child node with its position (for nth calls) - // "ofType" flag indicates whether we're indexing for nth-of-type - // rather than nth-child - index: function(parentNode, reverse, ofType) { - parentNode._countedByPrototype = Prototype.emptyFunction; - if (reverse) { - for (var nodes = parentNode.childNodes, i = nodes.length - 1, j = 1; i >= 0; i--) { - var node = nodes[i]; - if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++; - } - } else { - for (var i = 0, j = 1, nodes = parentNode.childNodes; node = nodes[i]; i++) - if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++; - } - }, - - // filters out duplicates and extends all nodes - unique: function(nodes) { - if (nodes.length == 0) return nodes; - var results = [], n; - for (var i = 0, l = nodes.length; i < l; i++) - if (!(n = nodes[i])._countedByPrototype) { - n._countedByPrototype = Prototype.emptyFunction; - results.push(Element.extend(n)); - } - return Selector.handlers.unmark(results); - }, - - // COMBINATOR FUNCTIONS - descendant: function(nodes) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) - h.concat(results, node.getElementsByTagName('*')); - return results; - }, - - child: function(nodes) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) { - for (var j = 0, child; child = node.childNodes[j]; j++) - if (child.nodeType == 1 && child.tagName != '!') results.push(child); - } - return results; - }, - - adjacent: function(nodes) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - var next = this.nextElementSibling(node); - if (next) results.push(next); - } - return results; - }, - - laterSibling: function(nodes) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) - h.concat(results, Element.nextSiblings(node)); - return results; - }, - - nextElementSibling: function(node) { - while (node = node.nextSibling) - if (node.nodeType == 1) return node; - return null; - }, - - previousElementSibling: function(node) { - while (node = node.previousSibling) - if (node.nodeType == 1) return node; - return null; - }, - - // TOKEN FUNCTIONS - tagName: function(nodes, root, tagName, combinator) { - var uTagName = tagName.toUpperCase(); - var results = [], h = Selector.handlers; - if (nodes) { - if (combinator) { - // fastlane for ordinary descendant combinators - if (combinator == "descendant") { - for (var i = 0, node; node = nodes[i]; i++) - h.concat(results, node.getElementsByTagName(tagName)); - return results; - } else nodes = this[combinator](nodes); - if (tagName == "*") return nodes; - } - for (var i = 0, node; node = nodes[i]; i++) - if (node.tagName.toUpperCase() === uTagName) results.push(node); - return results; - } else return root.getElementsByTagName(tagName); - }, - - id: function(nodes, root, id, combinator) { - var targetNode = $(id), h = Selector.handlers; - if (!targetNode) return []; - if (!nodes && root == document) return [targetNode]; - if (nodes) { - if (combinator) { - if (combinator == 'child') { - for (var i = 0, node; node = nodes[i]; i++) - if (targetNode.parentNode == node) return [targetNode]; - } else if (combinator == 'descendant') { - for (var i = 0, node; node = nodes[i]; i++) - if (Element.descendantOf(targetNode, node)) return [targetNode]; - } else if (combinator == 'adjacent') { - for (var i = 0, node; node = nodes[i]; i++) - if (Selector.handlers.previousElementSibling(targetNode) == node) - return [targetNode]; - } else nodes = h[combinator](nodes); - } - for (var i = 0, node; node = nodes[i]; i++) - if (node == targetNode) return [targetNode]; - return []; - } - return (targetNode && Element.descendantOf(targetNode, root)) ? [targetNode] : []; - }, - - className: function(nodes, root, className, combinator) { - if (nodes && combinator) nodes = this[combinator](nodes); - return Selector.handlers.byClassName(nodes, root, className); - }, - - byClassName: function(nodes, root, className) { - if (!nodes) nodes = Selector.handlers.descendant([root]); - var needle = ' ' + className + ' '; - for (var i = 0, results = [], node, nodeClassName; node = nodes[i]; i++) { - nodeClassName = node.className; - if (nodeClassName.length == 0) continue; - if (nodeClassName == className || (' ' + nodeClassName + ' ').include(needle)) - results.push(node); - } - return results; - }, - - attrPresence: function(nodes, root, attr, combinator) { - if (!nodes) nodes = root.getElementsByTagName("*"); - if (nodes && combinator) nodes = this[combinator](nodes); - var results = []; - for (var i = 0, node; node = nodes[i]; i++) - if (Element.hasAttribute(node, attr)) results.push(node); - return results; - }, - - attr: function(nodes, root, attr, value, operator, combinator) { - if (!nodes) nodes = root.getElementsByTagName("*"); - if (nodes && combinator) nodes = this[combinator](nodes); - var handler = Selector.operators[operator], results = []; - for (var i = 0, node; node = nodes[i]; i++) { - var nodeValue = Element.readAttribute(node, attr); - if (nodeValue === null) continue; - if (handler(nodeValue, value)) results.push(node); - } - return results; - }, - - pseudo: function(nodes, name, value, root, combinator) { - if (nodes && combinator) nodes = this[combinator](nodes); - if (!nodes) nodes = root.getElementsByTagName("*"); - return Selector.pseudos[name](nodes, value, root); - } - }, - - pseudos: { - 'first-child': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - if (Selector.handlers.previousElementSibling(node)) continue; - results.push(node); - } - return results; - }, - 'last-child': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - if (Selector.handlers.nextElementSibling(node)) continue; - results.push(node); - } - return results; - }, - 'only-child': function(nodes, value, root) { - var h = Selector.handlers; - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (!h.previousElementSibling(node) && !h.nextElementSibling(node)) - results.push(node); - return results; - }, - 'nth-child': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root); - }, - 'nth-last-child': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root, true); - }, - 'nth-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root, false, true); - }, - 'nth-last-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, formula, root, true, true); - }, - 'first-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, "1", root, false, true); - }, - 'last-of-type': function(nodes, formula, root) { - return Selector.pseudos.nth(nodes, "1", root, true, true); - }, - 'only-of-type': function(nodes, formula, root) { - var p = Selector.pseudos; - return p['last-of-type'](p['first-of-type'](nodes, formula, root), formula, root); - }, - - // handles the an+b logic - getIndices: function(a, b, total) { - if (a == 0) return b > 0 ? [b] : []; - return $R(1, total).inject([], function(memo, i) { - if (0 == (i - b) % a && (i - b) / a >= 0) memo.push(i); - return memo; - }); - }, - - // handles nth(-last)-child, nth(-last)-of-type, and (first|last)-of-type - nth: function(nodes, formula, root, reverse, ofType) { - if (nodes.length == 0) return []; - if (formula == 'even') formula = '2n+0'; - if (formula == 'odd') formula = '2n+1'; - var h = Selector.handlers, results = [], indexed = [], m; - h.mark(nodes); - for (var i = 0, node; node = nodes[i]; i++) { - if (!node.parentNode._countedByPrototype) { - h.index(node.parentNode, reverse, ofType); - indexed.push(node.parentNode); - } - } - if (formula.match(/^\d+$/)) { // just a number - formula = Number(formula); - for (var i = 0, node; node = nodes[i]; i++) - if (node.nodeIndex == formula) results.push(node); - } else if (m = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b - if (m[1] == "-") m[1] = -1; - var a = m[1] ? Number(m[1]) : 1; - var b = m[2] ? Number(m[2]) : 0; - var indices = Selector.pseudos.getIndices(a, b, nodes.length); - for (var i = 0, node, l = indices.length; node = nodes[i]; i++) { - for (var j = 0; j < l; j++) - if (node.nodeIndex == indices[j]) results.push(node); - } - } - h.unmark(nodes); - h.unmark(indexed); - return results; - }, - - 'empty': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) { - // IE treats comments as element nodes - if (node.tagName == '!' || (node.firstChild && !node.innerHTML.match(/^\s*$/))) continue; - results.push(node); - } - return results; - }, - - 'not': function(nodes, selector, root) { - var h = Selector.handlers, selectorType, m; - var exclusions = new Selector(selector).findElements(root); - h.mark(exclusions); - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (!node._countedByPrototype) results.push(node); - h.unmark(exclusions); - return results; - }, - - 'enabled': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (!node.disabled) results.push(node); - return results; - }, - - 'disabled': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (node.disabled) results.push(node); - return results; - }, - - 'checked': function(nodes, value, root) { - for (var i = 0, results = [], node; node = nodes[i]; i++) - if (node.checked) results.push(node); - return results; - } - }, - - operators: { - '=': function(nv, v) { return nv == v; }, - '!=': function(nv, v) { return nv != v; }, - '^=': function(nv, v) { return nv.startsWith(v); }, - '$=': function(nv, v) { return nv.endsWith(v); }, - '*=': function(nv, v) { return nv.include(v); }, - '~=': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + ' '); }, - '|=': function(nv, v) { return ('-' + nv.toUpperCase() + '-').include('-' + v.toUpperCase() + '-'); } - }, - - split: function(expression) { - var expressions = []; - expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) { - expressions.push(m[1].strip()); - }); - return expressions; - }, - - matchElements: function(elements, expression) { - var matches = $$(expression), h = Selector.handlers; - h.mark(matches); - for (var i = 0, results = [], element; element = elements[i]; i++) - if (element._countedByPrototype) results.push(element); - h.unmark(matches); - return results; - }, - - findElement: function(elements, expression, index) { - if (Object.isNumber(expression)) { - index = expression; expression = false; - } - return Selector.matchElements(elements, expression || '*')[index || 0]; - }, - - findChildElements: function(element, expressions) { - expressions = Selector.split(expressions.join(',')); - var results = [], h = Selector.handlers; - for (var i = 0, l = expressions.length, selector; i < l; i++) { - selector = new Selector(expressions[i].strip()); - h.concat(results, selector.findElements(element)); - } - return (l > 1) ? h.unique(results) : results; - } -}); - -if (Prototype.Browser.IE) { - Object.extend(Selector.handlers, { - // IE returns comment nodes on getElementsByTagName("*"). - // Filter them out. - concat: function(a, b) { - for (var i = 0, node; node = b[i]; i++) - if (node.tagName !== "!") a.push(node); - return a; - }, - - // IE improperly serializes _countedByPrototype in (inner|outer)HTML. - unmark: function(nodes) { - for (var i = 0, node; node = nodes[i]; i++) - node.removeAttribute('_countedByPrototype'); - return nodes; - } - }); -} - -function $$() { - return Selector.findChildElements(document, $A(arguments)); -} -var Form = { - reset: function(form) { - $(form).reset(); - return form; - }, - - serializeElements: function(elements, options) { - if (typeof options != 'object') options = { hash: !!options }; - else if (Object.isUndefined(options.hash)) options.hash = true; - var key, value, submitted = false, submit = options.submit; - - var data = elements.inject({ }, function(result, element) { - if (!element.disabled && element.name) { - key = element.name; value = $(element).getValue(); - if (value != null && (element.type != 'submit' || (!submitted && - submit !== false && (!submit || key == submit) && (submitted = true)))) { - if (key in result) { - // a key is already present; construct an array of values - if (!Object.isArray(result[key])) result[key] = [result[key]]; - result[key].push(value); - } - else result[key] = value; - } - } - return result; - }); - - return options.hash ? data : Object.toQueryString(data); - } -}; - -Form.Methods = { - serialize: function(form, options) { - return Form.serializeElements(Form.getElements(form), options); - }, - - getElements: function(form) { - return $A($(form).getElementsByTagName('*')).inject([], - function(elements, child) { - if (Form.Element.Serializers[child.tagName.toLowerCase()]) - elements.push(Element.extend(child)); - return elements; - } - ); - }, - - getInputs: function(form, typeName, name) { - form = $(form); - var inputs = form.getElementsByTagName('input'); - - if (!typeName && !name) return $A(inputs).map(Element.extend); - - for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) { - var input = inputs[i]; - if ((typeName && input.type != typeName) || (name && input.name != name)) - continue; - matchingInputs.push(Element.extend(input)); - } - - return matchingInputs; - }, - - disable: function(form) { - form = $(form); - Form.getElements(form).invoke('disable'); - return form; - }, - - enable: function(form) { - form = $(form); - Form.getElements(form).invoke('enable'); - return form; - }, - - findFirstElement: function(form) { - var elements = $(form).getElements().findAll(function(element) { - return 'hidden' != element.type && !element.disabled; - }); - var firstByIndex = elements.findAll(function(element) { - return element.hasAttribute('tabIndex') && element.tabIndex >= 0; - }).sortBy(function(element) { return element.tabIndex }).first(); - - return firstByIndex ? firstByIndex : elements.find(function(element) { - return ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); - }); - }, - - focusFirstElement: function(form) { - form = $(form); - form.findFirstElement().activate(); - return form; - }, - - request: function(form, options) { - form = $(form), options = Object.clone(options || { }); - - var params = options.parameters, action = form.readAttribute('action') || ''; - if (action.blank()) action = window.location.href; - options.parameters = form.serialize(true); - - if (params) { - if (Object.isString(params)) params = params.toQueryParams(); - Object.extend(options.parameters, params); - } - - if (form.hasAttribute('method') && !options.method) - options.method = form.method; - - return new Ajax.Request(action, options); - } -}; - -/*--------------------------------------------------------------------------*/ - -Form.Element = { - focus: function(element) { - $(element).focus(); - return element; - }, - - select: function(element) { - $(element).select(); - return element; - } -}; - -Form.Element.Methods = { - serialize: function(element) { - element = $(element); - if (!element.disabled && element.name) { - var value = element.getValue(); - if (value != undefined) { - var pair = { }; - pair[element.name] = value; - return Object.toQueryString(pair); - } - } - return ''; - }, - - getValue: function(element) { - element = $(element); - var method = element.tagName.toLowerCase(); - return Form.Element.Serializers[method](element); - }, - - setValue: function(element, value) { - element = $(element); - var method = element.tagName.toLowerCase(); - Form.Element.Serializers[method](element, value); - return element; - }, - - clear: function(element) { - $(element).value = ''; - return element; - }, - - present: function(element) { - return $(element).value != ''; - }, - - activate: function(element) { - element = $(element); - try { - element.focus(); - if (element.select && (element.tagName.toLowerCase() != 'input' || - !['button', 'reset', 'submit'].include(element.type))) - element.select(); - } catch (e) { } - return element; - }, - - disable: function(element) { - element = $(element); - element.blur(); - element.disabled = true; - return element; - }, - - enable: function(element) { - element = $(element); - element.disabled = false; - return element; - } -}; - -/*--------------------------------------------------------------------------*/ - -var Field = Form.Element; -var $F = Form.Element.Methods.getValue; - -/*--------------------------------------------------------------------------*/ - -Form.Element.Serializers = { - input: function(element, value) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - return Form.Element.Serializers.inputSelector(element, value); - default: - return Form.Element.Serializers.textarea(element, value); - } - }, - - inputSelector: function(element, value) { - if (Object.isUndefined(value)) return element.checked ? element.value : null; - else element.checked = !!value; - }, - - textarea: function(element, value) { - if (Object.isUndefined(value)) return element.value; - else element.value = value; - }, - - select: function(element, index) { - if (Object.isUndefined(index)) - return this[element.type == 'select-one' ? - 'selectOne' : 'selectMany'](element); - else { - var opt, value, single = !Object.isArray(index); - for (var i = 0, length = element.length; i < length; i++) { - opt = element.options[i]; - value = this.optionValue(opt); - if (single) { - if (value == index) { - opt.selected = true; - return; - } - } - else opt.selected = index.include(value); - } - } - }, - - selectOne: function(element) { - var index = element.selectedIndex; - return index >= 0 ? this.optionValue(element.options[index]) : null; - }, - - selectMany: function(element) { - var values, length = element.length; - if (!length) return null; - - for (var i = 0, values = []; i < length; i++) { - var opt = element.options[i]; - if (opt.selected) values.push(this.optionValue(opt)); - } - return values; - }, - - optionValue: function(opt) { - // extend element because hasAttribute may not be native - return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text; - } -}; - -/*--------------------------------------------------------------------------*/ - -Abstract.TimedObserver = Class.create(PeriodicalExecuter, { - initialize: function($super, element, frequency, callback) { - $super(callback, frequency); - this.element = $(element); - this.lastValue = this.getValue(); - }, - - execute: function() { - var value = this.getValue(); - if (Object.isString(this.lastValue) && Object.isString(value) ? - this.lastValue != value : String(this.lastValue) != String(value)) { - this.callback(this.element, value); - this.lastValue = value; - } - } -}); - -Form.Element.Observer = Class.create(Abstract.TimedObserver, { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.Observer = Class.create(Abstract.TimedObserver, { - getValue: function() { - return Form.serialize(this.element); - } -}); - -/*--------------------------------------------------------------------------*/ - -Abstract.EventObserver = Class.create({ - initialize: function(element, callback) { - this.element = $(element); - this.callback = callback; - - this.lastValue = this.getValue(); - if (this.element.tagName.toLowerCase() == 'form') - this.registerFormCallbacks(); - else - this.registerCallback(this.element); - }, - - onElementEvent: function() { - var value = this.getValue(); - if (this.lastValue != value) { - this.callback(this.element, value); - this.lastValue = value; - } - }, - - registerFormCallbacks: function() { - Form.getElements(this.element).each(this.registerCallback, this); - }, - - registerCallback: function(element) { - if (element.type) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - Event.observe(element, 'click', this.onElementEvent.bind(this)); - break; - default: - Event.observe(element, 'change', this.onElementEvent.bind(this)); - break; - } - } - } -}); - -Form.Element.EventObserver = Class.create(Abstract.EventObserver, { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.EventObserver = Class.create(Abstract.EventObserver, { - getValue: function() { - return Form.serialize(this.element); - } -}); -if (!window.Event) var Event = { }; - -Object.extend(Event, { - KEY_BACKSPACE: 8, - KEY_TAB: 9, - KEY_RETURN: 13, - KEY_ESC: 27, - KEY_LEFT: 37, - KEY_UP: 38, - KEY_RIGHT: 39, - KEY_DOWN: 40, - KEY_DELETE: 46, - KEY_HOME: 36, - KEY_END: 35, - KEY_PAGEUP: 33, - KEY_PAGEDOWN: 34, - KEY_INSERT: 45, - - cache: { }, - - relatedTarget: function(event) { - var element; - switch(event.type) { - case 'mouseover': element = event.fromElement; break; - case 'mouseout': element = event.toElement; break; - default: return null; - } - return Element.extend(element); - } -}); - -Event.Methods = (function() { - var isButton; - - if (Prototype.Browser.IE) { - var buttonMap = { 0: 1, 1: 4, 2: 2 }; - isButton = function(event, code) { - return event.button == buttonMap[code]; - }; - - } else if (Prototype.Browser.WebKit) { - isButton = function(event, code) { - switch (code) { - case 0: return event.which == 1 && !event.metaKey; - case 1: return event.which == 1 && event.metaKey; - default: return false; - } - }; - - } else { - isButton = function(event, code) { - return event.which ? (event.which === code + 1) : (event.button === code); - }; - } - - return { - isLeftClick: function(event) { return isButton(event, 0) }, - isMiddleClick: function(event) { return isButton(event, 1) }, - isRightClick: function(event) { return isButton(event, 2) }, - - element: function(event) { - var node = Event.extend(event).target; - return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node); - }, - - findElement: function(event, expression) { - var element = Event.element(event); - if (!expression) return element; - var elements = [element].concat(element.ancestors()); - return Selector.findElement(elements, expression, 0); - }, - - pointer: function(event) { - return { - x: event.pageX || (event.clientX + - (document.documentElement.scrollLeft || document.body.scrollLeft)), - y: event.pageY || (event.clientY + - (document.documentElement.scrollTop || document.body.scrollTop)) - }; - }, - - pointerX: function(event) { return Event.pointer(event).x }, - pointerY: function(event) { return Event.pointer(event).y }, - - stop: function(event) { - Event.extend(event); - event.preventDefault(); - event.stopPropagation(); - event.stopped = true; - } - }; -})(); - -Event.extend = (function() { - var methods = Object.keys(Event.Methods).inject({ }, function(m, name) { - m[name] = Event.Methods[name].methodize(); - return m; - }); - - if (Prototype.Browser.IE) { - Object.extend(methods, { - stopPropagation: function() { this.cancelBubble = true }, - preventDefault: function() { this.returnValue = false }, - inspect: function() { return "[object Event]" } - }); - - return function(event) { - if (!event) return false; - if (event._extendedByPrototype) return event; - - event._extendedByPrototype = Prototype.emptyFunction; - var pointer = Event.pointer(event); - Object.extend(event, { - target: event.srcElement, - relatedTarget: Event.relatedTarget(event), - pageX: pointer.x, - pageY: pointer.y - }); - return Object.extend(event, methods); - }; - - } else { - Event.prototype = Event.prototype || document.createEvent("HTMLEvents").__proto__; - Object.extend(Event.prototype, methods); - return Prototype.K; - } -})(); - -Object.extend(Event, (function() { - var cache = Event.cache; - - function getEventID(element) { - if (element._prototypeEventID) return element._prototypeEventID[0]; - arguments.callee.id = arguments.callee.id || 1; - return element._prototypeEventID = [++arguments.callee.id]; - } - - function getDOMEventName(eventName) { - if (eventName && eventName.include(':')) return "dataavailable"; - return eventName; - } - - function getCacheForID(id) { - return cache[id] = cache[id] || { }; - } - - function getWrappersForEventName(id, eventName) { - var c = getCacheForID(id); - return c[eventName] = c[eventName] || []; - } - - function createWrapper(element, eventName, handler) { - var id = getEventID(element); - var c = getWrappersForEventName(id, eventName); - if (c.pluck("handler").include(handler)) return false; - - var wrapper = function(event) { - if (!Event || !Event.extend || - (event.eventName && event.eventName != eventName)) - return false; - - Event.extend(event); - handler.call(element, event); - }; - - wrapper.handler = handler; - c.push(wrapper); - return wrapper; - } - - function findWrapper(id, eventName, handler) { - var c = getWrappersForEventName(id, eventName); - return c.find(function(wrapper) { return wrapper.handler == handler }); - } - - function destroyWrapper(id, eventName, handler) { - var c = getCacheForID(id); - if (!c[eventName]) return false; - c[eventName] = c[eventName].without(findWrapper(id, eventName, handler)); - } - - function destroyCache() { - for (var id in cache) - for (var eventName in cache[id]) - cache[id][eventName] = null; - } - - if (window.attachEvent) { - window.attachEvent("onunload", destroyCache); - } - - return { - observe: function(element, eventName, handler) { - element = $(element); - var name = getDOMEventName(eventName); - - var wrapper = createWrapper(element, eventName, handler); - if (!wrapper) return element; - - if (element.addEventListener) { - element.addEventListener(name, wrapper, false); - } else { - element.attachEvent("on" + name, wrapper); - } - - return element; - }, - - stopObserving: function(element, eventName, handler) { - element = $(element); - var id = getEventID(element), name = getDOMEventName(eventName); - - if (!handler && eventName) { - getWrappersForEventName(id, eventName).each(function(wrapper) { - element.stopObserving(eventName, wrapper.handler); - }); - return element; - - } else if (!eventName) { - Object.keys(getCacheForID(id)).each(function(eventName) { - element.stopObserving(eventName); - }); - return element; - } - - var wrapper = findWrapper(id, eventName, handler); - if (!wrapper) return element; - - if (element.removeEventListener) { - element.removeEventListener(name, wrapper, false); - } else { - element.detachEvent("on" + name, wrapper); - } - - destroyWrapper(id, eventName, handler); - - return element; - }, - - fire: function(element, eventName, memo) { - element = $(element); - if (element == document && document.createEvent && !element.dispatchEvent) - element = document.documentElement; - - var event; - if (document.createEvent) { - event = document.createEvent("HTMLEvents"); - event.initEvent("dataavailable", true, true); - } else { - event = document.createEventObject(); - event.eventType = "ondataavailable"; - } - - event.eventName = eventName; - event.memo = memo || { }; - - if (document.createEvent) { - element.dispatchEvent(event); - } else { - element.fireEvent(event.eventType, event); - } - - return Event.extend(event); - } - }; -})()); - -Object.extend(Event, Event.Methods); - -Element.addMethods({ - fire: Event.fire, - observe: Event.observe, - stopObserving: Event.stopObserving -}); - -Object.extend(document, { - fire: Element.Methods.fire.methodize(), - observe: Element.Methods.observe.methodize(), - stopObserving: Element.Methods.stopObserving.methodize(), - loaded: false -}); - -(function() { - /* Support for the DOMContentLoaded event is based on work by Dan Webb, - Matthias Miller, Dean Edwards and John Resig. */ - - var timer; - - function fireContentLoadedEvent() { - if (document.loaded) return; - if (timer) window.clearInterval(timer); - document.fire("dom:loaded"); - document.loaded = true; - } - - if (document.addEventListener) { - if (Prototype.Browser.WebKit) { - timer = window.setInterval(function() { - if (/loaded|complete/.test(document.readyState)) - fireContentLoadedEvent(); - }, 0); - - Event.observe(window, "load", fireContentLoadedEvent); - - } else { - document.addEventListener("DOMContentLoaded", - fireContentLoadedEvent, false); - } - - } else { - document.write(" - - - - - - - - - - - - - - -

- - - -
-
-
- - <%=umbraco.ui.Text("choose") %> - - - - - - -
- -
-
-
- {$lang_advimage_general} - - - - - - - - - - - - - - - - - -
- - - - - - - -
- - -   -
-
- - -   -
- - - -
- - - -
-
-
- {$lang_advimage_preview} - -
-
-
-
- {$lang_advimage_tab_appearance} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- {$lang_advimage_example_img} - Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, - sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum - ipsum edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore - magna aliquam erat volutpat. -
-
- - - - x - - px -
-   - - - - - - -
- - - -
-
- - - -
- - - -
- - - -
- - - -
- - - -
-
-
-
-
- {$lang_advimage_swap_image} - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- - -   -
-
- - -   -
- - - - - - - -
- - -   -
-
- - -   -
-
-
- {$lang_advimage_misc} - - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - -
- - - -
- - - -
- - - - - - - -
- - -   -
-
-
-
-
-
-
- -
-
- -
-
-
- - - - - diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertImage.aspx.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertImage.aspx.cs deleted file mode 100644 index b2bd85af98..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertImage.aspx.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.presentation.tinymce -{ - public partial class insertImage : BasePages.UmbracoEnsuredPage - { - protected uicontrols.TabView tbv = new uicontrols.TabView(); - - - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - uicontrols.TabPage tp = tbv.NewTabPage(ui.Text("choose")); - tp.HasMenu = false; - tp.Controls.Add(new LiteralControl("
 
")); - uicontrols.TabPage tp2 = tbv.NewTabPage(ui.Text("create") + " " + ui.Text("new")); - - tp2.HasMenu = false; - tp2.Controls.Add(new LiteralControl("")); - PlaceHolder1.Controls.Add(tbv); - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - tbv.ID="tabview1"; - tbv.Width = 500; - tbv.Height = 290; - - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertImage.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertImage.aspx.designer.cs deleted file mode 100644 index 3a1252e19a..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertImage.aspx.designer.cs +++ /dev/null @@ -1,43 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3053 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.presentation.tinymce { - - - public partial class insertImage { - - /// - /// F control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm F; - - /// - /// Table1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTable Table1; - - /// - /// PlaceHolder1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx deleted file mode 100644 index b8d2a7c094..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx +++ /dev/null @@ -1,354 +0,0 @@ -<%@ Page language="c#" Codebehind="insertLink.aspx.cs" AutoEventWireup="True" Inherits="umbraco.presentation.tinymce.insertLink" %> - - - {$lang_insert_link_title} - - - - - - - - - -
- - -
-
-
- {$lang_advlink_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
 
 
- -
-
- Browse (NeedTranslate) -
- -
-
-
-
- - - -
-
- {$lang_advlink_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
-
-
-
-
- -
-
- {$lang_advlink_event_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
- -
- -
- -
-
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.cs deleted file mode 100644 index ae5349f753..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.presentation.tinymce -{ - /// - /// Summary description for insertLink. - /// - public partial class insertLink : BasePages.UmbracoEnsuredPage - { - protected uicontrols.TabView tbv = new uicontrols.TabView(); - - protected void Page_Load(object sender, System.EventArgs e) - { - uicontrols.TabPage tp = tbv.NewTabPage(ui.Text("content")); - tp.HasMenu = false; - tp.Controls.Add(new LiteralControl("")); - uicontrols.TabPage tp2 = tbv.NewTabPage(ui.Text("media")); - tp2.HasMenu = false; - tp2.Controls.Add(new LiteralControl("")); - - ph.Controls.Add(tbv); - } - - public BusinessLogic.User GetUser() - { - return base.getUser(); - } - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - tbv.ID="tabview1"; - tbv.Width = 300; - tbv.Height = 320; - - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - - } - #endregion - - } -} diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.designer.cs deleted file mode 100644 index 4708ea270a..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.designer.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.312 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.presentation.tinymce { - - - /// - /// insertLink class. - /// - /// - /// Auto-generated class. - /// - public partial class insertLink { - - /// - /// F control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm F; - - /// - /// ph control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder ph; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx deleted file mode 100644 index 728fc8b610..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx +++ /dev/null @@ -1,91 +0,0 @@ -<%@ Page language="c#" validateRequest="false" Codebehind="insertMacro.aspx.cs" AutoEventWireup="True" Inherits="umbraco.presentation.tinymce.insertMacro" trace="false" %> - - - - umbraco :: <%=umbraco.ui.Text("general", "insert",this.getUser())%> <%=umbraco.ui.Text("general", "macro",this.getUser())%>                                                                                                       - - - - - - - - - - - -
- - - - "/> - <%if (Request["umb_macroID"] != null || Request["umb_macroAlias"] != null) {%> -

<%=umbraco.ui.Text("general", "edit",this.getUser())%>

- "/> - "/> - - -
- - - <%} else {%> -

<%=umbraco.ui.Text("general", "insert",this.getUser())%> <%=umbraco.ui.Text("general", "macro", this.getUser())%>

- - -
- "/> -
- <%}%> - -
- -
- - - diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx.cs deleted file mode 100644 index 03d0099ad1..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx.cs +++ /dev/null @@ -1,188 +0,0 @@ -using System; -using System.Collections; -using System.Data; -using System.Reflection; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; - -using umbraco.BasePages; -using umbraco.cms.businesslogic.macro; -using umbraco.interfaces; -using umbraco.DataLayer; - -namespace umbraco.presentation.tinymce -{ - /// - /// Summary description for insertMacro. - /// - public partial class insertMacro : UmbracoEnsuredPage - { - protected Button Button1; - - private Macro m; - - protected void Page_Load(object sender, EventArgs e) - { - string reqMacroID = helper.Request("umb_macroID"); - string reqMacroAlias = helper.Request("umb_macroAlias"); - - if (reqMacroID != "" || reqMacroAlias != "") - { - // Put user code to initialize the page here - if (reqMacroID != "") - { - m = new Macro(int.Parse(reqMacroID)); - } - else - { - m = Macro.GetByAlias(reqMacroAlias); - } - - String macroAssembly = ""; - String macroType = ""; - - macroName.Text = m.Name; - - foreach (MacroProperty mp in m.Properties) - { - macroAssembly = mp.Type.Assembly; - macroType = mp.Type.Type; - try - { - Assembly assembly = Assembly.LoadFrom(Server.MapPath(GlobalSettings.Path + "/../bin/" + macroAssembly + ".dll")); - - Type type = assembly.GetType(macroAssembly + "." + macroType); - IMacroGuiRendering typeInstance = Activator.CreateInstance(type) as IMacroGuiRendering; - if (typeInstance != null) - { - Control control = Activator.CreateInstance(type) as Control; - control.ID = mp.Alias; - if (!IsPostBack) - { - if (Request["umb_" + mp.Alias] != null) - { - if (Request["umb_" + mp.Alias] != "") - { - type.GetProperty("Value").SetValue(control, - Convert.ChangeType( - Request["umb_" + mp.Alias], - type.GetProperty("Value").PropertyType), - null); - } - } - } - - // register alias - macroProperties.Controls.Add( - new LiteralControl("")); - macroProperties.Controls.Add( - new LiteralControl("" + mp.Name + - "")); - macroProperties.Controls.Add(control); - macroProperties.Controls.Add(new LiteralControl("")); - } - else - { - Trace.Warn("umbEditContent", - "Type doesn't exist or is not umbraco.interfaces.DataFieldI ('" + macroAssembly + - "." + macroType + "')"); - } - } - catch (Exception fieldException) - { - Trace.Warn("umbEditContent", "Error creating type '" + macroAssembly + "." + macroType + "'", - fieldException); - } - } - } - - else - { - IRecordsReader macroRenderings; - if (helper.Request("editor") != "") - macroRenderings = SqlHelper.ExecuteReader("select macroAlias, macroName from cmsMacro where macroUseInEditor = 1 order by macroName"); - else - macroRenderings = SqlHelper.ExecuteReader("select macroAlias, macroName from cmsMacro order by macroName"); - - umb_macroAlias.DataSource = macroRenderings; - umb_macroAlias.DataValueField = "macroAlias"; - umb_macroAlias.DataTextField = "macroName"; - umb_macroAlias.DataBind(); - macroRenderings.Close(); - } - } - - #region Web Form Designer generated code - - protected override void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - renderMacro.Click += new EventHandler(renderMacro_Click); - } - - #endregion - - private void renderMacro_Click(object sender, EventArgs e) - { - int pageID = int.Parse(helper.Request("umbPageId")); - string macroAttributes = "macroAlias=\"" + m.Alias + "\""; - Guid pageVersion = new Guid(helper.Request("umbVersionId")); - - Hashtable attributes = new Hashtable(); - attributes.Add("macroAlias", m.Alias); - - macro mRender = new macro(m.Id); - foreach (Control c in macroProperties.Controls) - { - try - { - IMacroGuiRendering ic = (IMacroGuiRendering) c; - attributes.Add(c.ID, ic.Value); - macroAttributes += " " + c.ID + "=\"" + - ic.Value.Replace("\"", "\\\"").Replace("\n", "\\n").Replace("\r", "\\r") + "\""; - } - catch - { - } - } - - // document this, for gods sake! - HttpContext.Current.Items["macrosAdded"] = 0; - HttpContext.Current.Items["pageID"] = pageID.ToString(); - - - page p = new page(pageID, pageVersion); - - string div = macro.renderMacroStartTag(attributes, pageID, pageVersion).Replace("'", "\\'"); - - string macroContent = - macro.MacroContentByHttp(pageID, pageVersion, attributes).Replace("\\", "\\\\").Replace("'", "\\'"). - Replace("/", "\\/").Replace("\n", "\\n"); - if (macroContent.Length > 0 && macroContent.ToLower().IndexOf(" -1) - macroContent = - "Macro rendering contains script code
This macro won\\'t be rendered in the editor because it contains script code. It will render correct during runtime."; - div += macroContent; - div += macro.renderMacroEndTag(); - - ClientScript.RegisterStartupScript(GetType(), "postbackScript", - ""); - ClientScript.RegisterStartupScript(GetType(), "postbackScriptWindowClose", - ""); - theForm.Visible = false; - } - } -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx.designer.cs deleted file mode 100644 index a85caf506a..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertMacro.aspx.designer.cs +++ /dev/null @@ -1,79 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.presentation.tinymce { - - - public partial class insertMacro { - - /// - /// Form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm Form1; - - /// - /// theForm control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Panel theForm; - - /// - /// macroName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal macroName; - - /// - /// macroProperties control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder macroProperties; - - /// - /// renderMacro control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button renderMacro; - - /// - /// umb_macroAlias control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ListBox umb_macroAlias; - - /// - /// renderHolder control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder renderHolder; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx deleted file mode 100644 index 6db08cb45a..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx +++ /dev/null @@ -1,66 +0,0 @@ -<%@ Page language="c#" Codebehind="paste.aspx.cs" AutoEventWireup="True" Inherits="umbraco.presentation.tinymce.paste" %> - - - - - umbraco :: <%=umbraco.ui.Text("defaultdialogs", "paste", this.getUser())%>                                                                   - - - - - - - - - - - - -

<%=umbraco.ui.Text("defaultdialogs", "paste", this.getUser())%>

-
- - - -
- - <%=umbraco.ui.Text("paste", "errorMessage", this.getUser())%>

-
-
-
-
- "> -

- -
- - - diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx.cs deleted file mode 100644 index 74fe139996..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.presentation.tinymce -{ - /// - /// Summary description for paste. - /// - public partial class paste : BasePages.UmbracoEnsuredPage - { - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx.designer.cs deleted file mode 100644 index b780a3e0ce..0000000000 --- a/OLD/umbraco.Legacy/umbraco/plugins/tinymce/paste.aspx.designer.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.312 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.presentation.tinymce { - - - /// - /// paste class. - /// - /// - /// Auto-generated class. - /// - public partial class paste { - } -} diff --git a/OLD/umbraco.Legacy/umbraco/task.aspx b/OLD/umbraco.Legacy/umbraco/task.aspx deleted file mode 100644 index 0e0b0c9a7c..0000000000 --- a/OLD/umbraco.Legacy/umbraco/task.aspx +++ /dev/null @@ -1,84 +0,0 @@ -<%@ Page Trace="true" Language="c#" CodeBehind="task.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.theTask" %> - - - - - task - - - - - - -
- - - - - - - - - - - - diff --git a/OLD/umbraco.Legacy/umbraco/task.aspx.cs b/OLD/umbraco.Legacy/umbraco/task.aspx.cs deleted file mode 100644 index cc59fc323b..0000000000 --- a/OLD/umbraco.Legacy/umbraco/task.aspx.cs +++ /dev/null @@ -1,153 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -using System.Xml; -using System.Xml.XPath; -using System.Reflection; - -namespace umbraco.cms.presentation -{ - /// - /// Summary description for task. - /// - public partial class theTask : BasePages.UmbracoEnsuredPage - { - protected System.Web.UI.WebControls.PlaceHolder dontRefresh; - - - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - if (IsPostBack) - { - int parentID = 0; - int typeID = 0; - string nodeName; - - // Load task settings - XmlDocument createDef = new XmlDocument(); - XmlTextReader defReader = new XmlTextReader(Server.MapPath(GlobalSettings.Path+ "/config/create/UI.xml")); - createDef.Load(defReader); - defReader.Close(); - - // Find nodeType task - XmlNode def = createDef.SelectSingleNode("//nodeType [@alias = '" + nodeType.Value + "']"); - string taskAssembly = def.SelectSingleNode("./tasks/" + task.Value.ToLower()).Attributes.GetNamedItem("assembly").Value; - string taskType = def.SelectSingleNode("./tasks/" + task.Value.ToLower()).Attributes.GetNamedItem("type").Value; - - try - { - parentID = Convert.ToInt32(nodeID.Value); - } - catch {} - // Parse parameters - if (parameterName.Value != "" && parameterName.Value.IndexOf("---") >= 0) - { - - string tempID = parameterName.Value.Substring(0, parameterName.Value.IndexOf("---")); - - if (tempID.Length > 0) - { - if (nodeID.Value == "init") - parentID = -1; - else parentID = Convert.ToInt32(nodeID.Value); - - typeID = Convert.ToInt32(parameterName.Value.Substring(0, parameterName.Value.IndexOf("---"))); - nodeName = parameterName.Value.Substring(parameterName.Value.IndexOf("---")+4, parameterName.Value.Length-parameterName.Value.IndexOf("---")-4); - } - else - nodeName = parameterName.Value.Substring(parameterName.Value.IndexOf("---")+4, parameterName.Value.Length-parameterName.Value.IndexOf("---")-4); - } - else - { - nodeName = ""; - - if (parameterName.Value != "") - nodeName = parameterName.Value; - - if (nodeID.Value != "") - parentID = Convert.ToInt32(nodeID.Value); - } - - // Lets reflect... - try - { - // Create an instance of the type by loading it from the assembly - Assembly assembly = Assembly.LoadFrom(Server.MapPath(GlobalSettings.Path + "/../bin/"+taskAssembly+".dll")); - Trace.Write(taskAssembly, taskType); - Type type = assembly.GetType(taskAssembly+"."+taskType); - interfaces.ITask typeInstance = Activator.CreateInstance(type) as interfaces.ITask; - dontRefresh.Controls.Clear(); - if (typeInstance != null) - { - typeInstance.TypeID = typeID; - typeInstance.ParentID = parentID; - Trace.Warn("ID:" +parentID); - typeInstance.Alias = nodeName; - switch (task.Value.ToLower()) - { - case "create" : - typeInstance.UserId = this.getUser().Id; - typeInstance.Save(); - break; - case "delete" : - Trace.Write("tasks", "Deleting " + parentID.ToString()); - typeInstance.Delete(); - // Users aren't deleted, so we refresh the parent instead - if (nodeType.Value == "user") - dontRefresh.Controls.Add(new LiteralControl("refreshParent = true;\ndontDelete = true;\n")); - else - dontRefresh.Controls.Add(new LiteralControl("refreshParent = true;\n")); - - - break; - default: - Trace.Warn("tasks", "Unknown task: '" + task.Value.ToLower() + "'"); - break; - } - } - else - { - Trace.Warn("task", "Type doesn't exist or is not umbraco.ITask ('" + taskAssembly + "." + taskType + "')"); - } - - } - catch (Exception exp) - { - Trace.Warn("task", "Error creating type '" + taskAssembly + "." + taskType + "'", exp); - } - - - } - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.ID = "theTask"; - - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/task.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/task.aspx.designer.cs deleted file mode 100644 index c651606258..0000000000 --- a/OLD/umbraco.Legacy/umbraco/task.aspx.designer.cs +++ /dev/null @@ -1,79 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.1433 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.cms.presentation { - - - public partial class theTask { - - /// - /// dataForm control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm dataForm; - - /// - /// nodeID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText nodeID; - - /// - /// nodeType control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText nodeType; - - /// - /// task control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText task; - - /// - /// parameterName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText parameterName; - - /// - /// parameterNumber control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlInputText parameterNumber; - - /// - /// debug control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label debug; - } -} diff --git a/OLD/umbraco.Legacy/umbraco/task.aspx.resx b/OLD/umbraco.Legacy/umbraco/task.aspx.resx deleted file mode 100644 index 7f99b555bc..0000000000 --- a/OLD/umbraco.Legacy/umbraco/task.aspx.resx +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - Private - - - False - - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx b/OLD/umbraco.Legacy/umbraco/viewHtml.aspx deleted file mode 100644 index 4cac1c5305..0000000000 --- a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx +++ /dev/null @@ -1,31 +0,0 @@ -<%@ Page language="c#" Codebehind="viewHtml.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.viewHtml" %> - - - - umbraco : <%=umbraco.ui.Text("general", "edit", base.getUser())%> HTML - - -
- -
- " onClick="parent.opener.currentRichTextObject.innerHTML = document.codeForm.code.value; window.close();"> -
- - - - - diff --git a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.cs b/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.cs deleted file mode 100644 index f8c9416f1d..0000000000 --- a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; - -namespace umbraco.cms.presentation -{ - /// - /// Summary description for viewHtml. - /// - public partial class viewHtml : BasePages.UmbracoEnsuredPage - { - protected void Page_Load(object sender, System.EventArgs e) - { - // Put user code to initialize the page here - - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - } - #endregion - } -} diff --git a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.designer.cs b/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.designer.cs deleted file mode 100644 index 4ca5d7f80f..0000000000 --- a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.designer.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.1434 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.cms.presentation { - - - /// - /// viewHtml class. - /// - /// - /// Auto-generated class. - /// - public partial class viewHtml { - } -} diff --git a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.resx b/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.resx deleted file mode 100644 index dd0ea4d8e3..0000000000 --- a/OLD/umbraco.Legacy/umbraco/viewHtml.aspx.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.0.0.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/OLD/umbraco.Legacy/umbraco_client/CodeArea/xbf.js b/OLD/umbraco.Legacy/umbraco_client/CodeArea/xbf.js deleted file mode 100644 index c472f3301a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/CodeArea/xbf.js +++ /dev/null @@ -1,385 +0,0 @@ - -var templateEditing = false; -var macroEditElement = null; - -function openDialog(diaTitle, diaDoc, dwidth, dheight) -{ - window.status = ""; - strFeatures = "dialogWidth=" + dwidth + "px;dialogHeight=" + dheight + "px;scrollbars=no;" - + "center=yes;border=thin;help=no;status=no" - strTitle = window.showModalDialog(diaDoc, "MyDialog", strFeatures); - return strTitle; - -} - -function setRichTextObject(id) { - currentRichTextDocument = document.frames[id + "_holder"].document; - currentRichTextObject = document.frames[id + "_holder"].document.getElementById("holder"); -} - - -function umbracoEditorCommand(id,commandKey,option) - { - setRichTextObject(id); - currentRichTextDocument = document.frames[id + "_holder"].document; - currentRichTextDocument.execCommand(commandKey,true,option); - currentRichTextDocument.focus(); - } - - - function umbracoInsertField(theObject, tagUrl, tagName, tagText, width, height,path,move) - { - // Fixes issue with code gets inserted outside the editor in IE - if (navigator.userAgent.match('MSIE')) { - if (textareaEditorMode == 'undefined' && document.selection.createRange().parentElement().tagName == 'DIV') { - alert('FOCUS OUTSIDE OF THE EDITOR\n--------------------------------------------------------------------------\n\nPlease place the cursor where you wish to insert the code by using either mouse or keyboard.'); - return; - } - } - - - //var fieldName = parent.parent.openDialog("umbracoField", path + tagUrl + ".aspx?tagName=" + tagName + "&tagText=" + tagText + "&move=" + move + "&objectId=meh", width, height); - var dialogTitle = "Insert umbraco field"; - if (tagName == "UMBRACOGETDICTIONARY") - { - dialogTitle = "Insert Dictionary Item"; - } - top.openModal(path + tagUrl + ".aspx?tagName=" + tagName + "&tagText=" + tagText + "&move=" + move + "&objectId=meh",dialogTitle, height, width); - } - - - function umbracoInsertFieldDo(theObjectId, Text, move) - { - //editorSource.insertCode(Text); - insertCodeAtCaret(document.getElementById(theObjectId), Text) - } - - function xbfInsertAtCaretAndMove (el, txt, move) - { - //editorSource.insertCode(txt); - insertCodeAtCaret(document.getElementById(theObjectId), txt) - } - - - - -/////////////////////////////////////////// -// UMBRACO MAKRO-FUNKTIONER -/////////////////////////////////////////// - - function umbracoInsertMacro(id, path) { - setRichTextObject(id); - macroEditElement = null; - if (document.selection.createRange().parentElement().tagName != 'BODY') - var fieldTag = nytVindue(path+"/dialogs/editMacro.aspx?editor=true&umbPageId=" + umbPageId + "&umbVersionId=" + umbVersionId , 600, 350); - } - - function umbracoTemplateInsertMacro() { - top.openModal("dialogs/editMacro.aspx","Insert macro", 600, 500); - //var fieldTag = nytVindue("../dialogs/editMacro.aspx", 600, 350); - } - - function umbracoInsertMacroDo(fieldTag) { - fieldTag = fieldTag.replace(/\'/gi,"'"); - xbfInsertAtCaretAndMove(document.forms[0].TemplateBody, fieldTag) - } - - function umbracoEditMacroDo(fieldTag, macroName, renderedContent) { - if (macroEditElement != null) { - macroEditElement.outerHTML = renderedContent; - } else { - currentRichTextDocument.selection.createRange().pasteHTML(renderedContent); - } - macroEditElement = null; - } - - function nytVindue(side, bredde, hoejde) { - window.open(side, 'nytVindue', 'width=' + bredde + ',height=' + hoejde + ',scrollbars=yes'); - } - - -///////////////////////////////////////////////////////// -// BILLEDE FUNKTIONER -///////////////////////////////////////////////////////// - - function umbracoImage(id) { - if (id != undefined) - setRichTextObject(id) - if (document.selection.createRange().parentElement().tagName != 'BODY') { - - var imageToInsert = ""; - imageToInsert = "" + openDialog("insertImage", "dialogs/insertimage.aspx", 560, 540); - - - if (imageToInsert.toString() != 'undefined' && imageToInsert != '') { - - var imageName; - var imageSource; - var imageWidth; - var imageHeight; - var imageWidthHeightString = ''; - var orgWidth; - var orgHeight; - imageToInsert = imageToInsert.split('|||'); - imageName = imageToInsert[0]; - imageSource = imageToInsert[1]; - imageWidth = imageToInsert[2]; - imageHeight = imageToInsert[3]; - imageTitle = imageToInsert[4]; - orgWidth = imageToInsert[5]; - orgHeight = imageToInsert[6]; - - if (imageWidth != '' && imageWidth != '0' && imageWidth.toString() != 'undefined' && imageHeight != '' && imageHeight != '0' && imageHeight.toString() != 'undefined') - imageWidthHeightString = ' onResize="umbracoImageResizeUpdateSize()" onResizeEnd="defaultStatus = \'\'; umbracoImageResize(this);" onresizestart="umbracoImageResizeStart(this);" width="' + imageWidth + '" height="' + imageHeight + '" umbracoOrgWidth="' + orgWidth + '" umbracoOrgHeight="' + orgHeight + '"' - - document.selection.createRange().pasteHTML('' + imageName + ''); - } - } - } - - -///////////////////////////////////////////////////////// -// RELATIONER FUNKTIONER -///////////////////////////////////////////////////////// - - function doRelation() { - var fieldTag = nytVindue(umbracoConstGuiFolderName + "/umbracoRelation.aspx?table=dataStructure&id=" + umbracoQuerystring, 600, 350); - } - -///////////////////////////////////////////////////////// -// TABEL FUNKTIONER -///////////////////////////////////////////////////////// - - function umbracoInsertTable(id) { - setRichTextObject(id) - var tableToInsert = ""; - tableToInsert = "" + openDialog("insertTable", "dialogs/insertTable.aspx", 470, 560); - - if (tableToInsert.toString() != 'undefined' && tableToInsert != '') { - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - if (rng.text != '' && sel.type == 'Text') - rng.pasteHTML (tableToInsert + rng.html) - else - rng.pasteHTML (tableToInsert); - } - } - - } - currentRichTextDocument.focus(); - } - - - -///////////////////////////////////////////////////////// -// LINK FUNKTIONER -///////////////////////////////////////////////////////// - -function umbracoAnchor(id) { - setRichTextObject(id) - insertAnchor = "" + openDialog("insertAnchor", "dialogs/insertAnchor.aspx", 390, 260); - - if (insertAnchor != '' && insertAnchor != 'undefined') { - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - var theHTML = currentRichTextDocument.selection.createRange().htmlText; - currentRichTextDocument.selection.createRange().pasteHTML(''+ theHTML +''); - } - } - } -} - - function umbracoLink(id) { - setRichTextObject(id) - var linkToInsert = ""; - var sel = currentRichTextDocument.selection; - var tagContent = ''; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - // test for links in range! - if (rng.text == '') { - var currentElement = rng.parentElement(); - while (currentElement.tagName != 'A' && currentElement.parentNode.tagName != 'BODY') { - currentElement = currentElement.parentNode; - } - if (currentElement.tagName == 'A') { - // use editing method in richtextfunctions.js which is - // located in the iframe of the editing document - document.frames[id + "_holder"].umbracoEditA(currentElement); - return ""; - } - } - if (rng.text != '' && sel.type == 'Text') { - tagContent = rng.htmlText; - linkToInsert = "" + openDialog("insertLink", "dialogs/insertlink.aspx", 440, 480); - if (linkToInsert.toString() != 'undefined' && linkToInsert != '') { - if (linkToInsert.substr(0,4) == 'true') { - currentRichTextDocument.execCommand('CreateLink',false,formatLink(linkToInsert.substr(linkToInsert.indexOf('|')+1, linkToInsert.length))); - if (rng.parentElement().tagName == "A"){ - rng.parentElement().target="_blank"; - } - } - else { - currentRichTextDocument.execCommand('CreateLink',false,formatLink(linkToInsert.substr(linkToInsert.indexOf('|')+1, linkToInsert.length))); - } - } - } else { - if (sel.type == 'Control') { - var tag = rng.item(0); - var tagContent = '<' + tag.tagName; - var tagAttr = tag.attributes; - for (var i=0;i' + tagContent + ''; - else - tagContent = '' + tagContent + ''; - } - - rng.item(0).outerHTML = tagContent; - } - - } - - } - } - - currentRichTextObject.focus(); - } - - function formatLink(link) { - return link.replace(/\%3f/g,'\?'); - } - - function umbracoScriptlet() { - var fieldName = parent.parent.openDialog("umbracoScriptlet", "settings/umbracoScriptlet.aspx", 500, 250); - var fieldImg = "\"""; - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null && sel.type == 'Text') - rng.pasteHTML(fieldImg); - } - } - - function doSubmitAndPublish() { - document.contentForm.doPublish.value = "true"; - doSubmit(); - } - -/* function doSubmit() - { - // Hvis der er tndt for styles, skal vi lige slukke for dem! - if (typeof(currentRichTextObject) != 'undefined') - if (currentRichTextObject) - if (currentRichTextObject.innerHTML.indexOf('styleMarkStart.gif') > 0) - umbracoShowStyles(); - -// invokeSaveHandlers(); - document.contentForm.doSave.value = "true"; - document.contentForm.submit(); - } -*/ - function viewHTML(id) - { - setRichTextObject(id) - window.open("viewHTML.aspx?rnd="+top.returnRandom(), 'nytVindue', 'width=700,height=500,scrollbars=auto'); - } - -function umbracoInsertForm(id) { - setRichTextObject(id) - - - var formField = openDialog("umbracoForm", "dialogs/insertFormField.aspx?rnd="+top.returnRandom(), 450, 480); - if (formField) { - - currentRichTextDocument.selection.createRange().pasteHTML(formField); - } -} - -function umbracoTextGen(id) { - setRichTextObject(id) - var textGen = openDialog("umbracoTextGen", "dialogs/inserttextGen.aspx?rnd="+top.returnRandom(), 450, 330); - if (textGen) - currentRichTextDocument.selection.createRange().pasteHTML(textGen.replace(/&/g,"&")); -} - -function addStyle(stylePickerID, id) { - setRichTextObject(id) - var styleToApply = stylePickerID[stylePickerID.selectedIndex].value; - var sel = currentRichTextDocument.selection; - if (sel!=null) { - var rng = sel.createRange(); - if (rng!=null) { - if (styleToApply != '') { - setClass(styleToApply); - } - } - } - stylePickerID.selectedIndex = 0; -// currentRichTextDocument.all["theContent"].contentEditable = true; - currentRichTextObject.focus(); - } - -function setClass(theClass) { - if (currentRichTextDocument.selection.type == 'Text') { - var oSel = currentRichTextDocument.selection; - var theHTML = oSel.createRange().htmlText; - oSel.clear(); - theHTML = theHTML.replace(//gi,""); - theHTML = theHTML.replace(/<\/span>/gi,""); - theHTML = theHTML.replace(//gi,""); - theHTML = theHTML.replace(/<\/h\/?.*?>/gi,""); - theHTML = theHTML.replace(/

/gi,""); - theHTML = theHTML.replace(/<\/p>/gi,""); - if (theClass.indexOf(".") > -1) - theClass = ''+ theHTML +''; - else { - theClass = '<' + theClass + '>'+ theHTML +''; - } - - currentRichTextDocument.selection.createRange().pasteHTML(theClass); - } else { - alert(parent.uiKeys['errors_stylesMustMarkBeforeSelect']); - } -} - -function umbracoShowStyles(id) { - - setRichTextObject(id) - var theHTML = currentRichTextObject.innerHTML; - if (theHTML.indexOf('styleMarkStart.gif') > 0) { - //document.all.showStyles.className = 'editorIcon'; - theHTML = theHTML.replace(/\"Style:/gi,"") - theHTML = theHTML.replace(/\"Formatering/gi,"") - } else { - if (theHTML.indexOf(' -1 || theHTML.indexOf(' -1) { - //document.all.showStyles.className = 'editorIconOn'; - theHTML = theHTML.replace(//gi,"\"Style:") - theHTML = theHTML.replace(//gi,"") - theHTML = theHTML.replace(/<\/span>/gi,"\"Formatering") - } else - alert(parent.uiKeys['errors_stylesNoStylesOnPage']); - } - - currentRichTextObject.innerHTML = theHTML; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/active-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/active-bg.gif deleted file mode 100644 index d608c54698..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/active-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/dark-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/dark-bg.gif deleted file mode 100644 index 1dea48a8f6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/dark-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/hover-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/hover-bg.gif deleted file mode 100644 index fbf94fc2c1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/hover-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/menuarrow.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/menuarrow.gif deleted file mode 100644 index 40c0aadfc6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/menuarrow.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/normal-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/normal-bg.gif deleted file mode 100644 index bdb506869e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/normal-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/rowhover-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/rowhover-bg.gif deleted file mode 100644 index 77153424e2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/rowhover-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/status-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/status-bg.gif deleted file mode 100644 index 857108c429..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/status-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/theme.css b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/theme.css deleted file mode 100644 index 94e522aec1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/theme.css +++ /dev/null @@ -1,221 +0,0 @@ -/* Distributed as part of The Coolest DHTML Calendar - Author: Mihai Bazon, www.bazon.net/mishoo - Copyright Dynarch.com 2005, www.dynarch.com -*/ - -/* The main calendar widget. DIV containing a table. */ - -div.calendar { position: relative; border: 2px solid #CAC9C9;} - -.calendar, .calendar table { - - font-size: 11px; - color: #000; - cursor: default; - font-family: "trebuchet ms",verdana,tahoma,sans-serif; - background: #fff url(../../propertyPane/images/propertyBackground.gif); -} - -.calendar table { - border: none; -} - -/* Header part -- contains navigation buttons and day names. */ - -.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ - text-align: center; /* They are the navigation buttons */ - padding: 2px; /* Make the buttons seem like they're pressing */ - font-weight: bold; -} - -.calendar .nav { - font-family: verdana,tahoma,sans-serif; -} - -.calendar .nav div { -} - -.calendar thead tr { color: #000; } - -.calendar thead .title { /* This holds the current "month, year" */ - font-weight: bold; /* Pressing it will take you to the current date */ - text-align: center; - padding: 2px; -} - -.calendar thead .headrow { /* Row containing navigation buttons */ - -} - -.calendar thead .name { /* Cells containing the day names */ - border-bottom: 1px solid #797979; - padding: 2px; - text-align: center; - color: #000; -} - -.calendar thead .weekend { /* How a weekend day name shows in header */ - color: #c44; -} - -.calendar thead .hilite { /* How do the buttons in header appear when hover */ - border-bottom: 1px solid #797979; - padding: 2px 2px 1px 2px; -} - -.calendar thead .active { /* Active (pressed) buttons in header */ - padding: 3px 1px 0px 3px; - border-bottom: 1px solid #797979; -} - -.calendar thead .daynames { /* Row containing the day names */ -} - -/* The body part -- contains all the days in month. */ - -.calendar tbody .day { /* Cells containing month days dates */ - font-family: verdana,tahoma,sans-serif; - width: 2em; - color: #000; - text-align: right; - padding: 2px 4px 2px 2px; -} -.calendar tbody .day.othermonth { - font-size: 80%; - color: #999; -} -.calendar tbody .day.othermonth.oweekend { - color: #f99; -} - -.calendar table .wn { - padding: 2px 3px 2px 2px; - border-right: 1px solid #797979; -} - -.calendar tbody .rowhilite td, -.calendar tbody .rowhilite td.wn { -} - -.calendar tbody td.today { font-weight: bold; /* background: url("today-bg.gif") no-repeat 70% 50%; */ } - -.calendar tbody td.hilite { /* Hovered cells */ - padding: 1px 3px 1px 1px; - border: 1px solid #bbb; -} - -.calendar tbody td.active { /* Active (pressed) cells */ - padding: 2px 2px 0px 2px; -} - -.calendar tbody td.weekend { /* Cells showing weekend days */ - color: #c44; -} - -.calendar tbody td.selected { /* Cell showing selected date */ - font-weight: bold; - border: 1px solid #797979; - padding: 1px 3px 1px 1px; -} - -.calendar tbody .disabled { color: #999; } - -.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ - visibility: hidden; -} - -.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ - display: none; -} - -/* The footer part -- status bar and "Close" button */ - -.calendar tfoot .footrow { /* The in footer (only one right now) */ - text-align: center; - color: #fff; -} - -.calendar tfoot .ttip { /* Tooltip (status bar) cell */ - padding: 2px; - color: #000; -} - -.calendar tfoot .hilite { /* Hover style for buttons in footer */ - background: #afa; - border: 1px solid #084; - color: #000; - padding: 1px; -} - -.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ - background: #7c7; - padding: 2px 0px 0px 2px; -} - -/* Combo boxes (menus that display months/years for direct selection) */ - -.calendar .combo { - position: absolute; - display: none; - top: 0px; - left: 0px; - width: 4em; - cursor: default; - border-width: 0 1px 1px 1px; - border-style: solid; - border-color: #797979; - color: #000; - z-index: 100; - font-size: 90%; -} - -.calendar .combo .label, -.calendar .combo .label-IEfix { - text-align: center; - padding: 1px; -} - -.calendar .combo .label-IEfix { - width: 4em; -} - -.calendar .combo .hilite { -} - -.calendar .combo .active { - font-weight: bold; -} - -.calendar td.time { - border-top: 1px solid #797979; - padding: 1px 0px; - text-align: center; - -} - -.calendar td.time .hour, -.calendar td.time .minute, -.calendar td.time .ampm { - padding: 0px 5px 0px 6px; - font-weight: bold; -} - -.calendar td.time .hour, -.calendar td.time .minute { - font-family: monospace; -} - -.calendar td.time .ampm { - text-align: center; -} - -.calendar td.time .colon { - padding: 0px 2px 0px 3px; - font-weight: bold; -} - -.calendar td.time span.hilite { -} - -.calendar td.time span.active { -} diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/title-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/title-bg.gif deleted file mode 100644 index 6a541b3bc1..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/title-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/today-bg.gif b/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/today-bg.gif deleted file mode 100644 index 7161538c3d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/aqua/today-bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/cal_s.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/cal_s.js deleted file mode 100644 index 4fe03f1ea9..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/cal_s.js +++ /dev/null @@ -1,14 +0,0 @@ -/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo - * ----------------------------------------------------------- - * - * The DHTML Calendar, version 1.0 "It is happening again" - * - * Details and latest version at: - * www.dynarch.com/projects/calendar - * - * This script is developed by Dynarch.com. Visit us at www.dynarch.com. - * - * This script is distributed under the GNU Lesser General Public License. - * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html - */ - Calendar=function(firstDayOfWeek,dateStr,onSelected,onClose){this.activeDiv=null;this.currentDateEl=null;this.getDateStatus=null;this.getDateToolTip=null;this.getDateText=null;this.timeout=null;this.onSelected=onSelected||null;this.onClose=onClose||null;this.dragging=false;this.hidden=false;this.minYear=1970;this.maxYear=2050;this.dateFormat=Calendar._TT["DEF_DATE_FORMAT"];this.ttDateFormat=Calendar._TT["TT_DATE_FORMAT"];this.isPopup=true;this.weekNumbers=true;this.firstDayOfWeek=typeof firstDayOfWeek=="number"?firstDayOfWeek:Calendar._FD;this.showsOtherMonths=false;this.dateStr=dateStr;this.ar_days=null;this.showsTime=false;this.time24=true;this.yearStep=2;this.hiliteToday=true;this.multiple=null;this.table=null;this.element=null;this.tbody=null;this.firstdayname=null;this.monthsCombo=null;this.yearsCombo=null;this.hilitedMonth=null;this.activeMonth=null;this.hilitedYear=null;this.activeYear=null;this.dateClicked=false;if(typeof Calendar._SDN=="undefined"){if(typeof Calendar._SDN_len=="undefined")Calendar._SDN_len=3;var ar=new Array();for(var i=8;i>0;){ar[--i]=Calendar._DN[i].substr(0,Calendar._SDN_len);}Calendar._SDN=ar;if(typeof Calendar._SMN_len=="undefined")Calendar._SMN_len=3;ar=new Array();for(var i=12;i>0;){ar[--i]=Calendar._MN[i].substr(0,Calendar._SMN_len);}Calendar._SMN=ar;}};Calendar._C=null;Calendar.is_ie=(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));Calendar.is_ie5=(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent));Calendar.is_opera=/opera/i.test(navigator.userAgent);Calendar.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);Calendar.getAbsolutePos=function(el){var SL=0,ST=0;var is_div=/^div$/i.test(el.tagName);if(is_div&&el.scrollLeft)SL=el.scrollLeft;if(is_div&&el.scrollTop)ST=el.scrollTop;var r={x:el.offsetLeft-SL,y:el.offsetTop-ST};if(el.offsetParent){var tmp=this.getAbsolutePos(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}return r;};Calendar.isRelated=function(el,evt){var related=evt.relatedTarget;if(!related){var type=evt.type;if(type=="mouseover"){related=evt.fromElement;}else if(type=="mouseout"){related=evt.toElement;}}while(related){if(related==el){return true;}related=related.parentNode;}return false;};Calendar.removeClass=function(el,className){if(!(el&&el.className)){return;}var cls=el.className.split(" ");var ar=new Array();for(var i=cls.length;i>0;){if(cls[--i]!=className){ar[ar.length]=cls[i];}}el.className=ar.join(" ");};Calendar.addClass=function(el,className){Calendar.removeClass(el,className);el.className+=" "+className;};Calendar.getElement=function(ev){var f=Calendar.is_ie?window.event.srcElement:ev.currentTarget;while(f.nodeType!=1||/^div$/i.test(f.tagName))f=f.parentNode;return f;};Calendar.getTargetElement=function(ev){var f=Calendar.is_ie?window.event.srcElement:ev.target;while(f.nodeType!=1)f=f.parentNode;return f;};Calendar.stopEvent=function(ev){ev||(ev=window.event);if(Calendar.is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}return false;};Calendar.addEvent=function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}};Calendar.removeEvent=function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else if(el.removeEventListener){el.removeEventListener(evname,func,true);}else{el["on"+evname]=null;}};Calendar.createElement=function(type,parent){var el=null;if(document.createElementNS){el=document.createElementNS("http://www.w3.org/1999/xhtml",type);}else{el=document.createElement(type);}if(typeof parent!="undefined"){parent.appendChild(el);}return el;};Calendar._add_evs=function(el){with(Calendar){addEvent(el,"mouseover",dayMouseOver);addEvent(el,"mousedown",dayMouseDown);addEvent(el,"mouseout",dayMouseOut);if(is_ie){addEvent(el,"dblclick",dayMouseDblClick);el.setAttribute("unselectable",true);}}};Calendar.findMonth=function(el){if(typeof el.month!="undefined"){return el;}else if(typeof el.parentNode.month!="undefined"){return el.parentNode;}return null;};Calendar.findYear=function(el){if(typeof el.year!="undefined"){return el;}else if(typeof el.parentNode.year!="undefined"){return el.parentNode;}return null;};Calendar.showMonthsCombo=function(){var cal=Calendar._C;if(!cal){return false;}var cal=cal;var cd=cal.activeDiv;var mc=cal.monthsCombo;if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}if(cal.activeMonth){Calendar.removeClass(cal.activeMonth,"active");}var mon=cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()];Calendar.addClass(mon,"active");cal.activeMonth=mon;var s=mc.style;s.display="block";if(cd.navtype<0)s.left=cd.offsetLeft+"px";else{var mcw=mc.offsetWidth;if(typeof mcw=="undefined")mcw=50;s.left=(cd.offsetLeft+cd.offsetWidth-mcw)+"px";}s.top=(cd.offsetTop+cd.offsetHeight)+"px";};Calendar.showYearsCombo=function(fwd){var cal=Calendar._C;if(!cal){return false;}var cal=cal;var cd=cal.activeDiv;var yc=cal.yearsCombo;if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}if(cal.activeYear){Calendar.removeClass(cal.activeYear,"active");}cal.activeYear=null;var Y=cal.date.getFullYear()+(fwd?1:-1);var yr=yc.firstChild;var show=false;for(var i=12;i>0;--i){if(Y>=cal.minYear&&Y<=cal.maxYear){yr.innerHTML=Y;yr.year=Y;yr.style.display="block";show=true;}else{yr.style.display="none";}yr=yr.nextSibling;Y+=fwd?cal.yearStep:-cal.yearStep;}if(show){var s=yc.style;s.display="block";if(cd.navtype<0)s.left=cd.offsetLeft+"px";else{var ycw=yc.offsetWidth;if(typeof ycw=="undefined")ycw=50;s.left=(cd.offsetLeft+cd.offsetWidth-ycw)+"px";}s.top=(cd.offsetTop+cd.offsetHeight)+"px";}};Calendar.tableMouseUp=function(ev){var cal=Calendar._C;if(!cal){return false;}if(cal.timeout){clearTimeout(cal.timeout);}var el=cal.activeDiv;if(!el){return false;}var target=Calendar.getTargetElement(ev);ev||(ev=window.event);Calendar.removeClass(el,"active");if(target==el||target.parentNode==el){Calendar.cellClick(el,ev);}var mon=Calendar.findMonth(target);var date=null;if(mon){date=new Date(cal.date);if(mon.month!=date.getMonth()){date.setMonth(mon.month);cal.setDate(date);cal.dateClicked=false;cal.callHandler();}}else{var year=Calendar.findYear(target);if(year){date=new Date(cal.date);if(year.year!=date.getFullYear()){date.setFullYear(year.year);cal.setDate(date);cal.dateClicked=false;cal.callHandler();}}}with(Calendar){removeEvent(document,"mouseup",tableMouseUp);removeEvent(document,"mouseover",tableMouseOver);removeEvent(document,"mousemove",tableMouseOver);cal._hideCombos();_C=null;return stopEvent(ev);}};Calendar.tableMouseOver=function(ev){var cal=Calendar._C;if(!cal){return;}var el=cal.activeDiv;var target=Calendar.getTargetElement(ev);if(target==el||target.parentNode==el){Calendar.addClass(el,"hilite active");Calendar.addClass(el.parentNode,"rowhilite");}else{if(typeof el.navtype=="undefined"||(el.navtype!=50&&(el.navtype==0||Math.abs(el.navtype)>2)))Calendar.removeClass(el,"active");Calendar.removeClass(el,"hilite");Calendar.removeClass(el.parentNode,"rowhilite");}ev||(ev=window.event);if(el.navtype==50&&target!=el){var pos=Calendar.getAbsolutePos(el);var w=el.offsetWidth;var x=ev.clientX;var dx;var decrease=true;if(x>pos.x+w){dx=x-pos.x-w;decrease=false;}else dx=pos.x-x;if(dx<0)dx=0;var range=el._range;var current=el._current;var count=Math.floor(dx/10)%range.length;for(var i=range.length;--i>=0;)if(range[i]==current)break;while(count-->0)if(decrease){if(--i<0)i=range.length-1;}else if(++i>=range.length)i=0;var newval=range[i];el.innerHTML=newval;cal.onUpdateTime();}var mon=Calendar.findMonth(target);if(mon){if(mon.month!=cal.date.getMonth()){if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}Calendar.addClass(mon,"hilite");cal.hilitedMonth=mon;}else if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}}else{if(cal.hilitedMonth){Calendar.removeClass(cal.hilitedMonth,"hilite");}var year=Calendar.findYear(target);if(year){if(year.year!=cal.date.getFullYear()){if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}Calendar.addClass(year,"hilite");cal.hilitedYear=year;}else if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}}else if(cal.hilitedYear){Calendar.removeClass(cal.hilitedYear,"hilite");}}return Calendar.stopEvent(ev);};Calendar.tableMouseDown=function(ev){if(Calendar.getTargetElement(ev)==Calendar.getElement(ev)){return Calendar.stopEvent(ev);}};Calendar.calDragIt=function(ev){var cal=Calendar._C;if(!(cal&&cal.dragging)){return false;}var posX;var posY;if(Calendar.is_ie){posY=window.event.clientY+document.body.scrollTop;posX=window.event.clientX+document.body.scrollLeft;}else{posX=ev.pageX;posY=ev.pageY;}cal.hideShowCovered();var st=cal.element.style;st.left=(posX-cal.xOffs)+"px";st.top=(posY-cal.yOffs)+"px";return Calendar.stopEvent(ev);};Calendar.calDragEnd=function(ev){var cal=Calendar._C;if(!cal){return false;}cal.dragging=false;with(Calendar){removeEvent(document,"mousemove",calDragIt);removeEvent(document,"mouseup",calDragEnd);tableMouseUp(ev);}cal.hideShowCovered();};Calendar.dayMouseDown=function(ev){var el=Calendar.getElement(ev);if(el.disabled){return false;}var cal=el.calendar;cal.activeDiv=el;Calendar._C=cal;if(el.navtype!=300)with(Calendar){if(el.navtype==50){el._current=el.innerHTML;addEvent(document,"mousemove",tableMouseOver);}else addEvent(document,Calendar.is_ie5?"mousemove":"mouseover",tableMouseOver);addClass(el,"hilite active");addEvent(document,"mouseup",tableMouseUp);}else if(cal.isPopup){cal._dragStart(ev);}if(el.navtype==-1||el.navtype==1){if(cal.timeout)clearTimeout(cal.timeout);cal.timeout=setTimeout("Calendar.showMonthsCombo()",250);}else if(el.navtype==-2||el.navtype==2){if(cal.timeout)clearTimeout(cal.timeout);cal.timeout=setTimeout((el.navtype>0)?"Calendar.showYearsCombo(true)":"Calendar.showYearsCombo(false)",250);}else{cal.timeout=null;}return Calendar.stopEvent(ev);};Calendar.dayMouseDblClick=function(ev){Calendar.cellClick(Calendar.getElement(ev),ev||window.event);if(Calendar.is_ie){document.selection.empty();}};Calendar.dayMouseOver=function(ev){var el=Calendar.getElement(ev);if(Calendar.isRelated(el,ev)||Calendar._C||el.disabled){return false;}if(el.ttip){if(el.ttip.substr(0,1)=="_"){el.ttip=el.caldate.print(el.calendar.ttDateFormat)+el.ttip.substr(1);}el.calendar.tooltips.innerHTML=el.ttip;}if(el.navtype!=300){Calendar.addClass(el,"hilite");if(el.caldate){Calendar.addClass(el.parentNode,"rowhilite");}}return Calendar.stopEvent(ev);};Calendar.dayMouseOut=function(ev){with(Calendar){var el=getElement(ev);if(isRelated(el,ev)||_C||el.disabled)return false;removeClass(el,"hilite");if(el.caldate)removeClass(el.parentNode,"rowhilite");if(el.calendar)el.calendar.tooltips.innerHTML=_TT["SEL_DATE"];return stopEvent(ev);}};Calendar.cellClick=function(el,ev){var cal=el.calendar;var closing=false;var newdate=false;var date=null;if(typeof el.navtype=="undefined"){if(cal.currentDateEl){Calendar.removeClass(cal.currentDateEl,"selected");Calendar.addClass(el,"selected");closing=(cal.currentDateEl==el);if(!closing){cal.currentDateEl=el;}}cal.date.setDateOnly(el.caldate);date=cal.date;var other_month=!(cal.dateClicked=!el.otherMonth);if(!other_month&&!cal.currentDateEl)cal._toggleMultipleDate(new Date(date));else newdate=!el.disabled;if(other_month)cal._init(cal.firstDayOfWeek,date);}else{if(el.navtype==200){Calendar.removeClass(el,"hilite");cal.callCloseHandler();return;}date=new Date(cal.date);if(el.navtype==0)date.setDateOnly(new Date());cal.dateClicked=false;var year=date.getFullYear();var mon=date.getMonth();function setMonth(m){var day=date.getDate();var max=date.getMonthDays(m);if(day>max){date.setDate(max);}date.setMonth(m);};switch(el.navtype){case 400:Calendar.removeClass(el,"hilite");var text=Calendar._TT["ABOUT"];if(typeof text!="undefined"){text+=cal.showsTime?Calendar._TT["ABOUT_TIME"]:"";}else{text="Help and about box text is not translated into this language.\n"+"If you know this language and you feel generous please update\n"+"the corresponding file in \"lang\" subdir to match calendar-en.js\n"+"and send it back to to get it into the distribution ;-)\n\n"+"Thank you!\n"+"http://dynarch.com/mishoo/calendar.epl\n";}alert(text);return;case-2:if(year>cal.minYear){date.setFullYear(year-1);}break;case-1:if(mon>0){setMonth(mon-1);}else if(year-->cal.minYear){date.setFullYear(year);setMonth(11);}break;case 1:if(mon<11){setMonth(mon+1);}else if(year=0;)if(range[i]==current)break;if(ev&&ev.shiftKey){if(--i<0)i=range.length-1;}else if(++i>=range.length)i=0;var newval=range[i];el.innerHTML=newval;cal.onUpdateTime();return;case 0:if((typeof cal.getDateStatus=="function")&&cal.getDateStatus(date,date.getFullYear(),date.getMonth(),date.getDate())){return false;}break;}if(!date.equalsTo(cal.date)){cal.setDate(date);newdate=true;}else if(el.navtype==0)newdate=closing=true;}if(newdate){ev&&cal.callHandler();}if(closing){Calendar.removeClass(el,"hilite");ev&&cal.callCloseHandler();}};Calendar.prototype.create=function(_par){var parent=null;if(!_par){parent=document.getElementsByTagName("body")[0];this.isPopup=true;}else{parent=_par;this.isPopup=false;}this.date=this.dateStr?new Date(this.dateStr):new Date();var table=Calendar.createElement("table");this.table=table;table.cellSpacing=0;table.cellPadding=0;table.calendar=this;Calendar.addEvent(table,"mousedown",Calendar.tableMouseDown);var div=Calendar.createElement("div");this.element=div;div.className="calendar";if(this.isPopup){div.style.position="absolute";div.style.display="none";}div.appendChild(table);var thead=Calendar.createElement("thead",table);var cell=null;var row=null;var cal=this;var hh=function(text,cs,navtype){cell=Calendar.createElement("td",row);cell.colSpan=cs;cell.className="button";if(navtype!=0&&Math.abs(navtype)<=2)cell.className+=" nav";Calendar._add_evs(cell);cell.calendar=cal;cell.navtype=navtype;cell.innerHTML="

"+text+"
";return cell;};row=Calendar.createElement("tr",thead);var title_length=6;(this.isPopup)&&--title_length;(this.weekNumbers)&&++title_length;hh("?",1,400).ttip=Calendar._TT["INFO"];this.title=hh("",title_length,300);this.title.className="title";if(this.isPopup){this.title.ttip=Calendar._TT["DRAG_TO_MOVE"];this.title.style.cursor="move";hh("×",1,200).ttip=Calendar._TT["CLOSE"];}row=Calendar.createElement("tr",thead);row.className="headrow";this._nav_py=hh("«",1,-2);this._nav_py.ttip=Calendar._TT["PREV_YEAR"];this._nav_pm=hh("‹",1,-1);this._nav_pm.ttip=Calendar._TT["PREV_MONTH"];this._nav_now=hh(Calendar._TT["TODAY"],this.weekNumbers?4:3,0);this._nav_now.ttip=Calendar._TT["GO_TODAY"];this._nav_nm=hh("›",1,1);this._nav_nm.ttip=Calendar._TT["NEXT_MONTH"];this._nav_ny=hh("»",1,2);this._nav_ny.ttip=Calendar._TT["NEXT_YEAR"];row=Calendar.createElement("tr",thead);row.className="daynames";if(this.weekNumbers){cell=Calendar.createElement("td",row);cell.className="name wn";cell.innerHTML=Calendar._TT["WK"];}for(var i=7;i>0;--i){cell=Calendar.createElement("td",row);if(!i){cell.navtype=100;cell.calendar=this;Calendar._add_evs(cell);}}this.firstdayname=(this.weekNumbers)?row.firstChild.nextSibling:row.firstChild;this._displayWeekdays();var tbody=Calendar.createElement("tbody",table);this.tbody=tbody;for(i=6;i>0;--i){row=Calendar.createElement("tr",tbody);if(this.weekNumbers){cell=Calendar.createElement("td",row);}for(var j=7;j>0;--j){cell=Calendar.createElement("td",row);cell.calendar=this;Calendar._add_evs(cell);}}if(this.showsTime){row=Calendar.createElement("tr",tbody);row.className="time";cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=2;cell.innerHTML=Calendar._TT["TIME"]||" ";cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=this.weekNumbers?4:3;(function(){function makeTimePart(className,init,range_start,range_end){var part=Calendar.createElement("span",cell);part.className=className;part.innerHTML=init;part.calendar=cal;part.ttip=Calendar._TT["TIME_PART"];part.navtype=50;part._range=[];if(typeof range_start!="number")part._range=range_start;else{for(var i=range_start;i<=range_end;++i){var txt;if(i<10&&range_end>=10)txt='0'+i;else txt=''+i;part._range[part._range.length]=txt;}}Calendar._add_evs(part);return part;};var hrs=cal.date.getHours();var mins=cal.date.getMinutes();var t12=!cal.time24;var pm=(hrs>12);if(t12&&pm)hrs-=12;var H=makeTimePart("hour",hrs,t12?1:0,t12?12:23);var span=Calendar.createElement("span",cell);span.innerHTML=":";span.className="colon";var M=makeTimePart("minute",mins,0,59);var AP=null;cell=Calendar.createElement("td",row);cell.className="time";cell.colSpan=2;if(t12)AP=makeTimePart("ampm",pm?"pm":"am",["am","pm"]);else cell.innerHTML=" ";cal.onSetTime=function(){var pm,hrs=this.date.getHours(),mins=this.date.getMinutes();if(t12){pm=(hrs>=12);if(pm)hrs-=12;if(hrs==0)hrs=12;AP.innerHTML=pm?"pm":"am";}H.innerHTML=(hrs<10)?("0"+hrs):hrs;M.innerHTML=(mins<10)?("0"+mins):mins;};cal.onUpdateTime=function(){var date=this.date;var h=parseInt(H.innerHTML,10);if(t12){if(/pm/i.test(AP.innerHTML)&&h<12)h+=12;else if(/am/i.test(AP.innerHTML)&&h==12)h=0;}var d=date.getDate();var m=date.getMonth();var y=date.getFullYear();date.setHours(h);date.setMinutes(parseInt(M.innerHTML,10));date.setFullYear(y);date.setMonth(m);date.setDate(d);this.dateClicked=false;this.callHandler();};})();}else{this.onSetTime=this.onUpdateTime=function(){};}var tfoot=Calendar.createElement("tfoot",table);row=Calendar.createElement("tr",tfoot);row.className="footrow";cell=hh(Calendar._TT["SEL_DATE"],this.weekNumbers?8:7,300);cell.className="ttip";if(this.isPopup){cell.ttip=Calendar._TT["DRAG_TO_MOVE"];cell.style.cursor="move";}this.tooltips=cell;div=Calendar.createElement("div",this.element);this.monthsCombo=div;div.className="combo";for(i=0;i0;--i){var yr=Calendar.createElement("div");yr.className=Calendar.is_ie?"label-IEfix":"label";div.appendChild(yr);}this._init(this.firstDayOfWeek,this.date);parent.appendChild(this.element);};Calendar._keyEvent=function(ev){var cal=window._dynarch_popupCalendar;if(!cal||cal.multiple)return false;(Calendar.is_ie)&&(ev=window.event);var act=(Calendar.is_ie||ev.type=="keypress"),K=ev.keyCode;if(ev.ctrlKey){switch(K){case 37:act&&Calendar.cellClick(cal._nav_pm);break;case 38:act&&Calendar.cellClick(cal._nav_py);break;case 39:act&&Calendar.cellClick(cal._nav_nm);break;case 40:act&&Calendar.cellClick(cal._nav_ny);break;default:return false;}}else switch(K){case 32:Calendar.cellClick(cal._nav_now);break;case 27:act&&cal.callCloseHandler();break;case 37:case 38:case 39:case 40:if(act){var prev,x,y,ne,el,step;prev=K==37||K==38;step=(K==37||K==39)?1:7;function setVars(){el=cal.currentDateEl;var p=el.pos;x=p&15;y=p>>4;ne=cal.ar_days[y][x];};setVars();function prevMonth(){var date=new Date(cal.date);date.setDate(date.getDate()-step);cal.setDate(date);};function nextMonth(){var date=new Date(cal.date);date.setDate(date.getDate()+step);cal.setDate(date);};while(1){switch(K){case 37:if(--x>=0)ne=cal.ar_days[y][x];else{x=6;K=38;continue;}break;case 38:if(--y>=0)ne=cal.ar_days[y][x];else{prevMonth();setVars();}break;case 39:if(++x<7)ne=cal.ar_days[y][x];else{x=0;K=40;continue;}break;case 40:if(++ythis.maxYear){year=this.maxYear;date.setFullYear(year);}this.firstDayOfWeek=firstDayOfWeek;this.date=new Date(date);var month=date.getMonth();var mday=date.getDate();var no_days=date.getMonthDays();date.setDate(1);var day1=(date.getDay()-this.firstDayOfWeek)%7;if(day1<0)day1+=7;date.setDate(-day1);date.setDate(date.getDate()+1);var row=this.tbody.firstChild;var MN=Calendar._SMN[month];var ar_days=this.ar_days=new Array();var weekend=Calendar._TT["WEEKEND"];var dates=this.multiple?(this.datesCells={}):null;for(var i=0;i<6;++i,row=row.nextSibling){var cell=row.firstChild;if(this.weekNumbers){cell.className="day wn";cell.innerHTML=date.getWeekNumber();cell=cell.nextSibling;}row.className="daysrow";var hasdays=false,iday,dpos=ar_days[i]=[];for(var j=0;j<7;++j,cell=cell.nextSibling,date.setDate(iday+1)){iday=date.getDate();var wday=date.getDay();cell.className="day";cell.pos=i<<4|j;dpos[j]=cell;var current_month=(date.getMonth()==month);if(!current_month){if(this.showsOtherMonths){cell.className+=" othermonth";cell.otherMonth=true;}else{cell.className="emptycell";cell.innerHTML=" ";cell.disabled=true;continue;}}else{cell.otherMonth=false;hasdays=true;}cell.disabled=false;cell.innerHTML=this.getDateText?this.getDateText(date,iday):iday;if(dates)dates[date.print("%Y%m%d")]=cell;if(this.getDateStatus){var status=this.getDateStatus(date,year,month,iday);if(this.getDateToolTip){var toolTip=this.getDateToolTip(date,year,month,iday);if(toolTip)cell.title=toolTip;}if(status===true){cell.className+=" disabled";cell.disabled=true;}else{if(/disabled/i.test(status))cell.disabled=true;cell.className+=" "+status;}}if(!cell.disabled){cell.caldate=new Date(date);cell.ttip="_";if(!this.multiple&¤t_month&&iday==mday&&this.hiliteToday){cell.className+=" selected";this.currentDateEl=cell;}if(date.getFullYear()==TY&&date.getMonth()==TM&&iday==TD){cell.className+=" today";cell.ttip+=Calendar._TT["PART_TODAY"];}if(weekend.indexOf(wday.toString())!=-1)cell.className+=cell.otherMonth?" oweekend":" weekend";}}if(!(hasdays||this.showsOtherMonths))row.className="emptyrow";}this.title.innerHTML=Calendar._MN[month]+", "+year;this.onSetTime();this.table.style.visibility="visible";this._initMultipleDates();};Calendar.prototype._initMultipleDates=function(){if(this.multiple){for(var i in this.multiple){var cell=this.datesCells[i];var d=this.multiple[i];if(!d)continue;if(cell)cell.className+=" selected";}}};Calendar.prototype._toggleMultipleDate=function(date){if(this.multiple){var ds=date.print("%Y%m%d");var cell=this.datesCells[ds];if(cell){var d=this.multiple[ds];if(!d){Calendar.addClass(cell,"selected");this.multiple[ds]=date;}else{Calendar.removeClass(cell,"selected");delete this.multiple[ds];}}}};Calendar.prototype.setDateToolTipHandler=function(unaryFunction){this.getDateToolTip=unaryFunction;};Calendar.prototype.setDate=function(date){if(!date.equalsTo(this.date)){this._init(this.firstDayOfWeek,date);}};Calendar.prototype.refresh=function(){this._init(this.firstDayOfWeek,this.date);};Calendar.prototype.setFirstDayOfWeek=function(firstDayOfWeek){this._init(firstDayOfWeek,this.date);this._displayWeekdays();};Calendar.prototype.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(unaryFunction){this.getDateStatus=unaryFunction;};Calendar.prototype.setRange=function(a,z){this.minYear=a;this.maxYear=z;};Calendar.prototype.callHandler=function(){if(this.onSelected){this.onSelected(this,this.date.print(this.dateFormat));}};Calendar.prototype.callCloseHandler=function(){if(this.onClose){this.onClose(this);}this.hideShowCovered();};Calendar.prototype.destroy=function(){var el=this.element.parentNode;el.removeChild(this.element);Calendar._C=null;window._dynarch_popupCalendar=null;};Calendar.prototype.reparent=function(new_parent){var el=this.element;el.parentNode.removeChild(el);new_parent.appendChild(el);};Calendar._checkCalendar=function(ev){var calendar=window._dynarch_popupCalendar;if(!calendar){return false;}var el=Calendar.is_ie?Calendar.getElement(ev):Calendar.getTargetElement(ev);for(;el!=null&&el!=calendar.element;el=el.parentNode);if(el==null){window._dynarch_popupCalendar.callCloseHandler();return Calendar.stopEvent(ev);}};Calendar.prototype.show=function(){var rows=this.table.getElementsByTagName("tr");for(var i=rows.length;i>0;){var row=rows[--i];Calendar.removeClass(row,"rowhilite");var cells=row.getElementsByTagName("td");for(var j=cells.length;j>0;){var cell=cells[--j];Calendar.removeClass(cell,"hilite");Calendar.removeClass(cell,"active");}}this.element.style.display="block";this.hidden=false;if(this.isPopup){window._dynarch_popupCalendar=this;Calendar.addEvent(document,"keydown",Calendar._keyEvent);Calendar.addEvent(document,"keypress",Calendar._keyEvent);Calendar.addEvent(document,"mousedown",Calendar._checkCalendar);}this.hideShowCovered();};Calendar.prototype.hide=function(){if(this.isPopup){Calendar.removeEvent(document,"keydown",Calendar._keyEvent);Calendar.removeEvent(document,"keypress",Calendar._keyEvent);Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar);}this.element.style.display="none";this.hidden=true;this.hideShowCovered();};Calendar.prototype.showAt=function(x,y){var s=this.element.style;s.left=x+"px";s.top=y+"px";this.show();};Calendar.prototype.showAtElement=function(el,opts){var self=this;var p=Calendar.getAbsolutePos(el);if(!opts||typeof opts!="string"){this.showAt(p.x,p.y+el.offsetHeight);return true;}function fixPosition(box){if(box.x<0)box.x=0;if(box.y<0)box.y=0;var cp=document.createElement("div");var s=cp.style;s.position="absolute";s.right=s.bottom=s.width=s.height="0px";document.body.appendChild(cp);var br=Calendar.getAbsolutePos(cp);document.body.removeChild(cp);if(Calendar.is_ie){br.y+=document.body.scrollTop;br.x+=document.body.scrollLeft;}else{br.y+=window.scrollY;br.x+=window.scrollX;}var tmp=box.x+box.width-br.x;if(tmp>0)box.x-=tmp;tmp=box.y+box.height-br.y;if(tmp>0)box.y-=tmp;};this.element.style.display="block";Calendar.continuation_for_the_fucking_khtml_browser=function(){var w=self.element.offsetWidth;var h=self.element.offsetHeight;self.element.style.display="none";var valign=opts.substr(0,1);var halign="l";if(opts.length>1){halign=opts.substr(1,1);}switch(valign){case "T":p.y-=h;break;case "B":p.y+=el.offsetHeight;break;case "C":p.y+=(el.offsetHeight-h)/2;break;case "t":p.y+=el.offsetHeight-h;break;case "b":break;}switch(halign){case "L":p.x-=w;break;case "R":p.x+=el.offsetWidth;break;case "C":p.x+=(el.offsetWidth-w)/2;break;case "l":p.x+=el.offsetWidth-w;break;case "r":break;}p.width=w;p.height=h+40;self.monthsCombo.style.display="none";fixPosition(p);self.showAt(p.x,p.y);};if(Calendar.is_khtml)setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()",10);else Calendar.continuation_for_the_fucking_khtml_browser();};Calendar.prototype.setDateFormat=function(str){this.dateFormat=str;};Calendar.prototype.setTtDateFormat=function(str){this.ttDateFormat=str;};Calendar.prototype.parseDate=function(str,fmt){if(!fmt)fmt=this.dateFormat;this.setDate(Date.parseDate(str,fmt));};Calendar.prototype.hideShowCovered=function(){if(!Calendar.is_ie&&!Calendar.is_opera)return;function getVisib(obj){var value=obj.style.visibility;if(!value){if(document.defaultView&&typeof(document.defaultView.getComputedStyle)=="function"){if(!Calendar.is_khtml)value=document.defaultView. getComputedStyle(obj,"").getPropertyValue("visibility");else value='';}else if(obj.currentStyle){value=obj.currentStyle.visibility;}else value='';}return value;};var tags=new Array("applet","iframe","select");var el=this.element;var p=Calendar.getAbsolutePos(el);var EX1=p.x;var EX2=el.offsetWidth+EX1;var EY1=p.y;var EY2=el.offsetHeight+EY1;for(var k=tags.length;k>0;){var ar=document.getElementsByTagName(tags[--k]);var cc=null;for(var i=ar.length;i>0;){cc=ar[--i];p=Calendar.getAbsolutePos(cc);var CX1=p.x;var CX2=cc.offsetWidth+CX1;var CY1=p.y;var CY2=cc.offsetHeight+CY1;if(this.hidden||(CX1>EX2)||(CX2EY2)||(CY229)?1900:2000);break;case "%b":case "%B":for(j=0;j<12;++j){if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){m=j;break;}}break;case "%H":case "%I":case "%k":case "%l":hr=parseInt(a[i],10);break;case "%P":case "%p":if(/pm/i.test(a[i])&&hr<12)hr+=12;else if(/am/i.test(a[i])&&hr>=12)hr-=12;break;case "%M":min=parseInt(a[i],10);break;}}if(isNaN(y))y=today.getFullYear();if(isNaN(m))m=today.getMonth();if(isNaN(d))d=today.getDate();if(isNaN(hr))hr=today.getHours();if(isNaN(min))min=today.getMinutes();if(y!=0&&m!=-1&&d!=0)return new Date(y,m,d,hr,min,0);y=0;m=-1;d=0;for(i=0;i31&&y==0){y=parseInt(a[i],10);(y<100)&&(y+=(y>29)?1900:2000);}else if(d==0){d=a[i];}}if(y==0)y=today.getFullYear();if(m!=-1&&d!=0)return new Date(y,m,d,hr,min,0);return today;};Date.prototype.getMonthDays=function(month){var year=this.getFullYear();if(typeof month=="undefined"){month=this.getMonth();}if(((0==(year%4))&&((0!=(year%100))||(0==(year%400))))&&month==1){return 29;}else{return Date._MD[month];}};Date.prototype.getDayOfYear=function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var then=new Date(this.getFullYear(),0,0,0,0,0);var time=now-then;return Math.floor(time/Date.DAY);};Date.prototype.getWeekNumber=function(){var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var DoW=d.getDay();d.setDate(d.getDate()-(DoW+6)%7+3);var ms=d.valueOf();d.setMonth(0);d.setDate(4);return Math.round((ms-d.valueOf())/(7*864e5))+1;};Date.prototype.equalsTo=function(date){return((this.getFullYear()==date.getFullYear())&&(this.getMonth()==date.getMonth())&&(this.getDate()==date.getDate())&&(this.getHours()==date.getHours())&&(this.getMinutes()==date.getMinutes()));};Date.prototype.setDateOnly=function(date){var tmp=new Date(date);this.setDate(1);this.setFullYear(tmp.getFullYear());this.setMonth(tmp.getMonth());this.setDate(tmp.getDate());};Date.prototype.print=function(str){var m=this.getMonth();var d=this.getDate();var y=this.getFullYear();var wn=this.getWeekNumber();var w=this.getDay();var s={};var hr=this.getHours();var pm=(hr>=12);var ir=(pm)?(hr-12):hr;var dy=this.getDayOfYear();if(ir==0)ir=12;var min=this.getMinutes();var sec=this.getSeconds();s["%a"]=Calendar._SDN[w];s["%A"]=Calendar._DN[w];s["%b"]=Calendar._SMN[m];s["%B"]=Calendar._MN[m];s["%C"]=1+Math.floor(y/100);s["%d"]=(d<10)?("0"+d):d;s["%e"]=d;s["%H"]=(hr<10)?("0"+hr):hr;s["%I"]=(ir<10)?("0"+ir):ir;s["%j"]=(dy<100)?((dy<10)?("00"+dy):("0"+dy)):dy;s["%k"]=hr;s["%l"]=ir;s["%m"]=(m<9)?("0"+(1+m)):(1+m);s["%M"]=(min<10)?("0"+min):min;s["%n"]="\n";s["%p"]=pm?"PM":"AM";s["%P"]=pm?"pm":"am";s["%s"]=Math.floor(this.getTime()/1000);s["%S"]=(sec<10)?("0"+sec):sec;s["%t"]="\t";s["%U"]=s["%W"]=s["%V"]=(wn<10)?("0"+wn):wn;s["%u"]=w+1;s["%w"]=w;s["%y"]=(''+y).substr(2,2);s["%Y"]=y;s["%%"]="%";var re=/%./g;if(!Calendar.is_ie5&&!Calendar.is_khtml)return str.replace(re,function(par){return s[par]||par;});var a=str.match(re);for(var i=0;i=0;){var d=params.multiple[i];var ds=d.print("%Y%m%d");cal.multiple[ds]=d;}}cal.showsOtherMonths=params.showOthers;cal.yearStep=params.step;cal.setRange(params.range[0],params.range[1]);cal.params=params;cal.setDateStatusHandler(params.dateStatusFunc);cal.getDateText=params.dateText;cal.setDateFormat(dateFmt);if(mustCreate)cal.create();cal.refresh();if(!params.position)cal.showAtElement(params.button||params.displayArea||params.inputField,params.align);else cal.showAt(params.position[0],params.position[1]);return false;};return cal;}; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/images/calPickerIcon.png b/OLD/umbraco.Legacy/umbraco_client/datepicker/images/calPickerIcon.png deleted file mode 100644 index b55aeb4f13..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/images/calPickerIcon.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/images/calPickerIconHover.png b/OLD/umbraco.Legacy/umbraco_client/datepicker/images/calPickerIconHover.png deleted file mode 100644 index 04957559fa..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/images/calPickerIconHover.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/javascript.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/javascript.js deleted file mode 100644 index f750bf7bad..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/javascript.js +++ /dev/null @@ -1,23 +0,0 @@ -function umbracoUpdateDatePicker(fieldName) { - var newDate = ''; - var theForm = document.forms[0]; - - - // vi lber igennem de forskellige items og ser om der er noget i dem - if (theForm[fieldName+'_days'].selectedIndex > 0 - && theForm[fieldName+'_months'].selectedIndex > 0 - && theForm[fieldName+'_years'].selectedIndex > 0) - newDate = theForm[fieldName+'_days'][theForm[fieldName+'_days'].selectedIndex].value + ' ' + - theForm[fieldName+'_months'][theForm[fieldName+'_months'].selectedIndex].value + ' ' + - theForm[fieldName+'_years'][theForm[fieldName+'_years'].selectedIndex].value - - // vi skal lige se om der ogs er sat klokkeslet - if (theForm[fieldName+'_hours']) { - if (theForm[fieldName+'_hours'].selectedIndex > 0 - && theForm[fieldName+'_minutes'].selectedIndex > 0) - newDate += ' ' + theForm[fieldName+'_hours'][theForm[fieldName+'_hours'].selectedIndex].value + ':' + - theForm[fieldName+'_minutes'][theForm[fieldName+'_minutes'].selectedIndex].value - } - - theForm[fieldName].value = newDate; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-af.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-af.js deleted file mode 100644 index aeda58197b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-af.js +++ /dev/null @@ -1,39 +0,0 @@ -// ** I18N Afrikaans -Calendar._DN = new Array -("Sondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrydag", - "Saterdag", - "Sondag"); -Calendar._MN = new Array -("Januarie", - "Februarie", - "Maart", - "April", - "Mei", - "Junie", - "Julie", - "Augustus", - "September", - "Oktober", - "November", - "Desember"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Verander eerste dag van die week"; -Calendar._TT["PREV_YEAR"] = "Vorige jaar (hou vir keuselys)"; -Calendar._TT["PREV_MONTH"] = "Vorige maand (hou vir keuselys)"; -Calendar._TT["GO_TODAY"] = "Gaan na vandag"; -Calendar._TT["NEXT_MONTH"] = "Volgende maand (hou vir keuselys)"; -Calendar._TT["NEXT_YEAR"] = "Volgende jaar (hou vir keuselys)"; -Calendar._TT["SEL_DATE"] = "Kies datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Sleep om te skuif"; -Calendar._TT["PART_TODAY"] = " (vandag)"; -Calendar._TT["MON_FIRST"] = "Vertoon Maandag eerste"; -Calendar._TT["SUN_FIRST"] = "Display Sunday first"; -Calendar._TT["CLOSE"] = "Close"; -Calendar._TT["TODAY"] = "Today"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-al.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-al.js deleted file mode 100644 index d028e375ea..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-al.js +++ /dev/null @@ -1,100 +0,0 @@ -// Calendar ALBANIAN language -//author Rigels Gordani rige@hotmail.com - -// ditet -Calendar._DN = new Array -("E Diele", -"E Hene", -"E Marte", -"E Merkure", -"E Enjte", -"E Premte", -"E Shtune", -"E Diele"); - -//ditet shkurt -Calendar._SDN = new Array -("Die", -"Hen", -"Mar", -"Mer", -"Enj", -"Pre", -"Sht", -"Die"); - -// muajt -Calendar._MN = new Array -("Janar", -"Shkurt", -"Mars", -"Prill", -"Maj", -"Qeshor", -"Korrik", -"Gusht", -"Shtator", -"Tetor", -"Nentor", -"Dhjetor"); - -// muajte shkurt -Calendar._SMN = new Array -("Jan", -"Shk", -"Mar", -"Pri", -"Maj", -"Qes", -"Kor", -"Gus", -"Sht", -"Tet", -"Nen", -"Dhj"); - -// ndihmesa -Calendar._TT = {}; -Calendar._TT["INFO"] = "Per kalendarin"; - -Calendar._TT["ABOUT"] = -"Zgjedhes i ores/dates ne DHTML \n" + -"\n\n" +"Zgjedhja e Dates:\n" + -"- Perdor butonat \xab, \xbb per te zgjedhur vitin\n" + -"- Perdor butonat" + String.fromCharCode(0x2039) + ", " + -String.fromCharCode(0x203a) + -" per te zgjedhur muajin\n" + -"- Mbani shtypur butonin e mousit per nje zgjedje me te shpejte."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Zgjedhja e kohes:\n" + -"- Kliko tek ndonje nga pjeset e ores per ta rritur ate\n" + -"- ose kliko me Shift per ta zvogeluar ate\n" + -"- ose cliko dhe terhiq per zgjedhje me te shpejte."; - -Calendar._TT["PREV_YEAR"] = "Viti i shkuar (prit per menune)"; -Calendar._TT["PREV_MONTH"] = "Muaji i shkuar (prit per menune)"; -Calendar._TT["GO_TODAY"] = "Sot"; -Calendar._TT["NEXT_MONTH"] = "Muaji i ardhshem (prit per menune)"; -Calendar._TT["NEXT_YEAR"] = "Viti i ardhshem (prit per menune)"; -Calendar._TT["SEL_DATE"] = "Zgjidh daten"; -Calendar._TT["DRAG_TO_MOVE"] = "Terhiqe per te levizur"; -Calendar._TT["PART_TODAY"] = " (sot)"; - -// "%s" eshte dita e pare e javes -// %s do te zevendesohet me emrin e dite -Calendar._TT["DAY_FIRST"] = "Trego te %s te paren"; - - -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Mbyll"; -Calendar._TT["TODAY"] = "Sot"; -Calendar._TT["TIME_PART"] = "Kliko me (Shift-)ose terhiqe per te ndryshuar vleren"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Java"; -Calendar._TT["TIME"] = "Koha:"; - diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-bg.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-bg.js deleted file mode 100644 index 5eb73ec6c1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-bg.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar BG language -// Author: Mihai Bazon, -// Translator: Valentin Sheiretsky, -// Encoding: Windows-1251 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// short month names -Calendar._SMN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = " "; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Date selection:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" + -"- Hold mouse button on any of the above buttons for faster selection."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Time selection:\n" + -"- Click on any of the time parts to increase it\n" + -"- or Shift-click to decrease it\n" + -"- or click and drag for faster selection."; - -Calendar._TT["PREV_YEAR"] = " ( )"; -Calendar._TT["PREV_MONTH"] = " ( )"; -Calendar._TT["GO_TODAY"] = " "; -Calendar._TT["NEXT_MONTH"] = " ( )"; -Calendar._TT["NEXT_YEAR"] = " ( )"; -Calendar._TT["SEL_DATE"] = " "; -Calendar._TT["DRAG_TO_MOVE"] = ""; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s "; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = ""; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-)Click drag "; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A - %e %B %Y"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = ":"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-big5-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-big5-utf8.js deleted file mode 100644 index 14e0d5ddee..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-big5-utf8.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar big5-utf8 language -// Author: Gary Fu, -// Encoding: utf8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("星期日", - "星期一", - "星期二", - "星期三", - "星期四", - "星期五", - "星期六", - "星期日"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("日", - "一", - "二", - "三", - "四", - "五", - "六", - "日"); - -// full month names -Calendar._MN = new Array -("一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月"); - -// short month names -Calendar._SMN = new Array -("一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "關於"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"日期選擇方法:\n" + -"- 使用 \xab, \xbb 按鈕可選擇年份\n" + -"- 使用 " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " 按鈕可選擇月份\n" + -"- 按住上面的按鈕可以加快選取"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"時間選擇方法:\n" + -"- 點擊任何的時間部份可增加其值\n" + -"- 同時按Shift鍵再點擊可減少其值\n" + -"- 點擊並拖曳可加快改變的值"; - -Calendar._TT["PREV_YEAR"] = "上一年 (按住選單)"; -Calendar._TT["PREV_MONTH"] = "下一年 (按住選單)"; -Calendar._TT["GO_TODAY"] = "到今日"; -Calendar._TT["NEXT_MONTH"] = "上一月 (按住選單)"; -Calendar._TT["NEXT_YEAR"] = "下一月 (按住選單)"; -Calendar._TT["SEL_DATE"] = "選擇日期"; -Calendar._TT["DRAG_TO_MOVE"] = "拖曳"; -Calendar._TT["PART_TODAY"] = " (今日)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "將 %s 顯示在前"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "關閉"; -Calendar._TT["TODAY"] = "今日"; -Calendar._TT["TIME_PART"] = "點擊or拖曳可改變時間(同時按Shift為減)"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "週"; -Calendar._TT["TIME"] = "Time:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-big5.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-big5.js deleted file mode 100644 index a58935873f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-big5.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar big5 language -// Author: Gary Fu, -// Encoding: big5 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("P", - "P@", - "PG", - "PT", - "P|", - "P", - "P", - "P"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "@", - "G", - "T", - "|", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("@", - "G", - "T", - "|", - "", - "", - "C", - "K", - "E", - "Q", - "Q@", - "QG"); - -// short month names -Calendar._SMN = new Array -("@", - "G", - "T", - "|", - "", - "", - "C", - "K", - "E", - "Q", - "Q@", - "QG"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = ""; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"ܤk:\n" + -"- ϥ \xab, \xbb siܦ~\n" + -"- ϥ " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " siܤ\n" + -"- WsiH[ֿ"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"ɶܤk:\n" + -"- I󪺮ɶiW[\n" + -"- PɫShiftAIi֨\n" + -"- Ié즲i[֧ܪ"; - -Calendar._TT["PREV_YEAR"] = "W@~ ()"; -Calendar._TT["PREV_MONTH"] = "U@~ ()"; -Calendar._TT["GO_TODAY"] = "줵"; -Calendar._TT["NEXT_MONTH"] = "W@ ()"; -Calendar._TT["NEXT_YEAR"] = "U@ ()"; -Calendar._TT["SEL_DATE"] = "ܤ"; -Calendar._TT["DRAG_TO_MOVE"] = "즲"; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "N %s ܦbe"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = ""; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "Ior즲iܮɶ(PɫShift)"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "g"; -Calendar._TT["TIME"] = "Time:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-br.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-br.js deleted file mode 100644 index bfb074717c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-br.js +++ /dev/null @@ -1,108 +0,0 @@ -// ** I18N - -// Calendar pt-BR language -// Author: Fernando Dourado, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Segunda", - "Terça", - "Quarta", - "Quinta", - "Sexta", - "Sabádo", - "Domingo"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -// [No changes using default values] - -// full month names -Calendar._MN = new Array -("Janeiro", - "Fevereiro", - "Março", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro"); - -// short month names -// [No changes using default values] - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Sobre o calendário"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Translate to portuguese Brazil (pt-BR) by Fernando Dourado (fernando.dourado@ig.com.br)\n" + -"Tradução para o português Brasil (pt-BR) por Fernando Dourado (fernando.dourado@ig.com.br)" + -"\n\n" + -"Selecionar data:\n" + -"- Use as teclas \xab, \xbb para selecionar o ano\n" + -"- Use as teclas " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para selecionar o mês\n" + -"- Clique e segure com o mouse em qualquer botão para selecionar rapidamente."; - -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selecionar hora:\n" + -"- Clique em qualquer uma das partes da hora para aumentar\n" + -"- ou Shift-clique para diminuir\n" + -"- ou clique e arraste para selecionar rapidamente."; - -Calendar._TT["PREV_YEAR"] = "Ano anterior (clique e segure para menu)"; -Calendar._TT["PREV_MONTH"] = "Mês anterior (clique e segure para menu)"; -Calendar._TT["GO_TODAY"] = "Ir para a data atual"; -Calendar._TT["NEXT_MONTH"] = "Próximo mês (clique e segure para menu)"; -Calendar._TT["NEXT_YEAR"] = "Próximo ano (clique e segure para menu)"; -Calendar._TT["SEL_DATE"] = "Selecione uma data"; -Calendar._TT["DRAG_TO_MOVE"] = "Clique e segure para mover"; -Calendar._TT["PART_TODAY"] = " (hoje)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Exibir %s primeiro"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Fechar"; -Calendar._TT["TODAY"] = "Hoje"; -Calendar._TT["TIME_PART"] = "(Shift-)Clique ou arraste para mudar o valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%d de %B de %Y"; - -Calendar._TT["WK"] = "sem"; -Calendar._TT["TIME"] = "Hora:"; - diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ca.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ca.js deleted file mode 100644 index a2121bcb40..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ca.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar CA language -// Author: Mihai Bazon, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Diumenge", - "Dilluns", - "Dimarts", - "Dimecres", - "Dijous", - "Divendres", - "Dissabte", - "Diumenge"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Diu", - "Dil", - "Dmt", - "Dmc", - "Dij", - "Div", - "Dis", - "Diu"); - -// full month names -Calendar._MN = new Array -("Gener", - "Febrer", - "Mar", - "Abril", - "Maig", - "Juny", - "Juliol", - "Agost", - "Setembre", - "Octubre", - "Novembre", - "Desembre"); - -// short month names -Calendar._SMN = new Array -("Gen", - "Feb", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Oct", - "Nov", - "Des"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Sobre el calendari"; - -Calendar._TT["ABOUT"] = -"DHTML Selector de Data/Hora\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Sel.lecci de Dates:\n" + -"- Fes servir els botons \xab, \xbb per sel.leccionar l'any\n" + -"- Fes servir els botons " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " per se.lecciconar el mes\n" + -"- Mant el ratol apretat en qualsevol dels anteriors per sel.lecci rpida."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Time selection:\n" + -"- claca en qualsevol de les parts de la hora per augmentar-les\n" + -"- o Shift-click per decrementar-la\n" + -"- or click and arrastra per sel.lecci rpida."; - -Calendar._TT["PREV_YEAR"] = "Any anterior (Mantenir per menu)"; -Calendar._TT["PREV_MONTH"] = "Mes anterior (Mantenir per menu)"; -Calendar._TT["GO_TODAY"] = "Anar a avui"; -Calendar._TT["NEXT_MONTH"] = "Mes segent (Mantenir per menu)"; -Calendar._TT["NEXT_YEAR"] = "Any segent (Mantenir per menu)"; -Calendar._TT["SEL_DATE"] = "Sel.leccionar data"; -Calendar._TT["DRAG_TO_MOVE"] = "Arrastrar per moure"; -Calendar._TT["PART_TODAY"] = " (avui)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostra %s primer"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Tanca"; -Calendar._TT["TODAY"] = "Avui"; -Calendar._TT["TIME_PART"] = "(Shift-)Click a arrastra per canviar el valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "st"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-cs-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-cs-utf8.js deleted file mode 100644 index f6bbbeba14..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-cs-utf8.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - calendar-cs-win.js - language: Czech - encoding: windows-1250 - author: Lubos Jerabek (xnet@seznam.cz) - Jan Uhlir (espinosa@centrum.cz) -*/ - -// ** I18N -Calendar._DN = new Array('Neděle','Pondělí','Úterý','Středa','Čtvrtek','Pátek','Sobota','Neděle'); -Calendar._SDN = new Array('Ne','Po','Út','St','Čt','Pá','So','Ne'); -Calendar._MN = new Array('Leden','Únor','Březen','Duben','Květen','Červen','Červenec','Srpen','Září','Říjen','Listopad','Prosinec'); -Calendar._SMN = new Array('Led','Úno','Bře','Dub','Kvě','Črv','Čvc','Srp','Zář','Říj','Lis','Pro'); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O komponentě kalendář"; -Calendar._TT["TOGGLE"] = "Změna prvního dne v týdnu"; -Calendar._TT["PREV_YEAR"] = "Předchozí rok (přidrž pro menu)"; -Calendar._TT["PREV_MONTH"] = "Předchozí měsíc (přidrž pro menu)"; -Calendar._TT["GO_TODAY"] = "Dnešní datum"; -Calendar._TT["NEXT_MONTH"] = "Další měsíc (přidrž pro menu)"; -Calendar._TT["NEXT_YEAR"] = "Další rok (přidrž pro menu)"; -Calendar._TT["SEL_DATE"] = "Vyber datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Chyť a táhni, pro přesun"; -Calendar._TT["PART_TODAY"] = " (dnes)"; -Calendar._TT["MON_FIRST"] = "Ukaž jako první Pondělí"; -//Calendar._TT["SUN_FIRST"] = "Ukaž jako první Neděli"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Výběr datumu:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Použijte tlačítka " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " k výběru měsíce\n" + -"- Podržte tlačítko myši na jakémkoliv z těch tlačítek pro rychlejší výběr."; - -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Výběr času:\n" + -"- Klikněte na jakoukoliv z částí výběru času pro zvýšení.\n" + -"- nebo Shift-click pro snížení\n" + -"- nebo klikněte a táhněte pro rychlejší výběr."; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Zobraz %s první"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Zavřít"; -Calendar._TT["TODAY"] = "Dnes"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikni nebo táhni pro změnu hodnoty"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "d.m.yy"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Čas:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-cs-win.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-cs-win.js deleted file mode 100644 index 140dff318c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-cs-win.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - calendar-cs-win.js - language: Czech - encoding: windows-1250 - author: Lubos Jerabek (xnet@seznam.cz) - Jan Uhlir (espinosa@centrum.cz) -*/ - -// ** I18N -Calendar._DN = new Array('Nedle','Pondl','ter','Steda','tvrtek','Ptek','Sobota','Nedle'); -Calendar._SDN = new Array('Ne','Po','t','St','t','P','So','Ne'); -Calendar._MN = new Array('Leden','nor','Bezen','Duben','Kvten','erven','ervenec','Srpen','Z','jen','Listopad','Prosinec'); -Calendar._SMN = new Array('Led','no','Be','Dub','Kv','rv','vc','Srp','Z','j','Lis','Pro'); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O komponent kalend"; -Calendar._TT["TOGGLE"] = "Zmna prvnho dne v tdnu"; -Calendar._TT["PREV_YEAR"] = "Pedchoz rok (pidr pro menu)"; -Calendar._TT["PREV_MONTH"] = "Pedchoz msc (pidr pro menu)"; -Calendar._TT["GO_TODAY"] = "Dnen datum"; -Calendar._TT["NEXT_MONTH"] = "Dal msc (pidr pro menu)"; -Calendar._TT["NEXT_YEAR"] = "Dal rok (pidr pro menu)"; -Calendar._TT["SEL_DATE"] = "Vyber datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Chy a thni, pro pesun"; -Calendar._TT["PART_TODAY"] = " (dnes)"; -Calendar._TT["MON_FIRST"] = "Uka jako prvn Pondl"; -//Calendar._TT["SUN_FIRST"] = "Uka jako prvn Nedli"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Vbr datumu:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Pouijte tlatka " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " k vbru msce\n" + -"- Podrte tlatko myi na jakmkoliv z tch tlatek pro rychlej vbr."; - -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Vbr asu:\n" + -"- Kliknte na jakoukoliv z st vbru asu pro zven.\n" + -"- nebo Shift-click pro snen\n" + -"- nebo kliknte a thnte pro rychlej vbr."; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Zobraz %s prvn"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Zavt"; -Calendar._TT["TODAY"] = "Dnes"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikni nebo thni pro zmnu hodnoty"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "d.m.yy"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "as:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-da.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-da.js deleted file mode 100644 index a99b598f03..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-da.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar DA language -// Author: Michael Thingmand Henriksen, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Søndag", -"Mandag", -"Tirsdag", -"Onsdag", -"Torsdag", -"Fredag", -"Lørdag", -"Søndag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Søn", -"Man", -"Tir", -"Ons", -"Tor", -"Fre", -"Lør", -"Søn"); - -// full month names -Calendar._MN = new Array -("Januar", -"Februar", -"Marts", -"April", -"Maj", -"Juni", -"Juli", -"August", -"September", -"Oktober", -"November", -"December"); - -// short month names -Calendar._SMN = new Array -("Jan", -"Feb", -"Mar", -"Apr", -"Maj", -"Jun", -"Jul", -"Aug", -"Sep", -"Okt", -"Nov", -"Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Om Kalenderen"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For den seneste version besøg: http://www.dynarch.com/projects/calendar/\n"; + -"Distribueret under GNU LGPL. Se http://gnu.org/licenses/lgpl.html for detajler." + -"\n\n" + -"Valg af dato:\n" + -"- Brug \xab, \xbb knapperne for at vælge år\n" + -"- Brug " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " knapperne for at vælge måned\n" + -"- Hold knappen på musen nede på knapperne ovenfor for hurtigere valg."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Valg af tid:\n" + -"- Klik på en vilkårlig del for større værdi\n" + -"- eller Shift-klik for for mindre værdi\n" + -"- eller klik og træk for hurtigere valg."; - -Calendar._TT["PREV_YEAR"] = "Ét år tilbage (hold for menu)"; -Calendar._TT["PREV_MONTH"] = "Én måned tilbage (hold for menu)"; -Calendar._TT["GO_TODAY"] = "Gå til i dag"; -Calendar._TT["NEXT_MONTH"] = "Én måned frem (hold for menu)"; -Calendar._TT["NEXT_YEAR"] = "Ét år frem (hold for menu)"; -Calendar._TT["SEL_DATE"] = "Vælg dag"; -Calendar._TT["DRAG_TO_MOVE"] = "Træk vinduet"; -Calendar._TT["PART_TODAY"] = " (i dag)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Vis %s først"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Luk"; -Calendar._TT["TODAY"] = "I dag"; -Calendar._TT["TIME_PART"] = "(Shift-)klik eller træk for at ændre værdi"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Uge"; -Calendar._TT["TIME"] = "Tid:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-de.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-de.js deleted file mode 100644 index 4bc1137cc1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-de.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar DE language -// Author: Jack (tR), -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag", - "Sonntag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("So", - "Mo", - "Di", - "Mi", - "Do", - "Fr", - "Sa", - "So"); - -// full month names -Calendar._MN = new Array -("Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "M\u00e4r", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "\u00DCber dieses Kalendarmodul"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Datum ausw\u00e4hlen:\n" + -"- Benutzen Sie die \xab, \xbb Buttons um das Jahr zu w\u00e4hlen\n" + -"- Benutzen Sie die " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " Buttons um den Monat zu w\u00e4hlen\n" + -"- F\u00fcr eine Schnellauswahl halten Sie die Maustaste \u00fcber diesen Buttons fest."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Zeit ausw\u00e4hlen:\n" + -"- Klicken Sie auf die Teile der Uhrzeit, um diese zu erh\u00F6hen\n" + -"- oder klicken Sie mit festgehaltener Shift-Taste um diese zu verringern\n" + -"- oder klicken und festhalten f\u00fcr Schnellauswahl."; - -Calendar._TT["TOGGLE"] = "Ersten Tag der Woche w\u00e4hlen"; -Calendar._TT["PREV_YEAR"] = "Voriges Jahr (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["PREV_MONTH"] = "Voriger Monat (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["GO_TODAY"] = "Heute ausw\u00e4hlen"; -Calendar._TT["NEXT_MONTH"] = "N\u00e4chst. Monat (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["NEXT_YEAR"] = "N\u00e4chst. Jahr (Festhalten f\u00fcr Schnellauswahl)"; -Calendar._TT["SEL_DATE"] = "Datum ausw\u00e4hlen"; -Calendar._TT["DRAG_TO_MOVE"] = "Zum Bewegen festhalten"; -Calendar._TT["PART_TODAY"] = " (Heute)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Woche beginnt mit %s "; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Schlie\u00dfen"; -Calendar._TT["TODAY"] = "Heute"; -Calendar._TT["TIME_PART"] = "(Shift-)Klick oder Festhalten und Ziehen um den Wert zu \u00e4ndern"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Zeit:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-du.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-du.js deleted file mode 100644 index 2200448051..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-du.js +++ /dev/null @@ -1,45 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Zondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrijdag", - "Zaterdag", - "Zondag"); -Calendar._MN = new Array -("Januari", - "Februari", - "Maart", - "April", - "Mei", - "Juni", - "Juli", - "Augustus", - "September", - "Oktober", - "November", - "December"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Toggle startdag van de week"; -Calendar._TT["PREV_YEAR"] = "Vorig jaar (indrukken voor menu)"; -Calendar._TT["PREV_MONTH"] = "Vorige month (indrukken voor menu)"; -Calendar._TT["GO_TODAY"] = "Naar Vandaag"; -Calendar._TT["NEXT_MONTH"] = "Volgende Maand (indrukken voor menu)"; -Calendar._TT["NEXT_YEAR"] = "Volgend jaar (indrukken voor menu)"; -Calendar._TT["SEL_DATE"] = "Selecteer datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Sleep om te verplaatsen"; -Calendar._TT["PART_TODAY"] = " (vandaag)"; -Calendar._TT["MON_FIRST"] = "Toon Maandag eerst"; -Calendar._TT["SUN_FIRST"] = "Toon Zondag eerst"; -Calendar._TT["CLOSE"] = "Sluiten"; -Calendar._TT["TODAY"] = "Vandaag"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd"; -Calendar._TT["TT_DATE_FORMAT"] = "D, M d"; - -Calendar._TT["WK"] = "wk"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-el.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-el.js deleted file mode 100644 index 43a9b2ceaf..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-el.js +++ /dev/null @@ -1,89 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Κυριακή", - "Δευτέρα", - "Τρίτη", - "Τετάρτη", - "Πέμπτη", - "Παρασκευή", - "Σάββατο", - "Κυριακή"); - -Calendar._SDN = new Array -("Κυ", - "Δε", - "Tρ", - "Τε", - "Πε", - "Πα", - "Σα", - "Κυ"); - -Calendar._MN = new Array -("Ιανουάριος", - "Φεβρουάριος", - "Μάρτιος", - "Απρίλιος", - "Μάϊος", - "Ιούνιος", - "Ιούλιος", - "Αύγουστος", - "Σεπτέμβριος", - "Οκτώβριος", - "Νοέμβριος", - "Δεκέμβριος"); - -Calendar._SMN = new Array -("Ιαν", - "Φεβ", - "Μαρ", - "Απρ", - "Μαι", - "Ιουν", - "Ιουλ", - "Αυγ", - "Σεπ", - "Οκτ", - "Νοε", - "Δεκ"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Για το ημερολόγιο"; - -Calendar._TT["ABOUT"] = -"Επιλογέας ημερομηνίας/ώρας σε DHTML\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Για τελευταία έκδοση: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Επιλογή ημερομηνίας:\n" + -"- Χρησιμοποιείστε τα κουμπιά \xab, \xbb για επιλογή έτους\n" + -"- Χρησιμοποιείστε τα κουμπιά " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " για επιλογή μήνα\n" + -"- Κρατήστε κουμπί ποντικού πατημένο στα παραπάνω κουμπιά για πιο γρήγορη επιλογή."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Επιλογή ώρας:\n" + -"- Κάντε κλικ σε ένα από τα μέρη της ώρας για αύξηση\n" + -"- ή Shift-κλικ για μείωση\n" + -"- ή κλικ και μετακίνηση για πιο γρήγορη επιλογή."; -Calendar._TT["TOGGLE"] = "Μπάρα πρώτης ημέρας της εβδομάδας"; -Calendar._TT["PREV_YEAR"] = "Προηγ. έτος (κρατήστε για το μενού)"; -Calendar._TT["PREV_MONTH"] = "Προηγ. μήνας (κρατήστε για το μενού)"; -Calendar._TT["GO_TODAY"] = "Σήμερα"; -Calendar._TT["NEXT_MONTH"] = "Επόμενος μήνας (κρατήστε για το μενού)"; -Calendar._TT["NEXT_YEAR"] = "Επόμενο έτος (κρατήστε για το μενού)"; -Calendar._TT["SEL_DATE"] = "Επιλέξτε ημερομηνία"; -Calendar._TT["DRAG_TO_MOVE"] = "Σύρτε για να μετακινήσετε"; -Calendar._TT["PART_TODAY"] = " (σήμερα)"; -Calendar._TT["MON_FIRST"] = "Εμφάνιση Δευτέρας πρώτα"; -Calendar._TT["SUN_FIRST"] = "Εμφάνιση Κυριακής πρώτα"; -Calendar._TT["CLOSE"] = "Κλείσιμο"; -Calendar._TT["TODAY"] = "Σήμερα"; -Calendar._TT["TIME_PART"] = "(Shift-)κλικ ή μετακίνηση για αλλαγή"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y"; -Calendar._TT["TT_DATE_FORMAT"] = "D, d M"; - -Calendar._TT["WK"] = "εβδ"; - diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-en.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-en.js deleted file mode 100644 index 0dbde793d8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-en.js +++ /dev/null @@ -1,127 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat", - "Sun"); - -// First day of the week. "0" means display Sunday first, "1" means display -// Monday first, etc. -Calendar._FD = 0; - -// full month names -Calendar._MN = new Array -("January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "About the calendar"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Date selection:\n" + -"- Use the \xab, \xbb buttons to select year\n" + -"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" + -"- Hold mouse button on any of the above buttons for faster selection."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Time selection:\n" + -"- Click on any of the time parts to increase it\n" + -"- or Shift-click to decrease it\n" + -"- or click and drag for faster selection."; - -Calendar._TT["PREV_YEAR"] = "Prev. year (hold for menu)"; -Calendar._TT["PREV_MONTH"] = "Prev. month (hold for menu)"; -Calendar._TT["GO_TODAY"] = "Go Today"; -Calendar._TT["NEXT_MONTH"] = "Next month (hold for menu)"; -Calendar._TT["NEXT_YEAR"] = "Next year (hold for menu)"; -Calendar._TT["SEL_DATE"] = "Select date"; -Calendar._TT["DRAG_TO_MOVE"] = "Drag to move"; -Calendar._TT["PART_TODAY"] = " (today)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Display %s first"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Close"; -Calendar._TT["TODAY"] = "Today"; -Calendar._TT["TIME_PART"] = "(Shift-)Click or drag to change value"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Time:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-es.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-es.js deleted file mode 100644 index 19c1b30bdc..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-es.js +++ /dev/null @@ -1,129 +0,0 @@ -// ** I18N - -// Calendar ES (spanish) language -// Author: Mihai Bazon, -// Updater: Servilio Afre Puentes -// Updated: 2004-06-03 -// Encoding: utf-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Lunes", - "Martes", - "Mircoles", - "Jueves", - "Viernes", - "Sbado", - "Domingo"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dom", - "Lun", - "Mar", - "Mi", - "Jue", - "Vie", - "Sb", - "Dom"); - -// First day of the week. "0" means display Sunday first, "1" means display -// Monday first, etc. -Calendar._FD = 1; - -// full month names -Calendar._MN = new Array -("Enero", - "Febrero", - "Marzo", - "Abril", - "Mayo", - "Junio", - "Julio", - "Agosto", - "Septiembre", - "Octubre", - "Noviembre", - "Diciembre"); - -// short month names -Calendar._SMN = new Array -("Ene", - "Feb", - "Mar", - "Abr", - "May", - "Jun", - "Jul", - "Ago", - "Sep", - "Oct", - "Nov", - "Dic"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Acerca del calendario"; - -Calendar._TT["ABOUT"] = -"Selector DHTML de Fecha/Hora\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Para conseguir la ltima versin visite: http://www.dynarch.com/projects/calendar/\n" + -"Distribuido bajo licencia GNU LGPL. Visite http://gnu.org/licenses/lgpl.html para ms detalles." + -"\n\n" + -"Seleccin de fecha:\n" + -"- Use los botones \xab, \xbb para seleccionar el ao\n" + -"- Use los botones " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para seleccionar el mes\n" + -"- Mantenga pulsado el ratn en cualquiera de estos botones para una seleccin rpida."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Seleccin de hora:\n" + -"- Pulse en cualquiera de las partes de la hora para incrementarla\n" + -"- o pulse las maysculas mientras hace clic para decrementarla\n" + -"- o haga clic y arrastre el ratn para una seleccin ms rpida."; - -Calendar._TT["PREV_YEAR"] = "Ao anterior (mantener para men)"; -Calendar._TT["PREV_MONTH"] = "Mes anterior (mantener para men)"; -Calendar._TT["GO_TODAY"] = "Ir a hoy"; -Calendar._TT["NEXT_MONTH"] = "Mes siguiente (mantener para men)"; -Calendar._TT["NEXT_YEAR"] = "Ao siguiente (mantener para men)"; -Calendar._TT["SEL_DATE"] = "Seleccionar fecha"; -Calendar._TT["DRAG_TO_MOVE"] = "Arrastrar para mover"; -Calendar._TT["PART_TODAY"] = " (hoy)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Hacer %s primer da de la semana"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Cerrar"; -Calendar._TT["TODAY"] = "Hoy"; -Calendar._TT["TIME_PART"] = "(Mayscula-)Clic o arrastre para cambiar valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %e de %B de %Y"; - -Calendar._TT["WK"] = "sem"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-fi.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-fi.js deleted file mode 100644 index 328eabb3bd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-fi.js +++ /dev/null @@ -1,98 +0,0 @@ -// ** I18N - -// Calendar FI language (Finnish, Suomi) -// Author: Jarno Käyhkö, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// full day names -Calendar._DN = new Array -("Sunnuntai", - "Maanantai", - "Tiistai", - "Keskiviikko", - "Torstai", - "Perjantai", - "Lauantai", - "Sunnuntai"); - -// short day names -Calendar._SDN = new Array -("Su", - "Ma", - "Ti", - "Ke", - "To", - "Pe", - "La", - "Su"); - -// full month names -Calendar._MN = new Array -("Tammikuu", - "Helmikuu", - "Maaliskuu", - "Huhtikuu", - "Toukokuu", - "Kesäkuu", - "Heinäkuu", - "Elokuu", - "Syyskuu", - "Lokakuu", - "Marraskuu", - "Joulukuu"); - -// short month names -Calendar._SMN = new Array -("Tam", - "Hel", - "Maa", - "Huh", - "Tou", - "Kes", - "Hei", - "Elo", - "Syy", - "Lok", - "Mar", - "Jou"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Tietoja kalenterista"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Uusin versio osoitteessa: http://www.dynarch.com/projects/calendar/\n" + -"Julkaistu GNU LGPL lisenssin alaisuudessa. Lisätietoja osoitteessa http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"Päivämäärä valinta:\n" + -"- Käytä \xab, \xbb painikkeita valitaksesi vuosi\n" + -"- Käytä " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " painikkeita valitaksesi kuukausi\n" + -"- Pitämällä hiiren painiketta minkä tahansa yllä olevan painikkeen kohdalla, saat näkyviin valikon nopeampaan siirtymiseen."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Ajan valinta:\n" + -"- Klikkaa kellonajan numeroita lisätäksesi aikaa\n" + -"- tai pitämällä Shift-näppäintä pohjassa saat aikaa taaksepäin\n" + -"- tai klikkaa ja pidä hiiren painike pohjassa sekä liikuta hiirtä muuttaaksesi aikaa nopeasti eteen- ja taaksepäin."; - -Calendar._TT["PREV_YEAR"] = "Edell. vuosi (paina hetki, näet valikon)"; -Calendar._TT["PREV_MONTH"] = "Edell. kuukausi (paina hetki, näet valikon)"; -Calendar._TT["GO_TODAY"] = "Siirry tähän päivään"; -Calendar._TT["NEXT_MONTH"] = "Seur. kuukausi (paina hetki, näet valikon)"; -Calendar._TT["NEXT_YEAR"] = "Seur. vuosi (paina hetki, näet valikon)"; -Calendar._TT["SEL_DATE"] = "Valitse päivämäärä"; -Calendar._TT["DRAG_TO_MOVE"] = "Siirrä kalenterin paikkaa"; -Calendar._TT["PART_TODAY"] = " (tänään)"; -Calendar._TT["MON_FIRST"] = "Näytä maanantai ensimmäisenä"; -Calendar._TT["SUN_FIRST"] = "Näytä sunnuntai ensimmäisenä"; -Calendar._TT["CLOSE"] = "Sulje"; -Calendar._TT["TODAY"] = "Tänään"; -Calendar._TT["TIME_PART"] = "(Shift-) Klikkaa tai liikuta muuttaaksesi aikaa"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%d.%m.%Y"; - -Calendar._TT["WK"] = "Vko"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-fr.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-fr.js deleted file mode 100644 index 2a9e0b20bb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-fr.js +++ /dev/null @@ -1,125 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// Translator: David Duret, from previous french version - -// full day names -Calendar._DN = new Array -("Dimanche", - "Lundi", - "Mardi", - "Mercredi", - "Jeudi", - "Vendredi", - "Samedi", - "Dimanche"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dim", - "Lun", - "Mar", - "Mar", - "Jeu", - "Ven", - "Sam", - "Dim"); - -// full month names -Calendar._MN = new Array -("Janvier", - "Fvrier", - "Mars", - "Avril", - "Mai", - "Juin", - "Juillet", - "Aot", - "Septembre", - "Octobre", - "Novembre", - "Dcembre"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Fev", - "Mar", - "Avr", - "Mai", - "Juin", - "Juil", - "Aout", - "Sep", - "Oct", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "A propos du calendrier"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Heure Selecteur\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Pour la derniere version visitez : http://www.dynarch.com/projects/calendar/\n" + -"Distribu par GNU LGPL. Voir http://gnu.org/licenses/lgpl.html pour les details." + -"\n\n" + -"Selection de la date :\n" + -"- Utiliser les bouttons \xab, \xbb pour selectionner l\'annee\n" + -"- Utiliser les bouttons " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pour selectionner les mois\n" + -"- Garder la souris sur n'importe quels boutons pour une selection plus rapide"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selection de l\'heure :\n" + -"- Cliquer sur heures ou minutes pour incrementer\n" + -"- ou Maj-clic pour decrementer\n" + -"- ou clic et glisser-deplacer pour une selection plus rapide"; - -Calendar._TT["PREV_YEAR"] = "Anne prc. (maintenir pour menu)"; -Calendar._TT["PREV_MONTH"] = "Mois prc. (maintenir pour menu)"; -Calendar._TT["GO_TODAY"] = "Atteindre la date du jour"; -Calendar._TT["NEXT_MONTH"] = "Mois suiv. (maintenir pour menu)"; -Calendar._TT["NEXT_YEAR"] = "Anne suiv. (maintenir pour menu)"; -Calendar._TT["SEL_DATE"] = "Slectionner une date"; -Calendar._TT["DRAG_TO_MOVE"] = "Dplacer"; -Calendar._TT["PART_TODAY"] = " (Aujourd'hui)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Afficher %s en premier"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Fermer"; -Calendar._TT["TODAY"] = "Aujourd'hui"; -Calendar._TT["TIME_PART"] = "(Maj-)Clic ou glisser pour modifier la valeur"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Sem."; -Calendar._TT["TIME"] = "Heure :"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-he-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-he-utf8.js deleted file mode 100644 index 7861217bae..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-he-utf8.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Idan Sofer, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("ראשון", - "שני", - "שלישי", - "רביעי", - "חמישי", - "שישי", - "שבת", - "ראשון"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("א", - "ב", - "ג", - "ד", - "ה", - "ו", - "ש", - "א"); - -// full month names -Calendar._MN = new Array -("ינואר", - "פברואר", - "מרץ", - "אפריל", - "מאי", - "יוני", - "יולי", - "אוגוסט", - "ספטמבר", - "אוקטובר", - "נובמבר", - "דצמבר"); - -// short month names -Calendar._SMN = new Array -("ינא", - "פבר", - "מרץ", - "אפר", - "מאי", - "יונ", - "יול", - "אוג", - "ספט", - "אוק", - "נוב", - "דצמ"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "אודות השנתון"; - -Calendar._TT["ABOUT"] = -"בחרן תאריך/שעה DHTML\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"הגירסא האחרונה זמינה ב: http://www.dynarch.com/projects/calendar/\n" + -"מופץ תחת זיכיון ה GNU LGPL. עיין ב http://gnu.org/licenses/lgpl.html לפרטים נוספים." + -"\n\n" + -בחירת תאריך:\n" + -"- השתמש בכפתורים \xab, \xbb לבחירת שנה\n" + -"- השתמש בכפתורים " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " לבחירת חודש\n" + -"- החזק העכבר לחוץ מעל הכפתורים המוזכרים לעיל לבחירה מהירה יותר."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"בחירת זמן:\n" + -"- לחץ על כל אחד מחלקי הזמן כדי להוסיף\n" + -"- או shift בשילוב עם לחיצה כדי להחסיר\n" + -"- או לחץ וגרור לפעולה מהירה יותר."; - -Calendar._TT["PREV_YEAR"] = "שנה קודמת - החזק לקבלת תפריט"; -Calendar._TT["PREV_MONTH"] = "חודש קודם - החזק לקבלת תפריט"; -Calendar._TT["GO_TODAY"] = "עבור להיום"; -Calendar._TT["NEXT_MONTH"] = "חודש הבא - החזק לתפריט"; -Calendar._TT["NEXT_YEAR"] = "שנה הבאה - החזק לתפריט"; -Calendar._TT["SEL_DATE"] = "בחר תאריך"; -Calendar._TT["DRAG_TO_MOVE"] = "גרור להזזה"; -Calendar._TT["PART_TODAY"] = " )היום("; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "הצג %s קודם"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "6"; - -Calendar._TT["CLOSE"] = "סגור"; -Calendar._TT["TODAY"] = "היום"; -Calendar._TT["TIME_PART"] = "(שיפט-)לחץ וגרור כדי לשנות ערך"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "שעה::"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hr-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hr-utf8.js deleted file mode 100644 index d569cfd924..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hr-utf8.js +++ /dev/null @@ -1,49 +0,0 @@ -/* Croatian language file for the DHTML Calendar version 0.9.2 -* Author Krunoslav Zubrinic , June 2003. -* Feel free to use this script under the terms of the GNU Lesser General -* Public License, as long as you do not remove or alter this notice. -*/ -Calendar._DN = new Array -("Nedjelja", - "Ponedjeljak", - "Utorak", - "Srijeda", - "Četvrtak", - "Petak", - "Subota", - "Nedjelja"); -Calendar._MN = new Array -("Siječanj", - "Veljača", - "Ožujak", - "Travanj", - "Svibanj", - "Lipanj", - "Srpanj", - "Kolovoz", - "Rujan", - "Listopad", - "Studeni", - "Prosinac"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Promjeni dan s kojim počinje tjedan"; -Calendar._TT["PREV_YEAR"] = "Prethodna godina (dugi pritisak za meni)"; -Calendar._TT["PREV_MONTH"] = "Prethodni mjesec (dugi pritisak za meni)"; -Calendar._TT["GO_TODAY"] = "Idi na tekući dan"; -Calendar._TT["NEXT_MONTH"] = "Slijedeći mjesec (dugi pritisak za meni)"; -Calendar._TT["NEXT_YEAR"] = "Slijedeća godina (dugi pritisak za meni)"; -Calendar._TT["SEL_DATE"] = "Izaberite datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Pritisni i povuci za promjenu pozicije"; -Calendar._TT["PART_TODAY"] = " (today)"; -Calendar._TT["MON_FIRST"] = "Prikaži ponedjeljak kao prvi dan"; -Calendar._TT["SUN_FIRST"] = "Prikaži nedjelju kao prvi dan"; -Calendar._TT["CLOSE"] = "Zatvori"; -Calendar._TT["TODAY"] = "Danas"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y"; -Calendar._TT["TT_DATE_FORMAT"] = "DD, dd.mm.y"; - -Calendar._TT["WK"] = "Tje"; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hr.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hr.js deleted file mode 100644 index 6c27f60c4f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hr.js and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hu.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hu.js deleted file mode 100644 index f5bf057ecf..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-hu.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar HU language -// Author: ??? -// Modifier: KARASZI Istvan, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Vasrnap", - "Htf", - "Kedd", - "Szerda", - "Cstrtk", - "Pntek", - "Szombat", - "Vasrnap"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("v", - "h", - "k", - "sze", - "cs", - "p", - "szo", - "v"); - -// full month names -Calendar._MN = new Array -("janur", - "februr", - "mrcius", - "prilis", - "mjus", - "jnius", - "jlius", - "augusztus", - "szeptember", - "oktber", - "november", - "december"); - -// short month names -Calendar._SMN = new Array -("jan", - "feb", - "mr", - "pr", - "mj", - "jn", - "jl", - "aug", - "sze", - "okt", - "nov", - "dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "A kalendriumrl"; - -Calendar._TT["ABOUT"] = -"DHTML dtum/id kivlaszt\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"a legfrissebb verzi megtallhat: http://www.dynarch.com/projects/calendar/\n" + -"GNU LGPL alatt terjesztve. Lsd a http://gnu.org/licenses/lgpl.html oldalt a rszletekhez." + -"\n\n" + -"Dtum vlaszts:\n" + -"- hasznlja a \xab, \xbb gombokat az v kivlasztshoz\n" + -"- hasznlja a " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " gombokat a hnap kivlasztshoz\n" + -"- tartsa lenyomva az egrgombot a gyors vlasztshoz."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Id vlaszts:\n" + -"- kattintva nvelheti az idt\n" + -"- shift-tel kattintva cskkentheti\n" + -"- lenyomva tartva s hzva gyorsabban kivlaszthatja."; - -Calendar._TT["PREV_YEAR"] = "Elz v (tartsa nyomva a menhz)"; -Calendar._TT["PREV_MONTH"] = "Elz hnap (tartsa nyomva a menhz)"; -Calendar._TT["GO_TODAY"] = "Mai napra ugrs"; -Calendar._TT["NEXT_MONTH"] = "Kv. hnap (tartsa nyomva a menhz)"; -Calendar._TT["NEXT_YEAR"] = "Kv. v (tartsa nyomva a menhz)"; -Calendar._TT["SEL_DATE"] = "Vlasszon dtumot"; -Calendar._TT["DRAG_TO_MOVE"] = "Hzza a mozgatshoz"; -Calendar._TT["PART_TODAY"] = " (ma)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s legyen a ht els napja"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Bezr"; -Calendar._TT["TODAY"] = "Ma"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikk vagy hzs az rtk vltoztatshoz"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%b %e, %a"; - -Calendar._TT["WK"] = "ht"; -Calendar._TT["TIME"] = "id:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-it.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-it.js deleted file mode 100644 index 7f84cde01f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-it.js +++ /dev/null @@ -1,124 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Translator: Fabio Di Bernardini, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domenica", - "Lunedì", - "Martedì", - "Mercoledì", - "Giovedì", - "Venerdì", - "Sabato", - "Domenica"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dom", - "Lun", - "Mar", - "Mer", - "Gio", - "Ven", - "Sab", - "Dom"); - -// full month names -Calendar._MN = new Array -("Gennaio", - "Febbraio", - "Marzo", - "Aprile", - "Maggio", - "Giugno", - "Luglio", - "Augosto", - "Settembre", - "Ottobre", - "Novembre", - "Dicembre"); - -// short month names -Calendar._SMN = new Array -("Gen", - "Feb", - "Mar", - "Apr", - "Mag", - "Giu", - "Lug", - "Ago", - "Set", - "Ott", - "Nov", - "Dic"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Informazioni sul calendario"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Per gli aggiornamenti: http://www.dynarch.com/projects/calendar/\n" + -"Distribuito sotto licenza GNU LGPL. Vedi http://gnu.org/licenses/lgpl.html per i dettagli." + -"\n\n" + -"Selezione data:\n" + -"- Usa \xab, \xbb per selezionare l'anno\n" + -"- Usa " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " per i mesi\n" + -"- Tieni premuto a lungo il mouse per accedere alle funzioni di selezione veloce."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selezione orario:\n" + -"- Clicca sul numero per incrementarlo\n" + -"- o Shift+click per decrementarlo\n" + -"- o click e sinistra o destra per variarlo."; - -Calendar._TT["PREV_YEAR"] = "Anno prec.(clicca a lungo per il menù)"; -Calendar._TT["PREV_MONTH"] = "Mese prec. (clicca a lungo per il menù)"; -Calendar._TT["GO_TODAY"] = "Oggi"; -Calendar._TT["NEXT_MONTH"] = "Pross. mese (clicca a lungo per il menù)"; -Calendar._TT["NEXT_YEAR"] = "Pross. anno (clicca a lungo per il menù)"; -Calendar._TT["SEL_DATE"] = "Seleziona data"; -Calendar._TT["DRAG_TO_MOVE"] = "Trascina per spostarlo"; -Calendar._TT["PART_TODAY"] = " (oggi)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostra prima %s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Chiudi"; -Calendar._TT["TODAY"] = "Oggi"; -Calendar._TT["TIME_PART"] = "(Shift-)Click o trascina per cambiare il valore"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a:%b:%e"; - -Calendar._TT["WK"] = "set"; -Calendar._TT["TIME"] = "Ora:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-jp.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-jp.js deleted file mode 100644 index 3bca7ebf60..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-jp.js +++ /dev/null @@ -1,45 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("", - "", - "", - "", - "", - "", - "y", - ""); -Calendar._MN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "T̍ŏ̗j؂ւ"; -Calendar._TT["PREV_YEAR"] = "ON"; -Calendar._TT["PREV_MONTH"] = "O"; -Calendar._TT["GO_TODAY"] = ""; -Calendar._TT["NEXT_MONTH"] = ""; -Calendar._TT["NEXT_YEAR"] = "N"; -Calendar._TT["SEL_DATE"] = "tI"; -Calendar._TT["DRAG_TO_MOVE"] = "EBhËړ"; -Calendar._TT["PART_TODAY"] = " ()"; -Calendar._TT["MON_FIRST"] = "j擪"; -Calendar._TT["SUN_FIRST"] = "j擪"; -Calendar._TT["CLOSE"] = "‚"; -Calendar._TT["TODAY"] = ""; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd"; -Calendar._TT["TT_DATE_FORMAT"] = "%m %d (%a)"; - -Calendar._TT["WK"] = "T"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ko-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ko-utf8.js deleted file mode 100644 index 035dd748d3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ko-utf8.js +++ /dev/null @@ -1,120 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Translation: Yourim Yi -// Encoding: EUC-KR -// lang : ko -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names - -Calendar._DN = new Array -("일요일", - "월요일", - "화요일", - "수요일", - "목요일", - "금요일", - "토요일", - "일요일"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("일", - "월", - "화", - "수", - "목", - "금", - "토", - "일"); - -// full month names -Calendar._MN = new Array -("1월", - "2월", - "3월", - "4월", - "5월", - "6월", - "7월", - "8월", - "9월", - "10월", - "11월", - "12월"); - -// short month names -Calendar._SMN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "calendar 에 대해서"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"\n"+ -"최신 버전을 받으시려면 http://www.dynarch.com/projects/calendar/ 에 방문하세요\n" + -"\n"+ -"GNU LGPL 라이센스로 배포됩니다. \n"+ -"라이센스에 대한 자세한 내용은 http://gnu.org/licenses/lgpl.html 을 읽으세요." + -"\n\n" + -"날짜 선택:\n" + -"- 연도를 선택하려면 \xab, \xbb 버튼을 사용합니다\n" + -"- 달을 선택하려면 " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " 버튼을 누르세요\n" + -"- 계속 누르고 있으면 위 값들을 빠르게 선택하실 수 있습니다."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"시간 선택:\n" + -"- 마우스로 누르면 시간이 증가합니다\n" + -"- Shift 키와 함께 누르면 감소합니다\n" + -"- 누른 상태에서 마우스를 움직이면 좀 더 빠르게 값이 변합니다.\n"; - -Calendar._TT["PREV_YEAR"] = "지난 해 (길게 누르면 목록)"; -Calendar._TT["PREV_MONTH"] = "지난 달 (길게 누르면 목록)"; -Calendar._TT["GO_TODAY"] = "오늘 날짜로"; -Calendar._TT["NEXT_MONTH"] = "다음 달 (길게 누르면 목록)"; -Calendar._TT["NEXT_YEAR"] = "다음 해 (길게 누르면 목록)"; -Calendar._TT["SEL_DATE"] = "날짜를 선택하세요"; -Calendar._TT["DRAG_TO_MOVE"] = "마우스 드래그로 이동 하세요"; -Calendar._TT["PART_TODAY"] = " (오늘)"; -Calendar._TT["MON_FIRST"] = "월요일을 한 주의 시작 요일로"; -Calendar._TT["SUN_FIRST"] = "일요일을 한 주의 시작 요일로"; -Calendar._TT["CLOSE"] = "닫기"; -Calendar._TT["TODAY"] = "오늘"; -Calendar._TT["TIME_PART"] = "(Shift-)클릭 또는 드래그 하세요"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%b/%e [%a]"; - -Calendar._TT["WK"] = "주"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ko.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ko.js deleted file mode 100644 index 8cddf58645..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ko.js +++ /dev/null @@ -1,120 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Translation: Yourim Yi -// Encoding: EUC-KR -// lang : ko -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names - -Calendar._DN = new Array -("Ͽ", - "", - "ȭ", - "", - "", - "ݿ", - "", - "Ͽ"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "", - "ȭ", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// short month names -Calendar._SMN = new Array -("1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "calendar ؼ"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"\n"+ -"ֽ ÷ http://www.dynarch.com/projects/calendar/ 湮ϼ\n" + -"\n"+ -"GNU LGPL ̼ ˴ϴ. \n"+ -"̼ ڼ http://gnu.org/licenses/lgpl.html ." + -"\n\n" + -"¥ :\n" + -"- Ϸ \xab, \xbb ư մϴ\n" + -"- Ϸ " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " ư \n" + -"- Ͻ ֽϴ."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"ð :\n" + -"- 콺 ð մϴ\n" + -"- Shift Ű Բ մϴ\n" + -"- ¿ 콺 ̸ մϴ.\n"; - -Calendar._TT["PREV_YEAR"] = " ( )"; -Calendar._TT["PREV_MONTH"] = " ( )"; -Calendar._TT["GO_TODAY"] = " ¥"; -Calendar._TT["NEXT_MONTH"] = " ( )"; -Calendar._TT["NEXT_YEAR"] = " ( )"; -Calendar._TT["SEL_DATE"] = "¥ ϼ"; -Calendar._TT["DRAG_TO_MOVE"] = "콺 巡׷ ̵ ϼ"; -Calendar._TT["PART_TODAY"] = " ()"; -Calendar._TT["MON_FIRST"] = " Ϸ"; -Calendar._TT["SUN_FIRST"] = "Ͽ Ϸ"; -Calendar._TT["CLOSE"] = "ݱ"; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-)Ŭ Ǵ 巡 ϼ"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%b/%e [%a]"; - -Calendar._TT["WK"] = ""; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lt-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lt-utf8.js deleted file mode 100644 index d39653be27..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lt-utf8.js +++ /dev/null @@ -1,114 +0,0 @@ -// ** I18N - -// Calendar LT language -// Author: Martynas Majeris, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sekmadienis", - "Pirmadienis", - "Antradienis", - "Trečiadienis", - "Ketvirtadienis", - "Pentadienis", - "Šeštadienis", - "Sekmadienis"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sek", - "Pir", - "Ant", - "Tre", - "Ket", - "Pen", - "Šeš", - "Sek"); - -// full month names -Calendar._MN = new Array -("Sausis", - "Vasaris", - "Kovas", - "Balandis", - "Gegužė", - "Birželis", - "Liepa", - "Rugpjūtis", - "Rugsėjis", - "Spalis", - "Lapkritis", - "Gruodis"); - -// short month names -Calendar._SMN = new Array -("Sau", - "Vas", - "Kov", - "Bal", - "Geg", - "Bir", - "Lie", - "Rgp", - "Rgs", - "Spa", - "Lap", - "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Apie kalendorių"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Naujausią versiją rasite: http://www.dynarch.com/projects/calendar/\n" + -"Platinamas pagal GNU LGPL licenciją. Aplankykite http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"Datos pasirinkimas:\n" + -"- Metų pasirinkimas: \xab, \xbb\n" + -"- Mėnesio pasirinkimas: " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "\n" + -"- Nuspauskite ir laikykite pelės klavišą greitesniam pasirinkimui."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Laiko pasirinkimas:\n" + -"- Spustelkite ant valandų arba minučių - skaičius padidės vienetu.\n" + -"- Jei spausite kartu su Shift, skaičius sumažės.\n" + -"- Greitam pasirinkimui spustelkite ir pajudinkite pelę."; - -Calendar._TT["PREV_YEAR"] = "Ankstesni metai (laikykite, jei norite meniu)"; -Calendar._TT["PREV_MONTH"] = "Ankstesnis mėnuo (laikykite, jei norite meniu)"; -Calendar._TT["GO_TODAY"] = "Pasirinkti šiandieną"; -Calendar._TT["NEXT_MONTH"] = "Kitas mėnuo (laikykite, jei norite meniu)"; -Calendar._TT["NEXT_YEAR"] = "Kiti metai (laikykite, jei norite meniu)"; -Calendar._TT["SEL_DATE"] = "Pasirinkite datą"; -Calendar._TT["DRAG_TO_MOVE"] = "Tempkite"; -Calendar._TT["PART_TODAY"] = " (šiandien)"; -Calendar._TT["MON_FIRST"] = "Pirma savaitės diena - pirmadienis"; -Calendar._TT["SUN_FIRST"] = "Pirma savaitės diena - sekmadienis"; -Calendar._TT["CLOSE"] = "Uždaryti"; -Calendar._TT["TODAY"] = "Šiandien"; -Calendar._TT["TIME_PART"] = "Spustelkite arba tempkite jei norite pakeisti"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %Y-%m-%d"; - -Calendar._TT["WK"] = "sav"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lt.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lt.js deleted file mode 100644 index 43b93d6810..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lt.js +++ /dev/null @@ -1,114 +0,0 @@ -// ** I18N - -// Calendar LT language -// Author: Martynas Majeris, -// Encoding: Windows-1257 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Sekmadienis", - "Pirmadienis", - "Antradienis", - "Treiadienis", - "Ketvirtadienis", - "Pentadienis", - "etadienis", - "Sekmadienis"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sek", - "Pir", - "Ant", - "Tre", - "Ket", - "Pen", - "e", - "Sek"); - -// full month names -Calendar._MN = new Array -("Sausis", - "Vasaris", - "Kovas", - "Balandis", - "Gegu", - "Birelis", - "Liepa", - "Rugpjtis", - "Rugsjis", - "Spalis", - "Lapkritis", - "Gruodis"); - -// short month names -Calendar._SMN = new Array -("Sau", - "Vas", - "Kov", - "Bal", - "Geg", - "Bir", - "Lie", - "Rgp", - "Rgs", - "Spa", - "Lap", - "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Apie kalendori"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Naujausi versij rasite: http://www.dynarch.com/projects/calendar/\n" + -"Platinamas pagal GNU LGPL licencij. Aplankykite http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"Datos pasirinkimas:\n" + -"- Met pasirinkimas: \xab, \xbb\n" + -"- Mnesio pasirinkimas: " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "\n" + -"- Nuspauskite ir laikykite pels klavi greitesniam pasirinkimui."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Laiko pasirinkimas:\n" + -"- Spustelkite ant valand arba minui - skaius padids vienetu.\n" + -"- Jei spausite kartu su Shift, skaiius sumas.\n" + -"- Greitam pasirinkimui spustelkite ir pajudinkite pel."; - -Calendar._TT["PREV_YEAR"] = "Ankstesni metai (laikykite, jei norite meniu)"; -Calendar._TT["PREV_MONTH"] = "Ankstesnis mnuo (laikykite, jei norite meniu)"; -Calendar._TT["GO_TODAY"] = "Pasirinkti iandien"; -Calendar._TT["NEXT_MONTH"] = "Kitas mnuo (laikykite, jei norite meniu)"; -Calendar._TT["NEXT_YEAR"] = "Kiti metai (laikykite, jei norite meniu)"; -Calendar._TT["SEL_DATE"] = "Pasirinkite dat"; -Calendar._TT["DRAG_TO_MOVE"] = "Tempkite"; -Calendar._TT["PART_TODAY"] = " (iandien)"; -Calendar._TT["MON_FIRST"] = "Pirma savaits diena - pirmadienis"; -Calendar._TT["SUN_FIRST"] = "Pirma savaits diena - sekmadienis"; -Calendar._TT["CLOSE"] = "Udaryti"; -Calendar._TT["TODAY"] = "iandien"; -Calendar._TT["TIME_PART"] = "Spustelkite arba tempkite jei norite pakeisti"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %Y-%m-%d"; - -Calendar._TT["WK"] = "sav"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lv.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lv.js deleted file mode 100644 index 407699d36d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-lv.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar LV language -// Author: Juris Valdovskis, -// Encoding: cp1257 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Svtdiena", - "Pirmdiena", - "Otrdiena", - "Trediena", - "Ceturdiena", - "Piektdiena", - "Sestdiena", - "Svtdiena"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Sv", - "Pr", - "Ot", - "Tr", - "Ce", - "Pk", - "Se", - "Sv"); - -// full month names -Calendar._MN = new Array -("Janvris", - "Februris", - "Marts", - "Aprlis", - "Maijs", - "Jnijs", - "Jlijs", - "Augusts", - "Septembris", - "Oktobris", - "Novembris", - "Decembris"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Mai", - "Jn", - "Jl", - "Aug", - "Sep", - "Okt", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Par kalendru"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Datuma izvle:\n" + -"- Izmanto \xab, \xbb pogas, lai izvltos gadu\n" + -"- Izmanto " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "pogas, lai izvltos mnesi\n" + -"- Turi nospiestu peles pogu uz jebkuru no augstk mintajm pogm, lai patrintu izvli."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Laika izvle:\n" + -"- Uzklikini uz jebkuru no laika dam, lai palielintu to\n" + -"- vai Shift-klikis, lai samazintu to\n" + -"- vai noklikini un velc uz attiecgo virzienu lai maintu trk."; - -Calendar._TT["PREV_YEAR"] = "Iepr. gads (turi izvlnei)"; -Calendar._TT["PREV_MONTH"] = "Iepr. mnesis (turi izvlnei)"; -Calendar._TT["GO_TODAY"] = "odien"; -Calendar._TT["NEXT_MONTH"] = "Nkoais mnesis (turi izvlnei)"; -Calendar._TT["NEXT_YEAR"] = "Nkoais gads (turi izvlnei)"; -Calendar._TT["SEL_DATE"] = "Izvlies datumu"; -Calendar._TT["DRAG_TO_MOVE"] = "Velc, lai prvietotu"; -Calendar._TT["PART_TODAY"] = " (odien)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Attlot %s k pirmo"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "1,7"; - -Calendar._TT["CLOSE"] = "Aizvrt"; -Calendar._TT["TODAY"] = "odien"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikis vai prvieto, lai maintu"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e %b"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Laiks:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-nl.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-nl.js deleted file mode 100644 index a1dea94bdb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-nl.js +++ /dev/null @@ -1,73 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Zondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrijdag", - "Zaterdag", - "Zondag"); - -Calendar._SDN_len = 2; - -Calendar._MN = new Array -("Januari", - "Februari", - "Maart", - "April", - "Mei", - "Juni", - "Juli", - "Augustus", - "September", - "Oktober", - "November", - "December"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Info"; - -Calendar._TT["ABOUT"] = -"DHTML Datum/Tijd Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + -"Ga voor de meest recente versie naar: http://www.dynarch.com/projects/calendar/\n" + -"Verspreid onder de GNU LGPL. Zie http://gnu.org/licenses/lgpl.html voor details." + -"\n\n" + -"Datum selectie:\n" + -"- Gebruik de \xab \xbb knoppen om een jaar te selecteren\n" + -"- Gebruik de " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " knoppen om een maand te selecteren\n" + -"- Houd de muis ingedrukt op de genoemde knoppen voor een snellere selectie."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Tijd selectie:\n" + -"- Klik op een willekeurig onderdeel van het tijd gedeelte om het te verhogen\n" + -"- of Shift-klik om het te verlagen\n" + -"- of klik en sleep voor een snellere selectie."; - -//Calendar._TT["TOGGLE"] = "Selecteer de eerste week-dag"; -Calendar._TT["PREV_YEAR"] = "Vorig jaar (ingedrukt voor menu)"; -Calendar._TT["PREV_MONTH"] = "Vorige maand (ingedrukt voor menu)"; -Calendar._TT["GO_TODAY"] = "Ga naar Vandaag"; -Calendar._TT["NEXT_MONTH"] = "Volgende maand (ingedrukt voor menu)"; -Calendar._TT["NEXT_YEAR"] = "Volgend jaar (ingedrukt voor menu)"; -Calendar._TT["SEL_DATE"] = "Selecteer datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Klik en sleep om te verplaatsen"; -Calendar._TT["PART_TODAY"] = " (vandaag)"; -//Calendar._TT["MON_FIRST"] = "Toon Maandag eerst"; -//Calendar._TT["SUN_FIRST"] = "Toon Zondag eerst"; - -Calendar._TT["DAY_FIRST"] = "Toon %s eerst"; - -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Sluiten"; -Calendar._TT["TODAY"] = "(vandaag)"; -Calendar._TT["TIME_PART"] = "(Shift-)Klik of sleep om de waarde te veranderen"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e %b %Y"; - -Calendar._TT["WK"] = "wk"; -Calendar._TT["TIME"] = "Tijd:"; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-no.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-no.js deleted file mode 100644 index d9297d179a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-no.js +++ /dev/null @@ -1,114 +0,0 @@ -// ** I18N - -// Calendar NO language -// Author: Daniel Holmen, -// Encoding: UTF-8 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Søndag", - "Mandag", - "Tirsdag", - "Onsdag", - "Torsdag", - "Fredag", - "Lørdag", - "Søndag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Søn", - "Man", - "Tir", - "Ons", - "Tor", - "Fre", - "Lør", - "Søn"); - -// full month names -Calendar._MN = new Array -("Januar", - "Februar", - "Mars", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Desember"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Des"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Om kalenderen"; - -Calendar._TT["ABOUT"] = -"DHTML Dato-/Tidsvelger\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For nyeste versjon, gå til: http://www.dynarch.com/projects/calendar/\n" + -"Distribuert under GNU LGPL. Se http://gnu.org/licenses/lgpl.html for detaljer." + -"\n\n" + -"Datovalg:\n" + -"- Bruk knappene \xab og \xbb for å velge år\n" + -"- Bruk knappene " + String.fromCharCode(0x2039) + " og " + String.fromCharCode(0x203a) + " for å velge måned\n" + -"- Hold inne musknappen eller knappene over for raskere valg."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Tidsvalg:\n" + -"- Klikk på en av tidsdelene for å øke den\n" + -"- eller Shift-klikk for å senke verdien\n" + -"- eller klikk-og-dra for raskere valg.."; - -Calendar._TT["PREV_YEAR"] = "Forrige. år (hold for meny)"; -Calendar._TT["PREV_MONTH"] = "Forrige. måned (hold for meny)"; -Calendar._TT["GO_TODAY"] = "Gå til idag"; -Calendar._TT["NEXT_MONTH"] = "Neste måned (hold for meny)"; -Calendar._TT["NEXT_YEAR"] = "Neste år (hold for meny)"; -Calendar._TT["SEL_DATE"] = "Velg dato"; -Calendar._TT["DRAG_TO_MOVE"] = "Dra for å flytte"; -Calendar._TT["PART_TODAY"] = " (idag)"; -Calendar._TT["MON_FIRST"] = "Vis mandag først"; -Calendar._TT["SUN_FIRST"] = "Vis søndag først"; -Calendar._TT["CLOSE"] = "Lukk"; -Calendar._TT["TODAY"] = "Idag"; -Calendar._TT["TIME_PART"] = "(Shift-)Klikk eller dra for å endre verdi"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "uke"; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pl-utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pl-utf8.js deleted file mode 100644 index 6b8ca67aa2..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pl-utf8.js +++ /dev/null @@ -1,93 +0,0 @@ -// ** I18N - -// Calendar PL language -// Author: Dariusz Pietrzak, -// Author: Janusz Piwowarski, -// Encoding: utf-8 -// Distributed under the same terms as the calendar itself. - -Calendar._DN = new Array -("Niedziela", - "Poniedziałek", - "Wtorek", - "Środa", - "Czwartek", - "Piątek", - "Sobota", - "Niedziela"); -Calendar._SDN = new Array -("Nie", - "Pn", - "Wt", - "Śr", - "Cz", - "Pt", - "So", - "Nie"); -Calendar._MN = new Array -("Styczeń", - "Luty", - "Marzec", - "Kwiecień", - "Maj", - "Czerwiec", - "Lipiec", - "Sierpień", - "Wrzesień", - "Październik", - "Listopad", - "Grudzień"); -Calendar._SMN = new Array -("Sty", - "Lut", - "Mar", - "Kwi", - "Maj", - "Cze", - "Lip", - "Sie", - "Wrz", - "Paź", - "Lis", - "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O kalendarzu"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Aby pobrać najnowszą wersję, odwiedź: http://www.dynarch.com/projects/calendar/\n" + -"Dostępny na licencji GNU LGPL. Zobacz szczegóły na http://gnu.org/licenses/lgpl.html." + -"\n\n" + -"Wybór daty:\n" + -"- Użyj przycisków \xab, \xbb by wybrać rok\n" + -"- Użyj przycisków " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " by wybrać miesiąc\n" + -"- Przytrzymaj klawisz myszy nad jednym z powyższych przycisków dla szybszego wyboru."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Wybór czasu:\n" + -"- Kliknij na jednym z pól czasu by zwiększyć jego wartość\n" + -"- lub kliknij trzymając Shift by zmiejszyć jego wartość\n" + -"- lub kliknij i przeciągnij dla szybszego wyboru."; - -//Calendar._TT["TOGGLE"] = "Zmień pierwszy dzień tygodnia"; -Calendar._TT["PREV_YEAR"] = "Poprzedni rok (przytrzymaj dla menu)"; -Calendar._TT["PREV_MONTH"] = "Poprzedni miesiąc (przytrzymaj dla menu)"; -Calendar._TT["GO_TODAY"] = "Idź do dzisiaj"; -Calendar._TT["NEXT_MONTH"] = "Następny miesiąc (przytrzymaj dla menu)"; -Calendar._TT["NEXT_YEAR"] = "Następny rok (przytrzymaj dla menu)"; -Calendar._TT["SEL_DATE"] = "Wybierz datę"; -Calendar._TT["DRAG_TO_MOVE"] = "Przeciągnij by przesunąć"; -Calendar._TT["PART_TODAY"] = " (dzisiaj)"; -Calendar._TT["MON_FIRST"] = "Wyświetl poniedziałek jako pierwszy"; -Calendar._TT["SUN_FIRST"] = "Wyświetl niedzielę jako pierwszą"; -Calendar._TT["CLOSE"] = "Zamknij"; -Calendar._TT["TODAY"] = "Dzisiaj"; -Calendar._TT["TIME_PART"] = "(Shift-)Kliknij lub przeciągnij by zmienić wartość"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%e %B, %A"; - -Calendar._TT["WK"] = "ty"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pl.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pl.js deleted file mode 100644 index 76e0551ab6..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pl.js +++ /dev/null @@ -1,56 +0,0 @@ -// ** I18N -// Calendar PL language -// Author: Artur Filipiak, -// January, 2004 -// Encoding: UTF-8 -Calendar._DN = new Array -("Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"); - -Calendar._SDN = new Array -("N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N"); - -Calendar._MN = new Array -("Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"); - -Calendar._SMN = new Array -("Sty", "Lut", "Mar", "Kwi", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O kalendarzu"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Wybór daty:\n" + -"- aby wybrać rok użyj przycisków \xab, \xbb\n" + -"- aby wybrać miesiąc użyj przycisków " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + "\n" + -"- aby przyspieszyć wybór przytrzymaj wciśnięty przycisk myszy nad ww. przyciskami."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Wybór czasu:\n" + -"- aby zwiększyć wartość kliknij na dowolnym elemencie selekcji czasu\n" + -"- aby zmniejszyć wartość użyj dodatkowo klawisza Shift\n" + -"- możesz również poruszać myszkę w lewo i prawo wraz z wciśniętym lewym klawiszem."; - -Calendar._TT["PREV_YEAR"] = "Poprz. rok (przytrzymaj dla menu)"; -Calendar._TT["PREV_MONTH"] = "Poprz. miesiąc (przytrzymaj dla menu)"; -Calendar._TT["GO_TODAY"] = "Pokaż dziś"; -Calendar._TT["NEXT_MONTH"] = "Nast. miesiąc (przytrzymaj dla menu)"; -Calendar._TT["NEXT_YEAR"] = "Nast. rok (przytrzymaj dla menu)"; -Calendar._TT["SEL_DATE"] = "Wybierz datę"; -Calendar._TT["DRAG_TO_MOVE"] = "Przesuń okienko"; -Calendar._TT["PART_TODAY"] = " (dziś)"; -Calendar._TT["MON_FIRST"] = "Pokaż Poniedziałek jako pierwszy"; -Calendar._TT["SUN_FIRST"] = "Pokaż Niedzielę jako pierwszą"; -Calendar._TT["CLOSE"] = "Zamknij"; -Calendar._TT["TODAY"] = "Dziś"; -Calendar._TT["TIME_PART"] = "(Shift-)klik | drag, aby zmienić wartość"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y.%m.%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "wk"; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pt.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pt.js deleted file mode 100644 index deee8a19ed..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-pt.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar pt_BR language -// Author: Adalberto Machado, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Segunda", - "Terca", - "Quarta", - "Quinta", - "Sexta", - "Sabado", - "Domingo"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("Dom", - "Seg", - "Ter", - "Qua", - "Qui", - "Sex", - "Sab", - "Dom"); - -// full month names -Calendar._MN = new Array -("Janeiro", - "Fevereiro", - "Marco", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Fev", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Out", - "Nov", - "Dez"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Sobre o calendario"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Ultima versao visite: http://www.dynarch.com/projects/calendar/\n" + -"Distribuido sobre GNU LGPL. Veja http://gnu.org/licenses/lgpl.html para detalhes." + -"\n\n" + -"Selecao de data:\n" + -"- Use os botoes \xab, \xbb para selecionar o ano\n" + -"- Use os botoes " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para selecionar o mes\n" + -"- Segure o botao do mouse em qualquer um desses botoes para selecao rapida."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selecao de hora:\n" + -"- Clique em qualquer parte da hora para incrementar\n" + -"- ou Shift-click para decrementar\n" + -"- ou clique e segure para selecao rapida."; - -Calendar._TT["PREV_YEAR"] = "Ant. ano (segure para menu)"; -Calendar._TT["PREV_MONTH"] = "Ant. mes (segure para menu)"; -Calendar._TT["GO_TODAY"] = "Hoje"; -Calendar._TT["NEXT_MONTH"] = "Prox. mes (segure para menu)"; -Calendar._TT["NEXT_YEAR"] = "Prox. ano (segure para menu)"; -Calendar._TT["SEL_DATE"] = "Selecione a data"; -Calendar._TT["DRAG_TO_MOVE"] = "Arraste para mover"; -Calendar._TT["PART_TODAY"] = " (hoje)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostre %s primeiro"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Fechar"; -Calendar._TT["TODAY"] = "Hoje"; -Calendar._TT["TIME_PART"] = "(Shift-)Click ou arraste para mudar valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d/%m/%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e %b"; - -Calendar._TT["WK"] = "sm"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ro.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ro.js deleted file mode 100644 index 116e358ba2..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ro.js +++ /dev/null @@ -1,66 +0,0 @@ -// ** I18N -Calendar._DN = new Array -("Duminică", - "Luni", - "Marţi", - "Miercuri", - "Joi", - "Vineri", - "Sâmbătă", - "Duminică"); -Calendar._SDN_len = 2; -Calendar._MN = new Array -("Ianuarie", - "Februarie", - "Martie", - "Aprilie", - "Mai", - "Iunie", - "Iulie", - "August", - "Septembrie", - "Octombrie", - "Noiembrie", - "Decembrie"); - -// tooltips -Calendar._TT = {}; - -Calendar._TT["INFO"] = "Despre calendar"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Pentru ultima versiune vizitaţi: http://www.dynarch.com/projects/calendar/\n" + -"Distribuit sub GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Selecţia datei:\n" + -"- Folosiţi butoanele \xab, \xbb pentru a selecta anul\n" + -"- Folosiţi butoanele " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pentru a selecta luna\n" + -"- Tineţi butonul mouse-ului apăsat pentru selecţie mai rapidă."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Selecţia orei:\n" + -"- Click pe ora sau minut pentru a mări valoarea cu 1\n" + -"- Sau Shift-Click pentru a micşora valoarea cu 1\n" + -"- Sau Click şi drag pentru a selecta mai repede."; - -Calendar._TT["PREV_YEAR"] = "Anul precedent (lung pt menu)"; -Calendar._TT["PREV_MONTH"] = "Luna precedentă (lung pt menu)"; -Calendar._TT["GO_TODAY"] = "Data de azi"; -Calendar._TT["NEXT_MONTH"] = "Luna următoare (lung pt menu)"; -Calendar._TT["NEXT_YEAR"] = "Anul următor (lung pt menu)"; -Calendar._TT["SEL_DATE"] = "Selectează data"; -Calendar._TT["DRAG_TO_MOVE"] = "Trage pentru a mişca"; -Calendar._TT["PART_TODAY"] = " (astăzi)"; -Calendar._TT["DAY_FIRST"] = "Afişează %s prima zi"; -Calendar._TT["WEEKEND"] = "0,6"; -Calendar._TT["CLOSE"] = "Închide"; -Calendar._TT["TODAY"] = "Astăzi"; -Calendar._TT["TIME_PART"] = "(Shift-)Click sau drag pentru a selecta"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %d %B"; - -Calendar._TT["WK"] = "spt"; -Calendar._TT["TIME"] = "Ora:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ru.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ru.js deleted file mode 100644 index 9f75a6a432..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ru.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar RU language -// Translation: Sly Golovanov, http://golovanov.net, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("воскресенье", - "понедельник", - "вторник", - "среда", - "четверг", - "пятница", - "суббота", - "воскресенье"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("вск", - "пон", - "втр", - "срд", - "чет", - "пят", - "суб", - "вск"); - -// full month names -Calendar._MN = new Array -("январь", - "февраль", - "март", - "апрель", - "май", - "июнь", - "июль", - "август", - "сентябрь", - "октябрь", - "ноябрь", - "декабрь"); - -// short month names -Calendar._SMN = new Array -("янв", - "фев", - "мар", - "апр", - "май", - "июн", - "июл", - "авг", - "сен", - "окт", - "ноя", - "дек"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "О календаре..."; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"Как выбрать дату:\n" + -"- При помощи кнопок \xab, \xbb можно выбрать год\n" + -"- При помощи кнопок " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " можно выбрать месяц\n" + -"- Подержите эти кнопки нажатыми, чтобы появилось меню быстрого выбора."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Как выбрать время:\n" + -"- При клике на часах или минутах они увеличиваются\n" + -"- при клике с нажатой клавишей Shift они уменьшаются\n" + -"- если нажать и двигать мышкой влево/вправо, они будут меняться быстрее."; - -Calendar._TT["PREV_YEAR"] = "На год назад (удерживать для меню)"; -Calendar._TT["PREV_MONTH"] = "На месяц назад (удерживать для меню)"; -Calendar._TT["GO_TODAY"] = "Сегодня"; -Calendar._TT["NEXT_MONTH"] = "На месяц вперед (удерживать для меню)"; -Calendar._TT["NEXT_YEAR"] = "На год вперед (удерживать для меню)"; -Calendar._TT["SEL_DATE"] = "Выберите дату"; -Calendar._TT["DRAG_TO_MOVE"] = "Перетаскивайте мышкой"; -Calendar._TT["PART_TODAY"] = " (сегодня)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Первый день недели будет %s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Закрыть"; -Calendar._TT["TODAY"] = "Сегодня"; -Calendar._TT["TIME_PART"] = "(Shift-)клик или нажать и двигать"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%e %b, %a"; - -Calendar._TT["WK"] = "нед"; -Calendar._TT["TIME"] = "Время:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ru_win_.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ru_win_.js deleted file mode 100644 index de455afa08..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-ru_win_.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar RU language -// Translation: Sly Golovanov, http://golovanov.net, -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "", - "", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// short month names -Calendar._SMN = new Array -("", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ""); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = " ..."; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -" :\n" + -"- \xab, \xbb \n" + -"- " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " \n" + -"- , ."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -" :\n" + -"- \n" + -"- Shift \n" + -"- /, ."; - -Calendar._TT["PREV_YEAR"] = " ( )"; -Calendar._TT["PREV_MONTH"] = " ( )"; -Calendar._TT["GO_TODAY"] = ""; -Calendar._TT["NEXT_MONTH"] = " ( )"; -Calendar._TT["NEXT_YEAR"] = " ( )"; -Calendar._TT["SEL_DATE"] = " "; -Calendar._TT["DRAG_TO_MOVE"] = " "; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = " %s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = ""; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-) "; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%e %b, %a"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = ":"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-si.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-si.js deleted file mode 100644 index cb3dfb9fdf..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-si.js +++ /dev/null @@ -1,94 +0,0 @@ -/* Slovenian language file for the DHTML Calendar version 0.9.2 -* Author David Milost , January 2004. -* Feel free to use this script under the terms of the GNU Lesser General -* Public License, as long as you do not remove or alter this notice. -*/ - // full day names -Calendar._DN = new Array -("Nedelja", - "Ponedeljek", - "Torek", - "Sreda", - "Četrtek", - "Petek", - "Sobota", - "Nedelja"); - // short day names - Calendar._SDN = new Array -("Ned", - "Pon", - "Tor", - "Sre", - "Čet", - "Pet", - "Sob", - "Ned"); -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Maj", - "Jun", - "Jul", - "Avg", - "Sep", - "Okt", - "Nov", - "Dec"); - // full month names -Calendar._MN = new Array -("Januar", - "Februar", - "Marec", - "April", - "Maj", - "Junij", - "Julij", - "Avgust", - "September", - "Oktober", - "November", - "December"); - -// tooltips -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O koledarju"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Za zadnjo verzijo pojdine na naslov: http://www.dynarch.com/projects/calendar/\n" + -"Distribuirano pod GNU LGPL. Poglejte http://gnu.org/licenses/lgpl.html za podrobnosti." + -"\n\n" + -"Izbor datuma:\n" + -"- Uporabite \xab, \xbb gumbe za izbor leta\n" + -"- Uporabite " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " gumbe za izbor meseca\n" + -"- Zadržite klik na kateremkoli od zgornjih gumbov za hiter izbor."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Izbor ćasa:\n" + -"- Kliknite na katerikoli del ćasa za poveć. le-tega\n" + -"- ali Shift-click za zmanj. le-tega\n" + -"- ali kliknite in povlecite za hiter izbor."; - -Calendar._TT["TOGGLE"] = "Spremeni dan s katerim se prićne teden"; -Calendar._TT["PREV_YEAR"] = "Predhodnje leto (dolg klik za meni)"; -Calendar._TT["PREV_MONTH"] = "Predhodnji mesec (dolg klik za meni)"; -Calendar._TT["GO_TODAY"] = "Pojdi na tekoći dan"; -Calendar._TT["NEXT_MONTH"] = "Naslednji mesec (dolg klik za meni)"; -Calendar._TT["NEXT_YEAR"] = "Naslednje leto (dolg klik za meni)"; -Calendar._TT["SEL_DATE"] = "Izberite datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Pritisni in povleci za spremembo pozicije"; -Calendar._TT["PART_TODAY"] = " (danes)"; -Calendar._TT["MON_FIRST"] = "Prikaži ponedeljek kot prvi dan"; -Calendar._TT["SUN_FIRST"] = "Prikaži nedeljo kot prvi dan"; -Calendar._TT["CLOSE"] = "Zapri"; -Calendar._TT["TODAY"] = "Danes"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; - -Calendar._TT["WK"] = "Ted"; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sk.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sk.js deleted file mode 100644 index 4fe6a3c8bb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sk.js +++ /dev/null @@ -1,99 +0,0 @@ -// ** I18N - -// Calendar SK language -// Author: Peter Valach (pvalach@gmx.net) -// Encoding: utf-8 -// Last update: 2003/10/29 -// Distributed under the same terms as the calendar itself. - -// full day names -Calendar._DN = new Array -("NedeÄľa", - "Pondelok", - "Utorok", - "Streda", - "Ĺ tvrtok", - "Piatok", - "Sobota", - "NedeÄľa"); - -// short day names -Calendar._SDN = new Array -("Ned", - "Pon", - "Uto", - "Str", - "Ĺ tv", - "Pia", - "Sob", - "Ned"); - -// full month names -Calendar._MN = new Array -("Január", - "Február", - "Marec", - "AprĂ­l", - "Máj", - "JĂşn", - "JĂşl", - "August", - "September", - "OktĂłber", - "November", - "December"); - -// short month names -Calendar._SMN = new Array -("Jan", - "Feb", - "Mar", - "Apr", - "Máj", - "JĂşn", - "JĂşl", - "Aug", - "Sep", - "Okt", - "Nov", - "Dec"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "O kalendári"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + -"PoslednĂş verziu nájdete na: http://www.dynarch.com/projects/calendar/\n" + -"DistribuovanĂ© pod GNU LGPL. ViÄŹ http://gnu.org/licenses/lgpl.html pre detaily." + -"\n\n" + -"VĂ˝ber dátumu:\n" + -"- PouĹľite tlaÄŤidlá \xab, \xbb pre vĂ˝ber roku\n" + -"- PouĹľite tlaÄŤidlá " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pre vĂ˝ber mesiaca\n" + -"- Ak ktorĂ©koÄľvek z tĂ˝chto tlaÄŤidiel podržíte dlhšie, zobrazĂ­ sa rĂ˝chly vĂ˝ber."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"VĂ˝ber ÄŤasu:\n" + -"- Kliknutie na niektorĂş poloĹľku ÄŤasu ju zvýši\n" + -"- Shift-klik ju znĂ­Ĺľi\n" + -"- Ak podržíte tlaÄŤĂ­tko stlaÄŤenĂ©, posĂşvanĂ­m menĂ­te hodnotu."; - -Calendar._TT["PREV_YEAR"] = "PredošlĂ˝ rok (podrĹľte pre menu)"; -Calendar._TT["PREV_MONTH"] = "PredošlĂ˝ mesiac (podrĹľte pre menu)"; -Calendar._TT["GO_TODAY"] = "PrejsĹĄ na dnešok"; -Calendar._TT["NEXT_MONTH"] = "Nasl. mesiac (podrĹľte pre menu)"; -Calendar._TT["NEXT_YEAR"] = "Nasl. rok (podrĹľte pre menu)"; -Calendar._TT["SEL_DATE"] = "ZvoÄľte dátum"; -Calendar._TT["DRAG_TO_MOVE"] = "PodrĹľanĂ­m tlaÄŤĂ­tka zmenĂ­te polohu"; -Calendar._TT["PART_TODAY"] = " (dnes)"; -Calendar._TT["MON_FIRST"] = "ZobraziĹĄ pondelok ako prvĂ˝"; -Calendar._TT["SUN_FIRST"] = "ZobraziĹĄ nedeÄľu ako prvĂş"; -Calendar._TT["CLOSE"] = "ZavrieĹĄ"; -Calendar._TT["TODAY"] = "Dnes"; -Calendar._TT["TIME_PART"] = "(Shift-)klik/ĹĄahanie zmenĂ­ hodnotu"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "$d. %m. %Y"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %e. %b"; - -Calendar._TT["WK"] = "týž"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sp.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sp.js deleted file mode 100644 index 239d1b3be9..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sp.js +++ /dev/null @@ -1,110 +0,0 @@ -// ** I18N - -// Calendar SP language -// Author: Rafael Velasco -// Encoding: any -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("Domingo", - "Lunes", - "Martes", - "Miercoles", - "Jueves", - "Viernes", - "Sabado", - "Domingo"); - -Calendar._SDN = new Array -("Dom", - "Lun", - "Mar", - "Mie", - "Jue", - "Vie", - "Sab", - "Dom"); - -// full month names -Calendar._MN = new Array -("Enero", - "Febrero", - "Marzo", - "Abril", - "Mayo", - "Junio", - "Julio", - "Agosto", - "Septiembre", - "Octubre", - "Noviembre", - "Diciembre"); - -// short month names -Calendar._SMN = new Array -("Ene", - "Feb", - "Mar", - "Abr", - "May", - "Jun", - "Jul", - "Ago", - "Sep", - "Oct", - "Nov", - "Dic"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Informacin del Calendario"; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Nuevas versiones en: http://www.dynarch.com/projects/calendar/\n" + -"Distribuida bajo licencia GNU LGPL. Para detalles vea http://gnu.org/licenses/lgpl.html ." + -"\n\n" + -"Seleccin de Fechas:\n" + -"- Use \xab, \xbb para seleccionar el ao\n" + -"- Use " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para seleccionar el mes\n" + -"- Mantenga presionado el botn del ratn en cualquiera de las opciones superiores para un acceso rapido ."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Seleccin del Reloj:\n" + -"- Seleccione la hora para cambiar el reloj\n" + -"- o presione Shift-click para disminuirlo\n" + -"- o presione click y arrastre del ratn para una seleccin rapida."; - -Calendar._TT["PREV_YEAR"] = "Ao anterior (Presione para menu)"; -Calendar._TT["PREV_MONTH"] = "Mes Anterior (Presione para menu)"; -Calendar._TT["GO_TODAY"] = "Ir a Hoy"; -Calendar._TT["NEXT_MONTH"] = "Mes Siguiente (Presione para menu)"; -Calendar._TT["NEXT_YEAR"] = "Ao Siguiente (Presione para menu)"; -Calendar._TT["SEL_DATE"] = "Seleccione fecha"; -Calendar._TT["DRAG_TO_MOVE"] = "Arrastre y mueva"; -Calendar._TT["PART_TODAY"] = " (Hoy)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "Mostrar %s primero"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "Cerrar"; -Calendar._TT["TODAY"] = "Hoy"; -Calendar._TT["TIME_PART"] = "(Shift-)Click o arrastra para cambar el valor"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%dd-%mm-%yy"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %e de %B de %Y"; - -Calendar._TT["WK"] = "Sm"; -Calendar._TT["TIME"] = "Hora:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sv.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sv.js deleted file mode 100644 index db1f4b84c3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-sv.js +++ /dev/null @@ -1,93 +0,0 @@ -// ** I18N - -// Calendar SV language (Swedish, svenska) -// Author: Mihai Bazon, -// Translation team: -// Translator: Leonard Norrgrd -// Last translator: Leonard Norrgrd -// Encoding: iso-latin-1 -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("sndag", - "mndag", - "tisdag", - "onsdag", - "torsdag", - "fredag", - "lrdag", - "sndag"); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. -Calendar._SDN_len = 2; -Calendar._SMN_len = 3; - -// full month names -Calendar._MN = new Array -("januari", - "februari", - "mars", - "april", - "maj", - "juni", - "juli", - "augusti", - "september", - "oktober", - "november", - "december"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "Om kalendern"; - -Calendar._TT["ABOUT"] = -"DHTML Datum/tid-vljare\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"Fr senaste version g till: http://www.dynarch.com/projects/calendar/\n" + -"Distribueras under GNU LGPL. Se http://gnu.org/licenses/lgpl.html fr detaljer." + -"\n\n" + -"Val av datum:\n" + -"- Anvnd knapparna \xab, \xbb fr att vlja r\n" + -"- Anvnd knapparna " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " fr att vlja mnad\n" + -"- Hll musknappen nedtryckt p ngon av ovanstende knappar fr snabbare val."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"Val av tid:\n" + -"- Klicka p en del av tiden fr att ka den delen\n" + -"- eller skift-klicka fr att minska den\n" + -"- eller klicka och drag fr snabbare val."; - -Calendar._TT["PREV_YEAR"] = "Fregende r (hll fr menu)"; -Calendar._TT["PREV_MONTH"] = "Fregende mnad (hll fr menu)"; -Calendar._TT["GO_TODAY"] = "G till dagens datum"; -Calendar._TT["NEXT_MONTH"] = "Fljande mnad (hll fr menu)"; -Calendar._TT["NEXT_YEAR"] = "Fljande r (hll fr menu)"; -Calendar._TT["SEL_DATE"] = "Vlj datum"; -Calendar._TT["DRAG_TO_MOVE"] = "Drag fr att flytta"; -Calendar._TT["PART_TODAY"] = " (idag)"; -Calendar._TT["MON_FIRST"] = "Visa mndag frst"; -Calendar._TT["SUN_FIRST"] = "Visa sndag frst"; -Calendar._TT["CLOSE"] = "Stng"; -Calendar._TT["TODAY"] = "Idag"; -Calendar._TT["TIME_PART"] = "(Skift-)klicka eller drag fr att ndra tid"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A %d %b %Y"; - -Calendar._TT["WK"] = "vecka"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-tr.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-tr.js deleted file mode 100644 index 2164687fbb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-tr.js +++ /dev/null @@ -1,58 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////////////////// -// Turkish Translation by Nuri AKMAN -// Location: Ankara/TURKEY -// e-mail : nuriakman@hotmail.com -// Date : April, 9 2003 -// -// Note: if Turkish Characters does not shown on you screen -// please include falowing line your html code: -// -// -// -////////////////////////////////////////////////////////////////////////////////////////////// - -// ** I18N -Calendar._DN = new Array -("Pazar", - "Pazartesi", - "Sal", - "aramba", - "Perembe", - "Cuma", - "Cumartesi", - "Pazar"); -Calendar._MN = new Array -("Ocak", - "ubat", - "Mart", - "Nisan", - "Mays", - "Haziran", - "Temmuz", - "Austos", - "Eyll", - "Ekim", - "Kasm", - "Aralk"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["TOGGLE"] = "Haftann ilk gnn kaydr"; -Calendar._TT["PREV_YEAR"] = "nceki Yl (Men iin basl tutunuz)"; -Calendar._TT["PREV_MONTH"] = "nceki Ay (Men iin basl tutunuz)"; -Calendar._TT["GO_TODAY"] = "Bugn'e git"; -Calendar._TT["NEXT_MONTH"] = "Sonraki Ay (Men iin basl tutunuz)"; -Calendar._TT["NEXT_YEAR"] = "Sonraki Yl (Men iin basl tutunuz)"; -Calendar._TT["SEL_DATE"] = "Tarih seiniz"; -Calendar._TT["DRAG_TO_MOVE"] = "Tamak iin srkleyiniz"; -Calendar._TT["PART_TODAY"] = " (bugn)"; -Calendar._TT["MON_FIRST"] = "Takvim Pazartesi gnnden balasn"; -Calendar._TT["SUN_FIRST"] = "Takvim Pazar gnnden balasn"; -Calendar._TT["CLOSE"] = "Kapat"; -Calendar._TT["TODAY"] = "Bugn"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y"; -Calendar._TT["TT_DATE_FORMAT"] = "d MM y, DD"; - -Calendar._TT["WK"] = "Hafta"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-zh.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-zh.js deleted file mode 100644 index 4a0feb6b73..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/calendar-zh.js +++ /dev/null @@ -1,119 +0,0 @@ -// ** I18N - -// Calendar ZH language -// Author: muziq, -// Encoding: GB2312 or GBK -// Distributed under the same terms as the calendar itself. - -// full day names -Calendar._DN = new Array -("", - "һ", - "ڶ", - "", - "", - "", - "", - ""); - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("", - "һ", - "", - "", - "", - "", - "", - ""); - -// full month names -Calendar._MN = new Array -("һ", - "", - "", - "", - "", - "", - "", - "", - "", - "ʮ", - "ʮһ", - "ʮ"); - -// short month names -Calendar._SMN = new Array -("һ", - "", - "", - "", - "", - "", - "", - "", - "", - "ʮ", - "ʮһ", - "ʮ"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = ""; - -Calendar._TT["ABOUT"] = -"DHTML Date/Time Selector\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: http://www.dynarch.com/projects/calendar/\n" + -"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + -"\n\n" + -"ѡ:\n" + -"- \xab, \xbb ťѡ\n" + -"- " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " ťѡ·\n" + -"- ϰťɴӲ˵пѡݻ·"; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"ѡʱ:\n" + -"- Сʱӿʹֵһ\n" + -"- סShiftСʱӿʹֵһ\n" + -"- ϶ɽпѡ"; - -Calendar._TT["PREV_YEAR"] = "һ (ס˵)"; -Calendar._TT["PREV_MONTH"] = "һ (ס˵)"; -Calendar._TT["GO_TODAY"] = "ת"; -Calendar._TT["NEXT_MONTH"] = "һ (ס˵)"; -Calendar._TT["NEXT_YEAR"] = "һ (ס˵)"; -Calendar._TT["SEL_DATE"] = "ѡ"; -Calendar._TT["DRAG_TO_MOVE"] = "϶"; -Calendar._TT["PART_TODAY"] = " ()"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "ʾ%s"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "ر"; -Calendar._TT["TODAY"] = ""; -Calendar._TT["TIME_PART"] = "(Shift-)϶ıֵ"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%A, %b %e"; - -Calendar._TT["WK"] = ""; -Calendar._TT["TIME"] = "ʱ:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/cn_utf8.js b/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/cn_utf8.js deleted file mode 100644 index a0ef7c6b3a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/datepicker/lang/cn_utf8.js +++ /dev/null @@ -1,123 +0,0 @@ -// ** I18N - -// Calendar EN language -// Author: Mihai Bazon, -// Encoding: any -// Translator : Niko -// Distributed under the same terms as the calendar itself. - -// For translators: please use UTF-8 if possible. We strongly believe that -// Unicode is the answer to a real internationalized world. Also please -// include your contact information in the header, as can be seen above. - -// full day names -Calendar._DN = new Array -("\u5468\u65e5",//\u5468\u65e5 - "\u5468\u4e00",//\u5468\u4e00 - "\u5468\u4e8c",//\u5468\u4e8c - "\u5468\u4e09",//\u5468\u4e09 - "\u5468\u56db",//\u5468\u56db - "\u5468\u4e94",//\u5468\u4e94 - "\u5468\u516d",//\u5468\u516d - "\u5468\u65e5");//\u5468\u65e5 - -// Please note that the following array of short day names (and the same goes -// for short month names, _SMN) isn't absolutely necessary. We give it here -// for exemplification on how one can customize the short day names, but if -// they are simply the first N letters of the full name you can simply say: -// -// Calendar._SDN_len = N; // short day name length -// Calendar._SMN_len = N; // short month name length -// -// If N = 3 then this is not needed either since we assume a value of 3 if not -// present, to be compatible with translation files that were written before -// this feature. - -// short day names -Calendar._SDN = new Array -("\u5468\u65e5", - "\u5468\u4e00", - "\u5468\u4e8c", - "\u5468\u4e09", - "\u5468\u56db", - "\u5468\u4e94", - "\u5468\u516d", - "\u5468\u65e5"); - -// full month names -Calendar._MN = new Array -("\u4e00\u6708", - "\u4e8c\u6708", - "\u4e09\u6708", - "\u56db\u6708", - "\u4e94\u6708", - "\u516d\u6708", - "\u4e03\u6708", - "\u516b\u6708", - "\u4e5d\u6708", - "\u5341\u6708", - "\u5341\u4e00\u6708", - "\u5341\u4e8c\u6708"); - -// short month names -Calendar._SMN = new Array -("\u4e00\u6708", - "\u4e8c\u6708", - "\u4e09\u6708", - "\u56db\u6708", - "\u4e94\u6708", - "\u516d\u6708", - "\u4e03\u6708", - "\u516b\u6708", - "\u4e5d\u6708", - "\u5341\u6708", - "\u5341\u4e00\u6708", - "\u5341\u4e8c\u6708"); - -// tooltips -Calendar._TT = {}; -Calendar._TT["INFO"] = "\u5173\u4e8e"; - -Calendar._TT["ABOUT"] = -" DHTML \u65e5\u8d77/\u65f6\u95f4\u9009\u62e9\u63a7\u4ef6\n" + -"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) -"For latest version visit: \u6700\u65b0\u7248\u672c\u8bf7\u767b\u9646http://www.dynarch.com/projects/calendar/\u5bdf\u770b\n" + -"\u9075\u5faaGNU LGPL. \u7ec6\u8282\u53c2\u9605 http://gnu.org/licenses/lgpl.html" + -"\n\n" + -"\u65e5\u671f\u9009\u62e9:\n" + -"- \u70b9\u51fb\xab(\xbb)\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e00\u5e74\u5ea6.\n" + -"- \u70b9\u51fb" + String.fromCharCode(0x2039) + "(" + String.fromCharCode(0x203a) + ")\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e2a\u6708\u4efd.\n" + -"- \u957f\u65f6\u95f4\u6309\u7740\u6309\u94ae\u5c06\u51fa\u73b0\u66f4\u591a\u9009\u62e9\u9879."; -Calendar._TT["ABOUT_TIME"] = "\n\n" + -"\u65f6\u95f4\u9009\u62e9:\n" + -"-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u589e\u52a0\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\n" + -"-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u6309\u4f4fShift\u952e\u540e\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u51cf\u5c11\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)."; - -Calendar._TT["PREV_YEAR"] = "\u4e0a\u4e00\u5e74"; -Calendar._TT["PREV_MONTH"] = "\u4e0a\u4e2a\u6708"; -Calendar._TT["GO_TODAY"] = "\u5230\u4eca\u5929"; -Calendar._TT["NEXT_MONTH"] = "\u4e0b\u4e2a\u6708"; -Calendar._TT["NEXT_YEAR"] = "\u4e0b\u4e00\u5e74"; -Calendar._TT["SEL_DATE"] = "\u9009\u62e9\u65e5\u671f"; -Calendar._TT["DRAG_TO_MOVE"] = "\u62d6\u52a8"; -Calendar._TT["PART_TODAY"] = " (\u4eca\u5929)"; - -// the following is to inform that "%s" is to be the first day of week -// %s will be replaced with the day name. -Calendar._TT["DAY_FIRST"] = "%s\u4e3a\u8fd9\u5468\u7684\u7b2c\u4e00\u5929"; - -// This may be locale-dependent. It specifies the week-end days, as an array -// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 -// means Monday, etc. -Calendar._TT["WEEKEND"] = "0,6"; - -Calendar._TT["CLOSE"] = "\u5173\u95ed"; -Calendar._TT["TODAY"] = "\u4eca\u5929"; -Calendar._TT["TIME_PART"] = "(\u6309\u7740Shift\u952e)\u5355\u51fb\u6216\u62d6\u52a8\u6539\u53d8\u503c"; - -// date formats -Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; -Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e\u65e5"; - -Calendar._TT["WK"] = "\u5468"; -Calendar._TT["TIME"] = "\u65f6\u95f4:"; diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/blank.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/blank.htm deleted file mode 100644 index 5a4a5a57c7..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/blank.htm +++ /dev/null @@ -1,9 +0,0 @@ - - - blank_page - - - - - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ca.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ca.js deleted file mode 100644 index 43ecb07cf8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ca.js +++ /dev/null @@ -1,42 +0,0 @@ -// CA lang variables by Marc Bria and Marc Folch - -tinyMCE.addToLang('',{ -bold_desc : 'Negreta (Ctrl+B)', -italic_desc : 'Cursiva (Ctrl+I)', -underline_desc : 'Subratllat (Ctrl+U)', -striketrough_desc : 'Barrat', -justifyleft_desc : 'Alinea a l\'esquerra', -justifycenter_desc : 'Centrat', -justifyright_desc : 'Alinea a la dreta', -justifyfull_desc : 'Justificat', -bullist_desc : 'Llista sense ordenar', -numlist_desc : 'Llista ordenada', -outdent_desc : 'Disminueix el sagnat', -indent_desc : 'Augmenta el sagnat', -undo_desc : 'Desfés (Ctrl+Z)', -redo_desc : 'Refés (Ctrl+Y)', -link_desc : 'Insereix enllaç', -unlink_desc : 'Treu enllaç', -image_desc : 'Insereix imatge', -cleanup_desc : 'Neteja el codi', -focus_alert : 'Làrea de l\'editor ha de ser enfocada abans dexecutar aquesta comanda.', -edit_confirm : 'Vols utilitzar el mode WYSIWYG per a aquesta àrea de text?', -insert_link_title : 'Insereix/edita enllaà', -insert : 'Insereix', -update : 'Insereix', -cancel : 'Cancel·la', -insert_link_url : 'Adreça de l\'enllaç', -insert_link_target : 'Destí', -insert_link_target_same : 'Open link in the same window', -insert_link_target_same : 'Obre l\'enllaç a la mateixa finestra', -insert_link_target_blank : 'Obre l\'enllaç en una finestra nova', -insert_image_title : 'Insereix/edita imatge', -insert_image_src : 'URL de la imatge', -insert_image_alt : 'Descripció de la imatge', -help_desc : 'Ajuda', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Copiar, retallar i enganxar no és possible amb Mozilla i Firefox.\nVols més informació sobre aquesta qëestió?', -popup_blocked : 'Ho sentim, però hem detectat que el bloqueig de finestres del vostre navegador ha bloquejat una finestra amb funcions del programa. Hauríeu de deshabilitar el bloqueig de finestres en aquesta web per poder utilitzar completament aquesta eina.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/cs.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/cs.js deleted file mode 100644 index 55578f3bd6..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/cs.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Czech lang variables - * encoding: utf-8 - * - * @author Michi - * @author Pavel Novák - * @author Josef Klimosz - * - * $Id: cs.js,v 1.6 2005/10/18 13:59:21 spocke Exp $ - */ - - -tinyMCE.addToLang('',{ -bold_desc : 'Tučně', -italic_desc : 'Kurzíva', -underline_desc : 'Podtržení', -striketrough_desc : 'Přeškrtnutí', -justifyleft_desc : 'Zarovnání vlevo', -justifycenter_desc : 'Zarovnání na střed', -justifyright_desc : 'Zarovnání vpravo', -justifyfull_desc : 'Zarovnání do bloku', -bullist_desc : 'Seznam s odrážkami', -numlist_desc : 'Číslovaný seznam', -outdent_desc : 'Snížit odsazení', -indent_desc : 'Zvýšit odsazení', -undo_desc : 'Zpět', -redo_desc : 'Znovu', -link_desc : 'Vložit odkaz', -unlink_desc : 'Zrušit odkaz', -image_desc : 'Vložit obrázek', -cleanup_desc : 'Vyčistit kód', -focus_alert : 'Před použitím tohoto příkazu musí být kurzor v okně editoru.', -edit_confirm : 'Chcete použít WYSIWYG editaci pro tento text?', -insert_link_title : 'Vložit/upravit odkaz', -insert : 'Vložit', -update : 'Změnit', -cancel : 'Zrušit', -insert_link_url : 'URL odkazu', -insert_link_target : 'Cíl', -insert_link_target_same : 'Otevřít odkaz ve stejném okně', -insert_link_target_blank : 'Otevřít odkaz v novém okně', -insert_image_title : 'Vložit/upravit obrázek', -insert_image_src : 'URL obrázku', -insert_image_alt : 'Popis obrázku', -help_desc : 'Nápověda', -bold_img : 'bold.gif', -italic_img : 'italic.gif', -underline_img : "underline.gif", -clipboard_msg : 'Funkce Kopírovat/vyjmout/vložit nejsou použitelné v Mozille a Firefoxu.\nChcete více informací o tomto problému?', -popup_blocked : 'Omlouváme se, ale blokovač vyskakovacích oken neumožnil otevřít okno, které zprostředkovává funkčnost aplikace. Musíte vypnout blokování vyskakovacích oken na tomto webu, abyste využili plné funkčnosti.' -}); - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/cy.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/cy.js deleted file mode 100644 index 6ef0f6c0f6..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/cy.js +++ /dev/null @@ -1,41 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Bold (Ctrl+B)', -italic_desc : 'Italig (Ctrl+I)', -underline_desc : 'Tanlinellu (Ctrl+U)', -striketrough_desc : 'Llinell drwodd', -justifyleft_desc : 'Unioni i\'r chwith', -justifycenter_desc : 'Unioni i\'r canol', -justifyright_desc : 'Unioni i\'r dde', -justifyfull_desc : 'Unioni llawn', -bullist_desc : 'Rhestr heb drefn', -numlist_desc : 'Rhestr mewn trefn', -outdent_desc : 'Lleihau mewnoliad', -indent_desc : 'Cynyddu mewnoliad', -undo_desc : 'Dadwneud (Ctrl+Z)', -redo_desc : 'Ailwneud (Ctrl+Y)', -link_desc : 'Mewnosod/golygu dolen', -unlink_desc : 'Dadgysylltu', -image_desc : 'Mewnosod/golygu delwedd', -cleanup_desc : 'Tacluso côd', -focus_alert : 'Rhaid rhoi ffocws i\'r golygydd cyn defnyddio\'r gorchymyn hwn.', -edit_confirm : 'Wyt ti eisiau defnyddio\'r dull WYSIWYG ar gyfer yr ardal destun hon?', -insert_link_title : 'Mewnosod/golygu dolen', -insert : 'Mewnosod', -update : 'Diweddaru', -cancel : 'Diddymu', -insert_link_url : 'URL dolen', -insert_link_target : 'Targed', -insert_link_target_same : 'Agor dolen yn yr un ffenest', -insert_link_target_blank : 'Agor dolen mewn ffenest newydd', -insert_image_title : 'Mewnosod/golygu delwedd', -insert_image_src : 'URL delwedd', -insert_image_alt : 'Disgrifiad delwedd', -help_desc : 'Cymorth', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Dyw Copïo/Torri/Gludo ddim ar gael ym Mozilla na Firefox.\nHoffet ti ragor o wybodaeth ynghylch hyn?', -popup_blocked : 'Mae\'n ddrwg gennym, ond mae dy declyn atal ffenestri naid wedi analluogi ffenest sy\'n cynnig nodweddion i\'r rhaglen. Bydd rhaid i ti analluogi atal ffenestri naid ar gyfer y safle hon er mwyn cael y defnydd gorau o\'r rhaglen hwn.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/da.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/da.js deleted file mode 100644 index 596f0c04b8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/da.js +++ /dev/null @@ -1,41 +0,0 @@ -// DK lang variables - Transl.:Jan Moelgaard, Bo Frederiksen, John Dalsgaard - Corr.: Ronny Buelund - -tinyMCE.addToLang('',{ -bold_desc : 'Fed', -italic_desc : 'Kursiv', -underline_desc : 'Understreg', -striketrough_desc : 'Gennemstreg', -justifyleft_desc : 'Venstrejusteret', -justifycenter_desc : 'Centrer', -justifyright_desc : 'Højrejusteret', -justifyfull_desc : 'Lige margin', -bullist_desc : 'Liste med punkttegn', -numlist_desc : 'Liste med tal', -outdent_desc : 'Ryk til venstre', -indent_desc : 'Ryk til højre', -undo_desc : 'Fortryd', -redo_desc : 'Gentag', -link_desc : 'Indsæt link', -unlink_desc : 'Fjern link', -image_desc : 'Indsæt billede', -cleanup_desc : 'Ryd op i koden', -focus_alert : 'Der skal sættes fokus på sessionen, før man kan bruge denne kommando', -edit_confirm : 'Vil du bruge WYSIWYG mode til dette tekstområde?', -insert_link_title : 'Indsæt eller rediger link', -insert : 'Indsæt', -update : 'Opdater', -cancel : 'Fortryd', -insert_link_url : 'Linkadresse', -insert_link_target : 'Destination', -insert_link_target_same : 'Luk linket op i samme vindue', -insert_link_target_blank : 'Luk linket op i et nyt vindue', -insert_image_title : 'Indsæt / rediger billede', -insert_image_src : 'Billedets adresse', -insert_image_alt : 'Alternativ tekst', -help_desc : 'Hjælp', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Kopier/Klip/Indsæt virker ikke i Mozilla og Firefox.\nVil du vide mere om dette?', -popup_blocked : 'Beklager, men din browser blokerer for pop-up-vinduer. Skal du bruge denne editor fuldt ud, skal pop-up-vinduer være tilladt.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/de.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/de.js deleted file mode 100644 index 405f00f8b9..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/de.js +++ /dev/null @@ -1,41 +0,0 @@ -// DE lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Fett (Strg+B)', -italic_desc : 'Kursiv (Strg+I)', -underline_desc : 'Unterstrichen (Strg+U)', -striketrough_desc : 'Durchgestrichen', -justifyleft_desc : 'Linksbündig', -justifycenter_desc : 'Zentriert', -justifyright_desc : 'Rechtsbündig', -justifyfull_desc : 'Blocksatz', -bullist_desc : 'Aufzählungszeichen', -numlist_desc : 'Nummerierung', -outdent_desc : 'Einzug verkleinern', -indent_desc : 'Einzug vergrößern', -undo_desc : 'Rückgängig (Strg+Z)', -redo_desc : 'Wiederholen (Strg+Y)', -link_desc : 'Link einfügen/bearbeiten', -unlink_desc : 'Link entfernen', -image_desc : 'Bild einfügen/bearbeiten', -cleanup_desc : 'Unsauberen Code aufräumen', -focus_alert : 'Klicken Sie bitte vor Benutzung dieses Befehls auf das Editorfenster.', -edit_confirm : 'Wollen Sie den WYSIWYG-Modus für dieses Textfeld benutzen?', -insert_link_title : 'Link einfügen/bearbeiten', -insert : 'Einfügen', -update : 'Aktualisieren', -cancel : 'Abbrechen', -insert_link_url : 'Link-URL', -insert_link_target : 'Ziel', -insert_link_target_same : 'Link im gleichen Fenster öffnen', -insert_link_target_blank : 'Link in neuem Fenster öffnen', -insert_image_title : 'Bild einfügen/bearbeiten', -insert_image_src : 'Bild-URL', -insert_image_alt : 'Bild-Beschreibung', -help_desc : 'Hilfe', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Kopieren/Ausschneiden/Einfügen ist in Mozilla und Firefox nicht verfügbar.\nWollen Sie mehr Informationen darüber erhalten?', -popup_blocked : 'Ihr Popup-Blocker hat verhindert, dass das Bearbeitungsfenster des Editors geöffnet werden konnte. Bitte deaktivieren Sie den Popup-Schutz für diese Seite.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/el.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/el.js deleted file mode 100644 index c06f1807ea..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/el.js +++ /dev/null @@ -1,42 +0,0 @@ -// Greek lang variables by Jacaranda Bill -// Revised by Dimitris Giannitsaros / MediSign SA - -tinyMCE.addToLang('',{ -bold_desc : ' ', -italic_desc : ' ', -underline_desc : '', -striketrough_desc : ' ', -justifyleft_desc : ' ', -justifycenter_desc : ' ', -justifyright_desc : ' ', -justifyfull_desc : ' ', -bullist_desc : '', -numlist_desc : '', -outdent_desc : ' ', -indent_desc : ' ', -undo_desc : '', -redo_desc : ' ', -link_desc : '/ -', -unlink_desc : ' -', -image_desc : '/ ', -cleanup_desc : ' ', -focus_alert : ' .', -edit_confirm : ' WYSIWYG ;', -insert_link_title : '/ -', -insert : '', -update : '', -cancel : '', -insert_link_url : '', -insert_link_target : '', -insert_link_target_same : ' ', -insert_link_target_blank : ' ', -insert_image_title : '/ ', -insert_image_src : '', -insert_image_alt : '', -help_desc : '', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : ' // Mozilla Firefox.\n ;', -popup_blocked : ' popup-blocker . popup-blocker site, .' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/en.js deleted file mode 100644 index c093eafa04..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/en.js +++ /dev/null @@ -1,41 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Bold (Ctrl+B)', -italic_desc : 'Italic (Ctrl+I)', -underline_desc : 'Underline (Ctrl+U)', -striketrough_desc : 'Strikethrough', -justifyleft_desc : 'Align left', -justifycenter_desc : 'Align center', -justifyright_desc : 'Align right', -justifyfull_desc : 'Align full', -bullist_desc : 'Unordered list', -numlist_desc : 'Ordered list', -outdent_desc : 'Outdent', -indent_desc : 'Indent', -undo_desc : 'Undo (Ctrl+Z)', -redo_desc : 'Redo (Ctrl+Y)', -link_desc : 'Insert/edit link', -unlink_desc : 'Unlink', -image_desc : 'Insert/edit image', -cleanup_desc : 'Cleanup messy code', -focus_alert : 'A editor instance must be focused before using this command.', -edit_confirm : 'Do you want to use the WYSIWYG mode for this textarea?', -insert_link_title : 'Insert/edit link', -insert : 'Insert', -update : 'Update', -cancel : 'Cancel', -insert_link_url : 'Link URL', -insert_link_target : 'Target', -insert_link_target_same : 'Open link in the same window', -insert_link_target_blank : 'Open link in a new window', -insert_image_title : 'Insert/edit image', -insert_image_src : 'Image URL', -insert_image_alt : 'Image description', -help_desc : 'Help', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?', -popup_blocked : 'Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/es.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/es.js deleted file mode 100644 index 2e9abf4cbb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/es.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * ES lang variables - * - * Authors : Alvaro Velasco, - * Adolfo Sanz De Diego (asanzdiego) , - * Carlos C Soto (eclipxe) - * Eneko Castresana Vara - * Last Updated : July 14, 2006 - * TinyMCE Version : 2.0.6.1 - */ - - -tinyMCE.addToLang('',{ -bold_desc : 'Negrita (Ctrl+B)', -italic_desc : 'Cursiva (Ctrl+I)', -underline_desc : 'Subrayado (Ctrl+U)', -striketrough_desc : 'Tachado', -justifyleft_desc : 'Alinear a la izquierda', -justifycenter_desc : 'Alinear al centro', -justifyright_desc : 'Alinear a la derecha', -justifyfull_desc : 'Alinear justificado', -bullist_desc : 'Lista sin ordenar', -numlist_desc : 'Lista ordenada', -outdent_desc : 'Disminuir sangría', -indent_desc : 'Aumentar sangría', -undo_desc : 'Deshacer', -redo_desc : 'Rehacer', -link_desc : 'Insertar enlace', -unlink_desc : 'Quitar enlace', -image_desc : 'Insertar imagen', -cleanup_desc : 'Limpiar codigo', -focus_alert : 'Una instanacia del editor debe ser enfocada antes de usar este comando.', -edit_confirm : '¿Quieres usar el modo WYSIWYG (What You See Is What You Get - "lo que ves es lo que obtienes") para esta area de texto?', -insert_link_title : 'Insertar/editar enlace', -insert : 'Insertar', -update : 'Actualizar', -cancel : 'Cancelar', -insert_link_url : 'Dirección del enlace', -insert_link_target : 'Destino', -insert_link_target_same : 'Abrir enlace en la misma ventana', -insert_link_target_blank : 'Abrir enlace en una ventana nueva', -insert_image_title : 'Insertar/editar imagen', -insert_image_src : 'Dirección de la imagen', -insert_image_alt : 'Descripción de la imagen', -help_desc : 'Ayuda', -bold_img : "bold_es.gif", -italic_img : "italic_es.gif", -underline_img : "underline_es.gif", -clipboard_msg : 'No se pueden utilizar los comandos Copiar / Cortar / Pegar en Mozilla y en Firefox.\r\nUse el teclado Copiar (Ctrl+C) / Cortar (Ctrl+X) / Pegar (Ctrl+V)\r\n¿Quieres obtener más información?', -popup_blocked : 'Lo siento, pero tu bloqueador de popups ha desactivado una ventana que ha lanzado la aplicación. Debes desactivar tu bloqueador de popups para tener toda la funcionalad de la aplicación.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fa.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fa.js deleted file mode 100644 index 46623ad735..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fa.js +++ /dev/null @@ -1,46 +0,0 @@ -// IR lang variables -// Persian (Farsi) language pack (for IRAN) -// By: Morteza Zafari -// Lost@LostLord.com -// http://www.LostLord.com - -tinyMCE.addToLang('',{ -dir : 'rtl', -bold_desc : '????', -italic_desc : '????', -underline_desc : '??? ?? ???', -striketrough_desc : '?? ?????', -justifyleft_desc : '?? ???', -justifycenter_desc : '??? ???', -justifyright_desc : '???? ???', -justifyfull_desc : '????? ???', -bullist_desc : '????', -numlist_desc : '???? ????', -outdent_desc : '???? ?????', -indent_desc : '?????? ?????', -undo_desc : '????????', -redo_desc : '????????', -link_desc : '??? ? ?????? ????', -unlink_desc : '??? ????', -image_desc : '??? ? ?????? ???', -cleanup_desc : '??????? ??', -focus_alert : 'A editor instance must be focused before using this command.', -edit_confirm : 'Do you want to use the WYSIWYG mode for this textarea?', -insert_link_title : '??? ? ?????? ????', -insert : ' ????? ', -update : ' ????? ', -cancel : ' ?????? ', -insert_link_url : 'URL ????', -insert_link_target : '????', -insert_link_target_same : '???? ?? ?? ???? ???? ??? ??', -insert_link_target_blank : '???? ?? ?? ???? ???? ??? ??', -insert_image_title : '??? ? ?????? ???', -insert_image_src : 'URL ???', -insert_image_alt : '?????', -help_desc : '??????', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?', -popup_blocked : 'Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fi.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fi.js deleted file mode 100644 index 9c1589e3d3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fi.js +++ /dev/null @@ -1,42 +0,0 @@ -// FI lang variables by Urho Konttori from Absolutions -// Updated by Tuomo Aura, Ateco.fi - -tinyMCE.addToLang('',{ -bold_desc : 'Lihavoi (Ctrl+B)', -italic_desc : 'Kursivoi (Ctrl+I)', -underline_desc : 'Alleviivaa (Ctrl+U)', -striketrough_desc : 'Yliviivaa', -justifyleft_desc : 'Vasen tasaus', -justifycenter_desc : 'Keskitys', -justifyright_desc : 'Oikea tasaus', -justifyfull_desc : 'Pakotettu tasaus', -bullist_desc : 'Luettelo', -numlist_desc : 'Numeroitu lista', -outdent_desc : 'Poista sisennys', -indent_desc : 'Sisennys', -undo_desc : 'Peruuta (Ctrl+Z)', -redo_desc : 'Tee uudelleen (Ctrl+Y)', -link_desc : 'Lisää linkki', -unlink_desc : 'Poista linkki', -image_desc : 'Lisää kuva', -cleanup_desc : 'Siisti koodi', -focus_alert : 'Teksinkäsittelyalue täytyy olla valittuna ennen tämän komennon suorittamista.', -edit_confirm : 'Haluatko käyttää WYSIWYG-tilaa tähän tekstialueeseen?', -insert_link_title : 'Lisää/muokkaa linkkiä', -insert : 'Lis', -update : 'Pivit', -cancel : 'Peruuta', -insert_link_url : 'Linkin URL', -insert_link_target : 'Kohde', -insert_link_target_same : 'Avaa linkki samassa ikkunassa', -insert_link_target_blank : 'Avaa linkki uudessa ikkunassa', -insert_image_title : 'Lisää/muokkaa kuvaa', -insert_image_src : 'Kuvan URL', -insert_image_alt : 'Kuvan selite', -help_desc : 'Apua', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Leikkaus/Kopiointi/Liitäminen ei onnistu Mozilla eikä Firefox -selaimilla tietoturvasta johtuen. \n Haluatko lisätietoa aiheesta?', -popup_blocked : 'Koneellasi oleva popup-ikkunoiden esto-ohjelma estää tarvittavan ikkunan avaamisen. Sinun pitää sallia popup-ikkunoiden näyttäminen tällä sivustolla ohjelman asetuksista.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fr.js deleted file mode 100644 index ed5b30e0d4..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fr.js +++ /dev/null @@ -1,42 +0,0 @@ -// FR lang variables -// Modified by Motte, last updated 2006-03-23 - -tinyMCE.addToLang('',{ -bold_desc : 'Gras', -italic_desc : 'Italique', -underline_desc : 'Souligné', -striketrough_desc : 'Barré', -justifyleft_desc : 'Aligner à gauche', -justifycenter_desc : 'Centrer', -justifyright_desc : 'Aligner à droite', -justifyfull_desc : 'Justifier', -bullist_desc : 'Liste à puces', -numlist_desc : 'Liste numérotée', -outdent_desc : 'Diminuer le retrait', -indent_desc : 'Augmenter le retrait', -undo_desc : 'Annuler', -redo_desc : 'Restaurer', -link_desc : 'Insérer/Modifier un lien', -unlink_desc : 'Supprimer le lien', -image_desc : 'Insérer/Modifier une image', -cleanup_desc : 'Nettoyer le code', -focus_alert : 'Une instance de l\éditeur doit avoir le focus avant d\'utiliser cette commande.', -edit_confirm : 'Voulez-vous utiliser le mode WYSIWYG pour cette zone d\'édition de texte ?', -insert_link_title : 'Gestionnaire d\'hyperlien', -insert : 'Insérer', -update : 'Appliquer', -cancel : 'Annuler', -insert_link_url : 'Lien URL', -insert_link_target : 'Cible', -insert_link_target_same : 'Ouvrir dans la même fenêtre', -insert_link_target_blank : 'Ouvrir dans une nouvelle fenêtre', -insert_image_title : 'Gestionnaire d\'image', -insert_image_src : 'URL de l\'image', -insert_image_alt : 'Equivalent textuel', -help_desc : 'Aide', -bold_img : "bold_fr.gif", -italic_img : "italic.gif", -underline_img : "underline_fr.gif", -clipboard_msg : 'Pour des raisons de sécurité, les fonctions Copier , Couper et Coller \nne sont pas disponibles dans Mozilla et Firefox.\n\n\nVoulez-vous plus d\'information à ce sujet?\n', -popup_blocked : 'Désolé, mais votre bloqueur de pop-up empêche le fonctionnement normal de l\'application.\n\n\nPour utiliser cet outil, veuillez régler votre navigateur pour qu\'il accepte les pop-up de ce site.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fr_ca.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fr_ca.js deleted file mode 100644 index 4fd6e908f7..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/fr_ca.js +++ /dev/null @@ -1,40 +0,0 @@ -// Canadian French lang variables by Virtuelcom - -tinyMCE.addToLang('',{ -bold_desc : 'Gras', -italic_desc : 'Italique', -underline_desc : 'Souligner', -striketrough_desc : 'Barrer', -justifyleft_desc : 'Aligner gauche', -justifycenter_desc : 'Aligner au centre', -justifyright_desc : 'Aligner droite', -justifyfull_desc : 'Justifier', -bullist_desc : 'Puces', -numlist_desc : 'Numrotation', -outdent_desc : 'Rduire le retrait', -indent_desc : 'Augmenter le retrait', -undo_desc : 'Annuler la dernire action', -redo_desc : 'Refaire la dernire action annule', -link_desc : 'Insrer un hyperlien', -unlink_desc : 'Supprimer un hyperlien', -image_desc : 'Insrer une image', -cleanup_desc : 'Nettoyer le code', -focus_alert : 'Un diteur doit tre slectionn pour utiliser cette fonction.', -edit_confirm : 'Dsirez-vous utiliser l\'diteur pour modifier cette zone?', -insert_link_title : 'Insrer / Modifier un hyperlien', -insert : 'Insrer', -update : 'Insrer', -cancel : 'Annuler', -insert_link_url : 'Adresse URL', -insert_link_target : 'Destination', -insert_link_target_same : 'Ouvrir dans la mme fentre', -insert_link_target_blank : 'Ouvrir dans une nouvelle fentre', -insert_image_title : 'Insrer / Modifier une image', -insert_image_src : 'Adresse de l\'image', -insert_image_alt : 'Description de l\'image', -help_desc : 'Aide', -bold_img : "bold_fr.gif", -italic_img : "italic.gif", -underline_img : "underline_fr.gif", -clipboard_msg : 'Copier/Couper/Coller ne sont pas disponibles dans Mozilla et FireFox.\nDsirez-vous consulter de plus amples informations ce sujet?' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/he.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/he.js deleted file mode 100644 index 44719a82d0..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/he.js +++ /dev/null @@ -1,41 +0,0 @@ -// HE lang variables by Liron Newman, http://eesh.net - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : ' (Ctrl+I)', -underline_desc : ' (Ctrl+U)', -striketrough_desc : ' ', -justifyleft_desc : ' ', -justifycenter_desc : ' ', -justifyright_desc : ' ', -justifyfull_desc : ' ', -bullist_desc : ' ', -numlist_desc : ' ', -outdent_desc : ' ', -indent_desc : ' ', -undo_desc : ' (Ctrl+Z)', -redo_desc : ' (Ctrl+Y)', -link_desc : '/ ', -unlink_desc : ' ', -image_desc : '/ ', -cleanup_desc : ' ', -focus_alert : ' .', -edit_confirm : ' (WYSIWYG) ?', -insert_link_title : '/ ', -insert : '', -update : '', -cancel : '', -insert_link_url : ' (URL) ', -insert_link_target : '', -insert_link_target_same : ' ', -insert_link_target_blank : ' ', -insert_image_title : '/ ', -insert_image_src : ' (URL) ', -insert_image_alt : ' ', -help_desc : '', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : ' // Mozilla -Firefox.\n ?', -popup_blocked : ', . .' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/hu.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/hu.js deleted file mode 100644 index aebcc3695e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/hu.js +++ /dev/null @@ -1,41 +0,0 @@ -// HU lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Flkvr', -italic_desc : 'Dlt', -underline_desc : 'Alhzott', -striketrough_desc : 'thzott', -justifyleft_desc : 'Balra igaztott', -justifycenter_desc : 'Kzpre igaztott', -justifyright_desc : 'Jobbra igaztott', -justifyfull_desc : 'Telejesen igaztott', -bullist_desc : 'Rendezetlen lista', -numlist_desc : 'Rendezett lista', -outdent_desc : 'Kihzs', -indent_desc : 'Behzs', -undo_desc : 'visszavons', -redo_desc : 'Ismt', -link_desc : 'Link hozzadsa/szerkesztse', -unlink_desc : 'Link megszntetse', -image_desc : 'Kp beillesztse/szerkesztse', -cleanup_desc : 'Rendetlen kd tiszttsa', -focus_alert : 'Egy szerkesztablakra muszj fkuszlni ennek a parancsnak a hasznlata eltt.', -edit_confirm : 'Szeretnd hasznlni ezt a WYSIWYG mdot ehhez a szvegmezhz?', -insert_link_title : 'Link beillesztse/szerkesztse', -insert : 'Beilleszts', -update : 'Frissts', -cancel : 'Mgse', -insert_link_url : 'Link URL', -insert_link_target : 'Cl', -insert_link_target_same : 'Link megnyitsa ugyanabban az ablakban', -insert_link_target_blank : 'Link megnyitsa j ablakban', -insert_image_title : 'Kp beillesztse/szerkesztse', -insert_image_src : 'Kp URL', -insert_image_alt : 'Kp lersa', -help_desc : 'Sg', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'A Msols/Kivgs/Beilleszts nem elrhet Mozillban and Firefox-ban.\nSzeretnl tbb informcit errl a problmrl?', -popup_blocked : 'Sajnlom, de szrevettem, hogy a popup-blokkold letiltotta az ablakot, ami biztostja ennek az alkalmazsnak a mkdst. Meg kell szntetned a popup-blokkolst ennek a segdeszkznek a teljes hasznlathoz.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/is.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/is.js deleted file mode 100644 index 9bb4f9f2f3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/is.js +++ /dev/null @@ -1,41 +0,0 @@ -// Iceland lang variables by Johannes Birgir Jensson - -tinyMCE.addToLang('',{ -bold_desc : 'Feitletrun (Ctrl+B)', -italic_desc : 'Skáletrun (Ctrl+I)', -underline_desc : 'Undirstrikun (Ctrl+U)', -striketrough_desc : 'Strik í gegn', -justifyleft_desc : 'Vinstri jöfnun', -justifycenter_desc : 'Miðju jöfnun', -justifyright_desc : 'Hægri jöfnun', -justifyfull_desc : 'Samfelld jöfnun', -bullist_desc : 'raðaður listi', -numlist_desc : 'Raðaður listi', -outdent_desc : 'tdráttur', -indent_desc : 'Inndráttur', -undo_desc : 'Afturkalla (Ctrl+Z)', -redo_desc : 'Endurkalla (Ctrl+Y)', -link_desc : 'Setja inn/breyta hlekk', -unlink_desc : 'Fjarlægja hlekk', -image_desc : 'Setja inn/breyta mynd', -cleanup_desc : 'Hreinsa ruslkóða', -focus_alert : 'Setja þarf bendil í ritsvæði áður en þessi skipun er notuð.', -edit_confirm : 'Viltu nota WYSIWYG á þessum reit?', -insert_link_title : 'Nýr/breyttur hlekkur', -insert : 'Setja inn', -update : 'Uppfæra', -cancel : 'Hætta við', -insert_link_url : 'Slóð hlekks', -insert_link_target : 'Gluggi', -insert_link_target_same : 'Opna tengil í sama glugga', -insert_link_target_blank : 'Opna tengil í nýjum glugga', -insert_image_title : 'Ný/breytt mynd', -insert_image_src : 'Slóð myndar', -insert_image_alt : 'Lýsing myndar', -help_desc : 'Hjálp', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Afrita/skeyta/lma er ekki leyft vafranum.\nViltu f frekari upplsingar um hvernig a stilla a?', -popup_blocked : 'Afsaki, gluggavrn vafrans hefur meina glugga, sem umsjnarkerfi notar, leyfi til ess a opnast. verur a leyfa essum vef a opna sprettiglugga (popup) til a geta ntt ennan mguleika.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/it.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/it.js deleted file mode 100644 index 06b1e16a67..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/it.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * IT lang variables - * - * Author : Luciano Vernaschi - * Last Updated : Mar. 1st, 2007 - * TinyMCE Version : 2.1.0 - */ - -tinyMCE.addToLang('',{ -bold_desc : 'Grassetto (Ctrl+B)', -italic_desc : 'Corsivo (Ctrl+I)', -underline_desc : 'Sottolineato (Ctrl+U)', -striketrough_desc : 'Barrato', -justifyleft_desc : 'Allinea a sinistra', -justifycenter_desc : 'Allinea al centro', -justifyright_desc : 'Allinea a destra', -justifyfull_desc : 'Giustifica', -bullist_desc : 'Elenco puntato', -numlist_desc : 'Elenco numerato', -outdent_desc : 'Riduci rientro', -indent_desc : 'Aumenta rientro', -undo_desc : 'Annulla (Ctrl+Z)', -redo_desc : 'Ripeti (Ctrl+Y)', -link_desc : 'Inserisci o modifica link', -unlink_desc : 'Elimina link', -image_desc : 'Inserisci o modifica immagine', -cleanup_desc : 'Pulisci il codice HTML', -focus_alert : 'Fare clic su un\' istanza dell\'editor prima di eseguire questo comando', -edit_confirm : 'Vuoi usare l\'editor visuale in quest\'area di testo?', -insert_link_title : 'Inserisci o modifica link', -insert : 'Inserisci', -update : 'Modifica', -cancel : 'Annulla', -insert_link_url : 'URL del collegamento', -insert_link_target : 'Destinazione', -insert_link_target_same : 'Apri il link nella stessa finestra', -insert_link_target_blank : 'Apri il link in una nuova finestra', -insert_image_title : 'Inserisci o modifica immagine', -insert_image_src : 'URL dell\'immagine', -insert_image_alt : 'Descrizione', -help_desc : 'Aiuto', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Le operazioni di taglia, copia e incolla non sono disponibili in Firefox. Vuoi ricevere ulteriori informazioni al riguardo?', -popup_blocked : 'Un blocco popup sta impedendo l\'utilizzo di alcune funzionalità. Dovresti disabilitare il blocco per questo sito.', -insert_image_delta_width : 50, -insert_link_delta_width : 75 -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja.js deleted file mode 100644 index d72d4c44cb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja.js +++ /dev/null @@ -1,41 +0,0 @@ -// JA lang variables - -tinyMCE.addToLang('',{ -bold_desc : '太字 (Ctrl+B)', -italic_desc : '斜体 (Ctrl+I)', -underline_desc : '下線 (Ctrl+U)', -striketrough_desc : '打ち消し線', -justifyleft_desc : '左揃え', -justifycenter_desc : '中央揃え', -justifyright_desc : '右揃え', -justifyfull_desc : '均等割り付け', -bullist_desc : '箇条書き', -numlist_desc : '段落番号', -outdent_desc : 'インデント解除', -indent_desc : 'インデント', -undo_desc : '元に戻す (Ctrl+Z)', -redo_desc : 'やり直し (Ctrl+Y)', -link_desc : 'ハイパーリンク', -unlink_desc : 'ハイパーリンクの削除', -image_desc : '画像', -cleanup_desc : 'コード整理', -focus_alert : 'このコマンドを使う前にエディタ上のどこかを選択する必要があります。', -edit_confirm : 'WYSIWYGモードでこのテキストエリアを編集しますか?', -insert_link_title : 'ハイパーリンク', -insert : '挿入', -update : '更新', -cancel : 'キャンセル', -insert_link_url : 'URL', -insert_link_target : 'ターゲット', -insert_link_target_same : '同じウィンドウで開く', -insert_link_target_blank : '新しいウィンドウで開く', -insert_image_title : '画像の登録', -insert_image_src : 'URL', -insert_image_alt : '画像の説明', -help_desc : 'ヘルプ', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'コピー/切り取り/貼り付けはMozillaまたはFirefoxでは使用できません\nこの警告に関する詳細情報を表示しますか?', -popup_blocked : 'ポップアップブロックが有効になっているためエディタの機能が一部制約されています\nこのツールを使用する場合はこのサイトに対するポップアップブロックを無効にしてください。' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_euc-jp.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_euc-jp.js deleted file mode 100644 index cc318db2a1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_euc-jp.js +++ /dev/null @@ -1,41 +0,0 @@ -// Japanese ܸ EUC-JP language pack - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : ' (Ctrl+I)', -underline_desc : ' (Ctrl+U)', -striketrough_desc : 'ä', -justifyleft_desc : '·', -justifycenter_desc : '·', -justifyright_desc : '·', -justifyfull_desc : 'ξü·', -bullist_desc : 'վ', -numlist_desc : 'ֹ', -outdent_desc : 'ȥǥ', -indent_desc : 'ǥ', -undo_desc : '᤹ (Ctrl+Z)', -redo_desc : '֤ (Ctrl+Y)', -link_desc : '󥯤Խ', -unlink_desc : '󥯤򳰤', -image_desc : '᡼', -cleanup_desc : 'ɤ', -focus_alert : 'A editor instance must be focused before using this command.', -edit_confirm : 'Do you want to use the WYSIWYG mode for this textarea?', -insert_link_title : '󥯤Խ', -insert : '', -update : '', -cancel : '󥻥', -insert_link_url : '󥯤URL', -insert_link_target : 'å', -insert_link_target_same : 'Ʊɥǥ󥯤򳫤', -insert_link_target_blank : 'ɥǥ󥯤򳫤', -insert_image_title : '᡼Խ', -insert_image_src : '᡼URL', -insert_image_alt : 'إƥ', -help_desc : 'إ', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'ԡ/ڤ/Žդ Mozilla Firefox̵Ǥ\nܤɽޤ?', -popup_blocked : 'ݥåץå׶ػߤƤΤǡݥåץåפͭˤƤ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_shift_jis.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_shift_jis.js deleted file mode 100644 index dbb8136178..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_shift_jis.js +++ /dev/null @@ -1,41 +0,0 @@ -// Japanese { VtgJIS language pack - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : 'Α (Ctrl+I)', -underline_desc : ' (Ctrl+U)', -striketrough_desc : '', -justifyleft_desc : '', -justifycenter_desc : '', -justifyright_desc : 'E', -justifyfull_desc : '[', -bullist_desc : 'ӏ', -numlist_desc : 'iԍ', -outdent_desc : 'AEgfg', -indent_desc : 'Cfg', -undo_desc : 'ɖ߂ (Ctrl+Z)', -redo_desc : 'JԂ (Ctrl+Y)', -link_desc : 'N}EҏW', -unlink_desc : 'NO', -image_desc : 'C[W}', -cleanup_desc : 'R[h𐮔', -focus_alert : 'A editor instance must be focused before using this command.', -edit_confirm : 'Do you want to use the WYSIWYG mode for this textarea?', -insert_link_title : 'N}EҏW', -insert : '}', -update : 'XV', -cancel : 'LZ', -insert_link_url : 'NURL', -insert_link_target : '^[Qbg', -insert_link_target_same : 'EBhEŃNJ', -insert_link_target_blank : 'VEBhEŃNJ', -insert_image_title : 'C[W}EҏW', -insert_image_src : 'C[WURL', -insert_image_alt : 'փeLXg', -help_desc : 'wv', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Rs[/؂/\t Mozilla FirefoxɖłB\nڂ\܂?', -popup_blocked : '|bvAbv֎~Ă̂ŁA|bvAbvLɂĂB' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_utf-8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_utf-8.js deleted file mode 100644 index c0ec613662..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ja_utf-8.js +++ /dev/null @@ -1,41 +0,0 @@ -// Japanese 日本語 utf-8 language pack - -tinyMCE.addToLang('',{ -bold_desc : '太字 (Ctrl+B)', -italic_desc : '斜体 (Ctrl+I)', -underline_desc : '下線 (Ctrl+U)', -striketrough_desc : '取り消し線', -justifyleft_desc : '左揃え', -justifycenter_desc : '中央揃え', -justifyright_desc : '右揃え', -justifyfull_desc : '両端揃え', -bullist_desc : '箇条書き', -numlist_desc : '段落番号', -outdent_desc : 'アウトデント', -indent_desc : 'インデント', -undo_desc : '元に戻す (Ctrl+Z)', -redo_desc : '繰り返し (Ctrl+Y)', -link_desc : 'リンクを挿入・編集', -unlink_desc : 'リンクを外す', -image_desc : 'イメージを挿入', -cleanup_desc : 'コードを整備する', -focus_alert : 'A editor instance must be focused before using this command.', -edit_confirm : 'Do you want to use the WYSIWYG mode for this textarea?', -insert_link_title : 'リンクを挿入・編集', -insert : '挿入', -update : '更新', -cancel : 'キャンセル', -insert_link_url : 'リンクのURL', -insert_link_target : 'ターゲット', -insert_link_target_same : '同じウィンドウでリンクを開く', -insert_link_target_blank : '新しいウィンドウでリンクを開く', -insert_image_title : 'イメージを挿入・編集', -insert_image_src : 'イメージのURL', -insert_image_alt : '代替テキスト', -help_desc : 'ヘルプ', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'コピー/切り取る/貼り付けは Mozillaと Firefoxに無効です。\n詳しく表示しますか?', -popup_blocked : 'ポップアップ禁止されているので、ポップアップを有効にしてください。' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ko.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ko.js deleted file mode 100644 index 3ac5b4d4be..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ko.js +++ /dev/null @@ -1,40 +0,0 @@ -// KO lang variables by Setzer Gabbiani - -tinyMCE.addToLang('',{ -bold_desc : 'ϰ', -italic_desc : '', -underline_desc : '', -striketrough_desc : '', -justifyleft_desc : ' Ä', -justifycenter_desc : ' Ä', -justifyright_desc : ' Ä', -justifyfull_desc : ' Ä', -bullist_desc : ' Å', -numlist_desc : 'ȣ Å', -outdent_desc : '', -indent_desc : '鿩', -undo_desc : '', -redo_desc : '', -link_desc : 'Å Ö/Ä', -unlink_desc : 'Å ', -image_desc : '׸ Ö/Ä', -cleanup_desc : 'Äڵå ϰ', -focus_alert : ' ϱ ݵå Å 򰡿 Ä Ö մϴ.', -edit_confirm : ' ÅؽƮ ڽ HTML Å͸ ϱ Ͻʴϱ?', -insert_link_title : 'Å Ö/Ä', -insert : '', -update : '', -cancel : '', -insert_link_url : 'URL Å', -insert_link_target : 'Å', -insert_link_target_same : ' â Å ', -insert_link_target_blank : ' â Å ', -insert_image_title : '׸ Ö/Ä', -insert_image_src : '׸ URL', -insert_image_alt : '׸ ', -help_desc : '', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -popup_blocked : 'Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nb.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nb.js deleted file mode 100644 index 2e6968dc0c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nb.js +++ /dev/null @@ -1,41 +0,0 @@ -// nb = Norwegian (bokmål) lang variables by Knut B. Jacobsen - -tinyMCE.addToLang('',{ -bold_desc : 'Fet', -italic_desc : 'Kursiv', -underline_desc : 'Understreking', -striketrough_desc : 'Gjennomstreking', -justifyleft_desc : 'Venstrestill', -justifycenter_desc : 'Sentrer', -justifyright_desc : 'Høyrestill', -justifyfull_desc : 'Blokkjustering', -bullist_desc : 'Punktliste', -numlist_desc : 'Nummerliste', -outdent_desc : 'Reduser innrykk', -indent_desc : 'Øk innrykk', -undo_desc : 'Angre', -redo_desc : 'Gjør om', -link_desc : 'Opprett/endre lenke', -unlink_desc : 'Fjern lenke', -image_desc : 'Sett inn/endre bilde', -cleanup_desc : 'Rens grisete kode', -focus_alert : 'Editoren må være i fokus før du benytter denne kommando.', -edit_confirm : 'Vil du benytte WYSIWYG editoren for dette tekstfelt?', -insert_link_title : 'Opprett/endre lenke', -insert : 'Sett inn', -update : 'Oppdater', -cancel : 'Avbryt', -insert_link_url : 'Lenkens URL', -insert_link_target : 'Vindu', -insert_link_target_same : 'Åpne i samme vindu', -insert_link_target_blank : 'Åpne i nytt vindu', -insert_image_title : 'Opprett/endre bilde', -insert_image_src : 'Bildets URL', -insert_image_alt : 'Bildets beskrivelse', -help_desc : 'Hjelp', -bold_img : 'bold_de_se.gif', -italic_img : 'italic_de_se.gif', -underline_img : 'underline.gif', -clipboard_msg : 'Klipp ut/Kopier/Lim inn fungerer ikke i Mozilla og Firefox. Vil du vite mer om dette?', -popup_blocked : 'Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nl.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nl.js deleted file mode 100644 index 7e292525af..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nl.js +++ /dev/null @@ -1,42 +0,0 @@ -// NL lang variables thanks to "Meint Post" -// Updates by (2.0) Mark van der Sanden - -tinyMCE.addToLang('',{ -bold_desc : 'Vet (Ctrl+B)', -italic_desc : 'Cursief (Ctrl+I)', -underline_desc : 'Onderstrepen (Ctrl+U)', -striketrough_desc : 'Doorhalen', -justifyleft_desc : 'Links uitlijnen', -justifycenter_desc : 'Centreren', -justifyright_desc : 'Rechts uitlijnen', -justifyfull_desc : 'Volledig uitlijnen', -bullist_desc : 'Opsommingstekens', -numlist_desc : 'Genummerde lijst', -outdent_desc : 'Inspringen verkleinen', -indent_desc : 'Inspringen vergroten', -undo_desc : 'Ongedaan maken (Ctrl+Z)', -redo_desc : 'Opnieuw (Ctrl+Y)', -link_desc : 'Hyperlink invoegen/bewerken', -unlink_desc : 'Hyperlink verwijderen', -image_desc : 'Afbeelding invoegen', -cleanup_desc : 'Code opschonen', -focus_alert : 'Klik op de tekst in de editor voor het uitvoeren van dit commando.', -edit_confirm : 'Wilt u de WYSIWYG modus voor deze textarea gebruiken?', -insert_link_title : 'Hyperlink invoegen/bewerken', -insert : 'OK', -update : 'Toepassen', -cancel : 'Annuleren', -insert_link_url : 'URL link', -insert_link_target : 'Bestemming', -insert_link_target_same : 'Open link in hetzelfde venster', -insert_link_target_blank : 'Open link in een nieuw venster', -insert_image_title : 'Afbeelding invoegen/bewerken', -insert_image_src : 'Afbeelding', -insert_image_alt : 'Beschrijving', -help_desc : 'Help', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Kopiren/knippen/plakken is niet beschikbaar in Mozilla en Firefox.\nWilt u meer informatie over deze kwestie?', -popup_blocked : 'Uw browser heeft zojuist geweigerd een popup-venster te tonen. Waarschijnlijk gebruikt u een poup-blocker die voor deze editor te streng omgaat met popups. Om het venster toch te tonen, zult u uw popup-blocker zo in moeten stellen dat het popups van deze website toestaat.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nn.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nn.js deleted file mode 100644 index 72a2d68ec3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/nn.js +++ /dev/null @@ -1,41 +0,0 @@ -// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen - -tinyMCE.addToLang('',{ -bold_desc : 'Feit', -italic_desc : 'Kursiv', -underline_desc : 'Understreking', -striketrough_desc : 'Gjennomstreking', -justifyleft_desc : 'Venstrestill', -justifycenter_desc : 'Sentrer', -justifyright_desc : 'Høgrestill', -justifyfull_desc : 'Blokkjustering', -bullist_desc : 'Punktliste', -numlist_desc : 'Nummerliste', -outdent_desc : 'Reduser innrykk', -indent_desc : 'Auk innrykk', -undo_desc : 'Angre', -redo_desc : 'Gjer om', -link_desc : 'Opprett/endre lenke', -unlink_desc : 'Fjern lenke', -image_desc : 'Sett inn/endre bilde', -cleanup_desc : 'Rens grisete kode', -focus_alert : 'Editoren må være i fokus før du benytter denne kommando.', -edit_confirm : 'Vil du benytte WYSIWYG editoren for dette tekstfelt?', -insert_link_title : 'Opprett/endre lenke', -insert : 'Sett inn', -update : 'Oppdater', -cancel : 'Avbryt', -insert_link_url : 'Lenkens URL', -insert_link_target : 'Vindu', -insert_link_target_same : 'Åpne i samme vindauge', -insert_link_target_blank : 'Åpne i nytt vindauge', -insert_image_title : 'Opprett/endre bilde', -insert_image_src : 'Bildets URL', -insert_image_alt : 'Bildets beskrivelse', -help_desc : 'Hjelp', -bold_img : 'bold_de_se.gif', -italic_img : 'italic_de_se.gif', -underline_img : 'underline.gif', -clipboard_msg : 'Klipp ut/Kopier/Lim inn fungerer ikkje i Mozilla og Firefox. Vil du vite meir om dette?', -popup_blocked : 'Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/pl.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/pl.js deleted file mode 100644 index c2d09443b4..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/pl.js +++ /dev/null @@ -1,45 +0,0 @@ -// PL lang variables -// fixed by Wooya -// http://www.mfusion.prv.pl -// fixed by lemiel 26.10.2005 -// Converted to UTF-8 by nicoone 11.10.2006 - -tinyMCE.addToLang('',{ -bold_desc : 'Pogrubienie (Ctrl+B)', -italic_desc : 'Pochylenie (Ctrl+I)', -underline_desc : 'Podkreślenie (Ctrl+U)', -striketrough_desc : 'Przekreślenie', -justifyleft_desc : 'Wyrównaj do lewej', -justifycenter_desc : 'Wyrównaj do środka', -justifyright_desc : 'Wyrównaj do prawej', -justifyfull_desc : 'Wyrównaj na całości', -bullist_desc : 'Lista nienumerowana', -numlist_desc : 'Lista numerowana', -outdent_desc : 'Zmniejsz wcięcie', -indent_desc : 'Zwiększ wcięcie', -undo_desc : 'Cofnij (Ctrl+Z)', -redo_desc : 'Ponów (Ctrl+Y)', -link_desc : 'Wstaw/edytuj link', -unlink_desc : 'Usuń link', -image_desc : 'Wstaw/edytuj obrazek', -cleanup_desc : 'Usuń zbędny kod', -focus_alert : 'Instancja edytora musi być aktywna przed użyciem tego polecenia.', -edit_confirm : 'Czy chcesz użyć edytora WYSIWYG dla tego pola tekstowego?', -insert_link_title : 'Wstaw/edytuj link', -insert : 'Wstaw', -update : 'Aktualizuj', -cancel : 'Anuluj', -insert_link_url : 'URL linku', -insert_link_target : 'Cel', -insert_link_target_same : 'Otwórz link w tym samym oknie', -insert_link_target_blank : 'Otwórz link w nowym oknie', -insert_image_title : 'Wstaw/edytuj obrazek', -insert_image_src : 'URL obrazka', -insert_image_alt : 'Opis obrazka', -help_desc : 'Pomoc', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Kopiuj/Wytnij/Wklej nie jest dostępne dla przeglądarek Mozilla i Firefox.\nCzy chcesz uzyskać o tym więcej informacji?', -popup_blocked : 'Niestety, ale odnotowano, że Twoja przeglądarka ma włączoną blokadę okienek popup. Musisz wyłączyć opcję blokowania okienek dla tej strony, aby TinyMCE mógł pracować z pełną funkcjonalnością.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/pt_br.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/pt_br.js deleted file mode 100644 index c2cff883cb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/pt_br.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * pt_br lang variables - * Brazilian Portuguese - * - * Author - * Revision and modifications: - * Marcio Barbosa (mpg) - * First Release : November 26, 2005 - TinyMCE Version : 2.0RC4 - * Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8 - */ -tinyMCE.addToLang('',{ -bold_desc : 'Negrito (Ctrl+B)', -italic_desc : 'Itlico (Ctrl+I)', -underline_desc : 'Sublinhado (Ctrl+U)', -striketrough_desc : 'Riscado', -justifyleft_desc : 'Alinhar esquerda', -justifycenter_desc : 'Centralizar', -justifyright_desc : 'Alinhar direita', -justifyfull_desc : 'Justificar', -bullist_desc : 'Lista no ordenada', -numlist_desc : 'Lista ordenada', -outdent_desc : 'Retirar indentao', -indent_desc : 'Indentar', -undo_desc : 'Desfazer (Ctrl+Z)', -redo_desc : 'Refazer (Ctrl+Y)', -link_desc : 'Inserir link', -unlink_desc : 'Remover link', -image_desc : 'Inserir referncia a imagem externa', -object_desc : 'Inserir objeto multimdia da Galeria', -cleanup_desc : 'Limpeza de cdigo', -focus_alert : 'Uma instncia do editor dever estar selecionada antes de utilizar este comando.', -edit_confirm : 'Deseja utilizar o Modo Visual (WYSIWYG) de edio para esta rea de texto?', -insert_link_title : 'Inserir/editar link', -insert : 'Inserir', -update : 'Atualizar', -cancel : 'Cancelar', -insert_link_url : 'URL do link', -insert_link_target : 'Destino', -insert_link_target_same : 'Abrir link na mesma janela', -insert_link_target_blank : 'Abrir link em uma nova janela', -insert_image_title : 'Inserir/editar imagem', -insert_image_src : 'Endereo (URL) da imagem', -insert_image_alt : 'Descrio da imagem', -help_desc : 'Ajuda', -bold_img : 'bold_pt_br.gif', -italic_img : 'italic.gif', -underline_img : 'underline_pt_br.gif', -clipboard_msg : 'Copiar/recortar/colar no est disponvel no Mozilla e Firefox.\nPretende obter mais informao sobre esta questo?', -popup_blocked : 'Seu navegador bloqueou um popup necessrio para o correto funcionamento desta ferramenta. Voc precisa desativar seu bloqueador de popup neste site para que todos os recursos possam ser utilizados.' -}); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/readme.txt deleted file mode 100644 index 9c3a9d9d90..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/readme.txt +++ /dev/null @@ -1,9 +0,0 @@ -Beginning with version 2.0.5 the language packs are no -longer included with the core distribution. -Language packs can be downloaded from the TinyMCE website: -http://tinymce.moxiecode.com/download.php - -The language pack codes are based on ISO-639-1: -http://www.loc.gov/standards/iso639-2/englangn.html - -Plrease try using entities if possible. Like å etc for non a-z characters. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ro.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ro.js deleted file mode 100644 index b6b1ca2846..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ro.js +++ /dev/null @@ -1,41 +0,0 @@ -// RO lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Bold (Ctrl+B)', -italic_desc : 'Italic (Ctrl+I)', -underline_desc : 'Subliniat (Ctrl+U)', -striketrough_desc : 'Tăiat', -justifyleft_desc : 'Aliniere la stânga', -justifycenter_desc : 'Centrat', -justifyright_desc : 'Alinere la dreapta', -justifyfull_desc : 'Aliniere integrală', -bullist_desc : 'Listă neordonată', -numlist_desc : 'Listă ordonată', -outdent_desc : 'De-indentare', -indent_desc : 'Indentare', -undo_desc : 'Revenire cu un pas înapoi (Ctrl+Z)', -redo_desc : 'Revenire cu un pas înainte (Ctrl+Y)', -link_desc : 'Inserează/editează legătură', -unlink_desc : 'Şterge legătura', -image_desc : 'Inserează/editează imagine', -cleanup_desc : 'Curăţă cod neîngrijit', -focus_alert : 'O instanţă de editare trebuie să fie activă înainte de folosirea acestei comenzi.', -edit_confirm : 'Vrei să foloseşti modul WYSIWYG pentru această zonă de text?', -insert_link_title : 'Inserează/editează legătură', -insert : 'Inserează', -update : 'Actualizează', -cancel : 'Anulare', -insert_link_url : 'URL legătură', -insert_link_target : 'Ţintă legătură', -insert_link_target_same : 'Deschide legătura în aceeaşi fereastră', -insert_link_target_blank : 'Deschide legătura într-o fereastră nouă', -insert_image_title : 'Inserează/editează imagine', -insert_image_src : 'URL imagine', -insert_image_alt : 'Descriere imagine', -help_desc : 'Ajutor', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Copierea/Tăierea/Lipirea nu sunt disponibile în Mozilla şi Firefox.\nVrei mai multe informaţii despre acest lucru?', -popup_blocked : 'Ne pare rău, dar am observat că componenta de blocare a popup-urilor a dezactivat o fereastră care asigură funcţionalitatea aplicaţiei. Va trebui să dezactivezi blocarea de popup-uri pe acest portal, pentru a putea folosi acest instrument la întreaga lui capacitate.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru.js deleted file mode 100644 index c4418b42a1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru.js +++ /dev/null @@ -1,43 +0,0 @@ -// Russian translation by Vladimir Vitkovsky - admin@transport.su -// Updated to 2.0.6.1 with some old errors fixed by yarodin@gmail.com for e107.org -// Updated to 2.1.0 by Oleg Nitz - -tinyMCE.addToLang('',{ -bold_desc : 'Жирный (Ctrl+B)', -italic_desc : 'Курсив (Ctrl+I)', -underline_desc : 'Подчеркнутый (Ctrl+U)', -striketrough_desc : 'Перечеркнутый', -justifyleft_desc : 'Выравнивание влево', -justifycenter_desc : 'Выравнивание по центру', -justifyright_desc : 'Выравнивание вправо', -justifyfull_desc : 'Равномерное заполнение', -bullist_desc : 'Маркированный список', -numlist_desc : 'Нумерованный список', -outdent_desc : 'Уменьшить отступ', -indent_desc : 'Увеличить отступ', -undo_desc : 'Отменить (Ctrl+Z)', -redo_desc : 'Вернуть (Ctrl+Y)', -link_desc : 'Вставить/изменить ссылку', -unlink_desc : 'Убрать ссылку', -image_desc : 'Вставить/изменить изображение', -cleanup_desc : 'Подчистить избыточный код', -focus_alert : 'Для использования данной команды Вы должны находится в поле редактора.', -edit_confirm : 'Хотите ли Вы редактировать в визуальном (WYSIWYG) режиме?', -insert_link_title : 'Вставить/изменить ссылку', -insert : 'Вставить', -update : 'Применить', -cancel : 'Отменить', -insert_link_url : 'Адрес ссылки', -insert_link_target : 'Открыть в...:', -insert_link_target_same : 'том же окне', -insert_link_target_blank : 'новом окне', -insert_image_title : 'Вставить/изменить изображение', -insert_image_src : 'Адрес картинки', -insert_image_alt : 'Описание картинки', -help_desc : 'Помощь', -bold_img : "bold_ru.gif", -italic_img : "italic_ru.gif", -underline_img : "underline_ru.gif", -clipboard_msg : 'Копировать/Вырезать/Вставить недоступны для Mozilla и Firefox.\nХотите узнать об этом подробнее?', -popup_blocked : 'Извините, но в Вашем браузере заблокированы всплывающие окна. Для того, чтобы иметь возможность воспользоваться всеми возможностями редактора, необходимо отключить блокировку всплывающих окон для этого сайта.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru_CP1251.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru_CP1251.js deleted file mode 100644 index c20b924bca..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru_CP1251.js +++ /dev/null @@ -1,43 +0,0 @@ -// Russian translation by Vladimir Vitkovsky - admin@transport.su -// Updated to 2.0.6.1 with some old errors fixed by yarodin@gmail.com for e107.org -// Updated to 2.1.0 by Oleg Nitz - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : ' (Ctrl+I)', -underline_desc : ' (Ctrl+U)', -striketrough_desc : '', -justifyleft_desc : ' ', -justifycenter_desc : ' ', -justifyright_desc : ' ', -justifyfull_desc : ' ', -bullist_desc : ' ', -numlist_desc : ' ', -outdent_desc : ' ', -indent_desc : ' ', -undo_desc : ' (Ctrl+Z)', -redo_desc : ' (Ctrl+Y)', -link_desc : '/ ', -unlink_desc : ' ', -image_desc : '/ ', -cleanup_desc : ' ', -focus_alert : ' .', -edit_confirm : ' (WYSIWYG) ?', -insert_link_title : '/ ', -insert : '', -update : '', -cancel : '', -insert_link_url : ' ', -insert_link_target : ' ...:', -insert_link_target_same : ' ', -insert_link_target_blank : ' ', -insert_image_title : '/ ', -insert_image_src : ' ', -insert_image_alt : ' ', -help_desc : '', -bold_img : "bold_ru.gif", -italic_img : "italic_ru.gif", -underline_img : "underline_ru.gif", -clipboard_msg : '// Mozilla Firefox.\n ?', -popup_blocked : ', . , , .' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru_KOI8-R.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru_KOI8-R.js deleted file mode 100644 index 0744aeaa26..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/ru_KOI8-R.js +++ /dev/null @@ -1,43 +0,0 @@ -// Russian translation by Vladimir Vitkovsky - admin@transport.su -// Updated to 2.0.6.1 with some old errors fixed by yarodin@gmail.com for e107.org -// Updated to 2.1.0 by Oleg Nitz - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : ' (Ctrl+I)', -underline_desc : ' (Ctrl+U)', -striketrough_desc : '', -justifyleft_desc : ' ', -justifycenter_desc : ' ', -justifyright_desc : ' ', -justifyfull_desc : ' ', -bullist_desc : ' ', -numlist_desc : ' ', -outdent_desc : ' ', -indent_desc : ' ', -undo_desc : ' (Ctrl+Z)', -redo_desc : ' (Ctrl+Y)', -link_desc : '/ ', -unlink_desc : ' ', -image_desc : '/ ', -cleanup_desc : ' ', -focus_alert : ' .', -edit_confirm : ' (WYSIWYG) ?', -insert_link_title : '/ ', -insert : '', -update : '', -cancel : '', -insert_link_url : ' ', -insert_link_target : ' ...:', -insert_link_target_same : ' ', -insert_link_target_blank : ' ', -insert_image_title : '/ ', -insert_image_src : ' ', -insert_image_alt : ' ', -help_desc : '', -bold_img : "bold_ru.gif", -italic_img : "italic_ru.gif", -underline_img : "underline_ru.gif", -clipboard_msg : '// Mozilla Firefox.\n ?', -popup_blocked : ', . , , .' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/si.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/si.js deleted file mode 100644 index 8482a14802..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/si.js +++ /dev/null @@ -1,41 +0,0 @@ -// SI lang variables ISO-8859-2 - -tinyMCE.addToLang('',{ -bold_desc : 'Krepko (Ctrl+B)', -italic_desc : 'Postrani (Ctrl+I)', -underline_desc : 'Podčrtano (Ctrl+U)', -striketrough_desc : 'Prečrtano', -justifyleft_desc : 'Poravnava levo', -justifycenter_desc : 'Sredinska poravnava', -justifyright_desc : 'Poravnava desno', -justifyfull_desc : 'Porazdeli vsebino', -bullist_desc : 'Označevanje', -numlist_desc : 'Oštevilčevanje', -outdent_desc : 'Zmanjšaj zamik', -indent_desc : 'Povečaj zamik', -undo_desc : 'Prekliči zadnjo akcijo (Ctrl+Z)', -redo_desc : 'Ponovi prejšnjo akcijo (Ctrl+Y)', -link_desc : 'Vstavi/uredi hiperpovezavo', -unlink_desc : 'Zbriši hiperpovezavo', -image_desc : 'Vstavi/uredi sliko', -cleanup_desc : 'Počisti umazano kodo', -focus_alert : 'Pred uporabo tega ukaza morate klikniti na urejevalnik.', -edit_confirm : 'Ali želite uporabljati WYSIWYG način za ta urejevalnik?', -insert_link_title : 'Vstavi/uredi hiperpovezavo', -insert : 'Vstavi', -update : 'Posodobi', -cancel : 'Prekliči', -insert_link_url : 'URL naslov', -insert_link_target : 'Tarča', -insert_link_target_same : 'Odpri hiperpovezavo v istem oknu', -insert_link_target_blank : 'Odpri hiperpovezavo v novem oknu', -insert_image_title : 'Vstavi/uredi sliko', -insert_image_src : 'URL naslov slike', -insert_image_alt : 'Opis slike', -help_desc : 'Pomoč', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Kopiraj/Izreži/Prilepi ni na voljo v brskalnikih Mozilla in Firefox.\nAli želite več informacij glede tega?', -popup_blocked : 'Odpiranje novega okna je bilo blokirano. Če želite uporabljati vsa orodja, morate izklopiti blokiranje novih oken na tej strani.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sk.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sk.js deleted file mode 100644 index cd0c61b40d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sk.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Slovak lang variables - * encoding: utf-8 - * - * @author Vladimir VASIL vvasil@post.sk - * - * $Id: sk.js,v 1.1 2005/11/22 20:56:43 spocke Exp $ - */ - - -tinyMCE.addToLang('',{ -bold_desc : 'Tučné', -italic_desc : 'Kurzivá', -underline_desc : 'Podčiarknutie', -striketrough_desc : 'Preškrtnutie', -justifyleft_desc : 'Zarovnanie vľavo', -justifycenter_desc : 'Zarovnanie na stred', -justifyright_desc : 'Zarovnanie vpravo', -justifyfull_desc : 'Zarovnanie do bloku', -bullist_desc : 'Zoznam s odrážkami', -numlist_desc : 'Číslovaný zoznam', -outdent_desc : 'Snížiť odsadenie', -indent_desc : 'Zvýšiť odsadenie', -undo_desc : 'Zpäť', -redo_desc : 'Znovu', -link_desc : 'Vložiť odkaz', -unlink_desc : 'Zrušiť odkaz', -image_desc : 'Vložiť obrázok', -cleanup_desc : 'Vyčistiť kód', -focus_alert : 'Pred použitím tohoto príkazu musí byť kurzor v okne editora.', -edit_confirm : 'Chcete použiť WYSIWYG editáciu pre tento text?', -insert_link_title : 'Vložiť/upraviť odkaz', -insert : 'Vložiť', -update : 'Zmeniť', -cancel : 'Zrušiť', -insert_link_url : 'URL odkazu', -insert_link_target : 'Cieľ', -insert_link_target_same : 'Otvoriť odkaz v rovnakom okne', -insert_link_target_blank : 'Otvoriť odkaz v novom okne', -insert_image_title : 'Vložiť/upraviť obrázok', -insert_image_src : 'URL obrázku', -insert_image_alt : 'Popis obrázku', -help_desc : 'Nápoveda', -bold_img : 'bold.gif', -italic_img : 'italic.gif', -underline_img : "underline.gif", -clipboard_msg : 'Funkcia Kopírovať/vysrihnúť/vložiť niesú použiteľné v Mozille a Firefoxe.\nChcete viac informácií o tomto probléme?', -popup_blocked : 'Ospravedlňujeme sa, ale blokovač vyskakovacích okien neumožnil otvoriť okno, ktoré zprostredkovává funkčnosť aplikáce. Musíte vypnuť blokovanie vyskakovacích okien na tomto webe, abyste využili jeho plnú funkčnosť.' -}); - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sq.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sq.js deleted file mode 100644 index d940198f80..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sq.js +++ /dev/null @@ -1,41 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'I forte (Ctrl+B)', -italic_desc : 'Italik (Ctrl+I)', -underline_desc : 'I nenvizuar (Ctrl+U)', -striketrough_desc : 'Strikethrough', -justifyleft_desc : 'Ne te majte', -justifycenter_desc : 'Ne mes', -justifyright_desc : 'Ne te djathte', -justifyfull_desc : 'Justifiko', -bullist_desc : 'Liste e parenditur', -numlist_desc : 'Liste e renditur', -outdent_desc : 'Terhiq', -indent_desc : 'Shty', -undo_desc : '\'bej (Ctrl+Z)', -redo_desc : 'Ri-bej (Ctrl+Y)', -link_desc : 'Nderfut /ndrysho lidhjen', -unlink_desc : '\'lidh', -image_desc : 'Nderfut /ndrysho imazhin', -cleanup_desc : 'Pastor kodin problematik', -focus_alert : 'fokuso nje instance editori pastaj kliko.', -edit_confirm : 'A do te perdoresh tinyMce?', -insert_link_title : 'Nderfut /ndrysho lidhjen', -insert : 'Nderfut', -update : 'Ndrysho', -cancel : 'Kthehu', -insert_link_url : 'URL e lidhjes', -insert_link_target : 'Objektivi', -insert_link_target_same : 'Hape lidhjen ne po ate dritare', -insert_link_target_blank : 'Hape lidhjen ne dritare te re', -insert_image_title : 'Nderfut /ndrysho imazhin', -insert_image_src : 'URL e imazhit', -insert_image_alt : 'Pershkrimi i imazhit', -help_desc : 'Ndihme', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : '?', -popup_blocked : 'Shiko popup blocker - in.' -}); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sr.js deleted file mode 100644 index a6a08f0fc9..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sr.js +++ /dev/null @@ -1,41 +0,0 @@ -// Serbian lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Podebljano (Ctrl+B)', -italic_desc : 'Kurziv (Ctrl+I)', -underline_desc : 'Podvučeno (Ctrl+U)', -striketrough_desc : 'Linija preko teksta', -justifyleft_desc : 'Ravnanje uz levu ivicu', -justifycenter_desc : 'Ravnanje na centar', -justifyright_desc : 'Ravnanje uz desnu ivicu', -justifyfull_desc : 'Ravnanje uz levu i desnu ivicu', -bullist_desc : 'Nesortirana lista', -numlist_desc : 'Sortirana list', -outdent_desc : 'Outdent', -indent_desc : 'Indent', -undo_desc : 'Undo (Ctrl+Z)', -redo_desc : 'Redo (Ctrl+Y)', -link_desc : 'Ubacivanje/menjanje linka', -unlink_desc : 'Skidanje linka', -image_desc : 'Ubacivanje/menjanje slike', -cleanup_desc : 'Čišćenje lošeg koda', -focus_alert : 'Editor mora imati fokus pre korišćenja ove komande.', -edit_confirm : 'Da li želite da koristite obogaćeni modus za ovo tekst polje?', -insert_link_title : 'Ubacivanje/menjajne linka', -insert : 'Ubacivanje', -update : 'Ažuriranje', -cancel : 'Nazad', -insert_link_url : 'Link URL', -insert_link_target : 'Mesto otvaranja', -insert_link_target_same : 'Otvaranje u istom prozoru', -insert_link_target_blank : 'Otvaranje u novom prozoru', -insert_image_title : 'Ubacivanje/menjanje slike', -insert_image_src : 'Link za sliku', -insert_image_alt : 'Opis slike', -help_desc : 'Pomoć', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Copy/Cut/Paste nije moguće u Mozilli i Firefoxu.\nDa li želite više informacija o ovom problemu?', -popup_blocked : 'Izvinjavamo se ali primetili smo da je Vaš program za blokiranje pop-up prozora blokirao prozor koji je potreban aplikaciji. Morate ukinuti blokiranje pop-up prozora na ovom sajtu da bi koristili aplikaciju u potpunosti.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sv.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sv.js deleted file mode 100644 index 2e5d69bf3e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sv.js +++ /dev/null @@ -1,43 +0,0 @@ -// SE lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Fet', -italic_desc : 'Kursiv', -underline_desc : 'Understruken', -striketrough_desc : 'Genomstruken', -justifyleft_desc : 'Vnsterjustera', -justifycenter_desc : 'Centrera', -justifyright_desc : 'Hgerjustera', -justifyfull_desc : 'Kantjustera', -bullist_desc : 'Punktlista', -numlist_desc : 'Nummerlista', -outdent_desc : 'Utdrag', -indent_desc : 'Indrag', -undo_desc : 'ngra', -redo_desc : 'Gr om', -link_desc : 'Skapa lnk', -unlink_desc : 'Ta bort lnk', -image_desc : 'Skapa/redigera bild', -cleanup_desc : 'Rensa skrpkod', -focus_alert : 'Flytta markren till en textyta innan du anvnder detta kommando.', -edit_confirm : 'Vill du anvnda WYSIWYG-editorn fr detta textflt?', -insert_link_title : 'Skapa/redigera lnk', -insert : 'Skapa', -update : 'Uppdatera', -cancel : 'Avbryt', -insert_link_url : 'Lnkens URL', -insert_link_target : 'Fnster', -insert_link_target_same : 'ppna lnken i samma fnster', -insert_link_target_blank : 'ppna lnken i ett nytt fnster', -insert_link_delta_width : 20, -insert_link_delta_height : 10, -insert_image_title : 'Skapa/redigera bild', -insert_image_src : 'Bildens URL', -insert_image_alt : 'Bildens beskrivning', -bold_img : 'bold_de_se.gif', -italic_img : 'italic_de_se.gif', -underline_img : "underline.gif", -clipboard_msg : 'Klipp ut/Kopiera/Klistra in fungerar inte Mozilla och Firefox. Vill du veta mer om detta?', -help_desc : "Hjlp", -popup_blocked : 'En popupblockerare har sprrat ett fnster som behvs fr denna funktion. Avaktivera popupblockeraren om du vill kunna anvnda funktionen.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sv_utf8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sv_utf8.js deleted file mode 100644 index 6b8ec844d4..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/sv_utf8.js +++ /dev/null @@ -1,43 +0,0 @@ -// SE lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Fet', -italic_desc : 'Kursiv', -underline_desc : 'Understruken', -striketrough_desc : 'Genomstruken', -justifyleft_desc : 'Vänsterjustera', -justifycenter_desc : 'Centrera', -justifyright_desc : 'Högerjustera', -justifyfull_desc : 'Kantjustera', -bullist_desc : 'Punktlista', -numlist_desc : 'Nummerlista', -outdent_desc : 'Utdrag', -indent_desc : 'Indrag', -undo_desc : 'Ångra', -redo_desc : 'Gör om', -link_desc : 'Skapa länk', -unlink_desc : 'Ta bort länk', -image_desc : 'Skapa/redigera bild', -cleanup_desc : 'Rensa skräpkod', -focus_alert : 'Flytta markören till en textyta innan du använder detta kommando.', -edit_confirm : 'Vill du använda WYSIWYG-editorn för detta textfält?', -insert_link_title : 'Skapa/redigera länk', -insert : 'Skapa', -update : 'Uppdatera', -cancel : 'Avbryt', -insert_link_url : 'Länkens URL', -insert_link_target : 'Fönster', -insert_link_target_same : 'Öppna länken i samma fönster', -insert_link_target_blank : 'Öppna länken i ett nytt fönster', -insert_link_delta_width : 20, -insert_link_delta_height : 10, -insert_image_title : 'Skapa/redigera bild', -insert_image_src : 'Bildens URL', -insert_image_alt : 'Bildens beskrivning', -bold_img : 'bold_de_se.gif', -italic_img : 'italic_de_se.gif', -underline_img : "underline.gif", -clipboard_msg : 'Klipp ut/Kopiera/Klistra in fungerar inte Mozilla och Firefox. Vill du veta mer om detta?', -help_desc : "Hjälp", -popup_blocked : 'En popupblockerare har spärrat ett fönster som behövs för denna funktion. Avaktivera popupblockeraren om du vill kunna använda funktionen.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/tr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/tr.js deleted file mode 100644 index e45b586001..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/tr.js +++ /dev/null @@ -1,41 +0,0 @@ -// TR lang variables - -tinyMCE.addToLang('',{ -bold_desc : 'Kaln (Ctrl+B)', -italic_desc : 'talik (Ctrl+I)', -underline_desc : 'Alt izgili (Ctrl+U)', -striketrough_desc : 'st izgili', -justifyleft_desc : 'Sola dayal', -justifycenter_desc : 'Ortalanm', -justifyright_desc : 'Saa dayal', -justifyfull_desc : 'ki kenara yaslanm', -bullist_desc : 'Srasz liste', -numlist_desc : 'Sral liste', -outdent_desc : 'Girintiyi azalt', -indent_desc : 'Girintiyi arttr', -undo_desc : 'Geri al (Ctrl+Z)', -redo_desc : 'Yeniden yap (Ctrl+Y)', -link_desc : 'Link ekle/dzenle', -unlink_desc : 'Linki kaldr', -image_desc : 'Resim ekle/dzenle', -cleanup_desc : 'Dank kodu dzenle', -focus_alert : 'Bu komutu kullanmadan nce editr seilmeli(aktif olmal).', -edit_confirm : 'Bu text alan iin WYSIWYG modu kullanmak ister misiniz?', -insert_link_title : 'Link ekle/dzenle', -insert : 'Ekle', -update : 'Gncelle', -cancel : 'ptal', -insert_link_url : 'Link adresi giriniz', -insert_link_target : 'Hedef adres', -insert_link_target_same : 'Linki ayn sayfada a', -insert_link_target_blank : 'Linki yeni sayfada a', -insert_image_title : 'Resim ekle/dzenle', -insert_image_src : 'Resim adresi', -insert_image_alt : 'Resim aklamas', -help_desc : 'Yardm', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Mozilla ve Firefox tarayclarnda kopyala/kes/yaptr komutlarn kullanamassnz.\n Bu konu hakknda daha fazla bilgi edinmek ister misiniz?', -popup_blocked : 'Popup engelleyiciniz programn almasn nlemektedir, bu zellikten yararlanabilmeniz iin popup engelleyicinizi kapatmanz gerekiyor.' -}); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk.js deleted file mode 100644 index b8063547a7..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk.js +++ /dev/null @@ -1,41 +0,0 @@ -// Ukrainian translation - -tinyMCE.addToLang('',{ -bold_desc : 'Жирний (Ctrl+B)', -italic_desc : 'Курсив (Ctrl+I)', -underline_desc : 'Підкреслений (Ctrl+U)', -striketrough_desc : 'Перекреслений', -justifyleft_desc : 'Вирівнювання вліво', -justifycenter_desc : 'Вирівнювання до центру', -justifyright_desc : 'Вирівнювання вправо', -justifyfull_desc : 'Рівномірне заповнення', -bullist_desc : 'Маркірований список', -numlist_desc : 'Нумерований список', -outdent_desc : 'Зменшити відступ', -indent_desc : 'Збільшити відступ', -undo_desc : 'Скасувати (Ctrl+Z)', -redo_desc : 'Повернути (Ctrl+Y)', -link_desc : 'Вставити/змінити посилання', -unlink_desc : 'Прибрати посилання', -image_desc : 'Вставити/змінити зображення', -cleanup_desc : 'Підчистити надлишковий код', -focus_alert : 'Для використання команди маєте перебувати у полі редактора.', -edit_confirm : 'Чи хочете редагувати у візуальному (WYSIWYG) режимі?', -insert_link_title : 'Вставити/змінити посилання', -insert : 'Вставити', -update : 'Застосувати', -cancel : 'Скасувати', -insert_link_url : 'Адреса посилання', -insert_link_target : 'Відкрити в...:', -insert_link_target_same : 'тому самому вікні', -insert_link_target_blank : 'новому вікні', -insert_image_title : 'Вставити/змінити зображення', -insert_image_src : 'Адреса картинки', -insert_image_alt : 'Опис картинки', -help_desc : 'Допомога', -bold_img : "bold_ru.gif", -italic_img : "italic_ru.gif", -underline_img : "underline_ru.gif", -clipboard_msg : 'Копіювати/Вирізати/Вставити недоступні для Mozilla і Firefox.\nХочете дізнатися про це докладніше?', -popup_blocked : 'Вибачте, але у Вашому браузері заблоковані спливаючі вікна. Щоб користуватися всіма можливостями редактора, треба відключити для цього сайту блокування спливаючих вікон.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk_CP1251.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk_CP1251.js deleted file mode 100644 index 7b04a5a33f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk_CP1251.js +++ /dev/null @@ -1,41 +0,0 @@ -// Ukrainian translation - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : ' (Ctrl+I)', -underline_desc : 'ϳ (Ctrl+U)', -striketrough_desc : '', -justifyleft_desc : ' ', -justifycenter_desc : ' ', -justifyright_desc : ' ', -justifyfull_desc : 'г ', -bullist_desc : ' ', -numlist_desc : ' ', -outdent_desc : ' ', -indent_desc : ' ', -undo_desc : ' (Ctrl+Z)', -redo_desc : ' (Ctrl+Y)', -link_desc : '/ ', -unlink_desc : ' ', -image_desc : '/ ', -cleanup_desc : 'ϳ ', -focus_alert : ' .', -edit_confirm : ' (WYSIWYG) ?', -insert_link_title : '/ ', -insert : '', -update : '', -cancel : '', -insert_link_url : ' ', -insert_link_target : '³ ...:', -insert_link_target_same : ' ', -insert_link_target_blank : ' ', -insert_image_title : '/ ', -insert_image_src : ' ', -insert_image_alt : ' ', -help_desc : '', -bold_img : "bold_ru.gif", -italic_img : "italic_ru.gif", -underline_img : "underline_ru.gif", -clipboard_msg : '// Mozilla Firefox.\n ?', -popup_blocked : ', . , .' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk_KOI8-U.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk_KOI8-U.js deleted file mode 100644 index 2a1ad668de..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/uk_KOI8-U.js +++ /dev/null @@ -1,41 +0,0 @@ -// Ukrainian translation - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : ' (Ctrl+I)', -underline_desc : ' (Ctrl+U)', -striketrough_desc : '', -justifyleft_desc : 'Ҧ ̦', -justifycenter_desc : 'Ҧ ', -justifyright_desc : 'Ҧ ', -justifyfull_desc : 'ͦ ', -bullist_desc : '˦ ', -numlist_desc : ' ', -outdent_desc : ' צ', -indent_desc : '¦ צ', -undo_desc : ' (Ctrl+Z)', -redo_desc : ' (Ctrl+Y)', -link_desc : '/ͦ ', -unlink_desc : ' ', -image_desc : '/ͦ ', -cleanup_desc : ' ', -focus_alert : ' ̦ .', -edit_confirm : ' צ (WYSIWYG) ͦ?', -insert_link_title : '/ͦ ', -insert : '', -update : '', -cancel : '', -insert_link_url : ' ', -insert_link_target : ' ...:', -insert_link_target_same : ' צΦ', -insert_link_target_blank : ' צΦ', -insert_image_title : '/ͦ ', -insert_image_src : ' ', -insert_image_alt : ' ', -help_desc : '', -bold_img : "bold_ru.gif", -italic_img : "italic_ru.gif", -underline_img : "underline_ru.gif", -clipboard_msg : 'Ц/Ҧ/ Φ Mozilla Firefox.\n Ħ Φ?', -popup_blocked : ', Ҧ Φ ަ צ. Ӧ , צ צ.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/vi.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/vi.js deleted file mode 100644 index 6238f9b359..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/vi.js +++ /dev/null @@ -1,41 +0,0 @@ -// Vietnamese lang variables - Đỗ Xuân Tiến - tiendx2002@yahoo.com Việt hóa - -tinyMCE.addToLang('',{ -bold_desc : 'Đậm (Ctrl+B)', -italic_desc : 'Nghiêng (Ctrl+I)', -underline_desc : 'Gạch chân (Ctrl+U)', -striketrough_desc : 'Gạch ngang', -justifyleft_desc : 'Căn lề trái', -justifycenter_desc : 'Căn lề giữa', -justifyright_desc : 'Căn lề phải', -justifyfull_desc : 'Căn lề đều hai bên', -bullist_desc : 'Danh sách không sắp xếp thứ tự', -numlist_desc : 'Danh sách có sắp xếp thứ tự', -outdent_desc : 'Nhô ra', -indent_desc : 'Thụt vào', -undo_desc : 'Quay lại một thao tác (Ctrl+Z)', -redo_desc : 'Thực hiện lại một thao tác (Ctrl+Y)', -link_desc : 'Thêm/sửa liên kết', -unlink_desc : 'Hủy liên kết', -image_desc : 'Thêm/sửa ảnh', -cleanup_desc : 'Xóa sạch các mã lộn xộn', -focus_alert : 'Cần nhấn chuột vào bên trong ô nhập trước khi sử dụng lệnh này.', -edit_confirm : 'Bạn có muốn dùng chế độ WYSIWYG (thấy gì có nấy) cho ô nhập này?', -insert_link_title : 'Thêm/sửa liên kết', -insert : 'Thêm', -update : 'Cập_nhật', -cancel : 'Hủy bỏ', -insert_link_url : 'Địa chỉ liên kết', -insert_link_target : 'Mục tiêu', -insert_link_target_same : 'Mở liên kết trong cùng cửa sổ', -insert_link_target_blank : 'Mở liên kết trong cửa sổ mới', -insert_image_title : 'Thêm/sửa ảnh', -insert_image_src : 'Địa chỉ ảnh', -insert_image_alt : 'Mô tả ảnh', -help_desc : 'Trợ giúp', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : 'Trên Mozilla và Firefox không sử dụng được các thao tác Sao chép/Cắt/Dán. \nBạn cần thêm thông tin về điều này?', -popup_blocked : 'Xin lỗi, nhưng chúng tôi thấy bộ khóa các cửa sổ bật ra (popup-blocker) của bạn đã khóa một cửa sổ cung cấp chức năng ứng dụng. Bạn cần tắt chế độ khóa cửa sổ bật ra cho trang web này để sử dụng hết các chức năng của công cụ này.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_cn.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_cn.js deleted file mode 100644 index 350dcd034d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_cn.js +++ /dev/null @@ -1,42 +0,0 @@ -// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ). -// visit our homepage at: http://www.cube316.net/tinymce/ for more information. - -tinyMCE.addToLang('',{ -bold_desc : ' (Ctrl+B)', -italic_desc : 'б (Ctrl+I)', -underline_desc : '» (Ctrl+U)', -striketrough_desc : 'ɾ', -justifyleft_desc : '', -justifycenter_desc : 'ж', -justifyright_desc : 'Ҷ', -justifyfull_desc : '˶', -bullist_desc : 'б', -numlist_desc : 'б', -outdent_desc : '', -indent_desc : '', -undo_desc : ' (Ctrl+Z)', -redo_desc : ' (Ctrl+Y)', -link_desc : '/༭ ', -unlink_desc : 'ɾ', -image_desc : '/༭ ͼ', -cleanup_desc : 'ɾ', -focus_alert : 'ѡ༭', -edit_confirm : 'ڱ༭ʹñ༭ô', -insert_link_title : '/༭ ', -insert : '', -update : '', -cancel : 'ȡ', -insert_link_url : 'ӵַ', -insert_link_target : 'Ŀ', -insert_link_target_same : 'ͬһд', -insert_link_target_blank : '´д', -insert_image_title : '/༭ ͼ', -insert_image_src : 'ͼַ', -insert_image_alt : 'ͼ', -help_desc : '', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : '//ճ Mozilla Firefox в֧֡ϣøϢ', -popup_blocked : 'Բ, ֹ˵ʽڡΪʹõƵĹܣԱվĵʽڽֹ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_cn_utf8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_cn_utf8.js deleted file mode 100644 index 7866112533..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_cn_utf8.js +++ /dev/null @@ -1,42 +0,0 @@ -// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ). -// visit our homepage at: http://www.cube316.net/tinymce/ for more information. - -tinyMCE.addToLang('',{ -bold_desc : '黑体 (Ctrl+B)', -italic_desc : '斜体 (Ctrl+I)', -underline_desc : '下划线 (Ctrl+U)', -striketrough_desc : '删除线', -justifyleft_desc : '左对齐', -justifycenter_desc : '居中对齐', -justifyright_desc : '右对齐', -justifyfull_desc : '两端对齐', -bullist_desc : '无序列表', -numlist_desc : '有序列表', -outdent_desc : '减少缩进', -indent_desc : '增加缩进', -undo_desc : '撤消 (Ctrl+Z)', -redo_desc : '重做 (Ctrl+Y)', -link_desc : '插入/编辑 链接', -unlink_desc : '删除链接', -image_desc : '插入/编辑 图像', -cleanup_desc : '删除冗余代码', -focus_alert : '请先选择编辑区', -edit_confirm : '您想在编辑区域上使用所见即所得编辑器么?', -insert_link_title : '插入/编辑 链接', -insert : '插入', -update : '更新', -cancel : '取消', -insert_link_url : '链接地址', -insert_link_target : '链接目标', -insert_link_target_same : '在同一窗口中打开链接', -insert_link_target_blank : '在新窗口中打开链接', -insert_image_title : '插入/编辑 图像', -insert_image_src : '图像地址', -insert_image_alt : '图像描述', -help_desc : '帮助', -bold_img : "bold.gif", -italic_img : "italic.gif", -underline_img : "underline.gif", -clipboard_msg : '剪切/复制/粘贴功能在 Mozilla 和 Firefox 浏览器中不支持。您希望获得更多的信息吗?', -popup_blocked : '对不起, 您的浏览器禁止了弹出式窗口。为了让您使用到最完善的功能,请对本网站的弹出式窗口解除禁止。' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_tw.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_tw.js deleted file mode 100644 index 9d4e6d0de4..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_tw.js +++ /dev/null @@ -1,42 +0,0 @@ -// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com -// c餤 BIG-5 FƦΧ{s@F twapweb_AT_gmail_DOT_com - -tinyMCE.addToLang('',{ -bold_desc : ']Ctrl+B^', -italic_desc : ']Ctrl+I^', -underline_desc : '[u]Ctrl+U^', -striketrough_desc : 'Ru', -justifyleft_desc : 'a', -justifycenter_desc : 'm', -justifyright_desc : 'ak', -justifyfull_desc : 'g', -bullist_desc : 'ؤ覡C', -numlist_desc : 's覡C', -outdent_desc : 'XjY', -indent_desc : 'pY', -undo_desc : '_]Ctrl+Z^', -redo_desc : 'ơ]Ctrl+Y^', -link_desc : 'Jνss', -unlink_desc : 'Rs', -image_desc : 'Jνs', -cleanup_desc : 'MX', -focus_alert : 'ϥΦOews边', -edit_confirm : 'n󦹤rJϤĥΩҵYoҦܡH', -insert_link_title : 'Jνss', -insert : 'J', -update : 's', -cancel : '', -insert_link_url : 's}', -insert_link_target : 'H', -insert_link_target_same : 'P}ҳs', -insert_link_target_blank : 'Hs}ҳs', -insert_image_title : 'Jνs', -insert_image_src : 'ɺ}', -insert_image_alt : 'ɻ', -help_desc : 'U', -bold_img : "bold_tw.gif", -italic_img : "italic_tw.gif", -underline_img : "underline_tw.gif", -clipboard_msg : 'b Mozilla M Firefox LkϥνƻsΰŤUζKW\C\nݭnh󦹪TܡH', -popup_blocked : 'Iz]m{jAwN\{jFC\nнվ{j]wA~ॿ`ϥΦ\C' -}); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_tw_utf8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_tw_utf8.js deleted file mode 100644 index e39a16ce03..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/langs/zh_tw_utf8.js +++ /dev/null @@ -1,42 +0,0 @@ -// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com -// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com - -tinyMCE.addToLang('',{ -bold_desc : '粗體(Ctrl+B)', -italic_desc : '斜體(Ctrl+I)', -underline_desc : '加底線(Ctrl+U)', -striketrough_desc : '刪除線', -justifyleft_desc : '靠左', -justifycenter_desc : '置中', -justifyright_desc : '靠右', -justifyfull_desc : '整篇對齊', -bullist_desc : '項目方式條列', -numlist_desc : '編號方式條列', -outdent_desc : '擴大縮排', -indent_desc : '減小縮排', -undo_desc : '復原(Ctrl+Z)', -redo_desc : '重複(Ctrl+Y)', -link_desc : '插入或編輯連結', -unlink_desc : '刪除連結', -image_desc : '插入或編輯圖檔', -cleanup_desc : '清除冗碼', -focus_alert : '使用此指令前須先指定編輯器', -edit_confirm : '要於此文字輸入區中採用所視即得模式嗎?', -insert_link_title : '插入或編輯連結', -insert : '插入', -update : '更新', -cancel : '取消', -insert_link_url : '連結網址', -insert_link_target : '對象', -insert_link_target_same : '於同視窗中開啟連結', -insert_link_target_blank : '以新視窗中開啟連結', -insert_image_title : '插入或編輯圖檔', -insert_image_src : '圖檔網址', -insert_image_alt : '圖檔說明', -help_desc : '協助', -bold_img : "bold_tw.gif", -italic_img : "italic_tw.gif", -underline_img : "underline_tw.gif", -clipboard_msg : '在 Mozilla 和 Firefox 中無法使用複製或剪下或貼上功能。\n需要更多關於此的訊息嗎?', -popup_blocked : '喔!您有設置跳現視窗隔絕機制,已將功能跳現視窗給隔絕了。\n請調整跳現視窗隔絕機制的設定,才能正常使用此功能。' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/license.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/license.txt deleted file mode 100644 index 60d6d4c8f5..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/license.txt +++ /dev/null @@ -1,504 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/css/advimage.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/css/advimage.css deleted file mode 100644 index abf4405d38..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/css/advimage.css +++ /dev/null @@ -1,66 +0,0 @@ -/* CSS file for advimage plugin popup */ - -.mceImageList { - width: 280px; -} - -.mceActionPanel { - margin-top: 7px; -} - -.alignPreview { - border: 1px solid black; - width: 140px; - height: 140px; - overflow: hidden; - padding: 5px; -} - -.checkbox { - border: 0; -} - -.panel_wrapper div.current { - height: 305px; -} - -#prev { - margin: 0; - border: 1px - solid black; - width: 99%; - height: 150px; - overflow: auto; -} - -#align, #classlist { - width: 150px; -} - -#width, #height { - vertical-align: middle; - width: 50px; - text-align: center; -} - -#vspace, #hspace, #border { - vertical-align: middle; - width: 30px; - text-align: center; -} - -#classlist { - width: 180px; -} - -input { - width: 280px; -} - -#constrain, #onmousemovecheck { - width: auto; -} - -#id, #dir, #lang, #usemap, #longdesc { - width: 200px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/editor_plugin.js deleted file mode 100644 index 0061bc4643..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('advimage','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedImagePlugin={getInfo:function(){return{longname:'Advanced image',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advimage.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},getControlHTML:function(cn){switch(cn){case"image":return tinyMCE.getButtonHTML(cn,'lang_image_desc','{$themeurl}/images/image.gif','mceAdvImage');}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvImage":var template=new Array();template['file']='../../plugins/advimage/image.htm';template['width']=480;template['height']=380;template['width']+=tinyMCE.getLang('lang_advimage_delta_width',0);template['height']+=tinyMCE.getLang('lang_advimage_delta_height',0);var inst=tinyMCE.getInstanceById(editor_id);var elm=inst.getFocusElement();if(elm!=null&&tinyMCE.getAttrib(elm,'class').indexOf('mceItem')!=-1)return true;tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;}return false;},cleanup:function(type,content){switch(type){case"insert_to_editor_dom":var imgs=content.getElementsByTagName("img");for(var i=0;i - - {$lang_insert_image_title} - - - - - - - - -
- - -
-
-
- {$lang_advimage_general} - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
-
- -
- {$lang_advimage_preview} - -
-
- -
-
- {$lang_advimage_tab_appearance} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- {$lang_advimage_example_img} - Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam - nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum - edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam - erat volutpat. -
-
- x - px -
  - - - - -
-
- -
-
-
- -
-
- {$lang_advimage_swap_image} - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
- - - - -
 
 
-
- -
- {$lang_advimage_misc} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- - - - -
 
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/images/sample.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/images/sample.gif deleted file mode 100644 index 53bf6890b5..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/images/sample.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/jscripts/functions.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/jscripts/functions.js deleted file mode 100644 index 7bbe4e28e8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/jscripts/functions.js +++ /dev/null @@ -1,545 +0,0 @@ -/* Functions for the advimage plugin popup */ - -var preloadImg = null; -var orgImageWidth, orgImageHeight; - -function preinit() { - // Initialize - tinyMCE.setWindowArg('mce_windowresize', false); - - // Import external list url javascript - var url = tinyMCE.getParam("external_image_list_url"); - if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); - } -} - -function convertURL(url, node, on_save) { - return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);"); -} - -function getImageSrc(str) { - var pos = -1; - - if (!str) - return ""; - - if ((pos = str.indexOf('this.src=')) != -1) { - var src = str.substring(pos + 10); - - src = src.substring(0, src.indexOf('\'')); - - if (tinyMCE.getParam('convert_urls')) - src = convertURL(src, null, true); - - return src; - } - - return ""; -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var action = "insert"; - var html = ""; - - // Image list src - html = getImageListHTML('imagelistsrc','src','onSelectMainImage'); - if (html == "") - document.getElementById("imagelistsrcrow").style.display = 'none'; - else - document.getElementById("imagelistsrccontainer").innerHTML = html; - - // Image list oversrc - html = getImageListHTML('imagelistover','onmouseoversrc'); - if (html == "") - document.getElementById("imagelistoverrow").style.display = 'none'; - else - document.getElementById("imagelistovercontainer").innerHTML = html; - - // Image list outsrc - html = getImageListHTML('imagelistout','onmouseoutsrc'); - if (html == "") - document.getElementById("imagelistoutrow").style.display = 'none'; - else - document.getElementById("imagelistoutcontainer").innerHTML = html; - - // Src browser - html = getBrowserHTML('srcbrowser','src','image','advimage'); - document.getElementById("srcbrowsercontainer").innerHTML = html; - - // Over browser - html = getBrowserHTML('oversrcbrowser','onmouseoversrc','image','advimage'); - document.getElementById("onmouseoversrccontainer").innerHTML = html; - - // Out browser - html = getBrowserHTML('outsrcbrowser','onmouseoutsrc','image','advimage'); - document.getElementById("onmouseoutsrccontainer").innerHTML = html; - - // Longdesc browser - html = getBrowserHTML('longdescbrowser','longdesc','file','advimage'); - document.getElementById("longdesccontainer").innerHTML = html; - - // Resize some elements - if (isVisible('srcbrowser')) - document.getElementById('src').style.width = '260px'; - - if (isVisible('oversrcbrowser')) - document.getElementById('onmouseoversrc').style.width = '260px'; - - if (isVisible('outsrcbrowser')) - document.getElementById('onmouseoutsrc').style.width = '260px'; - - if (isVisible('longdescbrowser')) - document.getElementById('longdesc').style.width = '180px'; - - // Check action - if (elm != null && elm.nodeName == "IMG") - action = "update"; - - formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); - - if (action == "update") { - var src = tinyMCE.getAttrib(elm, 'src'); - var onmouseoversrc = getImageSrc(tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover'))); - var onmouseoutsrc = getImageSrc(tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout'))); - - src = convertURL(src, elm, true); - - // Use mce_src if found - var mceRealSrc = tinyMCE.getAttrib(elm, 'mce_src'); - if (mceRealSrc != "") { - src = mceRealSrc; - - if (tinyMCE.getParam('convert_urls')) - src = convertURL(src, elm, true); - } - - if (onmouseoversrc != "" && tinyMCE.getParam('convert_urls')) - onmouseoversrc = convertURL(onmouseoversrc, elm, true); - - if (onmouseoutsrc != "" && tinyMCE.getParam('convert_urls')) - onmouseoutsrc = convertURL(onmouseoutsrc, elm, true); - - // Setup form data - var style = tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style")); - - // Store away old size - orgImageWidth = trimSize(getStyle(elm, 'width')) - orgImageHeight = trimSize(getStyle(elm, 'height')); - - formObj.src.value = src; - formObj.alt.value = tinyMCE.getAttrib(elm, 'alt'); - formObj.title.value = tinyMCE.getAttrib(elm, 'title'); - formObj.border.value = trimSize(getStyle(elm, 'border', 'borderWidth')); - formObj.vspace.value = tinyMCE.getAttrib(elm, 'vspace'); - formObj.hspace.value = tinyMCE.getAttrib(elm, 'hspace'); - formObj.width.value = orgImageWidth; - formObj.height.value = orgImageHeight; - formObj.onmouseoversrc.value = onmouseoversrc; - formObj.onmouseoutsrc.value = onmouseoutsrc; - formObj.id.value = tinyMCE.getAttrib(elm, 'id'); - formObj.dir.value = tinyMCE.getAttrib(elm, 'dir'); - formObj.lang.value = tinyMCE.getAttrib(elm, 'lang'); - formObj.longdesc.value = tinyMCE.getAttrib(elm, 'longdesc'); - formObj.usemap.value = tinyMCE.getAttrib(elm, 'usemap'); - formObj.style.value = tinyMCE.serializeStyle(style); - - // Select by the values - if (tinyMCE.isMSIE) - selectByValue(formObj, 'align', getStyle(elm, 'align', 'styleFloat')); - else - selectByValue(formObj, 'align', getStyle(elm, 'align', 'cssFloat')); - - addClassesToList('classlist', 'advimage_styles'); - - selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class')); - selectByValue(formObj, 'imagelistsrc', src); - selectByValue(formObj, 'imagelistover', onmouseoversrc); - selectByValue(formObj, 'imagelistout', onmouseoutsrc); - - updateStyle(); - showPreviewImage(src, true); - changeAppearance(); - - window.focus(); - } else - addClassesToList('classlist', 'advimage_styles'); - - // If option enabled default contrain proportions to checked - if (tinyMCE.getParam("advimage_constrain_proportions", true)) - formObj.constrain.checked = true; - - // Check swap image if valid data - if (formObj.onmouseoversrc.value != "" || formObj.onmouseoutsrc.value != "") - setSwapImageDisabled(false); - else - setSwapImageDisabled(true); -} - -function setSwapImageDisabled(state) { - var formObj = document.forms[0]; - - formObj.onmousemovecheck.checked = !state; - - setBrowserDisabled('overbrowser', state); - setBrowserDisabled('outbrowser', state); - - if (formObj.imagelistover) - formObj.imagelistover.disabled = state; - - if (formObj.imagelistout) - formObj.imagelistout.disabled = state; - - formObj.onmouseoversrc.disabled = state; - formObj.onmouseoutsrc.disabled = state; -} - -function setAttrib(elm, attrib, value) { - var formObj = document.forms[0]; - var valueElm = formObj.elements[attrib]; - - if (typeof(value) == "undefined" || value == null) { - value = ""; - - if (valueElm) - value = valueElm.value; - } - - if (value != "") { - elm.setAttribute(attrib, value); - - if (attrib == "style") - attrib = "style.cssText"; - - if (attrib == "longdesc") - attrib = "longDesc"; - - if (attrib == "width") { - attrib = "style.width"; - value = value + "px"; - } - - if (attrib == "height") { - attrib = "style.height"; - value = value + "px"; - } - - if (attrib == "class") - attrib = "className"; - - eval('elm.' + attrib + "=value;"); - } else - elm.removeAttribute(attrib); -} - -function makeAttrib(attrib, value) { - var formObj = document.forms[0]; - var valueElm = formObj.elements[attrib]; - - if (typeof(value) == "undefined" || value == null) { - value = ""; - - if (valueElm) - value = valueElm.value; - } - - if (value == "") - return ""; - - // XML encode it - value = value.replace(/&/g, '&'); - value = value.replace(/\"/g, '"'); - value = value.replace(//g, '>'); - - return ' ' + attrib + '="' + value + '"'; -} - -function insertAction() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var formObj = document.forms[0]; - var src = formObj.src.value; - var onmouseoversrc = formObj.onmouseoversrc.value; - var onmouseoutsrc = formObj.onmouseoutsrc.value; - - if (tinyMCE.getParam("accessibility_warnings")) { - if (formObj.alt.value == "") { - var answer = confirm(tinyMCE.getLang('lang_advimage_missing_alt', '', true)); - if (answer == true) { - formObj.alt.value = " "; - } - } else { - var answer = true; - } - - if (!answer) - return; - } - - if (onmouseoversrc && onmouseoversrc != "") - onmouseoversrc = "this.src='" + convertURL(onmouseoversrc, tinyMCE.imgElement) + "';"; - - if (onmouseoutsrc && onmouseoutsrc != "") - onmouseoutsrc = "this.src='" + convertURL(onmouseoutsrc, tinyMCE.imgElement) + "';"; - - if (elm != null && elm.nodeName == "IMG") { - setAttrib(elm, 'src', convertURL(src, tinyMCE.imgElement)); - setAttrib(elm, 'mce_src', src); - setAttrib(elm, 'alt'); - setAttrib(elm, 'title'); - setAttrib(elm, 'border'); - setAttrib(elm, 'vspace'); - setAttrib(elm, 'hspace'); - setAttrib(elm, 'width'); - setAttrib(elm, 'height'); - setAttrib(elm, 'onmouseover', onmouseoversrc); - setAttrib(elm, 'onmouseout', onmouseoutsrc); - setAttrib(elm, 'id'); - setAttrib(elm, 'dir'); - setAttrib(elm, 'lang'); - setAttrib(elm, 'longdesc'); - setAttrib(elm, 'usemap'); - setAttrib(elm, 'style'); - setAttrib(elm, 'class', getSelectValue(formObj, 'classlist')); - setAttrib(elm, 'align', getSelectValue(formObj, 'align')); - - //tinyMCEPopup.execCommand("mceRepaint"); - - // Repaint if dimensions changed - if (formObj.width.value != orgImageWidth || formObj.height.value != orgImageHeight) - inst.repaint(); - - // Refresh in old MSIE - if (tinyMCE.isMSIE5) - elm.outerHTML = elm.outerHTML; - } else { - var html = "' - - getImageData(src); -} - -function getImageData(src) { - preloadImg = new Image(); - - tinyMCE.addEvent(preloadImg, "load", updateImageData); - tinyMCE.addEvent(preloadImg, "error", resetImageData); - - preloadImg.src = src; -} - -function updateImageData() { - var formObj = document.forms[0]; - - if (formObj.width.value == "") - formObj.width.value = preloadImg.width; - - if (formObj.height.value == "") - formObj.height.value = preloadImg.height; - - updateStyle(); -} - -function resetImageData() { - var formObj = document.forms[0]; - formObj.width.value = formObj.height.value = ""; -} - -function getSelectValue(form_obj, field_name) { - var elm = form_obj.elements[field_name]; - - if (elm == null || elm.options == null) - return ""; - - return elm.options[elm.selectedIndex].value; -} - -function getImageListHTML(elm_id, target_form_element, onchange_func) { - if (typeof(tinyMCEImageList) == "undefined" || tinyMCEImageList.length == 0) - return ""; - - var html = ""; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -// While loading -preinit(); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/langs/en.js deleted file mode 100644 index ffd7e30c51..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/langs/en.js +++ /dev/null @@ -1,27 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('advimage',{ -tab_general : 'General', -tab_appearance : 'Appearance', -tab_advanced : 'Advanced', -general : 'General', -title : 'Title', -preview : 'Preview', -constrain_proportions : 'Constrain proportions', -langdir : 'Language direction', -langcode : 'Language code', -long_desc : 'Long description link', -style : 'Style', -classes : 'Classes', -ltr : 'Left to right', -rtl : 'Right to left', -id : 'Id', -image_map : 'Image map', -swap_image : 'Swap image', -alt_image : 'Alternative image', -mouseover : 'for mouse over', -mouseout : 'for mouse out', -misc : 'Miscellaneous', -example_img : 'Appearance preview image', -missing_alt : 'Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advimage/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/css/advlink.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/css/advlink.css deleted file mode 100644 index 0cb37bd20a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/css/advlink.css +++ /dev/null @@ -1,35 +0,0 @@ -/* CSS file for advimage plugin popup */ - -.mceLinkList, .mceAnchorList, #targetlist { - width: 280px; -} - -.mceActionPanel { - margin-top: 7px; -} - -.panel_wrapper div.current { - height: 320px; -} - -#classlist, #title, #href { - width: 280px; -} - -#popupurl, #popupname { - width: 200px; -} - -#popupwidth, #popupheight, #popupleft, #popuptop { - width: 30px; - vertical-align: middle; - text-align: center; -} - -#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey { - width: 200px; -} - -#events_panel input { - width: 200px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/editor_plugin.js deleted file mode 100644 index bf1db56329..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('advlink','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){inst.addShortcut('ctrl','k','lang_advlink_desc','mceAdvLink');},getControlHTML:function(cn){switch(cn){case"link":return tinyMCE.getButtonHTML(cn,'lang_link_desc','{$themeurl}/images/link.gif','mceAdvLink');}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvLink":var anySelection=false;var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var selectedText=inst.selection.getSelectedText();if(tinyMCE.selectedElement)anySelection=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(selectedText&&selectedText.length>0);if(anySelection||(focusElm!=null&&focusElm.nodeName=="A")){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=480;template['height']=400;template['width']+=tinyMCE.getLang('lang_advlink_delta_width',0);template['height']+=tinyMCE.getLang('lang_advlink_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});}return true;}return false;},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="A"&&tinyMCE.getAttrib(node,'href')!=""){tinyMCE.switchClass(editor_id+'_advlink','mceButtonSelected');return true;}}while((node=node.parentNode));if(any_selection){tinyMCE.switchClass(editor_id+'_advlink','mceButtonNormal');return true;}tinyMCE.switchClass(editor_id+'_advlink','mceButtonDisabled');return true;}};tinyMCE.addPlugin("advlink",TinyMCE_AdvancedLinkPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/editor_plugin_src.js deleted file mode 100644 index 7fd4f07ced..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/editor_plugin_src.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * $RCSfile: editor_plugin_src.js,v $ - * $Revision: 1.24 $ - * $Date: 2006/02/10 16:29:38 $ - * - * @author Moxiecode - * @copyright Copyright 2004-2006, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('advlink', 'en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da'); - -var TinyMCE_AdvancedLinkPlugin = { - getInfo : function() { - return { - longname : 'Advanced link', - author : 'Moxiecode Systems', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - initInstance : function(inst) { - inst.addShortcut('ctrl', 'k', 'lang_advlink_desc', 'mceAdvLink'); - }, - - getControlHTML : function(cn) { - switch (cn) { - case "link": - return tinyMCE.getButtonHTML(cn, 'lang_link_desc', '{$themeurl}/images/link.gif', 'mceAdvLink'); - } - - return ""; - }, - - execCommand : function(editor_id, element, command, user_interface, value) { - switch (command) { - case "mceAdvLink": - var anySelection = false; - var inst = tinyMCE.getInstanceById(editor_id); - var focusElm = inst.getFocusElement(); - var selectedText = inst.selection.getSelectedText(); - - if (tinyMCE.selectedElement) - anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0); - - if (anySelection || (focusElm != null && focusElm.nodeName == "A")) { - var template = new Array(); - - template['file'] = '../../plugins/advlink/link.htm'; - template['width'] = 480; - template['height'] = 400; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - } - - return true; - } - - return false; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node == null) - return; - - do { - if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "") { - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonSelected'); - return true; - } - } while ((node = node.parentNode)); - - if (any_selection) { - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonNormal'); - return true; - } - - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonDisabled'); - - return true; - } -}; - -tinyMCE.addPlugin("advlink", TinyMCE_AdvancedLinkPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/jscripts/functions.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/jscripts/functions.js deleted file mode 100644 index 58a2c9e98c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/jscripts/functions.js +++ /dev/null @@ -1,568 +0,0 @@ -/* Functions for the advlink plugin popup */ - -var templates = { - "window.open" : "window.open('${url}','${target}','${options}')" -}; - -function preinit() { - // Initialize - tinyMCE.setWindowArg('mce_windowresize', false); - - // Import external list url javascript - var url = tinyMCE.getParam("external_link_list_url"); - if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); - } -} - -function changeClass() { - var formObj = document.forms[0]; - formObj.classes.value = getSelectValue(formObj, 'classlist'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var action = "insert"; - var html; - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); - document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); - document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); - document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); - document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); - - // Link list - html = getLinkListHTML('linklisthref','href'); - if (html == "") - document.getElementById("linklisthrefrow").style.display = 'none'; - else - document.getElementById("linklisthrefcontainer").innerHTML = html; - - // Resize some elements - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '260px'; - - if (isVisible('popupurlbrowser')) - document.getElementById('popupurl').style.width = '180px'; - - elm = tinyMCE.getParentElement(elm, "a"); - if (elm != null && elm.nodeName == "A") - action = "update"; - - formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); - - setPopupControlsDisabled(true); - - if (action == "update") { - var href = tinyMCE.getAttrib(elm, 'href'); - - href = convertURL(href, elm, true); - - // Use mce_href if found - var mceRealHref = tinyMCE.getAttrib(elm, 'mce_href'); - if (mceRealHref != "") { - href = mceRealHref; - - if (tinyMCE.getParam('convert_urls')) - href = convertURL(href, elm, true); - } - - var onclick = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onclick')); - - // Setup form data - setFormValue('href', href); - setFormValue('title', tinyMCE.getAttrib(elm, 'title')); - setFormValue('id', tinyMCE.getAttrib(elm, 'id')); - setFormValue('style', tinyMCE.serializeStyle(tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style")))); - setFormValue('rel', tinyMCE.getAttrib(elm, 'rel')); - setFormValue('rev', tinyMCE.getAttrib(elm, 'rev')); - setFormValue('charset', tinyMCE.getAttrib(elm, 'charset')); - setFormValue('hreflang', tinyMCE.getAttrib(elm, 'hreflang')); - setFormValue('dir', tinyMCE.getAttrib(elm, 'dir')); - setFormValue('lang', tinyMCE.getAttrib(elm, 'lang')); - setFormValue('tabindex', tinyMCE.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); - setFormValue('accesskey', tinyMCE.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); - setFormValue('type', tinyMCE.getAttrib(elm, 'type')); - setFormValue('onfocus', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onfocus'))); - setFormValue('onblur', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onblur'))); - setFormValue('onclick', onclick); - setFormValue('ondblclick', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'ondblclick'))); - setFormValue('onmousedown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousedown'))); - setFormValue('onmouseup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseup'))); - setFormValue('onmouseover', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover'))); - setFormValue('onmousemove', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousemove'))); - setFormValue('onmouseout', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout'))); - setFormValue('onkeypress', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeypress'))); - setFormValue('onkeydown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeydown'))); - setFormValue('onkeyup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeyup'))); - setFormValue('target', tinyMCE.getAttrib(elm, 'target')); - setFormValue('classes', tinyMCE.getAttrib(elm, 'class')); - - // Parse onclick data - if (onclick != null && onclick.indexOf('window.open') != -1) - parseWindowOpen(onclick); - else - parseFunction(onclick); - - // Select by the values - selectByValue(formObj, 'dir', tinyMCE.getAttrib(elm, 'dir')); - selectByValue(formObj, 'rel', tinyMCE.getAttrib(elm, 'rel')); - selectByValue(formObj, 'rev', tinyMCE.getAttrib(elm, 'rev')); - selectByValue(formObj, 'linklisthref', href); - - if (href.charAt(0) == '#') - selectByValue(formObj, 'anchorlist', href); - - addClassesToList('classlist', 'advlink_styles'); - - selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class'), true); - selectByValue(formObj, 'targetlist', tinyMCE.getAttrib(elm, 'target'), true); - } else - addClassesToList('classlist', 'advlink_styles'); - - window.focus(); -} - -function setFormValue(name, value) { - document.forms[0].elements[name].value = value; -} - -function convertURL(url, node, on_save) { - return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);"); -} - -function parseWindowOpen(onclick) { - var formObj = document.forms[0]; - - // Preprocess center code - if (onclick.indexOf('return false;') != -1) { - formObj.popupreturn.checked = true; - onclick = onclick.replace('return false;', ''); - } else - formObj.popupreturn.checked = false; - - var onClickData = parseLink(onclick); - - if (onClickData != null) { - formObj.ispopup.checked = true; - setPopupControlsDisabled(false); - - var onClickWindowOptions = parseOptions(onClickData['options']); - var url = onClickData['url']; - - if (tinyMCE.getParam('convert_urls')) - url = convertURL(url, null, true); - - formObj.popupname.value = onClickData['target']; - formObj.popupurl.value = url; - formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); - formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); - - formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); - formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); - - if (formObj.popupleft.value.indexOf('screen') != -1) - formObj.popupleft.value = "c"; - - if (formObj.popuptop.value.indexOf('screen') != -1) - formObj.popuptop.value = "c"; - - formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; - formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; - formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; - formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; - formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; - formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; - formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; - - buildOnClick(); - } -} - -function parseFunction(onclick) { - var formObj = document.forms[0]; - var onClickData = parseLink(onclick); - - // TODO: Add stuff here -} - -function getOption(opts, name) { - return typeof(opts[name]) == "undefined" ? "" : opts[name]; -} - -function setPopupControlsDisabled(state) { - var formObj = document.forms[0]; - - formObj.popupname.disabled = state; - formObj.popupurl.disabled = state; - formObj.popupwidth.disabled = state; - formObj.popupheight.disabled = state; - formObj.popupleft.disabled = state; - formObj.popuptop.disabled = state; - formObj.popuplocation.disabled = state; - formObj.popupscrollbars.disabled = state; - formObj.popupmenubar.disabled = state; - formObj.popupresizable.disabled = state; - formObj.popuptoolbar.disabled = state; - formObj.popupstatus.disabled = state; - formObj.popupreturn.disabled = state; - formObj.popupdependent.disabled = state; - - setBrowserDisabled('popupurlbrowser', state); -} - -function parseLink(link) { - link = link.replace(new RegExp(''', 'g'), "'"); - - var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); - - // Is function name a template function - var template = templates[fnName]; - if (template) { - // Build regexp - var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); - var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; - var replaceStr = ""; - for (var i=0; i'); - for (var i=0; i'; - html += ''; - - for (var i=0; i' + name + ''; - } - - html += ''; - - return html; -} - -function insertAction() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - - elm = tinyMCE.getParentElement(elm, "a"); - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - // Create new anchor elements - if (elm == null) { - if (tinyMCE.isSafari) - tinyMCEPopup.execCommand("mceInsertContent", false, '' + inst.selection.getSelectedHTML() + ''); - else - tinyMCEPopup.execCommand("createlink", false, "#mce_temp_url#"); - - var elementArray = tinyMCE.getElementsByAttributeValue(inst.getBody(), "a", "href", "#mce_temp_url#"); - for (var i=0; i' + tinyMCELinkList[i][0] + ''; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -function getTargetListHTML(elm_id, target_form_element) { - var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';'); - var html = ''; - - html += ''; - - return html; -} - -// While loading -preinit(); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/langs/en.js deleted file mode 100644 index 0e68e5ab37..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/langs/en.js +++ /dev/null @@ -1,46 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('advlink',{ -general_tab : 'General', -popup_tab : 'Popup', -events_tab : 'Events', -advanced_tab : 'Advanced', -general_props : 'General properties', -popup_props : 'Popup properties', -event_props : 'Events', -advanced_props : 'Advanced properties', -popup_opts : 'Options', -anchor_names : 'Anchors', -target_same : 'Open in this window / frame', -target_parent : 'Open in parent window / frame', -target_top : 'Open in top frame (replaces all frames)', -target_blank : 'Open in new window', -popup : 'Javascript popup', -popup_url : 'Popup URL', -popup_name : 'Window name', -popup_return : 'Insert \'return false\'', -popup_scrollbars : 'Show scrollbars', -popup_statusbar : 'Show status bar', -popup_toolbar : 'Show toolbars', -popup_menubar : 'Show menu bar', -popup_location : 'Show location bar', -popup_resizable : 'Make window resizable', -popup_dependent : 'Dependent (Mozilla/Firefox only)', -popup_size : 'Size', -popup_position : 'Position (X/Y)', -id : 'Id', -style: 'Style', -classes : 'Classes', -target_name : 'Target name', -langdir : 'Language direction', -target_langcode : 'Target language', -langcode : 'Language code', -encoding : 'Target character encoding', -mime : 'Target MIME type', -rel : 'Relationship page to target', -rev : 'Relationship target to page', -tabindex : 'Tabindex', -accesskey : 'Accesskey', -ltr : 'Left to right', -rtl : 'Right to left' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/link.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/link.htm deleted file mode 100644 index afd04d7e1a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/link.htm +++ /dev/null @@ -1,334 +0,0 @@ - - - {$lang_insert_link_title} - - - - - - - - -
- - -
-
-
- {$lang_advlink_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
 
 
- -
-
-
- - - -
-
- {$lang_advlink_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
-
-
-
-
- -
-
- {$lang_advlink_event_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/Copy of advlink/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/editor_plugin.js deleted file mode 100644 index 59e2ceb27e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('template','en,tr,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl');var TinyMCE_TemplatePlugin={getInfo:function(){return{longname:'Template plugin',author:'Your name',authorurl:'http://www.yoursite.com',infourl:'http://www.yoursite.com/docs/template.html',version:"1.0"};},initInstance:function(inst){alert("Initialization parameter:"+tinyMCE.getParam("template_someparam",false));inst.addShortcut('ctrl','t','lang_template_desc','mceTemplate');},getControlHTML:function(cn){switch(cn){case"template":return tinyMCE.getButtonHTML(cn,'lang_template_desc','{$pluginurl}/images/template.gif','mceTemplate',true);}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceTemplate":if(user_interface){var template=new Array();template['file']='../../plugins/template/popup.htm';template['width']=300;template['height']=200;tinyMCE.openWindow(template,{editor_id:editor_id,some_custom_arg:"somecustomdata"});tinyMCE.triggerNodeChange(false);}else{alert("execCommand: mceTemplate gets called from popup.");}return true;}return false;},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node.parentNode.nodeName=="STRONG"||node.parentNode.nodeName=="B"){tinyMCE.switchClass(editor_id+'_template','mceButtonSelected');return true;}tinyMCE.switchClass(editor_id+'_template','mceButtonNormal');},setupContent:function(editor_id,body,doc){},onChange:function(inst){},handleEvent:function(e){top.status="template plugin event: "+e.type;return true;},cleanup:function(type,content,inst){switch(type){case"get_from_editor":alert("[FROM] Value HTML string: "+content);break;case"insert_to_editor":alert("[TO] Value HTML string: "+content);break;case"get_from_editor_dom":alert("[FROM] Value DOM Element "+content.innerHTML);break;case"insert_to_editor_dom":alert("[TO] Value DOM Element: "+content.innerHTML);break;}return content;},_someInternalFunction:function(a,b){return 1;}};tinyMCE.addPlugin("template",TinyMCE_TemplatePlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/editor_plugin_src.js deleted file mode 100644 index e69f1fce44..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/editor_plugin_src.js +++ /dev/null @@ -1,238 +0,0 @@ -/** - * $RCSfile: editor_plugin_src.js,v $ - * $Revision: 1.12 $ - * $Date: 2006/02/22 20:06:23 $ - * - * @author Moxiecode - * @copyright Copyright 2004-2006, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('template', 'en,tr,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl'); // <- Add a comma separated list of all supported languages - -/**** - * Steps for creating a plugin from this template: - * - * 1. Change all "template" to the name of your plugin. - * 2. Remove all the callbacks in this file that you don't need. - * 3. Remove the popup.htm file if you don't need any popups. - * 4. Add your custom logic to the callbacks you needed. - * 5. Write documentation in a readme.txt file on how to use the plugin. - * 6. Upload it under the "Plugins" section at sourceforge. - * - ****/ - -// Singleton class -var TinyMCE_TemplatePlugin = { - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @returns Name/value array containing information about the plugin. - * @type Array - */ - getInfo : function() { - return { - longname : 'Template plugin', - author : 'Your name', - authorurl : 'http://www.yoursite.com', - infourl : 'http://www.yoursite.com/docs/template.html', - version : "1.0" - }; - }, - - /** - * Gets executed when a TinyMCE editor instance is initialized. - * - * @param {TinyMCE_Control} Initialized TinyMCE editor control instance. - */ - initInstance : function(inst) { - // You can take out plugin specific parameters - alert("Initialization parameter:" + tinyMCE.getParam("template_someparam", false)); - - // Register custom keyboard shortcut - inst.addShortcut('ctrl', 't', 'lang_template_desc', 'mceTemplate'); - }, - - /** - * Returns the HTML code for a specific control or empty string if this plugin doesn't have that control. - * A control can be a button, select list or any other HTML item to present in the TinyMCE user interface. - * The variable {$editor_id} will be replaced with the current editor instance id and {$pluginurl} will be replaced - * with the URL of the plugin. Language variables such as {$lang_somekey} will also be replaced with contents from - * the language packs. - * - * @param {string} cn Editor control/button name to get HTML for. - * @return HTML code for a specific control or empty string. - * @type string - */ - getControlHTML : function(cn) { - switch (cn) { - case "template": - return tinyMCE.getButtonHTML(cn, 'lang_template_desc', '{$pluginurl}/images/template.gif', 'mceTemplate', true); - } - - return ""; - }, - - /** - * Executes a specific command, this function handles plugin commands. - * - * @param {string} editor_id TinyMCE editor instance id that issued the command. - * @param {HTMLElement} element Body or root element for the editor instance. - * @param {string} command Command name to be executed. - * @param {string} user_interface True/false if a user interface should be presented. - * @param {mixed} value Custom value argument, can be anything. - * @return true/false if the command was executed by this plugin or not. - * @type - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - // Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser. - case "mceTemplate": - // Show UI/Popup - if (user_interface) { - // Open a popup window and send in some custom data in a window argument - var template = new Array(); - - template['file'] = '../../plugins/template/popup.htm'; // Relative to theme - template['width'] = 300; - template['height'] = 200; - - tinyMCE.openWindow(template, {editor_id : editor_id, some_custom_arg : "somecustomdata"}); - - // Let TinyMCE know that something was modified - tinyMCE.triggerNodeChange(false); - } else { - // Do a command this gets called from the template popup - alert("execCommand: mceTemplate gets called from popup."); - } - - return true; - } - - // Pass to next handler in chain - return false; - }, - - /** - * Gets called ones the cursor/selection in a TinyMCE instance changes. This is useful to enable/disable - * button controls depending on where the user are and what they have selected. This method gets executed - * alot and should be as performance tuned as possible. - * - * @param {string} editor_id TinyMCE editor instance id that was changed. - * @param {HTMLNode} node Current node location, where the cursor is in the DOM tree. - * @param {int} undo_index The current undo index, if this is -1 custom undo/redo is disabled. - * @param {int} undo_levels The current undo levels, if this is -1 custom undo/redo is disabled. - * @param {boolean} visual_aid Is visual aids enabled/disabled ex: dotted lines on tables. - * @param {boolean} any_selection Is there any selection at all or is there only a cursor. - */ - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - // Select template button if parent node is a strong or b - if (node.parentNode.nodeName == "STRONG" || node.parentNode.nodeName == "B") { - tinyMCE.switchClass(editor_id + '_template', 'mceButtonSelected'); - return true; - } - - // Deselect template button - tinyMCE.switchClass(editor_id + '_template', 'mceButtonNormal'); - }, - - /** - * Gets called when a TinyMCE editor instance gets filled with content on startup. - * - * @param {string} editor_id TinyMCE editor instance id that was filled with content. - * @param {HTMLElement} body HTML body element of editor instance. - * @param {HTMLDocument} doc HTML document instance. - */ - setupContent : function(editor_id, body, doc) { - }, - - /** - * Gets called when the contents of a TinyMCE area is modified, in other words when a undo level is - * added. - * - * @param {TinyMCE_Control} inst TinyMCE editor area control instance that got modified. - */ - onChange : function(inst) { - }, - - /** - * Gets called when TinyMCE handles events such as keydown, mousedown etc. TinyMCE - * doesn't listen on all types of events so custom event handling may be required for - * some purposes. - * - * @param {Event} e HTML editor event reference. - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - handleEvent : function(e) { - // Display event type in statusbar - top.status = "template plugin event: " + e.type; - - return true; // Pass to next handler - }, - - /** - * Gets called when HTML contents is inserted or retrived from a TinyMCE editor instance. - * The type parameter contains what type of event that was performed and what format the content is in. - * Possible valuses for type is get_from_editor, insert_to_editor, get_from_editor_dom, insert_to_editor_dom. - * - * @param {string} type Cleanup event type. - * @param {mixed} content Editor contents that gets inserted/extracted can be a string or DOM element. - * @param {TinyMCE_Control} inst TinyMCE editor instance control that performes the cleanup. - * @return New content or the input content depending on action. - * @type string - */ - cleanup : function(type, content, inst) { - switch (type) { - case "get_from_editor": - alert("[FROM] Value HTML string: " + content); - - // Do custom cleanup code here - - break; - - case "insert_to_editor": - alert("[TO] Value HTML string: " + content); - - // Do custom cleanup code here - - break; - - case "get_from_editor_dom": - alert("[FROM] Value DOM Element " + content.innerHTML); - - // Do custom cleanup code here - - break; - - case "insert_to_editor_dom": - alert("[TO] Value DOM Element: " + content.innerHTML); - - // Do custom cleanup code here - - break; - } - - return content; - }, - - // Private plugin internal methods - - /** - * This is just a internal plugin method, prefix all internal methods with a _ character. - * The prefix is needed so they doesn't collide with future TinyMCE callback functions. - * - * @param {string} a Some arg1. - * @param {string} b Some arg2. - * @return Some return. - * @type string - */ - _someInternalFunction : function(a, b) { - return 1; - } -}; - -// Adds the plugin class to the list of available TinyMCE plugins -tinyMCE.addPlugin("template", TinyMCE_TemplatePlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/images/template.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/images/template.gif deleted file mode 100644 index 1ab5da4461..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/images/template.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/langs/en.js deleted file mode 100644 index 2c3407690e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/langs/en.js +++ /dev/null @@ -1,8 +0,0 @@ -// UK lang variables - -/* Remember to namespace the language parameters lang__ */ - -tinyMCE.addToLang('',{ -template_title : 'This is just a template popup', -template_desc : 'This is just a template button' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/popup.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/popup.htm deleted file mode 100644 index b07467fa2d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/popup.htm +++ /dev/null @@ -1,48 +0,0 @@ - - - {$lang_template_title} - - - - - -
-

{$lang_template_title}

- - -
- The selected element name: -
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/readme.txt deleted file mode 100644 index 2ee1505cdb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/_template/readme.txt +++ /dev/null @@ -1 +0,0 @@ -This is a template/tutorial plugin that where created to help you in the development of own plugins for TinyMCE. \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/css/advhr.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/css/advhr.css deleted file mode 100644 index 7ff36bdc8c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/css/advhr.css +++ /dev/null @@ -1,23 +0,0 @@ -input.radio { - border: 1px none #000000; - background-color: transparent; - vertical-align: middle; -} - -.panel_wrapper div.current { - height: 80px; -} - -#width { - width: 50px; - vertical-align: middle; -} - -#width2 { - width: 50px; - vertical-align: middle; -} - -#size { - width: 100px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/editor_plugin.js deleted file mode 100644 index 0f77b47c35..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('advhr');var TinyMCE_AdvancedHRPlugin={getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"advhr":return tinyMCE.getButtonHTML(cn,'lang_insert_advhr_desc','{$pluginurl}/images/advhr.gif','mceAdvancedHr')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=250;template['height']=160;template['width']+=tinyMCE.getLang('lang_advhr_delta_width',0);template['height']+=tinyMCE.getLang('lang_advhr_delta_height',0);var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):""}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'})}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'
')}else{tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",size:size,width:width,noshade:noshade,mceDo:'insert'})}}return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="HR"){tinyMCE.switchClass(editor_id+'_advhr','mceButtonSelected');return true}}while((node=node.parentNode));tinyMCE.switchClass(editor_id+'_advhr','mceButtonNormal');return true}};tinyMCE.addPlugin("advhr",TinyMCE_AdvancedHRPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/editor_plugin_src.js deleted file mode 100644 index aaf06269c1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/editor_plugin_src.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('advhr'); - -var TinyMCE_AdvancedHRPlugin = { - getInfo : function() { - return { - longname : 'Advanced HR', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - } - }, - - getControlHTML : function(cn) { - switch (cn) { - case "advhr": - return tinyMCE.getButtonHTML(cn, 'lang_insert_advhr_desc', '{$pluginurl}/images/advhr.gif', 'mceAdvancedHr'); - } - - return ""; - }, - - /** - * Executes the mceAdvanceHr command. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceAdvancedHr": - var template = new Array(); - - template['file'] = '../../plugins/advhr/rule.htm'; // Relative to theme - template['width'] = 250; - template['height'] = 160; - - template['width'] += tinyMCE.getLang('lang_advhr_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_advhr_delta_height', 0); - - var size = "", width = "", noshade = ""; - if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "hr") { - tinyMCE.hrElement = tinyMCE.selectedElement; - - if (tinyMCE.hrElement) { - size = tinyMCE.hrElement.getAttribute('size') ? tinyMCE.hrElement.getAttribute('size') : ""; - width = tinyMCE.hrElement.getAttribute('width') ? tinyMCE.hrElement.getAttribute('width') : ""; - noshade = tinyMCE.hrElement.getAttribute('noshade') ? tinyMCE.hrElement.getAttribute('noshade') : ""; - } - - tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'update'}); - } else { - if (tinyMCE.isMSIE) { - tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false,'
'); - } else { - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", size : size, width : width, noshade : noshade, mceDo : 'insert'}); - } - } - - return true; - } - - // Pass to next handler in chain - return false; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node == null) - return; - - do { - if (node.nodeName == "HR") { - tinyMCE.switchClass(editor_id + '_advhr', 'mceButtonSelected'); - return true; - } - } while ((node = node.parentNode)); - - tinyMCE.switchClass(editor_id + '_advhr', 'mceButtonNormal'); - - return true; - } -}; - -tinyMCE.addPlugin("advhr", TinyMCE_AdvancedHRPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/images/advhr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/images/advhr.gif deleted file mode 100644 index e2f8658f46..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/images/advhr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/jscripts/rule.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/jscripts/rule.js deleted file mode 100644 index ddaacd73db..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/jscripts/rule.js +++ /dev/null @@ -1,43 +0,0 @@ -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - formObj.width.value = tinyMCE.getWindowArg('width'); - formObj.size.value = tinyMCE.getWindowArg('size'); - formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('mceDo'),'Insert',true); - if (tinyMCE.getWindowArg('noshade')) { - formObj.noshade.checked = true; - } - if (tinyMCE.getWindowArg('width').lastIndexOf('%')!=-1) { - formObj.width2.value = "%"; - formObj.width.value = formObj.width.value.substring(0,formObj.width.value.length-1); - } -} - -function insertHR() { - var formObj = document.forms[0]; - var width = formObj.width.value; - var size = formObj.size.value; - var html = ' -// Last Updated : October 2005 -// TinyMCE Version : 2.0RC3 - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Insertar/Editar Barra Horizontal', -insert_advhr_width : 'Ancho', -insert_advhr_size : 'Alto', -insert_advhr_noshade : 'Sin Sombras' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fa.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fa.js deleted file mode 100644 index 54a4fbc7a4..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fa.js +++ /dev/null @@ -1,13 +0,0 @@ -// IR lang variables -// Persian (Farsi) language pack (for IRAN) -// By: Morteza Zafari -// Lost@LostLord.com -// http://www.LostLord.com - -tinyMCE.addToLang('',{ -dir : 'rtl', -insert_advhr_desc : '??? ? ?????? ?? ????', -insert_advhr_width : '???', -insert_advhr_size : '??????', -insert_advhr_noshade : '???? ????' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fi.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fi.js deleted file mode 100644 index 55cbb1d75d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fi.js +++ /dev/null @@ -1,8 +0,0 @@ -// FI lang variables by Tuomo Aura, Ateco.fi - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Lisää / Muokkaa vaakaviivaa', -insert_advhr_width : 'Leveys', -insert_advhr_size : 'Korkeus', -insert_advhr_noshade : 'Ei varjostusta' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fr.js deleted file mode 100644 index a29287dbb0..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fr.js +++ /dev/null @@ -1,9 +0,0 @@ -// FR lang variables -// Modified by Motte, last updated 2006-03-23 - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Insérer une règle horizontale stylée', -insert_advhr_width : 'Largeur', -insert_advhr_size : 'Hauteur', -insert_advhr_noshade : 'Sans ombre' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fr_ca.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fr_ca.js deleted file mode 100644 index 6dcd773912..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/fr_ca.js +++ /dev/null @@ -1,8 +0,0 @@ -// CA_FR lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Insrer / Modifier Sparateur Horizontal', -insert_advhr_width : 'Largeur', -insert_advhr_size : 'Hauteur', -insert_advhr_noshade : 'Sans ombrage' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/he.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/he.js deleted file mode 100644 index 5e5d119c3a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/he.js +++ /dev/null @@ -1,8 +0,0 @@ -// HE lang variables by Liron Newman, http://eesh.net - -tinyMCE.addToLang('',{ -insert_advhr_desc : ' ', -insert_advhr_width : '', -insert_advhr_size : '', -insert_advhr_noshade : ' ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/hu.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/hu.js deleted file mode 100644 index 2457f1c922..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/hu.js +++ /dev/null @@ -1,8 +0,0 @@ -// HU lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Vzszintes vonal beillesztse / szerkesztse', -insert_advhr_width : 'Hosszsg', -insert_advhr_size : 'Szlessg', -insert_advhr_noshade : 'Nincs rnyk' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/is.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/is.js deleted file mode 100644 index 63ca1d48e1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/is.js +++ /dev/null @@ -1,8 +0,0 @@ -// Iceland lang variables by Johannes Birgir Jensson - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Bæta við/breyta stiku', -insert_advhr_width : 'Breidd', -insert_advhr_size : 'Hæð', -insert_advhr_noshade : 'Enginn skuggi' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/it.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/it.js deleted file mode 100644 index 19d8a61f01..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/it.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * IT lang variables - * - * Author : Luciano Vernaschi - * Last Updated : Mar. 1st, 2007 - * TinyMCE Version : 2.1.0 - */ - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Riga orizzontale', -insert_advhr_width : 'Larghezza', -insert_advhr_size : 'Altezza', -insert_advhr_noshade : 'Senza rilievo' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja.js deleted file mode 100644 index adea960cf5..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja.js +++ /dev/null @@ -1,8 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : '水平線の挿入', -insert_advhr_width : '幅', -insert_advhr_size : '高さ', -insert_advhr_noshade : '影をつけない' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_euc-jp.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_euc-jp.js deleted file mode 100644 index ff873278c3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_euc-jp.js +++ /dev/null @@ -1,8 +0,0 @@ -// ܸ euc lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'ʿ̤Խ', -insert_advhr_width : '', -insert_advhr_size : '⤵', -insert_advhr_noshade : 'Ƥʤ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_shift_jis.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_shift_jis.js deleted file mode 100644 index de6540e688..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_shift_jis.js +++ /dev/null @@ -1,8 +0,0 @@ -// { shift-jis lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'ʂ̐}EҏW', -insert_advhr_width : '', -insert_advhr_size : '', -insert_advhr_noshade : 'eȂ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_utf-8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_utf-8.js deleted file mode 100644 index 47cc25827b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ja_utf-8.js +++ /dev/null @@ -1,8 +0,0 @@ -// 日本語 utf-8 lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : '平面の線を挿入・編集', -insert_advhr_width : '幅', -insert_advhr_size : '高さ', -insert_advhr_noshade : '影なし' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ko.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ko.js deleted file mode 100644 index 819476478d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ko.js +++ /dev/null @@ -1,8 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Horizontale rule', -insert_advhr_width : 'Width', -insert_advhr_size : 'Height', -insert_advhr_noshade : 'No shadow' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nb.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nb.js deleted file mode 100644 index 14a5ab6b3a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nb.js +++ /dev/null @@ -1,8 +0,0 @@ -// nb = Norwegian (bokmål) lang variables by Knut B. Jacobsen - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Lage/Redigere horisontal linje', -insert_advhr_width : 'Bredde', -insert_advhr_size : 'Høyde', -insert_advhr_noshade : 'Ingen skygge' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nl.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nl.js deleted file mode 100644 index 2ef3ba2875..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nl.js +++ /dev/null @@ -1,8 +0,0 @@ -// NL lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Horizontale lijn invoegen/bewerken', -insert_advhr_width : 'Breedte', -insert_advhr_size : 'Hoogte', -insert_advhr_noshade : 'Geen schaduw' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nn.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nn.js deleted file mode 100644 index 2cc7b16baf..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/nn.js +++ /dev/null @@ -1,8 +0,0 @@ -// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Lage/Redigere horisontal linje', -insert_advhr_width : 'Bredde', -insert_advhr_size : 'Høgde', -insert_advhr_noshade : 'Ingen skugge' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/pl.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/pl.js deleted file mode 100644 index 8a003cc38f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/pl.js +++ /dev/null @@ -1,11 +0,0 @@ -// PL lang variables -// fixed by Wooya -// http://www.mfusion.prv.pl -// fixed by lemiel 14.11.2005 - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Wstaw/Edytuj poziomą linię', -insert_advhr_width : 'Szerokość', -insert_advhr_size : 'Wysokość', -insert_advhr_noshade : 'Brak cienia' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/pt_br.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/pt_br.js deleted file mode 100644 index 22df425d75..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/pt_br.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * pt_br lang variables - * Brazilian Portuguese - * - * Author - * Revision and modifications: - * Marcio Barbosa (mpg) - * First Release : November 26, 2005 - TinyMCE Version : 2.0RC4 - * Last Updated : November 20, 2006 - TinyMCE Version : 2.0.8 - */ -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Inserir/editar linha horizontal', -insert_advhr_width : 'Largura', -insert_advhr_size : 'Altura', -insert_advhr_noshade : 'Sem sombra' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ro.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ro.js deleted file mode 100644 index 6cf8e0cbb9..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ro.js +++ /dev/null @@ -1,8 +0,0 @@ -// RO lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Inserează / editează rigla orizontală', -insert_advhr_width : 'Lăţime', -insert_advhr_size : 'Înălţime', -insert_advhr_noshade : 'Fără umbră' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru.js deleted file mode 100644 index 71a38d08d1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru.js +++ /dev/null @@ -1,8 +0,0 @@ -// RU lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Вставить / редактировать горизонтальный разделитель', -insert_advhr_width : 'Ширина', -insert_advhr_size : 'Высота', -insert_advhr_noshade : 'Без тени' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru_CP1251.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru_CP1251.js deleted file mode 100644 index ed4365cc05..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru_CP1251.js +++ /dev/null @@ -1,8 +0,0 @@ -// RU lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : ' / ', -insert_advhr_width : '', -insert_advhr_size : '', -insert_advhr_noshade : ' ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru_KOI8-R.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru_KOI8-R.js deleted file mode 100644 index d3475e3bfb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/ru_KOI8-R.js +++ /dev/null @@ -1,8 +0,0 @@ -// RU lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : ' / ', -insert_advhr_width : '', -insert_advhr_size : '', -insert_advhr_noshade : ' ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/si.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/si.js deleted file mode 100644 index 0b80730e55..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/si.js +++ /dev/null @@ -1,8 +0,0 @@ -// SI lang variables ISO-8859-2 - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Vstavi/uredi vodorano črto', -insert_advhr_width : 'Širina', -insert_advhr_size : 'Višina', -insert_advhr_noshade : 'Brez sence' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sk.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sk.js deleted file mode 100644 index 84c6d4636a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sk.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Slovak lang variables - * encoding: utf-8 - * - * @author Vladimir VASIL vvasil@post.sk - * - * $Id: sk.js,v 1.1 2005/11/22 20:56:43 spocke Exp $ - */ - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Vložiť/editovať vodorovný oddeľovač', -insert_advhr_width : 'Šírka', -insert_advhr_size : 'Výška', -insert_advhr_noshade : 'Nestieňovať' -}); - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sq.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sq.js deleted file mode 100644 index e511dda988..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sq.js +++ /dev/null @@ -1,8 +0,0 @@ -// AL lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Viszore horizontale', -insert_advhr_width : 'Gjeresi', -insert_advhr_size : 'Lartesi', -insert_advhr_noshade : 'Pa hije' -}); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sr.js deleted file mode 100644 index 012bb06d56..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sr.js +++ /dev/null @@ -1,8 +0,0 @@ -// SR lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Horizontalno pravilo', -insert_advhr_width : 'irina', -insert_advhr_size : 'Visina', -insert_advhr_noshade : 'Bez senke' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sv.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sv.js deleted file mode 100644 index ecc40811a4..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sv.js +++ /dev/null @@ -1,8 +0,0 @@ -// SE lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Skapa/Redigera horisontell linje', -insert_advhr_width : 'Bredd', -insert_advhr_size : 'Hjd', -insert_advhr_noshade : 'Ingen skugga' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sv_utf8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sv_utf8.js deleted file mode 100644 index d7d4280c40..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/sv_utf8.js +++ /dev/null @@ -1,8 +0,0 @@ -// SE lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Skapa/Redigera horisontell linje', -insert_advhr_width : 'Bredd', -insert_advhr_size : 'Höjd', -insert_advhr_noshade : 'Ingen skugga' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/tr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/tr.js deleted file mode 100644 index b964765519..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/tr.js +++ /dev/null @@ -1,8 +0,0 @@ -// TR lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Yatay izgi ekle/dzenle', -insert_advhr_width : 'Genilik', -insert_advhr_size : 'Ykseklik', -insert_advhr_noshade : 'Glge yok' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk.js deleted file mode 100644 index f87461723a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk.js +++ /dev/null @@ -1,8 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Вставити / редагувати горизонтальний роздільник', -insert_advhr_width : 'Ширина', -insert_advhr_size : 'Висота', -insert_advhr_noshade : 'Без тіні' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk_CP1251.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk_CP1251.js deleted file mode 100644 index 89168fe381..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk_CP1251.js +++ /dev/null @@ -1,8 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : ' / ', -insert_advhr_width : '', -insert_advhr_size : '', -insert_advhr_noshade : ' ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk_KOI8-U.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk_KOI8-U.js deleted file mode 100644 index 602964021a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/uk_KOI8-U.js +++ /dev/null @@ -1,8 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -insert_advhr_desc : ' / Ħ', -insert_advhr_width : '', -insert_advhr_size : '', -insert_advhr_noshade : ' ԦΦ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/vi.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/vi.js deleted file mode 100644 index 2757be5261..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/vi.js +++ /dev/null @@ -1,8 +0,0 @@ -// Vietnamese lang variables - Đỗ Xuân Tiến - tiendx2002@yahoo.com Việt hóa - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Đường thẳng ngang', -insert_advhr_width : 'Độ rộng', -insert_advhr_size : 'Chiều cao', -insert_advhr_noshade : 'Không có bóng đổ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_cn.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_cn.js deleted file mode 100644 index 97943ce4f0..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_cn.js +++ /dev/null @@ -1,9 +0,0 @@ -// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ). -// visit our homepage at: http://www.cube316.net/tinymce/ for more information. - -tinyMCE.addToLang('',{ -insert_advhr_desc : '/༭ ˮƽ', -insert_advhr_width : '', -insert_advhr_size : '߶', -insert_advhr_noshade : 'Ӱ' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_cn_utf8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_cn_utf8.js deleted file mode 100644 index caa89f8502..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_cn_utf8.js +++ /dev/null @@ -1,9 +0,0 @@ -// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ). -// visit our homepage at: http://www.cube316.net/tinymce/ for more information. - -tinyMCE.addToLang('',{ -insert_advhr_desc : '插入/编辑 水平标尺', -insert_advhr_width : '宽度', -insert_advhr_size : '高度', -insert_advhr_noshade : '无阴影' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_tw.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_tw.js deleted file mode 100644 index c3029f6751..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_tw.js +++ /dev/null @@ -1,10 +0,0 @@ -// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com -// c餤 BIG-5 FƦΧ{s@F twapweb_AT_gmail_DOT_com - - -tinyMCE.addToLang('',{ -insert_advhr_desc : 'Jνsu', -insert_advhr_width : 'e', -insert_advhr_size : '', -insert_advhr_noshade : 'Lv' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_tw_utf8.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_tw_utf8.js deleted file mode 100644 index bc26a57145..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/langs/zh_tw_utf8.js +++ /dev/null @@ -1,10 +0,0 @@ -// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com -// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com - - -tinyMCE.addToLang('',{ -insert_advhr_desc : '插入或編輯水平線', -insert_advhr_width : '寬', -insert_advhr_size : '高', -insert_advhr_noshade : '無陰影' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/rule.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/rule.htm deleted file mode 100644 index 6f6034d39f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advhr/rule.htm +++ /dev/null @@ -1,61 +0,0 @@ - - - {$lang_insert_advhr_desc} - - - - - - - -
- - -
-
- - - - - - - - - - - - - -
- - -
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/css/advimage.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/css/advimage.css deleted file mode 100644 index abf4405d38..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/css/advimage.css +++ /dev/null @@ -1,66 +0,0 @@ -/* CSS file for advimage plugin popup */ - -.mceImageList { - width: 280px; -} - -.mceActionPanel { - margin-top: 7px; -} - -.alignPreview { - border: 1px solid black; - width: 140px; - height: 140px; - overflow: hidden; - padding: 5px; -} - -.checkbox { - border: 0; -} - -.panel_wrapper div.current { - height: 305px; -} - -#prev { - margin: 0; - border: 1px - solid black; - width: 99%; - height: 150px; - overflow: auto; -} - -#align, #classlist { - width: 150px; -} - -#width, #height { - vertical-align: middle; - width: 50px; - text-align: center; -} - -#vspace, #hspace, #border { - vertical-align: middle; - width: 30px; - text-align: center; -} - -#classlist { - width: 180px; -} - -input { - width: 280px; -} - -#constrain, #onmousemovecheck { - width: auto; -} - -#id, #dir, #lang, #usemap, #longdesc { - width: 200px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/editor_plugin.js deleted file mode 100644 index 66622e0952..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/editor_plugin.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * $RCSfile: editor_plugin_src.js,v $ - * $Revision: 1.30 $ - * $Date: 2006/02/10 16:29:37 $ - * - * @author Moxiecode - * @copyright Copyright 2004-2006, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('advimage', 'en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da'); - -var TinyMCE_AdvancedImagePlugin = { - getInfo : function() { - return { - longname : 'Advanced image', - author : 'Moxiecode Systems', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advimage.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - getControlHTML : function(cn) { - switch (cn) { - case "image": - return tinyMCE.getButtonHTML(cn, 'lang_image_desc', '{$themeurl}/images/image.gif', 'mceAdvImage'); - } - - return ""; - }, - - execCommand : function(editor_id, element, command, user_interface, value) { - switch (command) { - case "mceAdvImage": - var template = new Array(); - - /* UMBRACO CHANGE */ - template['file'] = '../../../..' + tinyMCE.settings["umbracoPath"] + '/plugins/tinymce/insertImage.aspx'; - /* UMBRACO CHANGE END */ - template['width'] = 600; - template['height'] = 550; - - // Language specific width and height addons - //template['width'] += tinyMCE.getLang('lang_advimage_delta_width', 0); - //template['height'] += tinyMCE.getLang('lang_advimage_delta_height', 0); - - var inst = tinyMCE.getInstanceById(editor_id); - var elm = inst.getFocusElement(); - - if (elm != null && tinyMCE.getAttrib(elm, 'class').indexOf('mceItem') != -1) - return true; - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - - return true; - } - - return false; - }, - - cleanup : function(type, content) { - switch (type) { - case "insert_to_editor_dom": - var imgs = content.getElementsByTagName("img"); - for (var i=0; i - - {$lang_insert_image_title} - - - - - - - - -
- - -
-
-
- Choose Picture (NeedTranslate) - Her skal der nogle iframes ind! -
- -
- {$lang_advimage_general} - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
-
- -
- {$lang_advimage_preview} - -
-
- -
-
- {$lang_advimage_tab_appearance} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- {$lang_advimage_example_img} - Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam - nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum - edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam - erat volutpat. -
-
- x - px -
  - - - - -
-
- -
-
-
- -
-
- {$lang_advimage_swap_image} - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
- - - - -
 
 
-
- -
- {$lang_advimage_misc} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- - - - -
 
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/images/sample.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/images/sample.gif deleted file mode 100644 index 53bf6890b5..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/images/sample.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/jscripts/functions.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/jscripts/functions.js deleted file mode 100644 index 290b10fa3c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/jscripts/functions.js +++ /dev/null @@ -1,549 +0,0 @@ -/* Functions for the advimage plugin popup */ - -var preloadImg = null; -var orgImageWidth, orgImageHeight; - -function preinit() { - // Initialize - tinyMCE.setWindowArg('mce_windowresize', false); - - // Import external list url javascript - var url = tinyMCE.getParam("external_image_list_url"); - if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); - } -} - -function convertURL(url, node, on_save) { - return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);"); -} - -function getImageSrc(str) { - var pos = -1; - - if (!str) - return ""; - - if ((pos = str.indexOf('this.src=')) != -1) { - var src = str.substring(pos + 10); - - src = src.substring(0, src.indexOf('\'')); - - if (tinyMCE.getParam('convert_urls')) - src = convertURL(src, null, true); - - return src; - } - - return ""; -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var action = "insert"; - var html = ""; - - // Image list src - html = getImageListHTML('imagelistsrc','src','onSelectMainImage'); - if (html == "") - document.getElementById("imagelistsrcrow").style.display = 'none'; - else - document.getElementById("imagelistsrccontainer").innerHTML = html; - - // Image list oversrc - html = getImageListHTML('imagelistover','onmouseoversrc'); - if (html == "") - document.getElementById("imagelistoverrow").style.display = 'none'; - else - document.getElementById("imagelistovercontainer").innerHTML = html; - - // Image list outsrc - html = getImageListHTML('imagelistout','onmouseoutsrc'); - if (html == "") - document.getElementById("imagelistoutrow").style.display = 'none'; - else - document.getElementById("imagelistoutcontainer").innerHTML = html; - - // Src browser - html = getBrowserHTML('srcbrowser','src','image','advimage'); - document.getElementById("srcbrowsercontainer").innerHTML = html; - - // Over browser - html = getBrowserHTML('oversrcbrowser','onmouseoversrc','image','advimage'); - document.getElementById("onmouseoversrccontainer").innerHTML = html; - - // Out browser - html = getBrowserHTML('outsrcbrowser','onmouseoutsrc','image','advimage'); - document.getElementById("onmouseoutsrccontainer").innerHTML = html; - - // Longdesc browser - html = getBrowserHTML('longdescbrowser','longdesc','file','advimage'); - document.getElementById("longdesccontainer").innerHTML = html; - - // Resize some elements - if (isVisible('srcbrowser')) - document.getElementById('src').style.width = '260px'; - - if (isVisible('oversrcbrowser')) - document.getElementById('onmouseoversrc').style.width = '260px'; - - if (isVisible('outsrcbrowser')) - document.getElementById('onmouseoutsrc').style.width = '260px'; - - if (isVisible('longdescbrowser')) - document.getElementById('longdesc').style.width = '180px'; - - // Check action - if (elm != null && elm.nodeName == "IMG") - action = "update"; - - formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); - - if (action == "update") { - var src = tinyMCE.getAttrib(elm, 'src'); - var onmouseoversrc = getImageSrc(tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover'))); - var onmouseoutsrc = getImageSrc(tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout'))); - - src = convertURL(src, elm, true); - - // Use mce_src if found - var mceRealSrc = tinyMCE.getAttrib(elm, 'mce_src'); - if (mceRealSrc != "") { - src = mceRealSrc; - - if (tinyMCE.getParam('convert_urls')) - src = convertURL(src, elm, true); - } - - if (onmouseoversrc != "" && tinyMCE.getParam('convert_urls')) - onmouseoversrc = convertURL(onmouseoversrc, elm, true); - - if (onmouseoutsrc != "" && tinyMCE.getParam('convert_urls')) - onmouseoutsrc = convertURL(onmouseoutsrc, elm, true); - - // Setup form data - var style = tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style")); - - // Store away old size - orgImageWidth = trimSize(getStyle(elm, 'width')) - orgImageHeight = trimSize(getStyle(elm, 'height')); - - formObj.src.value = src; - formObj.alt.value = tinyMCE.getAttrib(elm, 'alt'); - formObj.title.value = tinyMCE.getAttrib(elm, 'title'); - formObj.border.value = trimSize(getStyle(elm, 'border', 'borderWidth')); - formObj.vspace.value = tinyMCE.getAttrib(elm, 'vspace'); - formObj.hspace.value = tinyMCE.getAttrib(elm, 'hspace'); - formObj.width.value = orgImageWidth; - formObj.height.value = orgImageHeight; - formObj.onmouseoversrc.value = onmouseoversrc; - formObj.onmouseoutsrc.value = onmouseoutsrc; - formObj.id.value = tinyMCE.getAttrib(elm, 'id'); - formObj.dir.value = tinyMCE.getAttrib(elm, 'dir'); - formObj.lang.value = tinyMCE.getAttrib(elm, 'lang'); - formObj.longdesc.value = tinyMCE.getAttrib(elm, 'longdesc'); - formObj.usemap.value = tinyMCE.getAttrib(elm, 'usemap'); - formObj.style.value = tinyMCE.serializeStyle(style); - - // Select by the values - if (tinyMCE.isMSIE) - selectByValue(formObj, 'align', getStyle(elm, 'align', 'styleFloat')); - else - selectByValue(formObj, 'align', getStyle(elm, 'align', 'cssFloat')); - - addClassesToList('classlist', 'advimage_styles'); - - selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class')); - selectByValue(formObj, 'imagelistsrc', src); - selectByValue(formObj, 'imagelistover', onmouseoversrc); - selectByValue(formObj, 'imagelistout', onmouseoutsrc); - - updateStyle(); - showPreviewImage(src, true); - changeAppearance(); - - window.focus(); - } else - addClassesToList('classlist', 'advimage_styles'); - - // If option enabled default contrain proportions to checked - if (tinyMCE.getParam("advimage_constrain_proportions", true)) - formObj.constrain.checked = true; - - // Check swap image if valid data - if (formObj.onmouseoversrc.value != "" || formObj.onmouseoutsrc.value != "") - setSwapImageDisabled(false); - else - setSwapImageDisabled(true); -} - -function setSwapImageDisabled(state) { - var formObj = document.forms[0]; - - formObj.onmousemovecheck.checked = !state; - - setBrowserDisabled('overbrowser', state); - setBrowserDisabled('outbrowser', state); - - if (formObj.imagelistover) - formObj.imagelistover.disabled = state; - - if (formObj.imagelistout) - formObj.imagelistout.disabled = state; - - formObj.onmouseoversrc.disabled = state; - formObj.onmouseoutsrc.disabled = state; -} - -function setAttrib(elm, attrib, value) { - var formObj = document.forms[0]; - var valueElm = formObj.elements[attrib]; - - if (typeof(value) == "undefined" || value == null) { - value = ""; - - if (valueElm) - value = valueElm.value; - } - - if (value != "") { - elm.setAttribute(attrib, value); - - if (attrib == "style") - attrib = "style.cssText"; - - if (attrib == "longdesc") - attrib = "longDesc"; - - if (attrib == "width") { - attrib = "style.width"; - value = value + "px"; - } - - if (attrib == "height") { - attrib = "style.height"; - value = value + "px"; - } - - if (attrib == "class") - attrib = "className"; - - eval('elm.' + attrib + "=value;"); - } else - elm.removeAttribute(attrib); -} - -function makeAttrib(attrib, value) { - var formObj = document.forms[0]; - var valueElm = formObj.elements[attrib]; - - if (typeof(value) == "undefined" || value == null) { - value = ""; - - if (valueElm) - value = valueElm.value; - } - - if (value == "") - return ""; - - // XML encode it - value = value.replace(/&/g, '&'); - value = value.replace(/\"/g, '"'); - value = value.replace(//g, '>'); - - return ' ' + attrib + '="' + value + '"'; -} - -function insertAction() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var formObj = document.forms[0]; - var src = formObj.src.value; - var onmouseoversrc = formObj.onmouseoversrc.value; - var onmouseoutsrc = formObj.onmouseoutsrc.value; - - if (tinyMCE.getParam("accessibility_warnings")) { - if (formObj.alt.value == "") { - var answer = confirm(tinyMCE.getLang('lang_advimage_missing_alt', '', true)); - if (answer == true) { - formObj.alt.value = " "; - } - } else { - var answer = true; - } - - if (!answer) - return; - } - - if (onmouseoversrc && onmouseoversrc != "") - onmouseoversrc = "this.src='" + convertURL(onmouseoversrc, tinyMCE.imgElement) + "';"; - - if (onmouseoutsrc && onmouseoutsrc != "") - onmouseoutsrc = "this.src='" + convertURL(onmouseoutsrc, tinyMCE.imgElement) + "';"; - - if (elm != null && elm.nodeName == "IMG") { - setAttrib(elm, 'src', convertURL(src, tinyMCE.imgElement)); - setAttrib(elm, 'mce_src', src); - setAttrib(elm, 'alt'); - setAttrib(elm, 'title'); - setAttrib(elm, 'border'); - setAttrib(elm, 'vspace'); - setAttrib(elm, 'hspace'); - setAttrib(elm, 'width'); - setAttrib(elm, 'height'); - setAttrib(elm, 'onmouseover', onmouseoversrc); - setAttrib(elm, 'onmouseout', onmouseoutsrc); - setAttrib(elm, 'id'); - setAttrib(elm, 'dir'); - setAttrib(elm, 'lang'); - setAttrib(elm, 'longdesc'); - setAttrib(elm, 'usemap'); - setAttrib(elm, 'style'); - setAttrib(elm, 'class', getSelectValue(formObj, 'classlist')); - setAttrib(elm, 'align', getSelectValue(formObj, 'align')); - - //tinyMCEPopup.execCommand("mceRepaint"); - - // Repaint if dimensions changed - if (formObj.width.value != orgImageWidth || formObj.height.value != orgImageHeight) - inst.repaint(); - - // Refresh in old MSIE - if (tinyMCE.isMSIE5) - elm.outerHTML = elm.outerHTML; - } else { - var html = "' - - getImageData(src); -} - -function getImageData(src) { - preloadImg = new Image(); - - tinyMCE.addEvent(preloadImg, "load", updateImageData); - tinyMCE.addEvent(preloadImg, "error", resetImageData); - - preloadImg.src = src; -} - -function updateImageData() { - var formObj = document.forms[0]; - - if (formObj.width.value == "") - formObj.width.value = preloadImg.width; - - if (formObj.height.value == "") - formObj.height.value = preloadImg.height; - - updateStyle(); -} - -function resetImageData() { - var formObj = document.forms[0]; - formObj.width.value = formObj.height.value = ""; -} - -function getSelectValue(form_obj, field_name) { - var elm = form_obj.elements[field_name]; - - if (elm == null || elm.options == null) - return ""; - - return elm.options[elm.selectedIndex].value; -} - -function getImageListHTML(elm_id, target_form_element, onchange_func) { - if (typeof(tinyMCEImageList) == "undefined" || tinyMCEImageList.length == 0) - return ""; - - var html = ""; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -// While loading -preinit(); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/langs/en.js deleted file mode 100644 index ffd7e30c51..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/langs/en.js +++ /dev/null @@ -1,27 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('advimage',{ -tab_general : 'General', -tab_appearance : 'Appearance', -tab_advanced : 'Advanced', -general : 'General', -title : 'Title', -preview : 'Preview', -constrain_proportions : 'Constrain proportions', -langdir : 'Language direction', -langcode : 'Language code', -long_desc : 'Long description link', -style : 'Style', -classes : 'Classes', -ltr : 'Left to right', -rtl : 'Right to left', -id : 'Id', -image_map : 'Image map', -swap_image : 'Swap image', -alt_image : 'Alternative image', -mouseover : 'for mouse over', -mouseout : 'for mouse out', -misc : 'Miscellaneous', -example_img : 'Appearance preview image', -missing_alt : 'Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advimage/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/css/advlink.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/css/advlink.css deleted file mode 100644 index 9784ca63ce..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/css/advlink.css +++ /dev/null @@ -1,35 +0,0 @@ -/* CSS file for advimage plugin popup */ - -.mceLinkList, .mceAnchorList, #targetlist { - width: 280px; -} - -.mceActionPanel { - margin-top: 7px; -} - -.panel_wrapper div.current { - height: 220px; -} - -#classlist, #title, #href { - width: 280px; -} - -#popupurl, #popupname { - width: 200px; -} - -#popupwidth, #popupheight, #popupleft, #popuptop { - width: 30px; - vertical-align: middle; - text-align: center; -} - -#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey { - width: 200px; -} - -#events_panel input { - width: 200px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/editor_plugin.js deleted file mode 100644 index 1e334696b7..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/editor_plugin.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * $RCSfile: editor_plugin_src.js,v $ - * $Revision: 1.24 $ - * $Date: 2006/02/10 16:29:38 $ - * - * @author Moxiecode - * @copyright Copyright 2004-2006, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('advlink', 'en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da'); - -var TinyMCE_AdvancedLinkPlugin = { - getInfo : function() { - return { - longname : 'Advanced link', - author : 'Moxiecode Systems', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - initInstance : function(inst) { - inst.addShortcut('ctrl', 'k', 'lang_advlink_desc', 'mceAdvLink'); - }, - - getControlHTML : function(cn) { - switch (cn) { - case "link": - return tinyMCE.getButtonHTML(cn, 'lang_link_desc', '{$themeurl}/images/link.gif', 'mceAdvLink'); - } - - return ""; - }, - - execCommand : function(editor_id, element, command, user_interface, value) { - switch (command) { - case "mceAdvLink": - var anySelection = false; - var inst = tinyMCE.getInstanceById(editor_id); - var focusElm = inst.getFocusElement(); - var selectedText = inst.selection.getSelectedText(); - - if (tinyMCE.selectedElement) - anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0); - - if (anySelection || (focusElm != null && focusElm.nodeName == "A")) { - var template = new Array(); - - template['file'] = '../../../../umbraco/plugins/tinymce/insertLink.aspx'; - template['width'] = 480; - template['height'] = 550; - - // Language specific width and height addons - //template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0); - //template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - } - - return true; - } - - return false; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node == null) - return; - - do { - if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "") { - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonSelected'); - return true; - } - } while ((node = node.parentNode)); - - if (any_selection) { - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonNormal'); - return true; - } - - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonDisabled'); - - return true; - } -}; - -tinyMCE.addPlugin("advlink", TinyMCE_AdvancedLinkPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/editor_plugin_org_compr.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/editor_plugin_org_compr.js deleted file mode 100644 index bf1db56329..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/editor_plugin_org_compr.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('advlink','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){inst.addShortcut('ctrl','k','lang_advlink_desc','mceAdvLink');},getControlHTML:function(cn){switch(cn){case"link":return tinyMCE.getButtonHTML(cn,'lang_link_desc','{$themeurl}/images/link.gif','mceAdvLink');}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvLink":var anySelection=false;var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var selectedText=inst.selection.getSelectedText();if(tinyMCE.selectedElement)anySelection=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(selectedText&&selectedText.length>0);if(anySelection||(focusElm!=null&&focusElm.nodeName=="A")){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=480;template['height']=400;template['width']+=tinyMCE.getLang('lang_advlink_delta_width',0);template['height']+=tinyMCE.getLang('lang_advlink_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});}return true;}return false;},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="A"&&tinyMCE.getAttrib(node,'href')!=""){tinyMCE.switchClass(editor_id+'_advlink','mceButtonSelected');return true;}}while((node=node.parentNode));if(any_selection){tinyMCE.switchClass(editor_id+'_advlink','mceButtonNormal');return true;}tinyMCE.switchClass(editor_id+'_advlink','mceButtonDisabled');return true;}};tinyMCE.addPlugin("advlink",TinyMCE_AdvancedLinkPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/jscripts/functions.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/jscripts/functions.js deleted file mode 100644 index d8586cc916..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/jscripts/functions.js +++ /dev/null @@ -1,564 +0,0 @@ -/* Functions for the advlink plugin popup */ - -var templates = { - "window.open" : "window.open('${url}','${target}','${options}')" -}; - -function preinit() { - tinyMCE.setWindowArg('mce_windowresize', false); - - var url = tinyMCE.getParam("external_link_list_url"); - if (url != null) { - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); - } -} - -function changeClass() { - var formObj = document.forms[0]; - formObj.classes.value = getSelectValue(formObj, 'classlist'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - var formObj = document.forms[0]; - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var action = "insert"; - var html; - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); - document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); - document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); - document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); - document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); - - // Link list - html = getLinkListHTML('linklisthref','href'); - if (html == "") - document.getElementById("linklisthrefrow").style.display = 'none'; - else - document.getElementById("linklisthrefcontainer").innerHTML = html; - - // Resize some elements - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '260px'; - - if (isVisible('popupurlbrowser')) - document.getElementById('popupurl').style.width = '180px'; - - elm = tinyMCE.getParentElement(elm, "a"); - if (elm != null && elm.nodeName == "A") - action = "update"; - - formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); - - setPopupControlsDisabled(true); - - if (action == "update") { - var href = tinyMCE.getAttrib(elm, 'href'); - - href = convertURL(href, elm, true); - - // Use mce_href if found - var mceRealHref = tinyMCE.getAttrib(elm, 'mce_href'); - if (mceRealHref != "") { - href = mceRealHref; - - if (tinyMCE.getParam('convert_urls')) - href = convertURL(href, elm, true); - } - - var onclick = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onclick')); - - // Setup form data - setFormValue('href', href); - setFormValue('title', tinyMCE.getAttrib(elm, 'title')); - setFormValue('id', tinyMCE.getAttrib(elm, 'id')); - setFormValue('style', tinyMCE.serializeStyle(tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style")))); - setFormValue('rel', tinyMCE.getAttrib(elm, 'rel')); - setFormValue('rev', tinyMCE.getAttrib(elm, 'rev')); - setFormValue('charset', tinyMCE.getAttrib(elm, 'charset')); - setFormValue('hreflang', tinyMCE.getAttrib(elm, 'hreflang')); - setFormValue('dir', tinyMCE.getAttrib(elm, 'dir')); - setFormValue('lang', tinyMCE.getAttrib(elm, 'lang')); - setFormValue('tabindex', tinyMCE.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); - setFormValue('accesskey', tinyMCE.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); - setFormValue('type', tinyMCE.getAttrib(elm, 'type')); - setFormValue('onfocus', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onfocus'))); - setFormValue('onblur', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onblur'))); - setFormValue('onclick', onclick); - setFormValue('ondblclick', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'ondblclick'))); - setFormValue('onmousedown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousedown'))); - setFormValue('onmouseup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseup'))); - setFormValue('onmouseover', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover'))); - setFormValue('onmousemove', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousemove'))); - setFormValue('onmouseout', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout'))); - setFormValue('onkeypress', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeypress'))); - setFormValue('onkeydown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeydown'))); - setFormValue('onkeyup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeyup'))); - setFormValue('target', tinyMCE.getAttrib(elm, 'target')); - setFormValue('classes', tinyMCE.getAttrib(elm, 'class')); - - // Parse onclick data - if (onclick != null && onclick.indexOf('window.open') != -1) - parseWindowOpen(onclick); - else - parseFunction(onclick); - - // Select by the values - selectByValue(formObj, 'dir', tinyMCE.getAttrib(elm, 'dir')); - selectByValue(formObj, 'rel', tinyMCE.getAttrib(elm, 'rel')); - selectByValue(formObj, 'rev', tinyMCE.getAttrib(elm, 'rev')); - selectByValue(formObj, 'linklisthref', href); - - if (href.charAt(0) == '#') - selectByValue(formObj, 'anchorlist', href); - - addClassesToList('classlist', 'advlink_styles'); - - selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class'), true); - selectByValue(formObj, 'targetlist', tinyMCE.getAttrib(elm, 'target'), true); - } else - addClassesToList('classlist', 'advlink_styles'); - - window.focus(); -} - -function setFormValue(name, value) { - document.forms[0].elements[name].value = value; -} - -function convertURL(url, node, on_save) { - return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);"); -} - -function parseWindowOpen(onclick) { - var formObj = document.forms[0]; - - // Preprocess center code - if (onclick.indexOf('return false;') != -1) { - formObj.popupreturn.checked = true; - onclick = onclick.replace('return false;', ''); - } else - formObj.popupreturn.checked = false; - - var onClickData = parseLink(onclick); - - if (onClickData != null) { - formObj.ispopup.checked = true; - setPopupControlsDisabled(false); - - var onClickWindowOptions = parseOptions(onClickData['options']); - var url = onClickData['url']; - - if (tinyMCE.getParam('convert_urls')) - url = convertURL(url, null, true); - - formObj.popupname.value = onClickData['target']; - formObj.popupurl.value = url; - formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); - formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); - - formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); - formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); - - if (formObj.popupleft.value.indexOf('screen') != -1) - formObj.popupleft.value = "c"; - - if (formObj.popuptop.value.indexOf('screen') != -1) - formObj.popuptop.value = "c"; - - formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; - formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; - formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; - formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; - formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; - formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; - formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; - - buildOnClick(); - } -} - -function parseFunction(onclick) { - var formObj = document.forms[0]; - var onClickData = parseLink(onclick); - - // TODO: Add stuff here -} - -function getOption(opts, name) { - return typeof(opts[name]) == "undefined" ? "" : opts[name]; -} - -function setPopupControlsDisabled(state) { - var formObj = document.forms[0]; - - formObj.popupname.disabled = state; - formObj.popupurl.disabled = state; - formObj.popupwidth.disabled = state; - formObj.popupheight.disabled = state; - formObj.popupleft.disabled = state; - formObj.popuptop.disabled = state; - formObj.popuplocation.disabled = state; - formObj.popupscrollbars.disabled = state; - formObj.popupmenubar.disabled = state; - formObj.popupresizable.disabled = state; - formObj.popuptoolbar.disabled = state; - formObj.popupstatus.disabled = state; - formObj.popupreturn.disabled = state; - formObj.popupdependent.disabled = state; - - setBrowserDisabled('popupurlbrowser', state); -} - -function parseLink(link) { - link = link.replace(new RegExp(''', 'g'), "'"); - - var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); - - // Is function name a template function - var template = templates[fnName]; - if (template) { - // Build regexp - var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); - var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; - var replaceStr = ""; - for (var i=0; i'); - for (var i=0; i'; - html += ''; - - for (var i=0; i' + name + ''; - } - - html += ''; - - return html; -} - -function insertAction() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - - elm = tinyMCE.getParentElement(elm, "a"); - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - // Create new anchor elements - if (elm == null) { - if (tinyMCE.isSafari) - tinyMCEPopup.execCommand("mceInsertContent", false, '' + inst.selection.getSelectedHTML() + ''); - else - tinyMCEPopup.execCommand("createlink", false, "#mce_temp_url#"); - - var elementArray = tinyMCE.getElementsByAttributeValue(inst.getBody(), "a", "href", "#mce_temp_url#"); - for (var i=0; i' + tinyMCELinkList[i][0] + ''; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -function getTargetListHTML(elm_id, target_form_element) { - var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';'); - var html = ''; - - html += ''; - - return html; -} - -// While loading -preinit(); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/langs/en.js deleted file mode 100644 index 0e68e5ab37..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/langs/en.js +++ /dev/null @@ -1,46 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('advlink',{ -general_tab : 'General', -popup_tab : 'Popup', -events_tab : 'Events', -advanced_tab : 'Advanced', -general_props : 'General properties', -popup_props : 'Popup properties', -event_props : 'Events', -advanced_props : 'Advanced properties', -popup_opts : 'Options', -anchor_names : 'Anchors', -target_same : 'Open in this window / frame', -target_parent : 'Open in parent window / frame', -target_top : 'Open in top frame (replaces all frames)', -target_blank : 'Open in new window', -popup : 'Javascript popup', -popup_url : 'Popup URL', -popup_name : 'Window name', -popup_return : 'Insert \'return false\'', -popup_scrollbars : 'Show scrollbars', -popup_statusbar : 'Show status bar', -popup_toolbar : 'Show toolbars', -popup_menubar : 'Show menu bar', -popup_location : 'Show location bar', -popup_resizable : 'Make window resizable', -popup_dependent : 'Dependent (Mozilla/Firefox only)', -popup_size : 'Size', -popup_position : 'Position (X/Y)', -id : 'Id', -style: 'Style', -classes : 'Classes', -target_name : 'Target name', -langdir : 'Language direction', -target_langcode : 'Target language', -langcode : 'Language code', -encoding : 'Target character encoding', -mime : 'Target MIME type', -rel : 'Relationship page to target', -rev : 'Relationship target to page', -tabindex : 'Tabindex', -accesskey : 'Accesskey', -ltr : 'Left to right', -rtl : 'Right to left' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/link.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/link.htm deleted file mode 100644 index 847958d432..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/link.htm +++ /dev/null @@ -1,340 +0,0 @@ - - - {$lang_insert_link_title} - - - - - - - - -
- - -
-
-
- {$lang_advlink_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
 
 
- -
-
- Browse (NeedTranslate) - Her skal der nogle iframes ind! - - -
-
-
- - - -
-
- {$lang_advlink_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
-
-
-
-
- -
-
- {$lang_advlink_event_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/advlink/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/editor_plugin.js deleted file mode 100644 index 439e23a7ee..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('autosave');var TinyMCE_AutoSavePlugin={getInfo:function(){return{longname:'Auto save',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_autosave.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},_beforeUnloadHandler:function(){var n,inst,anyDirty=false,msg=tinyMCE.getLang("lang_autosave_unload_msg");if(tinyMCE.getParam("fullscreen_is_enabled"))return;for(n in tinyMCE.instances){inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst))continue;if(inst.isDirty())return msg}return}};window.onbeforeunload=TinyMCE_AutoSavePlugin._beforeUnloadHandler;tinyMCE.addPlugin("autosave",TinyMCE_AutoSavePlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/editor_plugin_src.js deleted file mode 100644 index 1ab5d1e71b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/editor_plugin_src.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('autosave'); - -var TinyMCE_AutoSavePlugin = { - getInfo : function() { - return { - longname : 'Auto save', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_autosave.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - // Private plugin internal methods - - _beforeUnloadHandler : function() { - var n, inst, anyDirty = false, msg = tinyMCE.getLang("lang_autosave_unload_msg"); - - if (tinyMCE.getParam("fullscreen_is_enabled")) - return; - - for (n in tinyMCE.instances) { - inst = tinyMCE.instances[n]; - - if (!tinyMCE.isInstance(inst)) - continue; - - if (inst.isDirty()) - return msg; - } - - return; - } -}; - -window.onbeforeunload = TinyMCE_AutoSavePlugin._beforeUnloadHandler; - -tinyMCE.addPlugin("autosave", TinyMCE_AutoSavePlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/langs/en.js deleted file mode 100644 index 01951332d9..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/langs/en.js +++ /dev/null @@ -1,5 +0,0 @@ -// EN lang variables - -tinyMCE.addToLang('',{ -autosave_unload_msg : 'The changes you made will be lost if you navigate away from this page.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/autosave/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/editor_plugin.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/editor_plugin_src.js deleted file mode 100644 index 8e1312fa0f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/editor_plugin_src.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * Experimental plugin for new Cleanup routine, this logic will be moved into the core ones it's stable enougth. - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Dummy file since cleanup is now moved to core */ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/readme.txt deleted file mode 100644 index d1a6466637..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/cleanup/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Dummy plugin since cleanup is now moved into core. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/css/contextmenu.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/css/contextmenu.css deleted file mode 100644 index fb3721468c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/css/contextmenu.css +++ /dev/null @@ -1,74 +0,0 @@ -.contextMenuIEPopup { - padding: 0; - margin: 0; - border: 0; - overflow: hidden; -} - -.contextMenu { - position: absolute; - cursor: default; - z-index: 1000; - border: 1px solid #D4D0C8; - background-color: #FFFFFF; -} - -.contextMenuItem, .contextMenuItemOver { -} - -.contextMenuSeparator { - width: 100%; - background-color: #D4D0C8; - border: 0; -} - -.contextMenuImage, .contextMenuItemDisabled { - border: 0; -} - -.contextMenuIcon { - background-color: #F0F0EE; -} - -.contextMenuItemOver .contextMenuIcon { - background-color: #B6BDD2; -} - -.contextMenuIcon { - background-color: #F0F0EE; -} - -.contextMenuItemDisabled img { - filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); - -moz-opacity:0.3; - opacity: 0.3; -} - -.contextMenuText { - font-family: Tahoma, Verdana, Arial, Helvetica; - font-size: 11px; - line-height: 20px; -} - -.contextMenuItemDisabled { - color: #AAAAAA; -} - -.contextMenuText a { - display: block; - line-height: 20px; - width: 100%; - text-decoration: none; - color: black; - font-weight: normal; - margin: 0; - padding: 0; -} - -.contextMenuText a:hover { - background-color: #B6BDD2; - text-decoration: none !important; - font-weight: normal; - margin: 0; - padding: 0; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/editor_plugin.js deleted file mode 100644 index 08400c6349..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css")}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_contextmenu.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(tinyMCE.isMSIE5_0&&tinyMCE.isOpera)return;TinyMCE_ContextMenuPlugin._contextMenu=new TinyMCE_ContextMenu({commandhandler:"TinyMCE_ContextMenuPlugin._commandHandler",spacer_image:tinyMCE.baseURL+"/plugins/contextmenu/images/spacer.gif"});tinyMCE.addEvent(inst.getDoc(),"click",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(inst.getDoc(),"keypress",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(inst.getDoc(),"keydown",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"click",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"keypress",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"keydown",TinyMCE_ContextMenuPlugin._hideContextMenu);if(tinyMCE.isGecko){tinyMCE.addEvent(inst.getDoc(),"contextmenu",function(e){TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE?inst.contentWindow.event:e,inst)})}else tinyMCE.addEvent(inst.getDoc(),"contextmenu",TinyMCE_ContextMenuPlugin._onContextMenu)},_onContextMenu:function(e){var elm=tinyMCE.isMSIE?e.srcElement:e.target;var targetInst,body;if((body=tinyMCE.getParentElement(elm,"body"))!=null){for(var n in tinyMCE.instances){var inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst))continue;if(body==inst.getBody()){targetInst=inst;break}}return TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE?targetInst.contentWindow.event:e,targetInst)}},_showContextMenu:function(e,inst){function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):""}var x,y,elm,contextMenu;var pos=tinyMCE.getAbsPosition(inst.iframeElement);x=tinyMCE.isMSIE?e.screenX:pos.absLeft+(e.pageX-inst.getBody().scrollLeft);y=tinyMCE.isMSIE?e.screenY:pos.absTop+(e.pageY-inst.getBody().scrollTop);elm=tinyMCE.isMSIE?e.srcElement:e.target;contextMenu=this._contextMenu;contextMenu.inst=inst;window.setTimeout(function(){var theme=tinyMCE.getParam("theme");contextMenu.clearAll();var sel=inst.selection.getSelectedText().length!=0||elm.nodeName=="IMG";contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/cut.gif","$lang_cut_desc","Cut","",!sel);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/copy.gif","$lang_copy_desc","Copy","",!sel);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_paste_desc","Paste","",false);if(sel||(elm?(elm.nodeName=='A'&&tinyMCE.getAttrib(elm,'name')=='')||(elm.nodeName=='IMG'):false)){contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/themes/advanced/images/link.gif","$lang_link_desc",inst.hasPlugin("advlink")?"mceAdvLink":"mceLink");contextMenu.addItem(tinyMCE.baseURL+"/themes/advanced/images/unlink.gif","$lang_unlink_desc","unlink","",(elm?(elm.nodeName!='A')&&(elm.nodeName!='IMG'):true))}elm=tinyMCE.getParentElement(elm,"img,table,td"+(inst.hasPlugin("advhr")?',hr':''));if(elm){switch(elm.nodeName){case"IMG":contextMenu.addSeparator();if(tinyMCE.hasPlugin('flash')&&tinyMCE.getAttrib(elm,'class').indexOf('mceItemFlash')!=-1)contextMenu.addItem(tinyMCE.baseURL+"/plugins/flash/images/flash.gif","$lang_flash_props","mceFlash");else if(tinyMCE.hasPlugin('media')&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm,'class')))contextMenu.addItem(tinyMCE.baseURL+"/plugins/flash/images/flash.gif","$lang_media_title","mceMedia");else contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/image.gif","$lang_image_props_desc",inst.hasPlugin("advimage")?"mceAdvImage":"mceImage");break;case"HR":contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/advhr/images/advhr.gif","$lang_insert_advhr_desc","mceAdvancedHr");break;case"TABLE":case"TD":if(inst.hasPlugin("table")){var colspan=(elm.nodeName=="TABLE")?"":getAttrib(elm,"colspan");var rowspan=(elm.nodeName=="TABLE")?"":getAttrib(elm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/cut.gif","$lang_table_cut_row_desc","mceTableCutRow");contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/copy.gif","$lang_table_copy_row_desc","mceTableCopyRow");contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_table_paste_row_before_desc","mceTablePasteRowBefore","",inst.tableRowClipboard==null);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_table_paste_row_after_desc","mceTablePasteRowAfter","",inst.tableRowClipboard==null);contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_desc","mceInsertTable","insert");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_props_desc","mceInsertTable");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_cell_props.gif","$lang_table_cell_desc","mceTableCellProps");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete.gif","$lang_table_del","mceTableDelete");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_row_props.gif","$lang_table_row_desc","mceTableRowProps");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_row_before.gif","$lang_table_row_before_desc","mceTableInsertRowBefore");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_row_after.gif","$lang_table_row_after_desc","mceTableInsertRowAfter");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete_row.gif","$lang_table_delete_row_desc","mceTableDeleteRow");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_col_before.gif","$lang_table_col_before_desc","mceTableInsertColBefore");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_col_after.gif","$lang_table_col_after_desc","mceTableInsertColAfter");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete_col.gif","$lang_table_delete_col_desc","mceTableDeleteCol");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_split_cells.gif","$lang_table_split_cells_desc","mceTableSplitCells","",(colspan=="1"&&rowspan=="1"));contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_merge_cells.gif","$lang_table_merge_cells_desc","mceTableMergeCells","",false)}break}}else{if(inst.hasPlugin("table")){contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_desc","mceInsertTable","insert")}}contextMenu.show(x,y)},10);tinyMCE.cancelEvent(e);return false},_hideContextMenu:function(){if(TinyMCE_ContextMenuPlugin._contextMenu)TinyMCE_ContextMenuPlugin._contextMenu.hide()},_commandHandler:function(command,value){var cm=TinyMCE_ContextMenuPlugin._contextMenu;cm.hide();var ui=false;if(command=="mceInsertTable"||command=="mceTableCellProps"||command=="mceTableRowProps"||command=="mceTableMergeCells")ui=true;if(command=="Paste")value=null;if(tinyMCE.getParam("dialog_type")=="modal"&&tinyMCE.isMSIE){window.setTimeout(function(){cm.inst.execCommand(command,ui,value)},100)}else cm.inst.execCommand(command,ui,value)}};tinyMCE.addPlugin("contextmenu",TinyMCE_ContextMenuPlugin);function TinyMCE_ContextMenu(settings){var doc,self=this;function defParam(key,def_val){settings[key]=typeof(settings[key])!="undefined"?settings[key]:def_val}this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.contextMenuDiv=document.createElement("div");this.contextMenuDiv.className="contextMenu";this.contextMenuDiv.setAttribute("class","contextMenu");this.contextMenuDiv.style.display="none";this.contextMenuDiv.style.position='absolute';this.contextMenuDiv.style.zindex=1000;this.contextMenuDiv.style.left='0';this.contextMenuDiv.style.top='0';this.contextMenuDiv.unselectable="on";document.body.appendChild(this.contextMenuDiv);defParam("commandhandler","");defParam("spacer_image","images/spacer.gif");this.items=new Array();this.settings=settings;this.html="";if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera){this.pop=window.createPopup();doc=this.pop.document;doc.open();doc.write('');doc.close()}};TinyMCE_ContextMenu.prototype={clearAll:function(){this.html="";this.contextMenuDiv.innerHTML=""},addSeparator:function(){this.html+=''},addItem:function(icon,title,command,value,disabled){if(title.charAt(0)=='$')title=tinyMCE.getLang(title.substring(1));var onMouseDown='';var html='';if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0)onMouseDown='contextMenu.execCommand(\''+command+'\', \''+value+'\');return false;';else onMouseDown=this.settings['commandhandler']+'(\''+command+'\', \''+value+'\');return false;';if(icon=="")icon=this.settings['spacer_image'];if(!disabled)html+='';else html+='';html+='';html+='
';html+=' ';html+=title;html+=' ';html+='
';html+='';this.html+=html},show:function(x,y){var vp,width,height,yo;if(this.html=="")return;var html='';html+='';html+=this.html;html+='
';this.contextMenuDiv.innerHTML=html;this.contextMenuDiv.style.display="block";width=this.contextMenuDiv.offsetWidth;height=this.contextMenuDiv.offsetHeight;this.contextMenuDiv.style.display="none";if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera){this.pop.document.body.innerHTML='
'+html+"
";this.pop.document.tinyMCE=tinyMCE;this.pop.document.contextMenu=this;this.pop.show(x,y,width,height)}else{vp=this.getViewPort();yo=tinyMCE.isMSIE5_0?document.body.scrollTop:self.pageYOffset;this.contextMenuDiv.style.left=(x>vp.left+vp.width-width?vp.left+vp.width-width:x)+'px';this.contextMenuDiv.style.top=(y>vp.top+vp.height-height?vp.top+vp.height-height:y)+'px';this.contextMenuDiv.style.display="block"}},getViewPort:function(){return{left:self.pageXOffset||self.document.documentElement.scrollLeft||self.document.body.scrollLeft,top:self.pageYOffset||self.document.documentElement.scrollTop||self.document.body.scrollTop,width:document.documentElement.offsetWidth||document.body.offsetWidth,height:self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},hide:function(){if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera)this.pop.hide();else this.contextMenuDiv.style.display="none"},execCommand:function(command,value){eval(this.settings['commandhandler']+"(command, value);")}}; \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/editor_plugin_src.js deleted file mode 100644 index 2e88e60fca..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/editor_plugin_src.js +++ /dev/null @@ -1,357 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -if (!tinyMCE.settings['contextmenu_skip_plugin_css']) { - tinyMCE.loadCSS(tinyMCE.baseURL + "/plugins/contextmenu/css/contextmenu.css"); -} - -var TinyMCE_ContextMenuPlugin = { - // Private fields - _contextMenu : null, - - getInfo : function() { - return { - longname : 'Context menus', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_contextmenu.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - initInstance : function(inst) { - // Is not working on MSIE 5.0 or Opera no contextmenu event - if (tinyMCE.isMSIE5_0 && tinyMCE.isOpera) - return; - - TinyMCE_ContextMenuPlugin._contextMenu = new TinyMCE_ContextMenu({ - commandhandler : "TinyMCE_ContextMenuPlugin._commandHandler", - spacer_image : tinyMCE.baseURL + "/plugins/contextmenu/images/spacer.gif" - }); - - // Add hide event handles - tinyMCE.addEvent(inst.getDoc(), "click", TinyMCE_ContextMenuPlugin._hideContextMenu); - tinyMCE.addEvent(inst.getDoc(), "keypress", TinyMCE_ContextMenuPlugin._hideContextMenu); - tinyMCE.addEvent(inst.getDoc(), "keydown", TinyMCE_ContextMenuPlugin._hideContextMenu); - tinyMCE.addEvent(document, "click", TinyMCE_ContextMenuPlugin._hideContextMenu); - tinyMCE.addEvent(document, "keypress", TinyMCE_ContextMenuPlugin._hideContextMenu); - tinyMCE.addEvent(document, "keydown", TinyMCE_ContextMenuPlugin._hideContextMenu); - - // Attach contextmenu event - if (tinyMCE.isGecko) { - tinyMCE.addEvent(inst.getDoc(), "contextmenu", function(e) {TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE ? inst.contentWindow.event : e, inst);}); - } else - tinyMCE.addEvent(inst.getDoc(), "contextmenu", TinyMCE_ContextMenuPlugin._onContextMenu); - }, - - // Private plugin internal methods - - _onContextMenu : function(e) { - var elm = tinyMCE.isMSIE ? e.srcElement : e.target; - var targetInst, body; - - // Find instance - if ((body = tinyMCE.getParentElement(elm, "body")) != null) { - for (var n in tinyMCE.instances) { - var inst = tinyMCE.instances[n]; - if (!tinyMCE.isInstance(inst)) - continue; - - if (body == inst.getBody()) { - targetInst = inst; - break; - } - } - - return TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE ? targetInst.contentWindow.event : e, targetInst); - } - }, - - _showContextMenu : function(e, inst) { - function getAttrib(elm, name) { - return elm.getAttribute(name) ? elm.getAttribute(name) : ""; - } - - var x, y, elm, contextMenu; - var pos = tinyMCE.getAbsPosition(inst.iframeElement); - - x = tinyMCE.isMSIE ? e.screenX : pos.absLeft + (e.pageX - inst.getBody().scrollLeft); - y = tinyMCE.isMSIE ? e.screenY : pos.absTop + (e.pageY - inst.getBody().scrollTop); - elm = tinyMCE.isMSIE ? e.srcElement : e.target; - - contextMenu = this._contextMenu; - contextMenu.inst = inst; - - // Mozilla needs some time - window.setTimeout(function () { - var theme = tinyMCE.getParam("theme"); - - contextMenu.clearAll(); - var sel = inst.selection.getSelectedText().length != 0 || elm.nodeName == "IMG"; - - // Default items - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_cut_desc", "Cut", "", !sel); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_copy_desc", "Copy", "", !sel); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_paste_desc", "Paste", "", false); - - if (sel || (elm ? (elm.nodeName == 'A' && tinyMCE.getAttrib(elm, 'name') == '') || (elm.nodeName == 'IMG') : false)) { - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/themes/advanced/images/link.gif", "$lang_link_desc", inst.hasPlugin("advlink") ? "mceAdvLink" : "mceLink"); - contextMenu.addItem(tinyMCE.baseURL + "/themes/advanced/images/unlink.gif", "$lang_unlink_desc", "unlink", "", (elm ? (elm.nodeName != 'A') && (elm.nodeName != 'IMG') : true)); - } - - // Get element - elm = tinyMCE.getParentElement(elm, "img,table,td" + (inst.hasPlugin("advhr") ? ',hr' : '')); - if (elm) { - switch (elm.nodeName) { - case "IMG": - contextMenu.addSeparator(); - - // If flash - if (tinyMCE.hasPlugin('flash') && tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1) - contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_flash_props", "mceFlash"); - else if (tinyMCE.hasPlugin('media') && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm, 'class'))) - contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_media_title", "mceMedia"); - else - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/image.gif", "$lang_image_props_desc", inst.hasPlugin("advimage") ? "mceAdvImage" : "mceImage"); - break; - - case "HR": - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/advhr/images/advhr.gif", "$lang_insert_advhr_desc", "mceAdvancedHr"); - break; - - case "TABLE": - case "TD": - // Is table plugin loaded - if (inst.hasPlugin("table")) { - var colspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "colspan"); - var rowspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "rowspan"); - - colspan = colspan == "" ? "1" : colspan; - rowspan = rowspan == "" ? "1" : rowspan; - - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_table_cut_row_desc", "mceTableCutRow"); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_table_copy_row_desc", "mceTableCopyRow"); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_before_desc", "mceTablePasteRowBefore", "", inst.tableRowClipboard == null); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_after_desc", "mceTablePasteRowAfter", "", inst.tableRowClipboard == null); - - /* contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyleft.gif", "$lang_justifyleft_desc", "JustifyLeft", "", false); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifycenter.gif", "$lang_justifycenter_desc", "JustifyCenter", "", false); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyright.gif", "$lang_justifyright_desc", "JustifyRight", "", false); - contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyfull.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/ - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_props_desc", "mceInsertTable"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_cell_props.gif", "$lang_table_cell_desc", "mceTableCellProps"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete.gif", "$lang_table_del", "mceTableDelete"); - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_row_props.gif", "$lang_table_row_desc", "mceTableRowProps"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_before.gif", "$lang_table_row_before_desc", "mceTableInsertRowBefore"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_after.gif", "$lang_table_row_after_desc", "mceTableInsertRowAfter"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_row.gif", "$lang_table_delete_row_desc", "mceTableDeleteRow"); - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_before.gif", "$lang_table_col_before_desc", "mceTableInsertColBefore"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_after.gif", "$lang_table_col_after_desc", "mceTableInsertColAfter"); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_col.gif", "$lang_table_delete_col_desc", "mceTableDeleteCol"); - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_split_cells.gif", "$lang_table_split_cells_desc", "mceTableSplitCells", "", (colspan == "1" && rowspan == "1")); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_merge_cells.gif", "$lang_table_merge_cells_desc", "mceTableMergeCells", "", false); - } - break; - } - } else { - // Add table specific - if (inst.hasPlugin("table")) { - contextMenu.addSeparator(); - contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert"); - } - } - - contextMenu.show(x, y); - }, 10); - - // Cancel default handeling - tinyMCE.cancelEvent(e); - return false; - }, - - _hideContextMenu : function() { - if (TinyMCE_ContextMenuPlugin._contextMenu) - TinyMCE_ContextMenuPlugin._contextMenu.hide(); - }, - - _commandHandler : function(command, value) { - var cm = TinyMCE_ContextMenuPlugin._contextMenu; - - cm.hide(); - - // UI must be true on these - var ui = false; - if (command == "mceInsertTable" || command == "mceTableCellProps" || command == "mceTableRowProps" || command == "mceTableMergeCells") - ui = true; - - if (command == "Paste") - value = null; - - if (tinyMCE.getParam("dialog_type") == "modal" && tinyMCE.isMSIE) { - // Cell properties will generate access denied error is this isn't done?! - window.setTimeout(function() { - cm.inst.execCommand(command, ui, value); - }, 100); - } else - cm.inst.execCommand(command, ui, value); - } -}; - -tinyMCE.addPlugin("contextmenu", TinyMCE_ContextMenuPlugin); - -// Context menu class - -function TinyMCE_ContextMenu(settings) { - var doc, self = this; - - // Default value function - function defParam(key, def_val) { - settings[key] = typeof(settings[key]) != "undefined" ? settings[key] : def_val; - } - - this.isMSIE = (navigator.appName == "Microsoft Internet Explorer"); - - // Setup contextmenu div - this.contextMenuDiv = document.createElement("div"); - this.contextMenuDiv.className = "contextMenu"; - this.contextMenuDiv.setAttribute("class", "contextMenu"); - this.contextMenuDiv.style.display = "none"; - this.contextMenuDiv.style.position = 'absolute'; - this.contextMenuDiv.style.zindex = 1000; - this.contextMenuDiv.style.left = '0'; - this.contextMenuDiv.style.top = '0'; - this.contextMenuDiv.unselectable = "on"; - - document.body.appendChild(this.contextMenuDiv); - - // Setup default values - defParam("commandhandler", ""); - defParam("spacer_image", "images/spacer.gif"); - - this.items = new Array(); - this.settings = settings; - this.html = ""; - - // IE Popup - if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0 && !tinyMCE.isOpera) { - this.pop = window.createPopup(); - doc = this.pop.document; - doc.open(); - doc.write(''); - doc.close(); - } -}; - -TinyMCE_ContextMenu.prototype = { - clearAll : function() { - this.html = ""; - this.contextMenuDiv.innerHTML = ""; - }, - - addSeparator : function() { - this.html += ''; - }, - - addItem : function(icon, title, command, value, disabled) { - if (title.charAt(0) == '$') - title = tinyMCE.getLang(title.substring(1)); - - var onMouseDown = ''; - var html = ''; - - if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0) - onMouseDown = 'contextMenu.execCommand(\'' + command + '\', \'' + value + '\');return false;'; - else - onMouseDown = this.settings['commandhandler'] + '(\'' + command + '\', \'' + value + '\');return false;'; - - if (icon == "") - icon = this.settings['spacer_image']; - - if (!disabled) - html += ''; - else - html += ''; - - html += ''; - html += ''; - html += ''; - - // Add to main - this.html += html; - }, - - show : function(x, y) { - var vp, width, height, yo; - - if (this.html == "") - return; - - var html = ''; - - html += ''; - html += this.html; - html += '
'; - - this.contextMenuDiv.innerHTML = html; - - // Get dimensions - this.contextMenuDiv.style.display = "block"; - width = this.contextMenuDiv.offsetWidth; - height = this.contextMenuDiv.offsetHeight; - this.contextMenuDiv.style.display = "none"; - - if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0 && !tinyMCE.isOpera) { - // Setup popup and show - this.pop.document.body.innerHTML = '
' + html + "
"; - this.pop.document.tinyMCE = tinyMCE; - this.pop.document.contextMenu = this; - this.pop.show(x, y, width, height); - } else { - vp = this.getViewPort(); - yo = tinyMCE.isMSIE5_0 ? document.body.scrollTop : self.pageYOffset; - this.contextMenuDiv.style.left = (x > vp.left + vp.width - width ? vp.left + vp.width - width : x) + 'px'; - this.contextMenuDiv.style.top = (y > vp.top + vp.height - height ? vp.top + vp.height - height : y) + 'px'; - this.contextMenuDiv.style.display = "block"; - } - }, - - getViewPort : function() { - return { - left : self.pageXOffset || self.document.documentElement.scrollLeft || self.document.body.scrollLeft, - top: self.pageYOffset || self.document.documentElement.scrollTop || self.document.body.scrollTop, - width : document.documentElement.offsetWidth || document.body.offsetWidth, - height : self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight - }; - }, - - hide : function() { - if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0 && !tinyMCE.isOpera) - this.pop.hide(); - else - this.contextMenuDiv.style.display = "none"; - }, - - execCommand : function(command, value) { - eval(this.settings['commandhandler'] + "(command, value);"); - } -}; diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/images/spacer.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/images/spacer.gif deleted file mode 100644 index 388486517f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/images/spacer.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/contextmenu/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/editor_plugin.js deleted file mode 100644 index 794cc19e83..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('directionality');var TinyMCE_DirectionalityPlugin={getInfo:function(){return{longname:'Directionality',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_directionality.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"ltr":return tinyMCE.getButtonHTML(cn,'lang_directionality_ltr_desc','{$pluginurl}/images/ltr.gif','mceDirectionLTR');case"rtl":return tinyMCE.getButtonHTML(cn,'lang_directionality_rtl_desc','{$pluginurl}/images/rtl.gif','mceDirectionRTL')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceDirectionLTR":var inst=tinyMCE.getInstanceById(editor_id);var elm=tinyMCE.getParentElement(inst.getFocusElement(),"p,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(elm)elm.setAttribute("dir","ltr");tinyMCE.triggerNodeChange(false);return true;case"mceDirectionRTL":var inst=tinyMCE.getInstanceById(editor_id);var elm=tinyMCE.getParentElement(inst.getFocusElement(),"p,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(elm)elm.setAttribute("dir","rtl");tinyMCE.triggerNodeChange(false);return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):""}if(node==null)return;var elm=tinyMCE.getParentElement(node,"p,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(!elm){tinyMCE.switchClass(editor_id+'_ltr','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_rtl','mceButtonDisabled');return true}tinyMCE.switchClass(editor_id+'_ltr','mceButtonNormal');tinyMCE.switchClass(editor_id+'_rtl','mceButtonNormal');var dir=getAttrib(elm,"dir");if(dir=="ltr"||dir=="")tinyMCE.switchClass(editor_id+'_ltr','mceButtonSelected');else tinyMCE.switchClass(editor_id+'_rtl','mceButtonSelected');return true}};tinyMCE.addPlugin("directionality",TinyMCE_DirectionalityPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/editor_plugin_src.js deleted file mode 100644 index eb758f552d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/editor_plugin_src.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('directionality'); - -var TinyMCE_DirectionalityPlugin = { - getInfo : function() { - return { - longname : 'Directionality', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_directionality.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - getControlHTML : function(cn) { - switch (cn) { - case "ltr": - return tinyMCE.getButtonHTML(cn, 'lang_directionality_ltr_desc', '{$pluginurl}/images/ltr.gif', 'mceDirectionLTR'); - - case "rtl": - return tinyMCE.getButtonHTML(cn, 'lang_directionality_rtl_desc', '{$pluginurl}/images/rtl.gif', 'mceDirectionRTL'); - } - - return ""; - }, - - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceDirectionLTR": - var inst = tinyMCE.getInstanceById(editor_id); - var elm = tinyMCE.getParentElement(inst.getFocusElement(), "p,div,td,h1,h2,h3,h4,h5,h6,pre,address"); - - if (elm) - elm.setAttribute("dir", "ltr"); - - tinyMCE.triggerNodeChange(false); - return true; - - case "mceDirectionRTL": - var inst = tinyMCE.getInstanceById(editor_id); - var elm = tinyMCE.getParentElement(inst.getFocusElement(), "p,div,td,h1,h2,h3,h4,h5,h6,pre,address"); - - if (elm) - elm.setAttribute("dir", "rtl"); - - tinyMCE.triggerNodeChange(false); - return true; - } - - // Pass to next handler in chain - return false; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - function getAttrib(elm, name) { - return elm.getAttribute(name) ? elm.getAttribute(name) : ""; - } - - if (node == null) - return; - - var elm = tinyMCE.getParentElement(node, "p,div,td,h1,h2,h3,h4,h5,h6,pre,address"); - if (!elm) { - tinyMCE.switchClass(editor_id + '_ltr', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_rtl', 'mceButtonDisabled'); - return true; - } - - tinyMCE.switchClass(editor_id + '_ltr', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_rtl', 'mceButtonNormal'); - - var dir = getAttrib(elm, "dir"); - if (dir == "ltr" || dir == "") - tinyMCE.switchClass(editor_id + '_ltr', 'mceButtonSelected'); - else - tinyMCE.switchClass(editor_id + '_rtl', 'mceButtonSelected'); - - return true; - } -}; - -tinyMCE.addPlugin("directionality", TinyMCE_DirectionalityPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/images/ltr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/images/ltr.gif deleted file mode 100644 index ac8f30c120..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/images/ltr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/images/rtl.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/images/rtl.gif deleted file mode 100644 index 0348f99656..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/images/rtl.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/langs/en.js deleted file mode 100644 index a1db297856..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/langs/en.js +++ /dev/null @@ -1,6 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -directionality_ltr_desc : 'Direction left to right', -directionality_rtl_desc : 'Direction right to left' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/directionality/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/editor_plugin.js deleted file mode 100644 index 75498327f3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('emotions');var TinyMCE_EmotionsPlugin={getInfo:function(){return{longname:'Emotions',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_emotions.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"emotions":return tinyMCE.getButtonHTML(cn,'lang_emotions_desc','{$pluginurl}/images/emotions.gif','mceEmotion')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceEmotion":var template=new Array();template['file']='../../plugins/emotions/emotions.htm';template['width']=250;template['height']=160;template['width']+=tinyMCE.getLang('lang_emotions_delta_width',0);template['height']+=tinyMCE.getLang('lang_emotions_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true}return false}};tinyMCE.addPlugin('emotions',TinyMCE_EmotionsPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/editor_plugin_src.js deleted file mode 100644 index 4def901af7..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/editor_plugin_src.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * $Id: editor_plugin_src.js 163 2007-01-03 16:31:00Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('emotions'); - -// Plucin static class -var TinyMCE_EmotionsPlugin = { - getInfo : function() { - return { - longname : 'Emotions', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_emotions.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - /** - * Returns the HTML contents of the emotions control. - */ - getControlHTML : function(cn) { - switch (cn) { - case "emotions": - return tinyMCE.getButtonHTML(cn, 'lang_emotions_desc', '{$pluginurl}/images/emotions.gif', 'mceEmotion'); - } - - return ""; - }, - - /** - * Executes the mceEmotion command. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceEmotion": - var template = new Array(); - - template['file'] = '../../plugins/emotions/emotions.htm'; // Relative to theme - template['width'] = 250; - template['height'] = 160; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_emotions_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_emotions_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - - return true; - } - - // Pass to next handler in chain - return false; - } -}; - -// Register plugin -tinyMCE.addPlugin('emotions', TinyMCE_EmotionsPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/emotions.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/emotions.htm deleted file mode 100644 index fca8ffa081..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/emotions.htm +++ /dev/null @@ -1,40 +0,0 @@ - - - {$lang_emotions_title} - - - - - -
-
{$lang_emotions_title}:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
{$lang_emotions_cool}{$lang_emotions_cry}{$lang_emotions_embarassed}{$lang_emotions_foot_in_mouth}
{$lang_emotions_frown}{$lang_emotions_innocent}{$lang_emotions_kiss}{$lang_emotions_laughing}
{$lang_emotions_money_mouth}{$lang_emotions_sealed}{$lang_emotions_smile}{$lang_emotions_surprised}
{$lang_emotions_tongue-out}{$lang_emotions_undecided}{$lang_emotions_wink}{$lang_emotions_yell}
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/emotions.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/emotions.gif deleted file mode 100644 index a39ed8ec38..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/emotions.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/readme.txt deleted file mode 100644 index a3cea1b687..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/readme.txt +++ /dev/null @@ -1,2 +0,0 @@ -These emotions where taken from Mozilla Thunderbird. -I hope they don't get angry if I use them here after all this is a open source project aswell. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-cool.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-cool.gif deleted file mode 100644 index ba90cc36fb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-cool.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-cry.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-cry.gif deleted file mode 100644 index 74d897a4f6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-cry.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-embarassed.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-embarassed.gif deleted file mode 100644 index 963a96b8a7..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-embarassed.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-foot-in-mouth.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-foot-in-mouth.gif deleted file mode 100644 index 16f68cc1e9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-foot-in-mouth.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-frown.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-frown.gif deleted file mode 100644 index 716f55e161..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-frown.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-innocent.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-innocent.gif deleted file mode 100644 index 334d49e0e6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-innocent.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-kiss.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-kiss.gif deleted file mode 100644 index 4efd549ed3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-kiss.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-laughing.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-laughing.gif deleted file mode 100644 index 1606c119e7..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-laughing.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-money-mouth.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-money-mouth.gif deleted file mode 100644 index ca2451e102..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-money-mouth.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-sealed.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-sealed.gif deleted file mode 100644 index b33d3cca1e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-sealed.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-smile.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-smile.gif deleted file mode 100644 index e6a9e60d5d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-smile.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-surprised.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-surprised.gif deleted file mode 100644 index cb99cdd913..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-surprised.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-tongue-out.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-tongue-out.gif deleted file mode 100644 index 2075dc1605..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-tongue-out.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-undecided.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-undecided.gif deleted file mode 100644 index bef7e25730..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-undecided.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-wink.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-wink.gif deleted file mode 100644 index 9faf1aff8f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-wink.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-yell.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-yell.gif deleted file mode 100644 index 648e6e8791..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/images/smiley-yell.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/jscripts/functions.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/jscripts/functions.js deleted file mode 100644 index 95a9eafe8a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/jscripts/functions.js +++ /dev/null @@ -1,21 +0,0 @@ -function init() { - tinyMCEPopup.resizeToInnerSize(); -} - -function insertEmotion(file_name, title) { - title = tinyMCE.getLang(title); - - if (title == null) - title = ""; - - // XML encode - title = title.replace(/&/g, '&'); - title = title.replace(/\"/g, '"'); - title = title.replace(//g, '>'); - - var html = '' + title + ''; - - tinyMCE.execCommand('mceInsertContent', false, html); - tinyMCEPopup.close(); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/langs/en.js deleted file mode 100644 index 3cdd675175..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/langs/en.js +++ /dev/null @@ -1,22 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('emotions',{ -title : 'Insert emotion', -desc : 'Emotions', -cool : 'Cool', -cry : 'Cry', -embarassed : 'Embarassed', -foot_in_mouth : 'Foot in mouth', -frown : 'Frown', -innocent : 'Innocent', -kiss : 'Kiss', -laughing : 'Laughing', -money_mouth : 'Money mouth', -sealed : 'Sealed', -smile : 'Smile', -surprised : 'Surprised', -tongue_out : 'Tongue out', -undecided : 'Undecided', -wink : 'Wink', -yell : 'Yell' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/emotions/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/css/content.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/css/content.css deleted file mode 100644 index 843258b79d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/css/content.css +++ /dev/null @@ -1,7 +0,0 @@ -.mceItemFlash { - border: 1px dotted #cc0000; - background-image: url('../images/flash.gif'); - background-position: center; - background-repeat: no-repeat; - background-color: #ffffcc; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/css/flash.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/css/flash.css deleted file mode 100644 index d3e88e1a20..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/css/flash.css +++ /dev/null @@ -1,11 +0,0 @@ -.panel_wrapper div.current { - height: 100px; -} - -#width, #height { - width: 50px; -} - -#file { - width: 250px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/editor_plugin.js deleted file mode 100644 index a6ed7cfefe..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('flash');var TinyMCE_FlashPlugin={getInfo:function(){return{longname:'Flash',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_flash.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(!tinyMCE.settings['flash_skip_plugin_css'])tinyMCE.importCSS(inst.getDoc(),tinyMCE.baseURL+"/plugins/flash/css/content.css")},getControlHTML:function(cn){switch(cn){case"flash":return tinyMCE.getButtonHTML(cn,'lang_flash_desc','{$pluginurl}/images/flash.gif','mceFlash')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceFlash":var name="",swffile="",swfwidth="",swfheight="",action="insert";var template=new Array();var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();template['file']='../../plugins/flash/flash.htm';template['width']=430;template['height']=175;template['width']+=tinyMCE.getLang('lang_flash_delta_width',0);template['height']+=tinyMCE.getLang('lang_flash_delta_height',0);if(focusElm!=null&&focusElm.nodeName.toLowerCase()=="img"){name=tinyMCE.getAttrib(focusElm,'class');if(name.indexOf('mceItemFlash')==-1)return true;swffile=tinyMCE.getAttrib(focusElm,'alt');if(tinyMCE.getParam('convert_urls'))swffile=eval(tinyMCE.settings['urlconverter_callback']+"(swffile, null, true);");swfwidth=tinyMCE.getAttrib(focusElm,'width');swfheight=tinyMCE.getAttrib(focusElm,'height');action="update"}tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",swffile:swffile,swfwidth:swfwidth,swfheight:swfheight,action:action});return true}return false},cleanup:function(type,content){switch(type){case"insert_to_editor_dom":if(tinyMCE.getParam('convert_urls')){var imgs=content.getElementsByTagName("img");for(var i=0;i','gi'),'');content=content.replace(new RegExp('<[ ]*object','gi'),'','gi'),'');while((startPos=content.indexOf('',startPos);var attribs=TinyMCE_FlashPlugin._parseAttributes(content.substring(startPos+6,endPos));embedList[embedList.length]=attribs}var index=0;while((startPos=content.indexOf('=embedList.length)break;var attribs=embedList[index];endPos=content.indexOf('',startPos);endPos+=9;var contentAfter=content.substring(endPos);content=content.substring(0,startPos);content+=''+content.substring(endPos);content+=contentAfter;index++;startPos++}var index=0;while((startPos=content.indexOf('=embedList.length)break;var attribs=embedList[index];endPos=content.indexOf('>',startPos);endPos+=9;var contentAfter=content.substring(endPos);content=content.substring(0,startPos);content+=''+content.substring(endPos);content+=contentAfter;index++;startPos++}break;case"get_from_editor":var startPos=-1;while((startPos=content.indexOf('',startPos);var attribs=TinyMCE_FlashPlugin._parseAttributes(content.substring(startPos+4,endPos));if(attribs['class']!="mceItemFlash")continue;endPos+=2;var embedHTML='';var wmode=tinyMCE.getParam("flash_wmode","");var quality=tinyMCE.getParam("flash_quality","high");var menu=tinyMCE.getParam("flash_menu","false");embedHTML+='';embedHTML+='';embedHTML+='';embedHTML+='';embedHTML+='';embedHTML+='';chunkBefore=content.substring(0,startPos);chunkAfter=content.substring(endPos);content=chunkBefore+embedHTML+chunkAfter}break}return content},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="IMG"&&tinyMCE.getAttrib(node,'class').indexOf('mceItemFlash')==0){tinyMCE.switchClass(editor_id+'_flash','mceButtonSelected');return true}}while((node=node.parentNode));tinyMCE.switchClass(editor_id+'_flash','mceButtonNormal');return true},_parseAttributes:function(attribute_string){var attributeName="";var attributeValue="";var withInName;var withInValue;var attributes=new Array();var whiteSpaceRegExp=new RegExp('^[ \n\r\t]+','g');if(attribute_string==null||attribute_string.length<2)return null;withInName=withInValue=false;for(var i=0;i','gi'),''); - content = content.replace(new RegExp('<[ ]*object','gi'),'','gi'),''); - - // Parse all embed tags - while ((startPos = content.indexOf('', startPos); - var attribs = TinyMCE_FlashPlugin._parseAttributes(content.substring(startPos + 6, endPos)); - embedList[embedList.length] = attribs; - } - - // Parse all object tags and replace them with images from the embed data - var index = 0; - while ((startPos = content.indexOf('= embedList.length) - break; - - var attribs = embedList[index]; - - // Find end of object - endPos = content.indexOf('', startPos); - endPos += 9; - - // Insert image - var contentAfter = content.substring(endPos); - content = content.substring(0, startPos); - content += '' + content.substring(endPos); - content += contentAfter; - index++; - - startPos++; - } - - // Parse all embed tags and replace them with images from the embed data - var index = 0; - while ((startPos = content.indexOf('= embedList.length) - break; - - var attribs = embedList[index]; - - // Find end of embed - endPos = content.indexOf('>', startPos); - endPos += 9; - - // Insert image - var contentAfter = content.substring(endPos); - content = content.substring(0, startPos); - content += '' + content.substring(endPos); - content += contentAfter; - index++; - - startPos++; - } - - break; - - case "get_from_editor": - // Parse all img tags and replace them with object+embed - var startPos = -1; - - while ((startPos = content.indexOf('', startPos); - var attribs = TinyMCE_FlashPlugin._parseAttributes(content.substring(startPos + 4, endPos)); - - // Is not flash, skip it - if (attribs['class'] != "mceItemFlash") - continue; - - endPos += 2; - - var embedHTML = ''; - var wmode = tinyMCE.getParam("flash_wmode", ""); - var quality = tinyMCE.getParam("flash_quality", "high"); - var menu = tinyMCE.getParam("flash_menu", "false"); - - // Insert object + embed - embedHTML += ''; - embedHTML += ''; - embedHTML += ''; - embedHTML += ''; - embedHTML += ''; - embedHTML += ''; - - // Insert embed/object chunk - chunkBefore = content.substring(0, startPos); - chunkAfter = content.substring(endPos); - content = chunkBefore + embedHTML + chunkAfter; - } - break; - } - - // Pass through to next handler in chain - return content; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node == null) - return; - - do { - if (node.nodeName == "IMG" && tinyMCE.getAttrib(node, 'class').indexOf('mceItemFlash') == 0) { - tinyMCE.switchClass(editor_id + '_flash', 'mceButtonSelected'); - return true; - } - } while ((node = node.parentNode)); - - tinyMCE.switchClass(editor_id + '_flash', 'mceButtonNormal'); - - return true; - }, - - // Private plugin internal functions - - _parseAttributes : function(attribute_string) { - var attributeName = ""; - var attributeValue = ""; - var withInName; - var withInValue; - var attributes = new Array(); - var whiteSpaceRegExp = new RegExp('^[ \n\r\t]+', 'g'); - - if (attribute_string == null || attribute_string.length < 2) - return null; - - withInName = withInValue = false; - - for (var i=0; i -
- - -
-
-
- {$lang_flash_general} - - - - - - - - - - - - - - -
- - - - - -
 
-
 
- -  x  - -
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/images/Thumbs.db b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/images/Thumbs.db deleted file mode 100644 index 806a443415..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/images/Thumbs.db and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/images/flash.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/images/flash.gif deleted file mode 100644 index cb192e6ced..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/images/flash.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/jscripts/flash.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/jscripts/flash.js deleted file mode 100644 index 4f08077268..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/jscripts/flash.js +++ /dev/null @@ -1,107 +0,0 @@ -var url = tinyMCE.getParam("flash_external_list_url"); -if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById("filebrowsercontainer").innerHTML = getBrowserHTML('filebrowser','file','flash','flash'); - - // Image list outsrc - var html = getFlashListHTML('filebrowser','file','flash','flash'); - if (html == "") - document.getElementById("linklistrow").style.display = 'none'; - else - document.getElementById("linklistcontainer").innerHTML = html; - - var formObj = document.forms[0]; - var swffile = tinyMCE.getWindowArg('swffile'); - var swfwidth = '' + tinyMCE.getWindowArg('swfwidth'); - var swfheight = '' + tinyMCE.getWindowArg('swfheight'); - - if (swfwidth.indexOf('%')!=-1) { - formObj.width2.value = "%"; - formObj.width.value = swfwidth.substring(0,swfwidth.length-1); - } else { - formObj.width2.value = "px"; - formObj.width.value = swfwidth; - } - - if (swfheight.indexOf('%')!=-1) { - formObj.height2.value = "%"; - formObj.height.value = swfheight.substring(0,swfheight.length-1); - } else { - formObj.height2.value = "px"; - formObj.height.value = swfheight; - } - - formObj.file.value = swffile; - formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); - - selectByValue(formObj, 'linklist', swffile); - - // Handle file browser - if (isVisible('filebrowser')) - document.getElementById('file').style.width = '230px'; - - // Auto select flash in list - if (typeof(tinyMCEFlashList) != "undefined" && tinyMCEFlashList.length > 0) { - for (var i=0; i 0) { - var html = ""; - - html += ''; - - return html; - } - - return ""; -} - -function insertFlash() { - var formObj = document.forms[0]; - var html = ''; - var file = formObj.file.value; - var width = formObj.width.value; - var height = formObj.height.value; - if (formObj.width2.value=='%') { - width = width + '%'; - } - if (formObj.height2.value=='%') { - height = height + '%'; - } - - if (width == "") - width = 100; - - if (height == "") - height = 100; - - html += '' - + '' + file + ''; - - tinyMCEPopup.execCommand("mceInsertContent", true, html); - tinyMCE.selectedInstance.repaint(); - - tinyMCEPopup.close(); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/langs/en.js deleted file mode 100644 index 67272bc97b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/langs/en.js +++ /dev/null @@ -1,11 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('flash',{ -title : 'Insert / edit Flash Movie', -desc : 'Insert / edit Flash Movie', -file : 'Flash-File (.swf)', -size : 'Size', -list : 'Flash files', -props : 'Flash properties', -general : 'General' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/flash/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/blank.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/blank.htm deleted file mode 100644 index 1e5876a278..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/blank.htm +++ /dev/null @@ -1,9 +0,0 @@ - - - blank_page - - - - - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/css/fullpage.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/css/fullpage.css deleted file mode 100644 index 4bc803f65c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/css/fullpage.css +++ /dev/null @@ -1,172 +0,0 @@ -/* Hide the advanced tab */ -#advanced_tab { - display: none; -} - -#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { - width: 280px; -} - -#doctype, #docencoding { - width: 200px; -} - -#langcode { - width: 30px; -} - -#bgimage { - width: 220px; -} - -#fontface { - width: 240px; -} - -#leftmargin, #rightmargin, #topmargin, #bottommargin { - width: 50px; -} - -.panel_wrapper div.current { - height: 400px; -} - -#stylesheet, #style { - width: 240px; -} - -/* Head list classes */ - -.headlistwrapper { - width: 100%; -} - -.addbutton, .removebutton, .moveupbutton, .movedownbutton { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; - display: block; - width: 20px; - height: 20px; -} - -.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.addbutton { - background-image: url('../images/add.gif'); - float: left; - margin-right: 3px; -} - -.removebutton { - background-image: url('../images/remove.gif'); - float: left; -} - -.moveupbutton { - background-image: url('../images/move_up.gif'); - float: left; - margin-right: 3px; -} - -.movedownbutton { - background-image: url('../images/move_down.gif'); - float: left; -} - -.selected { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -.toolbar { - width: 100%; -} - -#headlist { - width: 100%; - margin-top: 3px; - font-size: 11px; -} - -#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { - display: none; -} - -#addmenu { - position: absolute; - border: 1px solid gray; - display: none; - z-index: 100; - background-color: white; -} - -#addmenu a { - display: block; - width: 100%; - line-height: 20px; - text-decoration: none; - background-color: white; -} - -#addmenu a:hover { - background-color: #B6BDD2; - color: black; -} - -#addmenu span { - padding-left: 10px; - padding-right: 10px; -} - -#updateElementPanel { - display: none; -} - -#script_element .panel_wrapper div.current { - height: 108px; -} - -#style_element .panel_wrapper div.current { - height: 108px; -} - -#link_element .panel_wrapper div.current { - height: 140px; -} - -#element_script_value { - width: 100%; - height: 100px; -} - -#element_comment_value { - width: 100%; - height: 120px; -} - -#element_style_value { - width: 100%; - height: 100px; -} - -#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { - width: 250px; -} - -.updateElementButton { - margin-top: 3px; -} - -/* MSIE specific styles */ - -* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { - width: 22px; - height: 22px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/editor_plugin.js deleted file mode 100644 index 19a7b36f9a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('fullpage');var TinyMCE_FullPagePlugin={getInfo:function(){return{longname:'Fullpage',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_fullpage.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"fullpage":return tinyMCE.getButtonHTML(cn,'lang_fullpage_desc','{$pluginurl}/images/fullpage.gif','mceFullPageProperties')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceFullPageProperties":var template=new Array();template['file']='../../plugins/fullpage/fullpage.htm';template['width']=430;template['height']=485+(tinyMCE.isOpera?5:0);template['width']+=tinyMCE.getLang('lang_fullpage_delta_width',0);template['height']+=tinyMCE.getLang('lang_fullpage_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceFullPageUpdate":TinyMCE_FullPagePlugin._addToHead(tinyMCE.getInstanceById(editor_id));return true}return false},cleanup:function(type,content,inst){switch(type){case"insert_to_editor":var tmp=content.toLowerCase();var pos=tmp.indexOf('',pos);pos2=tmp.lastIndexOf('');inst.fullpageTopContent=content.substring(0,pos+1);content=content.substring(pos+1,pos2);}else{if(!inst.fullpageTopContent){var docType=tinyMCE.getParam("fullpage_default_doctype",'');var enc=tinyMCE.getParam("fullpage_default_encoding",'utf-8');var title=tinyMCE.getParam("fullpage_default_title",'Untitled document');var lang=tinyMCE.getParam("fullpage_default_langcode",'en');var pi=tinyMCE.getParam("fullpage_default_xml_pi",true);var ff=tinyMCE.getParam("fullpage_default_font_family","");var fz=tinyMCE.getParam("fullpage_default_font_size","");var ds=tinyMCE.getParam("fullpage_default_style","");var dtc=tinyMCE.getParam("fullpage_default_text_color","");title=title.replace(/&/g,'&');title=title.replace(/\"/g,'"');title=title.replace(//g,'>');tmp='';if(pi)tmp+='\n';tmp+=docType+'\n';tmp+='\n';tmp+='\n';tmp+='\t'+title+'\n';tmp+='\t\n';tmp+='\n';tmp+='\n";break}return content},_addToHead:function(inst){var doc=inst.getDoc();var head=doc.getElementsByTagName("head")[0];var body=doc.body;var h=inst.fullpageTopContent;var e=doc.createElement("body");var nl,i,le,tmp;h=h.replace(/(\r|\n)/gi,'');h=h.replace(/<\?[^\>]*\>/gi,'');h=h.replace(/<\/?(!DOCTYPE|head|html)[^\>]*\>/gi,'');h=h.replace(//gi,'');h=h.replace(//gi,'');h=h.replace(/<(meta|base)[^>]*>/gi,'');h=h.replace(/]*)\/>/gi,'
');h=h.replace(/0){body.style.cssText=tinyMCE.getAttrib(nl[0],'style');if((tmp=tinyMCE.getAttrib(nl[0],'leftmargin'))!=''&&body.style.marginLeft=='')body.style.marginLeft=tmp+"px";if((tmp=tinyMCE.getAttrib(nl[0],'rightmargin'))!=''&&body.style.marginRight=='')body.style.marginRight=tmp+"px";if((tmp=tinyMCE.getAttrib(nl[0],'topmargin'))!=''&&body.style.marginTop=='')body.style.marginTop=tmp+"px";if((tmp=tinyMCE.getAttrib(nl[0],'bottommargin'))!=''&&body.style.marginBottom=='')body.style.marginBottom=tmp+"px";body.dir=tinyMCE.getAttrib(nl[0],'dir');body.vLink=tinyMCE.getAttrib(nl[0],'vlink');body.aLink=tinyMCE.getAttrib(nl[0],'alink');body.link=tinyMCE.getAttrib(nl[0],'link');body.text=tinyMCE.getAttrib(nl[0],'text');if((tmp=tinyMCE.getAttrib(nl[0],'background'))!='')body.style.backgroundImage="url('"+tmp+"')";if((tmp=tinyMCE.getAttrib(nl[0],'bgcolor'))!='')body.style.backgroundColor=tmp}}};tinyMCE.addPlugin("fullpage",TinyMCE_FullPagePlugin);
\ No newline at end of file
diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/editor_plugin_src.js
deleted file mode 100644
index eb419060d1..0000000000
--- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/editor_plugin_src.js
+++ /dev/null
@@ -1,227 +0,0 @@
-/**
- * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $
- *
- * @author Moxiecode
- * @copyright Copyright  2004-2007, Moxiecode Systems AB, All rights reserved.
- */
-
-/* Import plugin specific language pack */
-tinyMCE.importPluginLanguagePack('fullpage');
-
-var TinyMCE_FullPagePlugin = {
-	getInfo : function() {
-		return {
-			longname : 'Fullpage',
-			author : 'Moxiecode Systems AB',
-			authorurl : 'http://tinymce.moxiecode.com',
-			infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_fullpage.html',
-			version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
-		};
-	},
-
-	getControlHTML : function(cn) {
-		switch (cn) {
-			case "fullpage":
-				return tinyMCE.getButtonHTML(cn, 'lang_fullpage_desc', '{$pluginurl}/images/fullpage.gif', 'mceFullPageProperties');
-		}
-
-		return "";
-	},
-
-	execCommand : function(editor_id, element, command, user_interface, value) {
-		// Handle commands
-		switch (command) {
-			case "mceFullPageProperties":
-				var template = new Array();
-
-				template['file']   = '../../plugins/fullpage/fullpage.htm';
-				template['width']  = 430;
-				template['height'] = 485 + (tinyMCE.isOpera ? 5 : 0);
-
-				template['width'] += tinyMCE.getLang('lang_fullpage_delta_width', 0);
-				template['height'] += tinyMCE.getLang('lang_fullpage_delta_height', 0);
-
-				tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
-			return true;
-
-			case "mceFullPageUpdate":
-				TinyMCE_FullPagePlugin._addToHead(tinyMCE.getInstanceById(editor_id));
-				return true;
-	   }
-
-	   // Pass to next handler in chain
-	   return false;
-	},
-
-	cleanup : function(type, content, inst) {
-		switch (type) {
-			case "insert_to_editor":
-				var tmp = content.toLowerCase();
-				var pos = tmp.indexOf('', pos);
-					pos2 = tmp.lastIndexOf('');
-					inst.fullpageTopContent = content.substring(0, pos + 1);
-					content = content.substring(pos + 1, pos2);
-					// tinyMCE.debug(inst.fullpageTopContent, content);
-				} else {
-					if (!inst.fullpageTopContent) {
-						var docType = tinyMCE.getParam("fullpage_default_doctype", '');
-						var enc = tinyMCE.getParam("fullpage_default_encoding", 'utf-8');
-						var title = tinyMCE.getParam("fullpage_default_title", 'Untitled document');
-						var lang = tinyMCE.getParam("fullpage_default_langcode", 'en');
-						var pi = tinyMCE.getParam("fullpage_default_xml_pi", true);
-						var ff = tinyMCE.getParam("fullpage_default_font_family", "");
-						var fz = tinyMCE.getParam("fullpage_default_font_size", "");
-						var ds = tinyMCE.getParam("fullpage_default_style", "");
-						var dtc = tinyMCE.getParam("fullpage_default_text_color", "");
-
-						// Xml encode it
-						title = title.replace(/&/g, '&');
-						title = title.replace(/\"/g, '"');
-						title = title.replace(//g, '>');
-
-						tmp = '';
-
-						// Make default chunk
-						if (pi)
-							tmp += '\n';
-
-						tmp += docType + '\n';
-						tmp += '\n';
-						tmp += '\n';
-						tmp += '\t' + title + '\n';
-						tmp += '\t\n';
-						tmp += '\n';
-						tmp += '\n";
-
-				break;
-		}
-
-		// Pass through to next handler in chain
-		return content;
-	},
-
-	// Private plugin internal methods
-
-	_addToHead : function(inst) {
-		var doc = inst.getDoc();
-		var head = doc.getElementsByTagName("head")[0];
-		var body = doc.body;
-		var h = inst.fullpageTopContent;
-		var e = doc.createElement("body");
-		var nl, i, le, tmp;
-
-		// Remove stuff we don't want
-		h = h.replace(/(\r|\n)/gi, '');
-		h = h.replace(/<\?[^\>]*\>/gi, '');
-		h = h.replace(/<\/?(!DOCTYPE|head|html)[^\>]*\>/gi, '');
-		h = h.replace(//gi, '');
-		h = h.replace(//gi, '');
-		h = h.replace(/<(meta|base)[^>]*>/gi, '');
-
-		// Make link and style elements into pre
-		h = h.replace(/]*)\/>/gi, '
');
-		//h = h.replace(/]*)>(.*?)<\/style>/gi, '
$2
'); - - // Make body a div - h = h.replace(/ 0) { - body.style.cssText = tinyMCE.getAttrib(nl[0], 'style'); - - if ((tmp = tinyMCE.getAttrib(nl[0], 'leftmargin')) != '' && body.style.marginLeft == '') - body.style.marginLeft = tmp + "px"; - - if ((tmp = tinyMCE.getAttrib(nl[0], 'rightmargin')) != '' && body.style.marginRight == '') - body.style.marginRight = tmp + "px"; - - if ((tmp = tinyMCE.getAttrib(nl[0], 'topmargin')) != '' && body.style.marginTop == '') - body.style.marginTop = tmp + "px"; - - if ((tmp = tinyMCE.getAttrib(nl[0], 'bottommargin')) != '' && body.style.marginBottom == '') - body.style.marginBottom = tmp + "px"; - - body.dir = tinyMCE.getAttrib(nl[0], 'dir'); - body.vLink = tinyMCE.getAttrib(nl[0], 'vlink'); - body.aLink = tinyMCE.getAttrib(nl[0], 'alink'); - body.link = tinyMCE.getAttrib(nl[0], 'link'); - body.text = tinyMCE.getAttrib(nl[0], 'text'); - - if ((tmp = tinyMCE.getAttrib(nl[0], 'background')) != '') - body.style.backgroundImage = "url('" + tmp + "')"; - - if ((tmp = tinyMCE.getAttrib(nl[0], 'bgcolor')) != '') - body.style.backgroundColor = tmp; - } - } -}; - -tinyMCE.addPlugin("fullpage", TinyMCE_FullPagePlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/fullpage.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/fullpage.htm deleted file mode 100644 index bc3708c9f0..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/fullpage.htm +++ /dev/null @@ -1,577 +0,0 @@ - - - {$lang_fullpage_title} - - - - - - - - - -
- - -
-
-
- {$lang_fullpage_meta_props} - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
 
 
 
 
  - -
-
- -
- {$lang_fullpage_langprops} - - - - - - - - - - - - - - - - - - - - - - -
- -
  - -
 
- -
 
-
-
- -
-
- {$lang_fullpage_appearance_textprops} - - - - - - - - - - - - - - - - -
- -
- -
- - - - - -
 
-
-
- -
- {$lang_fullpage_appearance_bgprops} - - - - - - - - - - -
- - - - - -
 
-
- - - - - -
 
-
-
- -
- {$lang_fullpage_appearance_marginprops} - - - - - - - - - - - - - - -
-
- -
- {$lang_fullpage_appearance_linkprops} - - - - - - - - - - - - - - - - - - - -
- - - - - -
-
- - - - - -
 
-
- - - - - -
 
-
  
-
- -
- {$lang_fullpage_appearance_style} - - - - - - - - - - -
- - - - -
 
-
-
- -
- - -
- {$lang_fullpage_head_elements} - -
-
-
- - -
-
- - -
-
-
- -
-
- -
- {$lang_fullpage_meta_element} - - - - - - - - - - - - - - -
- - -
- -
- {$lang_fullpage_title_element} - - - - - - -
- - -
- -
- {$lang_fullpage_script_element} - - - -
- -
-
- - - - - - - - - - - - - - - - - -
- - - - -
 
-
- -
- -
-
- - -
- -
- {$lang_fullpage_style_element} - - - -
- -
-
- - - - - - - - - -
-
- -
- -
-
- - -
- -
- {$lang_fullpage_base_element} - - - - - - - - - - -
- - -
- - - -
- {$lang_fullpage_comment_element} - - - - -
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/add.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/add.gif deleted file mode 100644 index d6291d97d0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/add.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/fullpage.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/fullpage.gif deleted file mode 100644 index 1ddefcd1fa..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/fullpage.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/move_down.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/move_down.gif deleted file mode 100644 index 5bec71fffc..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/move_down.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/move_up.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/move_up.gif deleted file mode 100644 index 2f489c909e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/move_up.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/remove.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/remove.gif deleted file mode 100644 index 299c684efc..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/images/remove.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/jscripts/fullpage.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/jscripts/fullpage.js deleted file mode 100644 index e45799212d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullpage/jscripts/fullpage.js +++ /dev/null @@ -1,580 +0,0 @@ -// - -var defaultDocTypes = - 'XHTML 1.0 Transitional=,' + - 'XHTML 1.0 Frameset=,' + - 'XHTML 1.0 Strict=,' + - 'XHTML 1.1=">,' + - 'HTML 4.01 Transitional=,' + - 'HTML 4.01 Strict=,' + - 'HTML 4.01 Frameset='; - -var defaultEncodings = - 'Western european (iso-8859-1)=iso-8859-1,' + - 'Central European (iso-8859-2)=iso-8859-2,' + - 'Unicode (UTF-8)=utf-8,' + - 'Chinese traditional (Big5)=big5,' + - 'Cyrillic (iso-8859-5)=iso-8859-5,' + - 'Japanese (iso-2022-jp)=iso-2022-jp,' + - 'Greek (iso-8859-7)=iso-8859-7,' + - 'Korean (iso-2022-kr)=iso-2022-kr,' + - 'ASCII (us-ascii)=us-ascii'; - -var defaultMediaTypes = - 'all=all,' + - 'screen=screen,' + - 'print=print,' + - 'tty=tty,' + - 'tv=tv,' + - 'projection=projection,' + - 'handheld=handheld,' + - 'braille=braille,' + - 'aural=aural'; - -var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings'; -var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px'; - -var addMenuLayer = new MCLayer("addmenu"); -var lastElementType = null; -var topDoc; - -function init() { - var f = document.forms['fullpage']; - var i, p, doctypes, encodings, mediaTypes, fonts; - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - - // Setup doctype select box - doctypes = tinyMCE.getParam("fullpage_doctypes", defaultDocTypes).split(','); - for (i=0; i 1) - addSelectValue(f, 'doctypes', p[0], p[1]); - } - - // Setup fonts select box - fonts = tinyMCE.getParam("fullpage_fonts", defaultFontNames).split(';'); - for (i=0; i 1) - addSelectValue(f, 'fontface', p[0], p[1]); - } - - // Setup fontsize select box - fonts = tinyMCE.getParam("fullpage_fontsizes", defaultFontSizes).split(','); - for (i=0; i 1) { - addSelectValue(f, 'element_style_media', p[0], p[1]); - addSelectValue(f, 'element_link_media', p[0], p[1]); - } - } - - // Setup encodings select box - encodings = tinyMCE.getParam("fullpage_encodings", defaultEncodings).split(','); - for (i=0; i 1) { - addSelectValue(f, 'docencoding', p[0], p[1]); - addSelectValue(f, 'element_script_charset', p[0], p[1]); - addSelectValue(f, 'element_link_charset', p[0], p[1]); - } - } - - document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); - document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color'); - //document.getElementById('hover_color_pickcontainer').innerHTML = getColorPickerHTML('hover_color_pick','hover_color'); - document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color'); - document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color'); - document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor'); - document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage'); - document.getElementById('link_href_pickcontainer').innerHTML = getBrowserHTML('link_href_browser','element_link_href','file','fullpage'); - document.getElementById('script_src_pickcontainer').innerHTML = getBrowserHTML('script_src_browser','element_script_src','file','fullpage'); - document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage'); - - // Resize some elements - if (isVisible('stylesheetbrowser')) - document.getElementById('stylesheet').style.width = '220px'; - - if (isVisible('link_href_browser')) - document.getElementById('element_link_href').style.width = '230px'; - - if (isVisible('bgimage_browser')) - document.getElementById('bgimage').style.width = '210px'; - - // Create iframe - var iframe = document.createElement('iframe'); - - iframe.id = 'tempFrame'; - iframe.style.display = 'none'; - iframe.src = tinyMCE.baseURL + "/plugins/fullpage/blank.htm"; - - document.body.appendChild(iframe); - - tinyMCEPopup.resizeToInnerSize(); -} - -function setupIframe(doc) { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var hc = inst.fullpageTopContent; - var f = document.forms[0]; - var xmlVer, xmlEnc, docType; - var nodes, i, x, name, value, tmp, l; - - // Keep it from not loading/executing stuff - hc = hc.replace(/ - - - - -
- -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/images/fullscreen.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/images/fullscreen.gif deleted file mode 100644 index 66fa6d9217..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/images/fullscreen.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/langs/en.js deleted file mode 100644 index c5ad4ca938..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/langs/en.js +++ /dev/null @@ -1,5 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -fullscreen_desc : 'Toggle fullscreen mode' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/fullscreen/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/editor_plugin.js deleted file mode 100644 index 73bb138a98..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('iespell');var TinyMCE_IESpellPlugin={getInfo:function(){return{longname:'IESpell (MSIE Only)',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_iespell.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){if(cn=="iespell"&&(tinyMCE.isMSIE&&!tinyMCE.isOpera))return tinyMCE.getButtonHTML(cn,'lang_iespell_desc','{$pluginurl}/images/iespell.gif','mceIESpell');return""},execCommand:function(editor_id,element,command,user_interface,value){if(command=="mceIESpell"){try{var ieSpell=new ActiveXObject("ieSpell.ieSpellExtension");ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement)}catch(e){if(e.number==-2146827859){if(confirm(tinyMCE.getLang("lang_iespell_download","",true)))window.open('http://www.iespell.com/download.php','ieSpellDownload','')}else alert("Error Loading ieSpell: Exception "+e.number)}return true}return false}};tinyMCE.addPlugin("iespell",TinyMCE_IESpellPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/editor_plugin_src.js deleted file mode 100644 index 6902d72db3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/editor_plugin_src.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('iespell'); - -var TinyMCE_IESpellPlugin = { - getInfo : function() { - return { - longname : 'IESpell (MSIE Only)', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_iespell.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - /** - * Returns the HTML contents of the iespell control. - */ - getControlHTML : function(cn) { - // Is it the iespell control and is the brower MSIE. - if (cn == "iespell" && (tinyMCE.isMSIE && !tinyMCE.isOpera)) - return tinyMCE.getButtonHTML(cn, 'lang_iespell_desc', '{$pluginurl}/images/iespell.gif', 'mceIESpell'); - - return ""; - }, - - /** - * Executes the mceIESpell command. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle ieSpellCommand - if (command == "mceIESpell") { - try { - var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension"); - ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement); - } catch (e) { - if (e.number == -2146827859) { - if (confirm(tinyMCE.getLang("lang_iespell_download", "", true))) - window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); - } else - alert("Error Loading ieSpell: Exception " + e.number); - } - - return true; - } - - // Pass to next handler in chain - return false; - } -}; - -tinyMCE.addPlugin("iespell", TinyMCE_IESpellPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/images/iespell.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/images/iespell.gif deleted file mode 100644 index a9a2891891..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/images/iespell.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/langs/en.js deleted file mode 100644 index c3688e9465..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/langs/en.js +++ /dev/null @@ -1,7 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -iespell_desc : 'Run spell checking', -iespell_download : "ieSpell not detected. Click OK to go to download page." -}); - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/iespell/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/inlinepopups/css/inlinepopup.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/inlinepopups/css/inlinepopup.css deleted file mode 100644 index 43be823cdf..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/inlinepopups/css/inlinepopup.css +++ /dev/null @@ -1,69 +0,0 @@ -/* Window classes */ - -.mceWindow { - position: absolute; - left: 0; - top: 0; - border: 1px solid black; - background-color: #D4D0C8; -} - -.mceWindowHead { - background-color: #334F8D; - width: 100%; - height: 18px; - cursor: move; - overflow: hidden; -} - -.mceWindowBody { - clear: both; - background-color: white; -} - -.mceWindowStatusbar { - background-color: #D4D0C8; - height: 12px; - border-top: 1px solid black; -} - -.mceWindowTitle { - float: left; - font-family: "MS Sans Serif"; - font-size: 9pt; - font-weight: bold; - line-height: 18px; - color: white; - margin-left: 2px; - overflow: hidden; -} - -.mceWindowHeadTools { - margin-right: 2px; -} - -.mceWindowClose, .mceWindowMinimize, .mceWindowMaximize { - display: block; - float: right; - overflow: hidden; - margin-top: 2px; -} - -.mceWindowClose { - margin-left: 2px; -} - -.mceWindowMinimize { -} - -.mceWindowMaximize { -} - -.mceWindowResize { - display: block; - float: right; - overflow: hidden; - cursor: se-resize; - width: 12px; - height: 12px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/inlinepopups/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/inlinepopups/editor_plugin.js deleted file mode 100644 index a5c92482fa..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/inlinepopups/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_inlinepopups.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}}};tinyMCE.addPlugin("inlinepopups",TinyMCE_InlinePopupsPlugin);TinyMCE_Engine.prototype.orgOpenWindow=TinyMCE_Engine.prototype.openWindow;TinyMCE_Engine.prototype.openWindow=function(template,args){if(args['inline']!="yes"||tinyMCE.isOpera||tinyMCE.getParam("plugins").indexOf('inlinepopups')==-1){mcWindows.selectedWindow=null;args['mce_inside_iframe']=false;this.orgOpenWindow(template,args);return}var url,resizable,scrollbars;args['mce_inside_iframe']=true;tinyMCE.windowArgs=args;if(template['file'].charAt(0)!='/'&&template['file'].indexOf('://')==-1)url=tinyMCE.baseURL+"/themes/"+tinyMCE.getParam("theme")+"/"+template['file'];else url=template['file'];if(!(width=parseInt(template['width'])))width=320;if(!(height=parseInt(template['height'])))height=200;resizable=(args&&args['resizable'])?args['resizable']:"no";scrollbars=(args&&args['scrollbars'])?args['scrollbars']:"no";height+=18;for(var name in args){if(typeof(args[name])=='function')continue;url=tinyMCE.replaceVar(url,name,escape(args[name]))}var elm=document.getElementById(this.selectedInstance.editorId+'_parent');if(tinyMCE.hasPlugin('fullscreen')&&this.selectedInstance.getData('fullscreen').enabled)pos={absLeft:0,absTop:0};else pos=tinyMCE.getAbsPosition(elm);pos.absLeft+=Math.round((elm.firstChild.clientWidth/ 2) - (width /2));pos.absTop+=Math.round((elm.firstChild.clientHeight/ 2) - (height /2));mcWindows.open(url,mcWindows.idCounter++,"modal=yes,width="+width+",height="+height+",resizable="+resizable+",scrollbars="+scrollbars+",statusbar="+resizable+",left="+pos.absLeft+",top="+pos.absTop)};TinyMCE_Engine.prototype.orgCloseWindow=TinyMCE_Engine.prototype.closeWindow;TinyMCE_Engine.prototype.closeWindow=function(win){if(mcWindows.selectedWindow!=null)mcWindows.selectedWindow.close();else this.orgCloseWindow(win)};TinyMCE_Engine.prototype.setWindowTitle=function(win_ref,title){for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(typeof(win)=='function')continue;if(win_ref.name==win.id+"_iframe")window.frames[win.id+"_iframe"].document.getElementById(win.id+'_title').innerHTML=title}};function TinyMCE_Windows(){this.settings=new Array();this.windows=new Array();this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isGecko=navigator.userAgent.indexOf('Gecko')!=-1;this.isSafari=navigator.userAgent.indexOf('Safari')!=-1;this.isMac=navigator.userAgent.indexOf('Mac')!=-1;this.isMSIE5_0=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5.0')!=-1);this.action="none";this.selectedWindow=null;this.lastSelectedWindow=null;this.zindex=1001;this.mouseDownScreenX=0;this.mouseDownScreenY=0;this.mouseDownLayerX=0;this.mouseDownLayerY=0;this.mouseDownWidth=0;this.mouseDownHeight=0;this.idCounter=0};TinyMCE_Windows.prototype.init=function(settings){this.settings=settings;if(this.isMSIE)this.addEvent(document,"mousemove",mcWindows.eventDispatcher);else this.addEvent(window,"mousemove",mcWindows.eventDispatcher);this.addEvent(document,"mouseup",mcWindows.eventDispatcher);this.doc=document};TinyMCE_Windows.prototype.getParam=function(name,default_value){var value=null;value=(typeof(this.settings[name])=="undefined")?default_value:this.settings[name];if(value=="true"||value=="false")return(value=="true");return value};TinyMCE_Windows.prototype.eventDispatcher=function(e){e=typeof(e)=="undefined"?window.event:e;if(mcWindows.selectedWindow==null)return;if(mcWindows.isGecko&&e.type=="mousedown"){var elm=e.currentTarget;for(var n in mcWindows.windows){var win=mcWindows.windows[n];if(win.headElement==elm||win.resizeElement==elm){win.focus();break}}}switch(e.type){case"mousemove":mcWindows.selectedWindow.onMouseMove(e);break;case"mouseup":mcWindows.selectedWindow.onMouseUp(e);break;case"mousedown":mcWindows.selectedWindow.onMouseDown(e);break;case"focus":mcWindows.selectedWindow.onFocus(e);break}};TinyMCE_Windows.prototype.addEvent=function(obj,name,handler){if(this.isMSIE)obj.attachEvent("on"+name,handler);else obj.addEventListener(name,handler,true)};TinyMCE_Windows.prototype.cancelEvent=function(e){if(this.isMSIE){e.returnValue=false;e.cancelBubble=true}else e.preventDefault()};TinyMCE_Windows.prototype.parseFeatures=function(opts){opts=opts.toLowerCase();opts=opts.replace(/;/g,",");opts=opts.replace(/[^0-9a-z=,]/g,"");var optionChunks=opts.split(',');var options=new Array();options['left']="10";options['top']="10";options['width']="300";options['height']="300";options['resizable']="yes";options['minimizable']="yes";options['maximizable']="yes";options['close']="yes";options['movable']="yes";options['statusbar']="yes";options['scrollbars']="auto";options['modal']="no";if(opts=="")return options;for(var i=0;i';html+='';html+='';html+='Wrapper iframe';html+='';html+='';html+='';html+='';html+='
';html+='
';html+='
';html+='
';html+='
';html+='
';if(features['statusbar']=="yes"){html+='
';if(features['resizable']=="yes"){if(this.isGecko)html+='
';else html+='
'}html+='
'}html+='
';html+='';html+='';this.createFloatingIFrame(id,features['left'],features['top'],features['width'],features['height'],html)};TinyMCE_Windows.prototype.setDocumentLock=function(state){var elm=document.getElementById('mcWindowEventBlocker');if(state){if(elm==null){elm=document.createElement("div");elm.id="mcWindowEventBlocker";elm.style.position="absolute";elm.style.left="0";elm.style.top="0";document.body.appendChild(elm)}elm.style.display="none";var imgPath=this.getParam("images_path");var width=document.body.clientWidth;var height=document.body.clientHeight;elm.style.width=width;elm.style.height=height;elm.innerHTML='';elm.style.zIndex=mcWindows.zindex-1;elm.style.display="block"}else if(elm!=null){if(mcWindows.windows.length==0)elm.parentNode.removeChild(elm);else elm.style.zIndex=mcWindows.zindex-1}};TinyMCE_Windows.prototype.onLoad=function(name){var win=mcWindows.windows[name];var id="mcWindow_"+name;var wrapperIframe=window.frames[id+"_iframe"].frames[0];var wrapperDoc=window.frames[id+"_iframe"].document;var doc=window.frames[id+"_iframe"].document;var winDiv=document.getElementById("mcWindow_"+name+"_div");var realIframe=window.frames[id+"_iframe"].frames[0];win.id="mcWindow_"+name;win.winElement=winDiv;win.bodyElement=doc.getElementById(id+'_body');win.iframeElement=doc.getElementById(id+'_iframe');win.headElement=doc.getElementById(id+'_head');win.titleElement=doc.getElementById(id+'_title');win.resizeElement=doc.getElementById(id+'_resize');win.containerElement=doc.getElementById(id+'_container');win.left=win.features['left'];win.top=win.features['top'];win.frame=window.frames[id+'_iframe'].frames[0];win.wrapperFrame=window.frames[id+'_iframe'];win.wrapperIFrameElement=document.getElementById(id+"_iframe");mcWindows.addEvent(win.headElement,"mousedown",mcWindows.eventDispatcher);if(win.resizeElement!=null)mcWindows.addEvent(win.resizeElement,"mousedown",mcWindows.eventDispatcher);if(mcWindows.isMSIE){mcWindows.addEvent(realIframe.document,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe.document,"mouseup",mcWindows.eventDispatcher)}else{mcWindows.addEvent(realIframe,"mousemove",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe,"mouseup",mcWindows.eventDispatcher);mcWindows.addEvent(realIframe,"focus",mcWindows.eventDispatcher)}for(var i=0;i'; - html += ''; - html += ''; - - html += '
'; - html += '
'; - html += '
'; -// html += ' '; -// html += ' '; - html += '
'; - html += '
'; - html += '
'; - - if (features['statusbar'] == "yes") { - html += '
'; - - if (features['resizable'] == "yes") { - if (this.isGecko) - html += '
'; - else - html += '
'; - } - - html += '
'; - } - - html += '
'; - - html += ''; - html += ''; - - // Create iframe - this.createFloatingIFrame(id, features['left'], features['top'], features['width'], features['height'], html); -}; - -// Blocks the document events by placing a image over the whole document -TinyMCE_Windows.prototype.setDocumentLock = function(state) { - var elm = document.getElementById('mcWindowEventBlocker'); - - if (state) { - if (elm == null) { - elm = document.createElement("div"); - - elm.id = "mcWindowEventBlocker"; - elm.style.position = "absolute"; - elm.style.left = "0"; - elm.style.top = "0"; - - document.body.appendChild(elm); - } - - elm.style.display = "none"; - - var imgPath = this.getParam("images_path"); - var width = document.body.clientWidth; - var height = document.body.clientHeight; - - elm.style.width = width; - elm.style.height = height; - elm.innerHTML = ''; - - elm.style.zIndex = mcWindows.zindex-1; - elm.style.display = "block"; - } else if (elm != null) { - if (mcWindows.windows.length == 0) - elm.parentNode.removeChild(elm); - else - elm.style.zIndex = mcWindows.zindex-1; - } -}; - -// Gets called when wrapper iframe is initialized -TinyMCE_Windows.prototype.onLoad = function(name) { - var win = mcWindows.windows[name]; - var id = "mcWindow_" + name; - var wrapperIframe = window.frames[id + "_iframe"].frames[0]; - var wrapperDoc = window.frames[id + "_iframe"].document; - var doc = window.frames[id + "_iframe"].document; - var winDiv = document.getElementById("mcWindow_" + name + "_div"); - var realIframe = window.frames[id + "_iframe"].frames[0]; - - // Set window data - win.id = "mcWindow_" + name; - win.winElement = winDiv; - win.bodyElement = doc.getElementById(id + '_body'); - win.iframeElement = doc.getElementById(id + '_iframe'); - win.headElement = doc.getElementById(id + '_head'); - win.titleElement = doc.getElementById(id + '_title'); - win.resizeElement = doc.getElementById(id + '_resize'); - win.containerElement = doc.getElementById(id + '_container'); - win.left = win.features['left']; - win.top = win.features['top']; - win.frame = window.frames[id + '_iframe'].frames[0]; - win.wrapperFrame = window.frames[id + '_iframe']; - win.wrapperIFrameElement = document.getElementById(id + "_iframe"); - - // Add event handlers - mcWindows.addEvent(win.headElement, "mousedown", mcWindows.eventDispatcher); - - if (win.resizeElement != null) - mcWindows.addEvent(win.resizeElement, "mousedown", mcWindows.eventDispatcher); - - if (mcWindows.isMSIE) { - mcWindows.addEvent(realIframe.document, "mousemove", mcWindows.eventDispatcher); - mcWindows.addEvent(realIframe.document, "mouseup", mcWindows.eventDispatcher); - } else { - mcWindows.addEvent(realIframe, "mousemove", mcWindows.eventDispatcher); - mcWindows.addEvent(realIframe, "mouseup", mcWindows.eventDispatcher); - mcWindows.addEvent(realIframe, "focus", mcWindows.eventDispatcher); - } - - for (var i=0; i'; - - html += '
'; - html += '
'; - html += '
'; -// html += ' '; -// html += ' '; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - html += '
'; - - html += ''; - html += ''; - - // Create iframe - this.createFloatingIFrame(id, features['left'], features['top'], features['width'], features['height'], html); -}; - -// Gets called when wrapper iframe is initialized -MCWindows.prototype.onLoad = function(name) { - var win = mcWindows.windows[name]; - var id = "mcWindow_" + name; - var wrapperIframe = window.frames[id + "_iframe"].frames[0]; - var wrapperDoc = window.frames[id + "_iframe"].document; - var doc = window.frames[id + "_iframe"].document; - var winDiv = document.getElementById("mcWindow_" + name + "_div"); - var realIframe = window.frames[id + "_iframe"].frames[0]; - - // Set window data - win.id = "mcWindow_" + name + "_iframe"; - win.winElement = winDiv; - win.bodyElement = doc.getElementById(id + '_body'); - win.iframeElement = doc.getElementById(id + '_iframe'); - win.headElement = doc.getElementById(id + '_head'); - win.titleElement = doc.getElementById(id + '_title'); - win.resizeElement = doc.getElementById(id + '_resize'); - win.containerElement = doc.getElementById(id + '_container'); - win.left = win.features['left']; - win.top = win.features['top']; - win.frame = window.frames[id + '_iframe'].frames[0]; - win.wrapperFrame = window.frames[id + '_iframe']; - win.wrapperIFrameElement = document.getElementById(id + "_iframe"); - - // Add event handlers - mcWindows.addEvent(win.headElement, "mousedown", mcWindows.eventDispatcher); - mcWindows.addEvent(win.resizeElement, "mousedown", mcWindows.eventDispatcher); - - if (mcWindows.isMSIE) { - mcWindows.addEvent(realIframe.document, "mousemove", mcWindows.eventDispatcher); - mcWindows.addEvent(realIframe.document, "mouseup", mcWindows.eventDispatcher); - } else { - mcWindows.addEvent(realIframe, "mousemove", mcWindows.eventDispatcher); - mcWindows.addEvent(realIframe, "mouseup", mcWindows.eventDispatcher); - mcWindows.addEvent(realIframe, "focus", mcWindows.eventDispatcher); - } - - for (var i=0; i-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci]}else{if(z[ci]>0)nl[ci].style.zIndex=z[ci]-1}}else{for(i=0;iz[ci]){fi=i;break}}if(fi>-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci]}else nl[ci].style.zIndex=z[ci]+1}inst.repaint()},_getParentLayer:function(n){return tinyMCE.getParentNode(n,function(n){return n.nodeType==1&&new RegExp('absolute|relative|static','gi').test(n.style.position)})},_insertLayer:function(){var inst=tinyMCE.selectedInstance;var e=tinyMCE.getParentElement(inst.getFocusElement());var p=tinyMCE.getAbsPosition(e);var d=inst.getDoc();var ne=d.createElement('div');var h=inst.selection.getSelectedHTML();ne.style.position='absolute';ne.style.left=p.absLeft+'px';ne.style.top=(p.absTop>20?p.absTop:20)+'px';ne.style.width='100px';ne.style.height='100px';ne.className='mceVisualAid';if(!h)h=tinyMCE.getLang('lang_layer_content');ne.innerHTML=h;d.body.appendChild(ne)},_toggleAbsolute:function(){var inst=tinyMCE.selectedInstance;var le=this._getParentLayer(inst.getFocusElement());if(le==null)le=tinyMCE.getParentElement(inst.getFocusElement(),'div,p,img');if(le){if(le.style.position.toLowerCase()=="absolute"){le.style.position="";le.style.left="";le.style.top=""}else{le.style.position="absolute";if(le.style.left=="")le.style.left=20+'px';if(le.style.top=="")le.style.top=20+'px';if(le.style.width=="")le.style.width=le.width?(le.width+'px'):'100px';if(le.style.height=="")le.style.height=le.height?(le.height+'px'):'100px';tinyMCE.handleVisualAid(inst.getBody(),true,inst.visualAid,inst)}inst.repaint();tinyMCE.triggerNodeChange()}}};tinyMCE.addPlugin("layer",TinyMCE_LayerPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/editor_plugin_src.js deleted file mode 100644 index 629dad214c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/editor_plugin_src.js +++ /dev/null @@ -1,248 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('layer'); - -var TinyMCE_LayerPlugin = { - getInfo : function() { - return { - longname : 'Layer', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_layer.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - initInstance : function(inst) { - if (tinyMCE.isMSIE && !tinyMCE.isOpera) - inst.getDoc().execCommand('2D-Position'); - }, - - handleEvent : function(e) { - var inst = tinyMCE.selectedInstance; - var w = inst.getWin(), le = inst._lastStyleElm, e; - - if (tinyMCE.isGecko) { - e = this._getParentLayer(inst.getFocusElement()); - - if (e) { - if (!inst._lastStyleElm) { - e.style.overflow = 'auto'; - inst._lastStyleElm = e; - } - } else if (le) { - le = inst._lastStyleElm; - le.style.width = le.scrollWidth + 'px'; - le.style.height = le.scrollHeight + 'px'; - le.style.overflow = ''; - inst._lastStyleElm = null; - } - } - - return true; - }, - - handleVisualAid : function(el, deep, state, inst) { - var nl = inst.getDoc().getElementsByTagName("div"), i; - - for (i=0; i -1) { - nl[ci].style.zIndex = z[fi]; - nl[fi].style.zIndex = z[ci]; - } else { - if (z[ci] > 0) - nl[ci].style.zIndex = z[ci] - 1; - } - } else { - // Move forward - - // Try find a higher one - for (i=0; i z[ci]) { - fi = i; - break; - } - } - - if (fi > -1) { - nl[ci].style.zIndex = z[fi]; - nl[fi].style.zIndex = z[ci]; - } else - nl[ci].style.zIndex = z[ci] + 1; - } - - inst.repaint(); - }, - - _getParentLayer : function(n) { - return tinyMCE.getParentNode(n, function(n) { - return n.nodeType == 1 && new RegExp('absolute|relative|static', 'gi').test(n.style.position); - }); - }, - - _insertLayer : function() { - var inst = tinyMCE.selectedInstance; - var e = tinyMCE.getParentElement(inst.getFocusElement()); - var p = tinyMCE.getAbsPosition(e); - var d = inst.getDoc(); - var ne = d.createElement('div'); - var h = inst.selection.getSelectedHTML(); - - // Move div - ne.style.position = 'absolute'; - ne.style.left = p.absLeft + 'px'; - ne.style.top = (p.absTop > 20 ? p.absTop : 20) + 'px'; - ne.style.width = '100px'; - ne.style.height = '100px'; - ne.className = 'mceVisualAid'; - - if (!h) - h = tinyMCE.getLang('lang_layer_content'); - - ne.innerHTML = h; - - // Add it - d.body.appendChild(ne); - }, - - _toggleAbsolute : function() { - var inst = tinyMCE.selectedInstance; - var le = this._getParentLayer(inst.getFocusElement()); - - if (le == null) - le = tinyMCE.getParentElement(inst.getFocusElement(), 'div,p,img'); - - if (le) { - if (le.style.position.toLowerCase() == "absolute") { - le.style.position = ""; - le.style.left = ""; - le.style.top = ""; - } else { - le.style.position = "absolute"; - - if (le.style.left == "") - le.style.left = 20 + 'px'; - - if (le.style.top == "") - le.style.top = 20 + 'px'; - - if (le.style.width == "") - le.style.width = le.width ? (le.width + 'px') : '100px'; - - if (le.style.height == "") - le.style.height = le.height ? (le.height + 'px') : '100px'; - - tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); - } - - inst.repaint(); - tinyMCE.triggerNodeChange(); - } - } -}; - -tinyMCE.addPlugin("layer", TinyMCE_LayerPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/absolute.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/absolute.gif deleted file mode 100644 index 72cffddc32..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/absolute.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/backward.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/backward.gif deleted file mode 100644 index 466b158656..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/backward.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/forward.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/forward.gif deleted file mode 100644 index e8b7a5a11f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/forward.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/insert_layer.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/insert_layer.gif deleted file mode 100644 index bc29af0766..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/images/insert_layer.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/langs/en.js deleted file mode 100644 index cdd8c22b28..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/langs/en.js +++ /dev/null @@ -1,9 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('layer',{ -insertlayer_desc : 'Insert new layer', -forward_desc : 'Move forward', -backward_desc : 'Move backward', -absolute_desc : 'Toggle absolute positioning', -content : 'New layer...' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/layer/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/noneditable/css/noneditable.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/noneditable/css/noneditable.css deleted file mode 100644 index be0ab65a29..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/noneditable/css/noneditable.css +++ /dev/null @@ -1,9 +0,0 @@ -/* This is the CSS file for the noneditable elements plugin */ - -.mceEditable { - /*border: 1px dotted #0000cc;*/ -} - -.mceNonEditable { - /*border: 1px dotted #cc0000;*/ -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/noneditable/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/noneditable/editor_plugin.js deleted file mode 100644 index 60ddb42eb3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/noneditable/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -var TinyMCE_NonEditablePlugin={getInfo:function(){return{longname:'Non editable elements',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_noneditable.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){tinyMCE.importCSS(inst.getDoc(),tinyMCE.baseURL+"/plugins/noneditable/css/noneditable.css");if(tinyMCE.isMSIE5_0)tinyMCE.settings['plugins']=tinyMCE.settings['plugins'].replace(/noneditable/gi,'Noneditable')},handleEvent:function(e){return this._moveSelection(e,tinyMCE.selectedInstance)},cleanup:function(type,content,inst){switch(type){case"insert_to_editor_dom":if(tinyMCE.isGecko)return content;var nodes=tinyMCE.getNodeTree(content,new Array(),1),i,editClass,nonEditClass;editClass=tinyMCE.getParam("noneditable_editable_class","mceEditable");nonEditClass=tinyMCE.getParam("noneditable_noneditable_class","mceNonEditable");for(i=0;i - - blank_page - - - - - - - - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/css/blank.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/css/blank.css deleted file mode 100644 index eca411a422..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/css/blank.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - background-color: #FFFFFF; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/css/pasteword.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/css/pasteword.css deleted file mode 100644 index b3be6270bb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/css/pasteword.css +++ /dev/null @@ -1,3 +0,0 @@ -.sourceIframe { - border: 1px solid #808080; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/editor_plugin.js deleted file mode 100644 index 7e7d12a31c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('paste');var TinyMCE_PastePlugin={getInfo:function(){return{longname:'Paste text/word',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_paste.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(tinyMCE.isMSIE&&tinyMCE.getParam("paste_auto_cleanup_on_paste",false))tinyMCE.addEvent(inst.getBody(),"paste",TinyMCE_PastePlugin._handlePasteEvent)},getControlHTML:function(cn){switch(cn){case"pastetext":return tinyMCE.getButtonHTML(cn,'lang_paste_text_desc','{$pluginurl}/images/pastetext.gif','mcePasteText',true);case"pasteword":return tinyMCE.getButtonHTML(cn,'lang_paste_word_desc','{$pluginurl}/images/pasteword.gif','mcePasteWord',true);case"selectall":return tinyMCE.getButtonHTML(cn,'lang_selectall_desc','{$pluginurl}/images/selectall.gif','mceSelectAll',true)}return''},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mcePasteText":if(user_interface){if((tinyMCE.isMSIE&&!tinyMCE.isOpera)&&!tinyMCE.getParam('paste_use_dialog',false))TinyMCE_PastePlugin._insertText(clipboardData.getData("Text"),true);else{var template=new Array();template['file']='../../plugins/paste/pastetext.htm';template['width']=450;template['height']=400;var plain_text="";tinyMCE.openWindow(template,{editor_id:editor_id,plain_text:plain_text,resizable:"yes",scrollbars:"no",inline:"yes",mceDo:'insert'})}}else TinyMCE_PastePlugin._insertText(value['html'],value['linebreaks']);return true;case"mcePasteWord":if(user_interface){if((tinyMCE.isMSIE&&!tinyMCE.isOpera)&&!tinyMCE.getParam('paste_use_dialog',false)){TinyMCE_PastePlugin._insertWordContent(TinyMCE_PastePlugin._clipboardHTML())}else{var template=new Array();template['file']='../../plugins/paste/pasteword.htm';template['width']=450;template['height']=400;var plain_text="";tinyMCE.openWindow(template,{editor_id:editor_id,plain_text:plain_text,resizable:"yes",scrollbars:"no",inline:"yes",mceDo:'insert'})}}else TinyMCE_PastePlugin._insertWordContent(value);return true;case"mceSelectAll":tinyMCE.execInstanceCommand(editor_id,'selectall');return true}return false},_handlePasteEvent:function(e){switch(e.type){case"paste":var html=TinyMCE_PastePlugin._clipboardHTML();var r,inst=tinyMCE.selectedInstance;if(inst&&(r=inst.getRng())&&r.text.length>0)tinyMCE.execCommand('delete');if(html&&html.length>0)tinyMCE.execCommand('mcePasteWord',false,html);tinyMCE.cancelEvent(e);return false}return true},_insertText:function(content,bLinebreaks){if(content&&content.length>0){if(bLinebreaks){if(tinyMCE.getParam("paste_create_paragraphs",true)){var rl=tinyMCE.getParam("paste_replace_list",'\u2122,TM,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');for(var i=0;i

","gi");content=tinyMCE.regexpReplace(content,"\r\r","

","gi");content=tinyMCE.regexpReplace(content,"\n\n","

","gi");if((pos=content.indexOf('

'))!=-1){tinyMCE.execCommand("Delete");var node=tinyMCE.selectedInstance.getFocusElement();var breakElms=new Array();do{if(node.nodeType==1){if(node.nodeName=="TD"||node.nodeName=="BODY")break;breakElms[breakElms.length]=node}}while(node=node.parentNode);var before="",after="

";before+=content.substring(0,pos);for(var i=0;i";after+="<"+breakElms[(breakElms.length-1)-i].nodeName+">"}before+="

";content=before+content.substring(pos+7)+after}}if(tinyMCE.getParam("paste_create_linebreaks",true)){content=tinyMCE.regexpReplace(content,"\r\n","
","gi");content=tinyMCE.regexpReplace(content,"\r","
","gi");content=tinyMCE.regexpReplace(content,"\n","
","gi")}}tinyMCE.execCommand("mceInsertRawHTML",false,content)}},_insertWordContent:function(content){if(content&&content.length>0){var bull=String.fromCharCode(8226);var middot=String.fromCharCode(183);var cb;if((cb=tinyMCE.getParam("paste_insert_word_content_callback",""))!="")content=eval(cb+"('before', content)");var rl=tinyMCE.getParam("paste_replace_list",'\u2122,TM,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');for(var i=0;i(.*?)<\/p>','gi'),'

$1

')}content=content.replace(new RegExp('tab-stops: list [0-9]+.0pt">','gi'),'">'+"--list--");content=content.replace(new RegExp(bull+"(.*?)
","gi"),"

"+middot+"$1

");content=content.replace(new RegExp('','gi'),""+bull);content=content.replace(/<\/o:p>/gi,"");content=content.replace(new RegExp('
]*>/gi,"");if(tinyMCE.getParam("paste_remove_styles",true))content=content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)','gi'),"<$1$3");content=content.replace(/<\/?font[^>]*>/gi,"");switch(tinyMCE.getParam("paste_strip_class_attributes","all")){case"all":content=content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi,"<$1$3");break;case"mso":content=content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)','gi'),"<$1$3");break}content=content.replace(new RegExp('href="?'+TinyMCE_PastePlugin._reEscape(""+document.location)+'','gi'),'href="'+tinyMCE.settings['document_base_url']);content=content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");content=content.replace(/<\\?\?xml[^>]*>/gi,"");content=content.replace(/<\/?\w+:[^>]*>/gi,"");content=content.replace(/-- page break --\s*

 <\/p>/gi,"");content=content.replace(/-- page break --/gi,"");if(!tinyMCE.settings['force_p_newlines']){content=content.replace('','','gi');content=content.replace('

','

','gi')}if(!tinyMCE.isMSIE&&!tinyMCE.settings['force_p_newlines']){content=content.replace(/<\/?p[^>]*>/gi,"")}content=content.replace(/<\/?div[^>]*>/gi,"");if(tinyMCE.getParam("paste_convert_middot_lists",true)){var div=document.createElement("div");div.innerHTML=content;var className=tinyMCE.getParam("paste_unindented_list_class","unIndentedList");while(TinyMCE_PastePlugin._convertMiddots(div,"--list--"));while(TinyMCE_PastePlugin._convertMiddots(div,middot,className));while(TinyMCE_PastePlugin._convertMiddots(div,bull));content=div.innerHTML}if(tinyMCE.getParam("paste_convert_headers_to_strong",false)){content=content.replace(/ <\/h[1-6]>/gi,'

  

');content=content.replace(//gi,'

');content=content.replace(/<\/h[1-6]>/gi,'

');content=content.replace(/ <\/b>/gi,'  ');content=content.replace(/^( )*/gi,'')}content=content.replace(/--list--/gi,"");if((cb=tinyMCE.getParam("paste_insert_word_content_callback",""))!="")content=eval(cb+"('after', content)");tinyMCE.execCommand("mceInsertContent",false,content);if(tinyMCE.getParam('paste_force_cleanup_wordpaste',true))window.setTimeout('tinyMCE.execCommand("mceCleanup");',1);}},_reEscape:function(s){var l="?.\\*[](){}+^$:";var o="";for(var i=0;i 0) - tinyMCE.execCommand('delete'); - - if (html && html.length > 0) - tinyMCE.execCommand('mcePasteWord', false, html); - - tinyMCE.cancelEvent(e); - return false; - } - - return true; - }, - - _insertText : function(content, bLinebreaks) { - if (content && content.length > 0) { - if (bLinebreaks) { - // Special paragraph treatment - if (tinyMCE.getParam("paste_create_paragraphs", true)) { - var rl = tinyMCE.getParam("paste_replace_list", '\u2122,TM,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(','); - for (var i=0; i

", "gi"); - content = tinyMCE.regexpReplace(content, "\r\r", "

", "gi"); - content = tinyMCE.regexpReplace(content, "\n\n", "

", "gi"); - - // Has paragraphs - if ((pos = content.indexOf('

')) != -1) { - tinyMCE.execCommand("Delete"); - - var node = tinyMCE.selectedInstance.getFocusElement(); - - // Get list of elements to break - var breakElms = new Array(); - - do { - if (node.nodeType == 1) { - // Don't break tables and break at body - if (node.nodeName == "TD" || node.nodeName == "BODY") - break; - - breakElms[breakElms.length] = node; - } - } while(node = node.parentNode); - - var before = "", after = "

"; - before += content.substring(0, pos); - - for (var i=0; i"; - after += "<" + breakElms[(breakElms.length-1)-i].nodeName + ">"; - } - - before += "

"; - content = before + content.substring(pos+7) + after; - } - } - - if (tinyMCE.getParam("paste_create_linebreaks", true)) { - content = tinyMCE.regexpReplace(content, "\r\n", "
", "gi"); - content = tinyMCE.regexpReplace(content, "\r", "
", "gi"); - content = tinyMCE.regexpReplace(content, "\n", "
", "gi"); - } - } - - tinyMCE.execCommand("mceInsertRawHTML", false, content); - } - }, - - _insertWordContent : function(content) { - if (content && content.length > 0) { - // Cleanup Word content - var bull = String.fromCharCode(8226); - var middot = String.fromCharCode(183); - var cb; - - if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "") - content = eval(cb + "('before', content)"); - - var rl = tinyMCE.getParam("paste_replace_list", '\u2122,TM,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(','); - for (var i=0; i(.*?)<\/p>', 'gi'), '

$1

'); - } - - content = content.replace(new RegExp('tab-stops: list [0-9]+.0pt">', 'gi'), '">' + "--list--"); - content = content.replace(new RegExp(bull + "(.*?)
", "gi"), "

" + middot + "$1

"); - content = content.replace(new RegExp('', 'gi'), "" + bull); // Covert to bull list - content = content.replace(/<\/o:p>/gi, ""); - content = content.replace(new RegExp('
]*>/gi, ""); - - if (tinyMCE.getParam("paste_remove_styles", true)) - content = content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)', 'gi'), "<$1$3"); - - content = content.replace(/<\/?font[^>]*>/gi, ""); - - // Strips class attributes. - switch (tinyMCE.getParam("paste_strip_class_attributes", "all")) { - case "all": - content = content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3"); - break; - - case "mso": - content = content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)', 'gi'), "<$1$3"); - break; - } - - content = content.replace(new RegExp('href="?' + TinyMCE_PastePlugin._reEscape("" + document.location) + '', 'gi'), 'href="' + tinyMCE.settings['document_base_url']); - content = content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3"); - content = content.replace(/<\\?\?xml[^>]*>/gi, ""); - content = content.replace(/<\/?\w+:[^>]*>/gi, ""); - content = content.replace(/-- page break --\s*

 <\/p>/gi, ""); // Remove pagebreaks - content = content.replace(/-- page break --/gi, ""); // Remove pagebreaks - - // content = content.replace(/\/? */gi, "");   - // content = content.replace(/

 <\/p>/gi, ''); - - if (!tinyMCE.settings['force_p_newlines']) { - content = content.replace('', '' ,'gi'); - content = content.replace('

', '

' ,'gi'); - } - - if (!tinyMCE.isMSIE && !tinyMCE.settings['force_p_newlines']) { - content = content.replace(/<\/?p[^>]*>/gi, ""); - } - - content = content.replace(/<\/?div[^>]*>/gi, ""); - - // Convert all middlot lists to UL lists - if (tinyMCE.getParam("paste_convert_middot_lists", true)) { - var div = document.createElement("div"); - div.innerHTML = content; - - // Convert all middot paragraphs to li elements - var className = tinyMCE.getParam("paste_unindented_list_class", "unIndentedList"); - - while (TinyMCE_PastePlugin._convertMiddots(div, "--list--")) ; // bull - while (TinyMCE_PastePlugin._convertMiddots(div, middot, className)) ; // Middot - while (TinyMCE_PastePlugin._convertMiddots(div, bull)) ; // bull - - content = div.innerHTML; - } - - // Replace all headers with strong and fix some other issues - if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) { - content = content.replace(/ <\/h[1-6]>/gi, '

  

'); - content = content.replace(//gi, '

'); - content = content.replace(/<\/h[1-6]>/gi, '

'); - content = content.replace(/ <\/b>/gi, '  '); - content = content.replace(/^( )*/gi, ''); - } - - content = content.replace(/--list--/gi, ""); // Remove --list-- - - if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "") - content = eval(cb + "('after', content)"); - - // Insert cleaned content - tinyMCE.execCommand("mceInsertContent", false, content); - - if (tinyMCE.getParam('paste_force_cleanup_wordpaste', true)) - window.setTimeout('tinyMCE.execCommand("mceCleanup");', 1); // Do normal cleanup detached from this thread - } - }, - - _reEscape : function(s) { - var l = "?.\\*[](){}+^$:"; - var o = ""; - - for (var i=0; i - - {$lang_paste_text_desc} - - - - - - -
-
{$lang_paste_text_desc}
- -
- -
- -
- -
{$lang_paste_text_title}
- - - -
-
- -
- -
- -
-
-
- - \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/pasteword.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/pasteword.htm deleted file mode 100644 index 7acc7f78f6..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/pasteword.htm +++ /dev/null @@ -1,29 +0,0 @@ - - - - {$lang_paste_word_desc} - - - - - - -
-
{$lang_paste_word_desc}
- -
{$lang_paste_word_title}
- -
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/paste/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/editor_plugin.js deleted file mode 100644 index ca4eada325..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('preview');var TinyMCE_PreviewPlugin={getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_preview.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"preview":return tinyMCE.getButtonHTML(cn,'lang_preview_desc','{$pluginurl}/images/preview.gif','mcePreview')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mcePreview":var previewPage=tinyMCE.getParam("plugin_preview_pageurl",null);var previewWidth=tinyMCE.getParam("plugin_preview_width","550");var previewHeight=tinyMCE.getParam("plugin_preview_height","600");if(previewPage){var template=new Array();template['file']=previewPage;template['width']=previewWidth;template['height']=previewHeight;tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"yes",inline:"yes",content:tinyMCE.getContent(),content_css:tinyMCE.getParam("content_css")})}else{var win=window.open("","mcePreview","menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width="+previewWidth+",height="+previewHeight);var html="",i;var c=tinyMCE.getContent();var pos=c.indexOf('',pos);pos2=c.lastIndexOf('');c=c.substring(pos+1,pos2)}html+=tinyMCE.getParam('doctype');html+='';html+='';html+=''+tinyMCE.getLang('lang_preview_desc')+'';html+='';html+='';for(i=0;i';html+='';html+='';html+='';html+=c;html+='';html+='';win.document.write(html);win.document.close()}return true}return false},_setDoc:function(d){TinyMCE_PreviewPlugin._doc=d;d._embeds=new Array()},_setWin:function(d){TinyMCE_PreviewPlugin._win=d},_onLoad:function(){var nl,i,el=new Array(),d=TinyMCE_PreviewPlugin._doc,sv,ne;nl=d.getElementsByTagName("script");for(i=0;i';for(n in p)h+='';h+='', pos); - pos2 = c.lastIndexOf(''); - c = c.substring(pos + 1, pos2); - } - - html += tinyMCE.getParam('doctype'); - html += ''; - html += ''; - html += '' + tinyMCE.getLang('lang_preview_desc') + ''; - html += ''; - html += ''; - - for (i=0; i'; - - html += ''; - html += ''; - html += ''; - html += c; - html += ''; - html += ''; - - win.document.write(html); - win.document.close(); - } - - return true; - } - - return false; - }, - - _setDoc : function(d) { - TinyMCE_PreviewPlugin._doc = d; - d._embeds = new Array(); - }, - - _setWin : function(d) { - TinyMCE_PreviewPlugin._win = d; - }, - - _onLoad : function() { - var nl, i, el = new Array(), d = TinyMCE_PreviewPlugin._doc, sv, ne; - - nl = d.getElementsByTagName("script"); - for (i=0; i'; - - h += ' - - - -Example of a custom preview page - - - - -Editor contents:
-{$content} - - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/images/preview.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/images/preview.gif deleted file mode 100644 index 318936eaac..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/images/preview.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/langs/en.js deleted file mode 100644 index b68b6751df..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/langs/en.js +++ /dev/null @@ -1,5 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -preview_desc : 'Preview' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/preview/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/editor_plugin.js deleted file mode 100644 index fc33077155..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('print');var TinyMCE_PrintPlugin={getInfo:function(){return{longname:'Print',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_print.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"print":return tinyMCE.getButtonHTML(cn,'lang_print_desc','{$pluginurl}/images/print.gif','mcePrint')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mcePrint":tinyMCE.getInstanceById(editor_id).contentWindow.print();return true}return false}};tinyMCE.addPlugin("print",TinyMCE_PrintPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/editor_plugin_src.js deleted file mode 100644 index 4275830390..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/editor_plugin_src.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('print'); - -var TinyMCE_PrintPlugin = { - getInfo : function() { - return { - longname : 'Print', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_print.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - getControlHTML : function(cn) { - switch (cn) { - case "print": - return tinyMCE.getButtonHTML(cn, 'lang_print_desc', '{$pluginurl}/images/print.gif', 'mcePrint'); - } - - return ""; - }, - - /** - * Executes the search/replace commands. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mcePrint": - tinyMCE.getInstanceById(editor_id).contentWindow.print(); - return true; - } - - // Pass to next handler in chain - return false; - } -}; - -tinyMCE.addPlugin("print", TinyMCE_PrintPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/images/print.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/images/print.gif deleted file mode 100644 index 72104d177b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/images/print.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/langs/en.js deleted file mode 100644 index 6407cdb849..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/langs/en.js +++ /dev/null @@ -1,5 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -print_desc : 'Print' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/print/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/readme.txt deleted file mode 100644 index b694fdb6bf..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/readme.txt +++ /dev/null @@ -1 +0,0 @@ -This is the location you place TinyMCE plugins. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/save/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/save/editor_plugin.js deleted file mode 100644 index d1fc5c9bb0..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/save/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('save');var TinyMCE_SavePlugin={getInfo:function(){return{longname:'Save',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_save.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){inst.addShortcut('ctrl','s','lang_save_desc','mceSave')},getControlHTML:function(cn){switch(cn){case"save":return tinyMCE.getButtonHTML(cn,'lang_save_desc','{$pluginurl}/images/save.gif','mceSave')}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceSave":if(tinyMCE.getParam("fullscreen_is_enabled"))return true;var inst=tinyMCE.selectedInstance;var formObj=inst.formElement.form;if(tinyMCE.getParam("save_enablewhendirty")&&!inst.isDirty())return true;if(formObj){tinyMCE.triggerSave();var os;if((os=tinyMCE.getParam("save_onsavecallback"))){if(eval(os+'(inst);')){inst.startContent=tinyMCE.trim(inst.getBody().innerHTML);tinyMCE.triggerNodeChange(false,true)}return true}for(var i=0;i - - {$lang_searchreplace_replace_title} - - - - - -
- - - - - - - - - - - - - - - -
- - - - -
- - - - - - - -
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/searchreplace/search.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/searchreplace/search.htm deleted file mode 100644 index fe9055ed5f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/searchreplace/search.htm +++ /dev/null @@ -1,42 +0,0 @@ - - - {$lang_searchreplace_search_title} - - - - - -
- - - - - - - - - - -
 
- - - - - - - -
- - - - -
- - - - - -
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/css/props.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/css/props.css deleted file mode 100644 index b159b5f82d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/css/props.css +++ /dev/null @@ -1,62 +0,0 @@ -#text_font { - width: 250px; -} - -#text_size { - width: 70px; -} - -.mceAddSelectValue { - background-color: #DDDDDD; -} - -select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left { - width: 70px; -} - -#box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex { - width: 70px; -} - -#positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left { - width: 70px; -} - -#positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left { - width: 70px; -} - -.panel_wrapper div.current { - padding-top: 10px; - height: 230px; -} - -.delim { - border-left: 1px solid gray; -} - -.tdelim { - border-bottom: 1px solid gray; -} - -#block_display { - width: 145px; -} - -#list_type { - width: 115px; -} - -.disabled { - background-color: #EEEEEE; -} - -#apply { - font-weight: bold; - width: 78px; - height: 21px; - border: 0; - background-image: url('../images/apply_button_bg.gif'); - cursor: pointer; -} - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/editor_plugin.js deleted file mode 100644 index 2f7e4798f7..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('style');var TinyMCE_StylePlugin={getInfo:function(){return{longname:'Style',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_style.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"styleprops":return tinyMCE.getButtonHTML(cn,'lang_style_styleinfo_desc','{$pluginurl}/images/styleprops.gif','mceStyleProps',true)}return""},execCommand:function(editor_id,element,command,user_interface,value){var e,inst;switch(command){case"mceStyleProps":TinyMCE_StylePlugin._styleProps();return true;case"mceSetElementStyle":inst=tinyMCE.getInstanceById(editor_id);e=inst.selection.getFocusElement();if(e){e.style.cssText=value;inst.repaint()}return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node.nodeName=='BODY')tinyMCE.switchClass(editor_id+'_styleprops','mceButtonDisabled');else tinyMCE.switchClass(editor_id+'_styleprops','mceButtonNormal')},_styleProps:function(){var e=tinyMCE.selectedInstance.selection.getFocusElement();if(!e||e.nodeName=='BODY')return;tinyMCE.openWindow({file:'../../plugins/style/props.htm',width:480+tinyMCE.getLang('lang_style_props_delta_width',0),height:320+tinyMCE.getLang('lang_style_props_delta_height',0)},{editor_id:tinyMCE.selectedInstance.editorId,inline:"yes",style_text:e.style.cssText})}};tinyMCE.addPlugin("style",TinyMCE_StylePlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/editor_plugin_src.js deleted file mode 100644 index 2386d2c484..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/editor_plugin_src.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * $Id: editor_plugin_src.js 167 2007-01-05 15:35:53Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('style'); - -var TinyMCE_StylePlugin = { - getInfo : function() { - return { - longname : 'Style', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_style.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - getControlHTML : function(cn) { - switch (cn) { - case "styleprops": - return tinyMCE.getButtonHTML(cn, 'lang_style_styleinfo_desc', '{$pluginurl}/images/styleprops.gif', 'mceStyleProps', true); - } - - return ""; - }, - - execCommand : function(editor_id, element, command, user_interface, value) { - var e, inst; - - // Handle commands - switch (command) { - case "mceStyleProps": - TinyMCE_StylePlugin._styleProps(); - return true; - - case "mceSetElementStyle": - inst = tinyMCE.getInstanceById(editor_id); - e = inst.selection.getFocusElement(); - - if (e) { - e.style.cssText = value; - inst.repaint(); - } - - return true; - } - - // Pass to next handler in chain - return false; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node.nodeName == 'BODY') - tinyMCE.switchClass(editor_id + '_styleprops', 'mceButtonDisabled'); - else - tinyMCE.switchClass(editor_id + '_styleprops', 'mceButtonNormal'); - }, - - // Private plugin specific methods - - _styleProps : function() { - var e = tinyMCE.selectedInstance.selection.getFocusElement(); - - if (!e || e.nodeName == 'BODY') - return; - - tinyMCE.openWindow({ - file : '../../plugins/style/props.htm', - width : 480 + tinyMCE.getLang('lang_style_props_delta_width', 0), - height : 320 + tinyMCE.getLang('lang_style_props_delta_height', 0) - }, { - editor_id : tinyMCE.selectedInstance.editorId, - inline : "yes", - style_text : e.style.cssText - }); - } -}; - -tinyMCE.addPlugin("style", TinyMCE_StylePlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/images/apply_button_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/images/apply_button_bg.gif deleted file mode 100644 index 979e868abb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/images/apply_button_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/images/style_info.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/images/style_info.gif deleted file mode 100644 index 41f227125b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/images/style_info.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/jscripts/props.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/jscripts/props.js deleted file mode 100644 index c9883d742b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/jscripts/props.js +++ /dev/null @@ -1,633 +0,0 @@ -var defaultFonts = "" + - "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" + - "Times New Roman, Times, serif=Times New Roman, Times, serif;" + - "Courier New, Courier, mono=Courier New, Courier, mono;" + - "Times New Roman, Times, serif=Times New Roman, Times, serif;" + - "Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" + - "Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" + - "Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif"; - -var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger"; -var defaultMeasurement = "+pixels=px;points=pt;in;cm;mm;picas;ems;exs;%"; -var defaultSpacingMeasurement = "pixels=px;points=pt;in;cm;mm;picas;+ems;exs;%"; -var defaultIndentMeasurement = "pixels=px;+points=pt;in;cm;mm;picas;ems;exs;%"; -var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900"; -var defaultTextStyle = "normal;italic;oblique"; -var defaultVariant = "normal;small-caps"; -var defaultLineHeight = "normal"; -var defaultAttachment = "fixed;scroll"; -var defaultRepeat = "no-repeat;repeat;repeat-x;repeat-y"; -var defaultPosH = "left;center;right"; -var defaultPosV = "top;center;bottom"; -var defaultVAlign = "baseline;sub;super;top;text-top;middle;bottom;text-bottom"; -var defaultDisplay = "inline;block;list-item;run-in;compact;marker;table;inline-table;table-row-group;table-header-group;table-footer-group;table-row;table-column-group;table-column;table-cell;table-caption;none"; -var defaultBorderStyle = "none;solid;dashed;dotted;double;groove;ridge;inset;outset"; -var defaultBorderWidth = "thin;medium;thick"; -var defaultListType = "disc;circle;square;decimal;lower-roman;upper-roman;lower-alpha;upper-alpha;none"; - -function init() { - var ce = document.getElementById('container'), h; - - ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); - - h = getBrowserHTML('background_image_browser','background_image','image','advimage'); - document.getElementById("background_image_browser").innerHTML = h; - - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); - document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color'); - document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top'); - document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right'); - document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom'); - document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left'); - - fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true); - fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true); - fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true); - fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true); - fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true); - fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true); - fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true); - fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true); - - fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true); - fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true); - - fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true); - - fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true); - fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true); - - fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true); - fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true); - fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true); - fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true); - fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true); - fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true); - fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true); - fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true); - fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true); - - fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true); - fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true); - fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true); - - fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true); - fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true); - fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true); - fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true); - - fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true); - fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true); - fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true); - fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true); - - fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true); - - fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true); - fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true); - - fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true); - fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true); - - fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true); - - fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true); - - fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true); - fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true); - - TinyMCE_EditableSelects.init(); - setupFormData(); - showDisabledControls(); -} - -function setupFormData() { - var ce = document.getElementById('container'), f = document.forms[0], s, b, i; - - // Setup text fields - - selectByValue(f, 'text_font', ce.style.fontFamily, true, true); - selectByValue(f, 'text_size', getNum(ce.style.fontSize), true, true); - selectByValue(f, 'text_size_measurement', getMeasurement(ce.style.fontSize)); - selectByValue(f, 'text_weight', ce.style.fontWeight, true, true); - selectByValue(f, 'text_style', ce.style.fontStyle, true, true); - selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true); - selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight)); - selectByValue(f, 'text_case', ce.style.textTransform, true, true); - selectByValue(f, 'text_variant', ce.style.fontVariant, true, true); - f.text_color.value = ce.style.color; - updateColor('text_color_pick', 'text_color'); - f.text_underline.checked = inStr(ce.style.textDecoration, 'underline'); - f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); - f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); - f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); - - // Setup background fields - - f.background_color.value = ce.style.backgroundColor; - updateColor('background_color_pick', 'background_color'); - f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); - selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true); - selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true); - selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true); - selectByValue(f, 'background_hpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 0))); - selectByValue(f, 'background_vpos', getNum(getVal(ce.style.backgroundPosition, 1)), true, true); - selectByValue(f, 'background_vpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 1))); - - // Setup block fields - - selectByValue(f, 'block_wordspacing', getNum(ce.style.wordSpacing), true, true); - selectByValue(f, 'block_wordspacing_measurement', getMeasurement(ce.style.wordSpacing)); - selectByValue(f, 'block_letterspacing', getNum(ce.style.letterSpacing), true, true); - selectByValue(f, 'block_letterspacing_measurement', getMeasurement(ce.style.letterSpacing)); - selectByValue(f, 'block_vertical_alignment', ce.style.verticalAlign, true, true); - selectByValue(f, 'block_text_align', ce.style.textAlign, true, true); - f.block_text_indent.value = getNum(ce.style.textIndent); - selectByValue(f, 'block_text_indent_measurement', getMeasurement(ce.style.textIndent)); - selectByValue(f, 'block_whitespace', ce.style.whiteSpace, true, true); - selectByValue(f, 'block_display', ce.style.display, true, true); - - // Setup box fields - - f.box_width.value = getNum(ce.style.width); - selectByValue(f, 'box_width_measurement', getMeasurement(ce.style.width)); - - f.box_height.value = getNum(ce.style.height); - selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height)); - - if (tinyMCE.isGecko) - selectByValue(f, 'box_float', ce.style.cssFloat, true, true); - else - selectByValue(f, 'box_float', ce.style.styleFloat, true, true); - - selectByValue(f, 'box_clear', ce.style.clear, true, true); - - setupBox(f, ce, 'box_padding', 'padding', ''); - setupBox(f, ce, 'box_margin', 'margin', ''); - - // Setup border fields - - setupBox(f, ce, 'border_style', 'border', 'Style'); - setupBox(f, ce, 'border_width', 'border', 'Width'); - setupBox(f, ce, 'border_color', 'border', 'Color'); - - updateColor('border_color_top_pick', 'border_color_top'); - updateColor('border_color_right_pick', 'border_color_right'); - updateColor('border_color_bottom_pick', 'border_color_bottom'); - updateColor('border_color_left_pick', 'border_color_left'); - - // Setup list fields - - selectByValue(f, 'list_type', ce.style.listStyleType, true, true); - selectByValue(f, 'list_position', ce.style.listStylePosition, true, true); - f.list_bullet_image.value = ce.style.listStyleImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); - - // Setup box fields - - selectByValue(f, 'positioning_type', ce.style.position, true, true); - selectByValue(f, 'positioning_visibility', ce.style.visibility, true, true); - selectByValue(f, 'positioning_overflow', ce.style.overflow, true, true); - f.positioning_zindex.value = ce.style.zIndex ? ce.style.zIndex : ""; - - f.positioning_width.value = getNum(ce.style.width); - selectByValue(f, 'positioning_width_measurement', getMeasurement(ce.style.width)); - - f.positioning_height.value = getNum(ce.style.height); - selectByValue(f, 'positioning_height_measurement', getMeasurement(ce.style.height)); - - setupBox(f, ce, 'positioning_placement', '', '', new Array('top', 'right', 'bottom', 'left')); - - s = ce.style.clip.replace(new RegExp("rect\\('?([^']*)'?\\)", 'gi'), "$1"); - s = s.replace(/,/g, ' '); - - if (!hasEqualValues(new Array(getVal(s, 0), getVal(s, 1), getVal(s, 2), getVal(s, 3)))) { - f.positioning_clip_top.value = getNum(getVal(s, 0)); - selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); - f.positioning_clip_right.value = getNum(getVal(s, 1)); - selectByValue(f, 'positioning_clip_right_measurement', getMeasurement(getVal(s, 1))); - f.positioning_clip_bottom.value = getNum(getVal(s, 2)); - selectByValue(f, 'positioning_clip_bottom_measurement', getMeasurement(getVal(s, 2))); - f.positioning_clip_left.value = getNum(getVal(s, 3)); - selectByValue(f, 'positioning_clip_left_measurement', getMeasurement(getVal(s, 3))); - } else { - f.positioning_clip_top.value = getNum(getVal(s, 0)); - selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); - f.positioning_clip_right.value = f.positioning_clip_bottom.value = f.positioning_clip_left.value; - } - -// setupBox(f, ce, '', 'border', 'Color'); -} - -function getMeasurement(s) { - return s.replace(/^([0-9]+)(.*)$/, "$2"); -} - -function getNum(s) { - if (new RegExp('^[0-9]+[a-z%]+$', 'gi').test(s)) - return s.replace(/[^0-9]/g, ''); - - return s; -} - -function inStr(s, n) { - return new RegExp(n, 'gi').test(s); -} - -function getVal(s, i) { - var a = tinyMCE.explode(' ', s); - - if (a.length > 1) - return a[i]; - - return ""; -} - -function setValue(f, n, v) { - if (f.elements[n].type == "text") - f.elements[n].value = v; - else - selectByValue(f, n, v, true, true); -} - -function setupBox(f, ce, fp, pr, sf, b) { - if (typeof(b) == "undefined") - b = new Array('Top', 'Right', 'Bottom', 'Left'); - - if (isSame(ce, pr, sf, b)) { - f.elements[fp + "_same"].checked = true; - - setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); - f.elements[fp + "_top"].disabled = false; - - f.elements[fp + "_right"].value = ""; - f.elements[fp + "_right"].disabled = true; - f.elements[fp + "_bottom"].value = ""; - f.elements[fp + "_bottom"].disabled = true; - f.elements[fp + "_left"].value = ""; - f.elements[fp + "_left"].disabled = true; - - if (f.elements[fp + "_top_measurement"]) { - selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); - f.elements[fp + "_left_measurement"].disabled = true; - f.elements[fp + "_bottom_measurement"].disabled = true; - f.elements[fp + "_right_measurement"].disabled = true; - } - } else { - f.elements[fp + "_same"].checked = false; - - setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); - f.elements[fp + "_top"].disabled = false; - - setValue(f, fp + "_right", getNum(ce.style[pr + b[1] + sf])); - f.elements[fp + "_right"].disabled = false; - - setValue(f, fp + "_bottom", getNum(ce.style[pr + b[2] + sf])); - f.elements[fp + "_bottom"].disabled = false; - - setValue(f, fp + "_left", getNum(ce.style[pr + b[3] + sf])); - f.elements[fp + "_left"].disabled = false; - - if (f.elements[fp + "_top_measurement"]) { - selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); - selectByValue(f, fp + '_right_measurement', getMeasurement(ce.style[pr + b[1] + sf])); - selectByValue(f, fp + '_bottom_measurement', getMeasurement(ce.style[pr + b[2] + sf])); - selectByValue(f, fp + '_left_measurement', getMeasurement(ce.style[pr + b[3] + sf])); - f.elements[fp + "_left_measurement"].disabled = false; - f.elements[fp + "_bottom_measurement"].disabled = false; - f.elements[fp + "_right_measurement"].disabled = false; - } - } -} - -function isSame(e, pr, sf, b) { - var a = new Array(), i, x; - - if (typeof(b) == "undefined") - b = new Array('Top', 'Right', 'Bottom', 'Left'); - - if (typeof(sf) == "undefined" || sf == null) - sf = ""; - - a[0] = e.style[pr + b[0] + sf]; - a[1] = e.style[pr + b[1] + sf]; - a[2] = e.style[pr + b[2] + sf]; - a[3] = e.style[pr + b[3] + sf]; - - for (i=0; i 0 ? s.substring(1) : s; - - if (f.text_none.checked) - s = "none"; - - ce.style.textDecoration = s; - - // Build background styles - - ce.style.backgroundColor = f.background_color.value; - ce.style.backgroundImage = f.background_image.value != "" ? "url(" + f.background_image.value + ")" : ""; - ce.style.backgroundRepeat = f.background_repeat.value; - ce.style.backgroundAttachment = f.background_attachment.value; - - if (f.background_hpos.value != "") { - s = ""; - s += f.background_hpos.value + (isNum(f.background_hpos.value) ? f.background_hpos_measurement.value : "") + " "; - s += f.background_vpos.value + (isNum(f.background_vpos.value) ? f.background_vpos_measurement.value : ""); - ce.style.backgroundPosition = s; - } - - // Build block styles - - ce.style.wordSpacing = f.block_wordspacing.value + (isNum(f.block_wordspacing.value) ? f.block_wordspacing_measurement.value : ""); - ce.style.letterSpacing = f.block_letterspacing.value + (isNum(f.block_letterspacing.value) ? f.block_letterspacing_measurement.value : ""); - ce.style.verticalAlign = f.block_vertical_alignment.value; - ce.style.textAlign = f.block_text_align.value; - ce.style.textIndent = f.block_text_indent.value + (isNum(f.block_text_indent.value) ? f.block_text_indent_measurement.value : ""); - ce.style.whiteSpace = f.block_whitespace.value; - ce.style.display = f.block_display.value; - - // Build box styles - - ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : ""); - ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : ""); - ce.style.styleFloat = f.box_float.value; - - if (tinyMCE.isGecko) - ce.style.cssFloat = f.box_float.value; - - ce.style.clear = f.box_clear.value; - - if (!f.box_padding_same.checked) { - ce.style.paddingTop = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); - ce.style.paddingRight = f.box_padding_right.value + (isNum(f.box_padding_right.value) ? f.box_padding_right_measurement.value : ""); - ce.style.paddingBottom = f.box_padding_bottom.value + (isNum(f.box_padding_bottom.value) ? f.box_padding_bottom_measurement.value : ""); - ce.style.paddingLeft = f.box_padding_left.value + (isNum(f.box_padding_left.value) ? f.box_padding_left_measurement.value : ""); - } else - ce.style.padding = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); - - if (!f.box_margin_same.checked) { - ce.style.marginTop = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); - ce.style.marginRight = f.box_margin_right.value + (isNum(f.box_margin_right.value) ? f.box_margin_right_measurement.value : ""); - ce.style.marginBottom = f.box_margin_bottom.value + (isNum(f.box_margin_bottom.value) ? f.box_margin_bottom_measurement.value : ""); - ce.style.marginLeft = f.box_margin_left.value + (isNum(f.box_margin_left.value) ? f.box_margin_left_measurement.value : ""); - } else - ce.style.margin = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); - - // Build border styles - - if (!f.border_style_same.checked) { - ce.style.borderTopStyle = f.border_style_top.value; - ce.style.borderRightStyle = f.border_style_right.value; - ce.style.borderBottomStyle = f.border_style_bottom.value; - ce.style.borderLeftStyle = f.border_style_left.value; - } else - ce.style.borderStyle = f.border_style_top.value; - - if (!f.border_width_same.checked) { - ce.style.borderTopWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); - ce.style.borderRightWidth = f.border_width_right.value + (isNum(f.border_width_right.value) ? f.border_width_right_measurement.value : ""); - ce.style.borderBottomWidth = f.border_width_bottom.value + (isNum(f.border_width_bottom.value) ? f.border_width_bottom_measurement.value : ""); - ce.style.borderLeftWidth = f.border_width_left.value + (isNum(f.border_width_left.value) ? f.border_width_left_measurement.value : ""); - } else - ce.style.borderWidth = f.border_width_top.value; - - if (!f.border_color_same.checked) { - ce.style.borderTopColor = f.border_color_top.value; - ce.style.borderRightColor = f.border_color_right.value; - ce.style.borderBottomColor = f.border_color_bottom.value; - ce.style.borderLeftColor = f.border_color_left.value; - } else - ce.style.borderColor = f.border_color_top.value; - - // Build list styles - - ce.style.listStyleType = f.list_type.value; - ce.style.listStylePosition = f.list_position.value; - ce.style.listStyleImage = f.list_bullet_image.value != "" ? "url(" + f.list_bullet_image.value + ")" : ""; - - // Build positioning styles - - ce.style.position = f.positioning_type.value; - ce.style.visibility = f.positioning_visibility.value; - - if (ce.style.width == "") - ce.style.width = f.positioning_width.value + (isNum(f.positioning_width.value) ? f.positioning_width_measurement.value : ""); - - if (ce.style.height == "") - ce.style.height = f.positioning_height.value + (isNum(f.positioning_height.value) ? f.positioning_height_measurement.value : ""); - - ce.style.zIndex = f.positioning_zindex.value; - ce.style.overflow = f.positioning_overflow.value; - - if (!f.positioning_placement_same.checked) { - ce.style.top = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); - ce.style.right = f.positioning_placement_right.value + (isNum(f.positioning_placement_right.value) ? f.positioning_placement_right_measurement.value : ""); - ce.style.bottom = f.positioning_placement_bottom.value + (isNum(f.positioning_placement_bottom.value) ? f.positioning_placement_bottom_measurement.value : ""); - ce.style.left = f.positioning_placement_left.value + (isNum(f.positioning_placement_left.value) ? f.positioning_placement_left_measurement.value : ""); - } else { - s = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); - ce.style.top = s; - ce.style.right = s; - ce.style.bottom = s; - ce.style.left = s; - } - - if (!f.positioning_clip_same.checked) { - s = "rect("; - s += (isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto") + " "; - s += (isNum(f.positioning_clip_right.value) ? f.positioning_clip_right.value + f.positioning_clip_right_measurement.value : "auto") + " "; - s += (isNum(f.positioning_clip_bottom.value) ? f.positioning_clip_bottom.value + f.positioning_clip_bottom_measurement.value : "auto") + " "; - s += (isNum(f.positioning_clip_left.value) ? f.positioning_clip_left.value + f.positioning_clip_left_measurement.value : "auto"); - s += ")"; - - if (s != "rect(auto auto auto auto)") - ce.style.clip = s; - } else { - s = "rect("; - t = isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto"; - s += t + " "; - s += t + " "; - s += t + " "; - s += t + ")"; - - if (s != "rect(auto auto auto auto)") - ce.style.clip = s; - } - - ce.style.cssText = tinyMCE.serializeStyle(tinyMCE.parseStyle(ce.style.cssText)); -} - -function isNum(s) { - return new RegExp('[0-9]+', 'g').test(s); -} - -function showDisabledControls() { - var f = document.forms, i, a; - - for (i=0; i 1) { - addSelectValue(f, s, p[0], p[1]); - - if (se) - selectByValue(f, s, p[1]); - } else { - addSelectValue(f, s, p[0], p[0]); - - if (se) - selectByValue(f, s, p[0]); - } - } -} - -function toggleSame(ce, pre) { - var el = document.forms[0].elements, i; - - if (ce.checked) { - el[pre + "_top"].disabled = false; - el[pre + "_right"].disabled = true; - el[pre + "_bottom"].disabled = true; - el[pre + "_left"].disabled = true; - - if (el[pre + "_top_measurement"]) { - el[pre + "_top_measurement"].disabled = false; - el[pre + "_right_measurement"].disabled = true; - el[pre + "_bottom_measurement"].disabled = true; - el[pre + "_left_measurement"].disabled = true; - } - } else { - el[pre + "_top"].disabled = false; - el[pre + "_right"].disabled = false; - el[pre + "_bottom"].disabled = false; - el[pre + "_left"].disabled = false; - - if (el[pre + "_top_measurement"]) { - el[pre + "_top_measurement"].disabled = false; - el[pre + "_right_measurement"].disabled = false; - el[pre + "_bottom_measurement"].disabled = false; - el[pre + "_left_measurement"].disabled = false; - } - } - - showDisabledControls(); -} - -function synch(fr, to) { - var f = document.forms[0]; - - f.elements[to].value = f.elements[fr].value; - - if (f.elements[fr + "_measurement"]) - selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/langs/en.js deleted file mode 100644 index 6bed70f72b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/langs/en.js +++ /dev/null @@ -1,66 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('style',{ -title : 'Edit CSS Style', -styleinfo_desc : 'Edit CSS Style', -apply : 'Apply', -text_tab : 'Text', -background_tab : 'Background', -block_tab : 'Block', -box_tab : 'Box', -border_tab : 'Border', -list_tab : 'List', -positioning_tab : 'Positioning', -text_props : 'Text', -text_font : 'Font', -text_size : 'Size', -text_weight : 'Weight', -text_style : 'Style', -text_variant : 'Variant', -text_lineheight : 'Line height', -text_case : 'Case', -text_color : 'Color', -text_decoration : 'Decoration', -text_overline : 'overline', -text_underline : 'underline', -text_striketrough : 'strikethrough', -text_blink : 'blink', -text_none : 'none', -background_color : 'Background color', -background_image : 'Background image', -background_repeat : 'Repeat', -background_attachment : 'Attachment', -background_hpos : 'Horizontal position', -background_vpos : 'Vertical position', -block_wordspacing : 'Word spacing', -block_letterspacing : 'Letter spacing', -block_vertical_alignment : 'Vertical alignment', -block_text_align : 'Text align', -block_text_indent : 'Text indent', -block_whitespace : 'Whitespace', -block_display : 'Display', -box_width : 'Width', -box_height : 'Height', -box_float : 'Float', -box_clear : 'Clear', -padding : 'Padding', -same : 'Same for all', -top : 'Top', -right : 'Right', -bottom : 'Bottom', -left : 'Left', -margin : 'Margin', -style : 'Style', -width : 'Width', -height : 'Height', -color : 'Color', -list_type : 'Type', -bullet_image : 'Bullet image', -position : 'Position', -positioning_type : 'Type', -visibility : 'Visibility', -zindex : 'Z-index', -overflow : 'Overflow', -placement : 'Placement', -clip : 'Clip' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/props.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/props.htm deleted file mode 100644 index 8bbd3db1ec..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/props.htm +++ /dev/null @@ -1,729 +0,0 @@ - - - {$lang_style_title} - - - - - - - - - - -
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - -
 
-
- -
- - - -
- - - - - - -
- -  
-
- -
- - - - - -
 
-
{$lang_style_text_decoration} - - - - - - - - - - - - - - - - - - - - - -
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
 
-
- - - - -
 
-
- - - - - - -
 
-
- - - - - - -
 
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
 
-
- - - - - - -
 
-
- - - - - - -
 
-
-
- -
- - - - - - - - - - - - - - -
- - - - - - -
 
-
   
- - - - - - -
 
-
   
-
-
- {$lang_style_padding} - - - - - - - - - - - - - - - - - - - - - - -
 
- - - - - - -
 
-
- - - - - - -
 
-
- - - - - - -
 
-
- - - - - - -
 
-
-
-
- -
-
- {$lang_style_margin} - - - - - - - - - - - - - - - - - - - - - - -
 
- - - - - - -
 
-
- - - - - - -
 
-
- - - - - - -
 
-
- - - - - - -
 
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lang_style_style} {$lang_style_width} {$lang_style_color}
      
{$lang_style_top}   - - - - - - -
 
-
  - - - - - -
 
-
{$lang_style_right}   - - - - - - -
 
-
  - - - - - -
 
-
{$lang_style_bottom}   - - - - - - -
 
-
  - - - - - -
 
-
{$lang_style_left}   - - - - - - -
 
-
  - - - - - -
 
-
-
- -
- - - - - - - - - - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - - - - - -
   
- - - - - - -
 
-
   
- - - - - - -
 
-
   
- -
-
- {$lang_style_placement} - - - - - - - - - - - - - - - - - - - - - - -
 
{$lang_style_top} - - - - - - -
 
-
{$lang_style_right} - - - - - - -
 
-
{$lang_style_bottom} - - - - - - -
 
-
{$lang_style_left} - - - - - - -
 
-
-
-
- -
-
- {$lang_style_clip} - - - - - - - - - - - - - - - - - - - - - - -
 
{$lang_style_top} - - - - - - -
 
-
{$lang_style_right} - - - - - - -
 
-
{$lang_style_bottom} - - - - - - -
 
-
{$lang_style_left} - - - - - - -
 
-
-
-
-
-
-
- -
-
-
- -
 
-
-
- -
- -
-
-
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/style/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/cell.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/cell.htm deleted file mode 100644 index 7171d4faa6..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/cell.htm +++ /dev/null @@ -1,182 +0,0 @@ - - - {$lang_table_cell_title} - - - - - - - - -
- - -
-
-
- {$lang_table_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - -
- -
-
-
- -
-
- {$lang_table_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- - - - - -
 
-
- - - - - -
 
-
- - - - - -
 
-
-
-
-
- -
-
- -
- -
-
-
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/cell.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/cell.css deleted file mode 100644 index a067ecdfed..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/cell.css +++ /dev/null @@ -1,17 +0,0 @@ -/* CSS file for cell dialog in the table plugin */ - -.panel_wrapper div.current { - height: 200px; -} - -.advfield { - width: 200px; -} - -#action { - margin-bottom: 3px; -} - -#class { - width: 150px; -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/row.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/row.css deleted file mode 100644 index 1f7755dafa..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/row.css +++ /dev/null @@ -1,25 +0,0 @@ -/* CSS file for row dialog in the table plugin */ - -.panel_wrapper div.current { - height: 200px; -} - -.advfield { - width: 200px; -} - -#action { - margin-bottom: 3px; -} - -#rowtype,#align,#valign,#class,#height { - width: 150px; -} - -#height { - width: 50px; -} - -.col2 { - padding-left: 20px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/table.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/table.css deleted file mode 100644 index 804f766eed..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/css/table.css +++ /dev/null @@ -1,13 +0,0 @@ -/* CSS file for table dialog in the table plugin */ - -.panel_wrapper div.current { - height: 220px; -} - -.advfield { - width: 200px; -} - -#class { - width: 150px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/editor_plugin.js deleted file mode 100644 index cc67d220ea..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -tinyMCE.importPluginLanguagePack('table');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_table.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},initInstance:function(inst){if(tinyMCE.isGecko){var doc=inst.getDoc();tinyMCE.addEvent(doc,"mouseup",TinyMCE_TablePlugin._mouseDownHandler)}inst.tableRowClipboard=null},getControlHTML:function(control_name){var controls=new Array(['table','table.gif','lang_table_desc','mceInsertTable',true],['delete_table','table_delete.gif','lang_table_del','mceTableDelete'],['delete_col','table_delete_col.gif','lang_table_delete_col_desc','mceTableDeleteCol'],['delete_row','table_delete_row.gif','lang_table_delete_row_desc','mceTableDeleteRow'],['col_after','table_insert_col_after.gif','lang_table_col_after_desc','mceTableInsertColAfter'],['col_before','table_insert_col_before.gif','lang_table_col_before_desc','mceTableInsertColBefore'],['row_after','table_insert_row_after.gif','lang_table_row_after_desc','mceTableInsertRowAfter'],['row_before','table_insert_row_before.gif','lang_table_row_before_desc','mceTableInsertRowBefore'],['row_props','table_row_props.gif','lang_table_row_desc','mceTableRowProps',true],['cell_props','table_cell_props.gif','lang_table_cell_desc','mceTableCellProps',true],['split_cells','table_split_cells.gif','lang_table_split_cells_desc','mceTableSplitCells',true],['merge_cells','table_merge_cells.gif','lang_table_merge_cells_desc','mceTableMergeCells',true]);for(var i=0;i4?but[4]:false)+(but.length>5?', \''+but[5]+'\'':'')+');return false;';if(but[0]==control_name)return tinyMCE.getButtonHTML(control_name,but[2],'{$pluginurl}/images/'+but[1],but[3],(but.length>4?but[4]:false))}if(control_name=="tablecontrols"){var html="";html+=tinyMCE.getControlHTML("table");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_props");html+=tinyMCE.getControlHTML("cell_props");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_before");html+=tinyMCE.getControlHTML("row_after");html+=tinyMCE.getControlHTML("delete_row");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("col_before");html+=tinyMCE.getControlHTML("col_after");html+=tinyMCE.getControlHTML("delete_col");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("split_cells");html+=tinyMCE.getControlHTML("merge_cells");return html}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceInsertTable":case"mceTableRowProps":case"mceTableCellProps":case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":case"mceTableDelete":var inst=tinyMCE.getInstanceById(editor_id);inst.execCommand('mceBeginUndoLevel');TinyMCE_TablePlugin._doExecCommand(editor_id,element,command,user_interface,value);inst.execCommand('mceEndUndoLevel');return true}return false},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var colspan="1",rowspan="1",tdElm;var inst=tinyMCE.getInstanceById(editor_id);tinyMCE.switchClass(editor_id+'_table','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_table','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_cell_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_split_cells','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonDisabled');if(tdElm=tinyMCE.getParentElement(node,"td,th")){tinyMCE.switchClass(editor_id+'_cell_props','mceButtonSelected');tinyMCE.switchClass(editor_id+'_delete_table','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonNormal');colspan=tinyMCE.getAttrib(tdElm,"colspan");rowspan=tinyMCE.getAttrib(tdElm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;if(colspan!="1"||rowspan!="1")tinyMCE.switchClass(editor_id+'_split_cells','mceButtonNormal')}if(tinyMCE.getParentElement(node,"tr"))tinyMCE.switchClass(editor_id+'_row_props','mceButtonSelected');if(tinyMCE.getParentElement(node,"table")){tinyMCE.switchClass(editor_id+'_table','mceButtonSelected');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonNormal')}},_mouseDownHandler:function(e){var elm=tinyMCE.isMSIE?event.srcElement:e.target;var focusElm=tinyMCE.selectedInstance.getFocusElement();if(elm.nodeName=="BODY"&&(focusElm.nodeName=="TD"||focusElm.nodeName=="TH"||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TD")||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TH"))){window.setTimeout(function(){var tableElm=tinyMCE.getParentElement(focusElm,"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance)},10)}},_doExecCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var trElm=tinyMCE.getParentElement(focusElm,"tr");var tdElm=tinyMCE.getParentElement(focusElm,"td,th");var tableElm=tinyMCE.getParentElement(focusElm,"table");var doc=inst.contentWindow.document;var tableBorder=tableElm?tableElm.getAttribute("border"):"";if(trElm&&tdElm==null)tdElm=trElm.cells[0];function inArray(ar,v){for(var i=0;i0&&inArray(ar[i],v))return true;if(ar[i]==v)return true}return false}function makeTD(){var newTD=doc.createElement("td");newTD.innerHTML=" "}function getColRowSpan(td){var colspan=tinyMCE.getAttrib(td,"colspan");var rowspan=tinyMCE.getAttrib(td,"rowspan");colspan=colspan==""?1:parseInt(colspan);rowspan=rowspan==""?1:parseInt(rowspan);return{colspan:colspan,rowspan:rowspan}}function getCellPos(grid,td){var x,y;for(y=0;y1){for(var i=x;i1)td.rowSpan=sd.rowspan+1;lastElm=td}deleteMarked(tableElm)}}function prevElm(node,name){while((node=node.previousSibling)!=null){if(node.nodeName==name)return node}return null}function nextElm(node,names){var namesAr=names.split(',');while((node=node.nextSibling)!=null){for(var i=0;i1){do{var nexttd=nextElm(td,"TD,TH");if(td._delete)td.parentNode.removeChild(td)}while((td=nexttd)!=null)}}while((tr=next)!=null)}function addRows(td_elm,tr_elm,rowspan){td_elm.rowSpan=1;var trNext=nextElm(tr_elm,"TR");for(var i=1;i1){var newTD=cells[x].cloneNode(true);var sd=getColRowSpan(cells[x]);newTD.rowSpan=sd.rowspan-1;var nextTD=nextTR.cells[x];if(nextTD==null)nextTR.appendChild(newTD);else nextTR.insertBefore(newTD,nextTD)}}var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd.rowspan>1){tdElm.rowSpan=sd.rowspan-1}else{trElm=tdElm.parentNode;if(trElm.parentNode)trElm._delete=true}lastTDElm=tdElm}}deleteMarked(tableElm);cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,0),tinyMCE.isGecko,true);break;case"mceTableInsertColBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML=" ";newTD.rowSpan=tdElm.rowSpan;tdElm.parentNode.insertBefore(newTD,tdElm)}else tdElm.colSpan++;lastTDElm=tdElm}}grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,cpos.cellindex+1),tinyMCE.isGecko,true);break;case"mceTableInsertColAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML=" ";newTD.rowSpan=tdElm.rowSpan;var nextTD=nextElm(tdElm,"TD,TH");if(nextTD==null)tdElm.parentNode.appendChild(newTD);else nextTD.parentNode.insertBefore(newTD,nextTD)}else tdElm.colSpan++;lastTDElm=tdElm}}grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,cpos.cellindex),tinyMCE.isGecko,true);break;case"mceTableDeleteCol":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;if(grid.length>1&&grid[0].length<=1){tableElm=tinyMCE.getParentElement(tableElm,"table");tableElm.parentNode.removeChild(tableElm);return true}for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']>1)tdElm.colSpan=sd['colspan']-1;else{if(tdElm.parentNode)tdElm.parentNode.removeChild(tdElm)}lastTDElm=tdElm}}cpos.cellindex--;if(cpos.cellindex<0)cpos.cellindex=0;grid=getTableGrid(tableElm);inst.selection.selectNode(getCell(grid,cpos.rowindex,0),tinyMCE.isGecko,true);break;case"mceTableSplitCells":if(!trElm||!tdElm)return true;var spandata=getColRowSpan(tdElm);var colspan=spandata["colspan"];var rowspan=spandata["rowspan"];if(colspan>1||rowspan>1){tdElm.colSpan=1;for(var i=1;i1)addRows(newTD,trElm,rowspan)}addRows(tdElm,trElm,rowspan)}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");break;case"mceTableMergeCells":var rows=new Array();var sel=inst.getSel();var grid=getTableGrid(tableElm);if(tinyMCE.isMSIE||sel.rangeCount==1){if(user_interface){var template=new Array();var sp=getColRowSpan(tdElm);template['file']='../../plugins/table/merge_cells.htm';template['width']=250;template['height']=105+(tinyMCE.isNS7?25:0);template['width']+=tinyMCE.getLang('lang_table_merge_cells_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_merge_cells_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:"update",numcols:sp.colspan,numrows:sp.rowspan});return true}else{var numRows=parseInt(value['numrows']);var numCols=parseInt(value['numcols']);var cpos=getCellPos(grid,tdElm);if((""+numRows)=="NaN")numRows=1;if((""+numCols)=="NaN")numCols=1;var tRows=tableElm.rows;for(var y=cpos.rowindex;y0)rows[rows.length]=rowCells}}}else{var cells=new Array();var sel=inst.getSel();var lastTR=null;var curRow=null;var x1=-1,y1=-1,x2,y2;if(sel.rangeCount<2)return true;for(var i=0;i0)rows[rows.length]=rowCells}var curRow=new Array();var lastTR=null;for(var y=0;ycolSpan)colSpan=rowColSpan;lastRowSpan=-1}var lastColSpan=-1;for(var x=0;xrowSpan)rowSpan=colRowSpan;lastColSpan=-1}tdElm=rows[0][0];tdElm.rowSpan=rowSpan;tdElm.colSpan=colSpan;for(var y=0;y0))tdElm.innerHTML+=html;if(rows[y][x]!=tdElm&&!rows[y][x]._deleted){var cpos=getCellPos(grid,rows[y][x]);var tr=rows[y][x].parentNode;tr.removeChild(rows[y][x]);rows[y][x]._deleted=true;if(!tr.hasChildNodes()){tr.parentNode.removeChild(tr);var lastCell=null;for(var x=0;cellElm=getCell(grid,cpos.rowindex,x);x++){if(cellElm!=lastCell&&cellElm.rowSpan>1)cellElm.rowSpan--;lastCell=cellElm}if(tdElm.rowSpan>1)tdElm.rowSpan--}}}}break}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);tinyMCE.triggerNodeChange();inst.repaint()}return true}return false}};tinyMCE.addPlugin("table",TinyMCE_TablePlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/editor_plugin_src.js deleted file mode 100644 index 4eae9e7700..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/editor_plugin_src.js +++ /dev/null @@ -1,1073 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('table'); - -var TinyMCE_TablePlugin = { - getInfo : function() { - return { - longname : 'Tables', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_table.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - initInstance : function(inst) { - if (tinyMCE.isGecko) { - var doc = inst.getDoc(); - tinyMCE.addEvent(doc, "mouseup", TinyMCE_TablePlugin._mouseDownHandler); - } - - inst.tableRowClipboard = null; - }, - - /** - * Returns the HTML contents of the table control. - */ - getControlHTML : function(control_name) { - var controls = new Array( - ['table', 'table.gif', 'lang_table_desc', 'mceInsertTable', true], - ['delete_table', 'table_delete.gif', 'lang_table_del', 'mceTableDelete'], - ['delete_col', 'table_delete_col.gif', 'lang_table_delete_col_desc', 'mceTableDeleteCol'], - ['delete_row', 'table_delete_row.gif', 'lang_table_delete_row_desc', 'mceTableDeleteRow'], - ['col_after', 'table_insert_col_after.gif', 'lang_table_col_after_desc', 'mceTableInsertColAfter'], - ['col_before', 'table_insert_col_before.gif', 'lang_table_col_before_desc', 'mceTableInsertColBefore'], - ['row_after', 'table_insert_row_after.gif', 'lang_table_row_after_desc', 'mceTableInsertRowAfter'], - ['row_before', 'table_insert_row_before.gif', 'lang_table_row_before_desc', 'mceTableInsertRowBefore'], - ['row_props', 'table_row_props.gif', 'lang_table_row_desc', 'mceTableRowProps', true], - ['cell_props', 'table_cell_props.gif', 'lang_table_cell_desc', 'mceTableCellProps', true], - ['split_cells', 'table_split_cells.gif', 'lang_table_split_cells_desc', 'mceTableSplitCells', true], - ['merge_cells', 'table_merge_cells.gif', 'lang_table_merge_cells_desc', 'mceTableMergeCells', true]); - - // Render table control - for (var i=0; i 4 ? but[4] : false) + (but.length > 5 ? ', \'' + but[5] + '\'' : '') + ');return false;'; - - if (but[0] == control_name) - return tinyMCE.getButtonHTML(control_name, but[2], '{$pluginurl}/images/'+ but[1], but[3], (but.length > 4 ? but[4] : false)); - } - - // Special tablecontrols - if (control_name == "tablecontrols") { - var html = ""; - - html += tinyMCE.getControlHTML("table"); - html += tinyMCE.getControlHTML("separator"); - html += tinyMCE.getControlHTML("row_props"); - html += tinyMCE.getControlHTML("cell_props"); - html += tinyMCE.getControlHTML("separator"); - html += tinyMCE.getControlHTML("row_before"); - html += tinyMCE.getControlHTML("row_after"); - html += tinyMCE.getControlHTML("delete_row"); - html += tinyMCE.getControlHTML("separator"); - html += tinyMCE.getControlHTML("col_before"); - html += tinyMCE.getControlHTML("col_after"); - html += tinyMCE.getControlHTML("delete_col"); - html += tinyMCE.getControlHTML("separator"); - html += tinyMCE.getControlHTML("split_cells"); - html += tinyMCE.getControlHTML("merge_cells"); - - return html; - } - - return ""; - }, - - /** - * Executes the table commands. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Is table command - switch (command) { - case "mceInsertTable": - case "mceTableRowProps": - case "mceTableCellProps": - case "mceTableSplitCells": - case "mceTableMergeCells": - case "mceTableInsertRowBefore": - case "mceTableInsertRowAfter": - case "mceTableDeleteRow": - case "mceTableInsertColBefore": - case "mceTableInsertColAfter": - case "mceTableDeleteCol": - case "mceTableCutRow": - case "mceTableCopyRow": - case "mceTablePasteRowBefore": - case "mceTablePasteRowAfter": - case "mceTableDelete": - var inst = tinyMCE.getInstanceById(editor_id); - - inst.execCommand('mceBeginUndoLevel'); - TinyMCE_TablePlugin._doExecCommand(editor_id, element, command, user_interface, value); - inst.execCommand('mceEndUndoLevel'); - - return true; - } - - // Pass to next handler in chain - return false; - }, - - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - var colspan = "1", rowspan = "1", tdElm; - - var inst = tinyMCE.getInstanceById(editor_id); - - // Reset table controls - tinyMCE.switchClass(editor_id + '_table', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_delete_table', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_row_props', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_cell_props', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_row_before', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_row_after', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_delete_row', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_col_before', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_col_after', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_delete_col', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_split_cells', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_merge_cells', 'mceButtonDisabled'); - - // Within a td element - if (tdElm = tinyMCE.getParentElement(node, "td,th")) { - tinyMCE.switchClass(editor_id + '_cell_props', 'mceButtonSelected'); - tinyMCE.switchClass(editor_id + '_delete_table', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_row_before', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_row_after', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_delete_row', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_col_before', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_col_after', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_delete_col', 'mceButtonNormal'); - - colspan = tinyMCE.getAttrib(tdElm, "colspan"); - rowspan = tinyMCE.getAttrib(tdElm, "rowspan"); - - colspan = colspan == "" ? "1" : colspan; - rowspan = rowspan == "" ? "1" : rowspan; - - if (colspan != "1" || rowspan != "1") - tinyMCE.switchClass(editor_id + '_split_cells', 'mceButtonNormal'); - } - - // Within a tr element - if (tinyMCE.getParentElement(node, "tr")) - tinyMCE.switchClass(editor_id + '_row_props', 'mceButtonSelected'); - - // Within table - if (tinyMCE.getParentElement(node, "table")) { - tinyMCE.switchClass(editor_id + '_table', 'mceButtonSelected'); - tinyMCE.switchClass(editor_id + '_merge_cells', 'mceButtonNormal'); - } - }, - - // Private plugin internal methods - - _mouseDownHandler : function(e) { - var elm = tinyMCE.isMSIE ? event.srcElement : e.target; - var focusElm = tinyMCE.selectedInstance.getFocusElement(); - - // If press on special Mozilla create TD/TR thingie - if (elm.nodeName == "BODY" && (focusElm.nodeName == "TD" || focusElm.nodeName == "TH" || (focusElm.parentNode && focusElm.parentNode.nodeName == "TD") ||(focusElm.parentNode && focusElm.parentNode.nodeName == "TH") )) { - window.setTimeout(function() { - var tableElm = tinyMCE.getParentElement(focusElm, "table"); - tinyMCE.handleVisualAid(tableElm, true, tinyMCE.settings['visual'], tinyMCE.selectedInstance); - }, 10); - } - }, - - /** - * Executes the table commands. - */ - _doExecCommand : function(editor_id, element, command, user_interface, value) { - var inst = tinyMCE.getInstanceById(editor_id); - var focusElm = inst.getFocusElement(); - var trElm = tinyMCE.getParentElement(focusElm, "tr"); - var tdElm = tinyMCE.getParentElement(focusElm, "td,th"); - var tableElm = tinyMCE.getParentElement(focusElm, "table"); - var doc = inst.contentWindow.document; - var tableBorder = tableElm ? tableElm.getAttribute("border") : ""; - - // Get first TD if no TD found - if (trElm && tdElm == null) - tdElm = trElm.cells[0]; - - // ------- Inner functions --------- - function inArray(ar, v) { - for (var i=0; i 0 && inArray(ar[i], v)) - return true; - - // Found value - if (ar[i] == v) - return true; - } - - return false; - } - - function makeTD() { - var newTD = doc.createElement("td"); - newTD.innerHTML = " "; - } - - function getColRowSpan(td) { - var colspan = tinyMCE.getAttrib(td, "colspan"); - var rowspan = tinyMCE.getAttrib(td, "rowspan"); - - colspan = colspan == "" ? 1 : parseInt(colspan); - rowspan = rowspan == "" ? 1 : parseInt(rowspan); - - return {colspan : colspan, rowspan : rowspan}; - } - - function getCellPos(grid, td) { - var x, y; - - for (y=0; y 1) { // Remove due to colspan - for (var i=x; i 1) - td.rowSpan = sd.rowspan + 1; - - lastElm = td; - } - - deleteMarked(tableElm); - } - } - - function prevElm(node, name) { - while ((node = node.previousSibling) != null) { - if (node.nodeName == name) - return node; - } - - return null; - } - - function nextElm(node, names) { - var namesAr = names.split(','); - - while ((node = node.nextSibling) != null) { - for (var i=0; i 1) { - do { - var nexttd = nextElm(td, "TD,TH"); - - if (td._delete) - td.parentNode.removeChild(td); - } while ((td = nexttd) != null); - } - } while ((tr = next) != null); - } - - function addRows(td_elm, tr_elm, rowspan) { - // Add rows - td_elm.rowSpan = 1; - var trNext = nextElm(tr_elm, "TR"); - for (var i=1; i 1) { - var newTD = cells[x].cloneNode(true); - var sd = getColRowSpan(cells[x]); - - newTD.rowSpan = sd.rowspan - 1; - - var nextTD = nextTR.cells[x]; - - if (nextTD == null) - nextTR.appendChild(newTD); - else - nextTR.insertBefore(newTD, nextTD); - } - } - - // Delete cells - var lastTDElm = null; - for (var x=0; tdElm = getCell(grid, cpos.rowindex, x); x++) { - if (tdElm != lastTDElm) { - var sd = getColRowSpan(tdElm); - - if (sd.rowspan > 1) { - tdElm.rowSpan = sd.rowspan - 1; - } else { - trElm = tdElm.parentNode; - - if (trElm.parentNode) - trElm._delete = true; - } - - lastTDElm = tdElm; - } - } - - deleteMarked(tableElm); - - cpos.rowindex--; - if (cpos.rowindex < 0) - cpos.rowindex = 0; - - // Recalculate grid and select - grid = getTableGrid(tableElm); - inst.selection.selectNode(getCell(grid, cpos.rowindex, 0), tinyMCE.isGecko, true); // Only collape on gecko - break; - - case "mceTableInsertColBefore": - if (!trElm || !tdElm) - return true; - - var grid = getTableGrid(tableElm); - var cpos = getCellPos(grid, tdElm); - var lastTDElm = null; - - for (var y=0; tdElm = getCell(grid, y, cpos.cellindex); y++) { - if (tdElm != lastTDElm) { - var sd = getColRowSpan(tdElm); - - if (sd['colspan'] == 1) { - var newTD = doc.createElement(tdElm.nodeName); - - newTD.innerHTML = " "; - newTD.rowSpan = tdElm.rowSpan; - - tdElm.parentNode.insertBefore(newTD, tdElm); - } else - tdElm.colSpan++; - - lastTDElm = tdElm; - } - } - - grid = getTableGrid(tableElm); - inst.selection.selectNode(getCell(grid, cpos.rowindex, cpos.cellindex + 1), tinyMCE.isGecko, true); // Only collape on gecko - break; - - case "mceTableInsertColAfter": - if (!trElm || !tdElm) - return true; - - var grid = getTableGrid(tableElm); - var cpos = getCellPos(grid, tdElm); - var lastTDElm = null; - - for (var y=0; tdElm = getCell(grid, y, cpos.cellindex); y++) { - if (tdElm != lastTDElm) { - var sd = getColRowSpan(tdElm); - - if (sd['colspan'] == 1) { - var newTD = doc.createElement(tdElm.nodeName); - - newTD.innerHTML = " "; - newTD.rowSpan = tdElm.rowSpan; - - var nextTD = nextElm(tdElm, "TD,TH"); - if (nextTD == null) - tdElm.parentNode.appendChild(newTD); - else - nextTD.parentNode.insertBefore(newTD, nextTD); - } else - tdElm.colSpan++; - - lastTDElm = tdElm; - } - } - - grid = getTableGrid(tableElm); - inst.selection.selectNode(getCell(grid, cpos.rowindex, cpos.cellindex), tinyMCE.isGecko, true); // Only collape on gecko - break; - - case "mceTableDeleteCol": - if (!trElm || !tdElm) - return true; - - var grid = getTableGrid(tableElm); - var cpos = getCellPos(grid, tdElm); - var lastTDElm = null; - - // Only one col, remove whole table - if (grid.length > 1 && grid[0].length <= 1) { - tableElm = tinyMCE.getParentElement(tableElm, "table"); // Look for table instead of tbody - tableElm.parentNode.removeChild(tableElm); - return true; - } - - // Delete cells - for (var y=0; tdElm = getCell(grid, y, cpos.cellindex); y++) { - if (tdElm != lastTDElm) { - var sd = getColRowSpan(tdElm); - - if (sd['colspan'] > 1) - tdElm.colSpan = sd['colspan'] - 1; - else { - if (tdElm.parentNode) - tdElm.parentNode.removeChild(tdElm); - } - - lastTDElm = tdElm; - } - } - - cpos.cellindex--; - if (cpos.cellindex < 0) - cpos.cellindex = 0; - - // Recalculate grid and select - grid = getTableGrid(tableElm); - inst.selection.selectNode(getCell(grid, cpos.rowindex, 0), tinyMCE.isGecko, true); // Only collape on gecko - break; - - case "mceTableSplitCells": - if (!trElm || !tdElm) - return true; - - var spandata = getColRowSpan(tdElm); - - var colspan = spandata["colspan"]; - var rowspan = spandata["rowspan"]; - - // Needs splitting - if (colspan > 1 || rowspan > 1) { - // Generate cols - tdElm.colSpan = 1; - for (var i=1; i 1) - addRows(newTD, trElm, rowspan); - } - - addRows(tdElm, trElm, rowspan); - } - - // Apply visual aids - tableElm = tinyMCE.getParentElement(inst.getFocusElement(), "table"); - break; - - case "mceTableMergeCells": - var rows = new Array(); - var sel = inst.getSel(); - var grid = getTableGrid(tableElm); - - if (tinyMCE.isMSIE || sel.rangeCount == 1) { - if (user_interface) { - // Setup template - var template = new Array(); - var sp = getColRowSpan(tdElm); - - template['file'] = '../../plugins/table/merge_cells.htm'; - template['width'] = 250; - template['height'] = 105 + (tinyMCE.isNS7 ? 25 : 0); - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_table_merge_cells_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_table_merge_cells_delta_height', 0); - - // Open window - tinyMCE.openWindow(template, {editor_id : inst.editorId, inline : "yes", action : "update", numcols : sp.colspan, numrows : sp.rowspan}); - - return true; - } else { - var numRows = parseInt(value['numrows']); - var numCols = parseInt(value['numcols']); - var cpos = getCellPos(grid, tdElm); - - if (("" + numRows) == "NaN") - numRows = 1; - - if (("" + numCols) == "NaN") - numCols = 1; - - // Get rows and cells - var tRows = tableElm.rows; - for (var y=cpos.rowindex; y 0) - rows[rows.length] = rowCells; - } - - //return true; - } - } else { - var cells = new Array(); - var sel = inst.getSel(); - var lastTR = null; - var curRow = null; - var x1 = -1, y1 = -1, x2, y2; - - // Only one cell selected, whats the point? - if (sel.rangeCount < 2) - return true; - - // Get all selected cells - for (var i=0; i 0) - rows[rows.length] = rowCells; - } - - // Find selected cells in grid and box - var curRow = new Array(); - var lastTR = null; - for (var y=0; y colSpan) - colSpan = rowColSpan; - - lastRowSpan = -1; - } - - // Validate vertical and get total rowspan - var lastColSpan = -1; - for (var x=0; x rowSpan) - rowSpan = colRowSpan; - - lastColSpan = -1; - } - - // Setup td - tdElm = rows[0][0]; - tdElm.rowSpan = rowSpan; - tdElm.colSpan = colSpan; - - // Merge cells - for (var y=0; y 0)) - tdElm.innerHTML += html; - - // Not current cell - if (rows[y][x] != tdElm && !rows[y][x]._deleted) { - var cpos = getCellPos(grid, rows[y][x]); - var tr = rows[y][x].parentNode; - - tr.removeChild(rows[y][x]); - rows[y][x]._deleted = true; - - // Empty TR, remove it - if (!tr.hasChildNodes()) { - tr.parentNode.removeChild(tr); - - var lastCell = null; - for (var x=0; cellElm = getCell(grid, cpos.rowindex, x); x++) { - if (cellElm != lastCell && cellElm.rowSpan > 1) - cellElm.rowSpan--; - - lastCell = cellElm; - } - - if (tdElm.rowSpan > 1) - tdElm.rowSpan--; - } - } - } - } - - break; - } - - tableElm = tinyMCE.getParentElement(inst.getFocusElement(), "table"); - tinyMCE.handleVisualAid(tableElm, true, tinyMCE.settings['visual'], tinyMCE.selectedInstance); - tinyMCE.triggerNodeChange(); - inst.repaint(); - } - - return true; - } - - // Pass to next handler in chain - return false; - } -}; - -tinyMCE.addPlugin("table", TinyMCE_TablePlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/buttons.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/buttons.gif deleted file mode 100644 index 8c09ff952c..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/buttons.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table.gif deleted file mode 100644 index 2911830c3c..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_cell_props.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_cell_props.gif deleted file mode 100644 index bee7ed652f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_cell_props.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete.gif deleted file mode 100644 index 2a00e6ad66..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete_col.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete_col.gif deleted file mode 100644 index 91f53af02a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete_col.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete_row.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete_row.gif deleted file mode 100644 index 7025733fe3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_delete_row.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_col_after.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_col_after.gif deleted file mode 100644 index 85058080ca..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_col_after.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_col_before.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_col_before.gif deleted file mode 100644 index b669d4fa6d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_col_before.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_row_after.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_row_after.gif deleted file mode 100644 index b9c1446613..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_row_after.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_row_before.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_row_before.gif deleted file mode 100644 index 157d373654..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_insert_row_before.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_merge_cells.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_merge_cells.gif deleted file mode 100644 index 6834e611ed..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_merge_cells.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_row_props.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_row_props.gif deleted file mode 100644 index e5c7cc37aa..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_row_props.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_split_cells.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_split_cells.gif deleted file mode 100644 index 8ccb1b5f89..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/images/table_split_cells.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/jscripts/cell.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/jscripts/cell.js deleted file mode 100644 index 436eaad171..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/jscripts/cell.js +++ /dev/null @@ -1,249 +0,0 @@ -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); - document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); - document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor') - - var inst = tinyMCE.selectedInstance; - var tdElm = tinyMCE.getParentElement(inst.getFocusElement(), "td,th"); - var formObj = document.forms[0]; - var st = tinyMCE.parseStyle(tinyMCE.getAttrib(tdElm, "style")); - - // Get table cell data - var celltype = tdElm.nodeName.toLowerCase(); - var align = tinyMCE.getAttrib(tdElm, 'align'); - var valign = tinyMCE.getAttrib(tdElm, 'valign'); - var width = trimSize(getStyle(tdElm, 'width', 'width')); - var height = trimSize(getStyle(tdElm, 'height', 'height')); - var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor')); - var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor')); - var className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(tdElm, 'class'), false); - var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");; - var id = tinyMCE.getAttrib(tdElm, 'id'); - var lang = tinyMCE.getAttrib(tdElm, 'lang'); - var dir = tinyMCE.getAttrib(tdElm, 'dir'); - var scope = tinyMCE.getAttrib(tdElm, 'scope'); - - // Setup form - addClassesToList('class', 'table_cell_styles'); - formObj.bordercolor.value = bordercolor; - formObj.bgcolor.value = bgcolor; - formObj.backgroundimage.value = backgroundimage; - formObj.width.value = width; - formObj.height.value = height; - formObj.id.value = id; - formObj.lang.value = lang; - formObj.style.value = tinyMCE.serializeStyle(st); - selectByValue(formObj, 'align', align); - selectByValue(formObj, 'valign', valign); - selectByValue(formObj, 'class', className); - selectByValue(formObj, 'celltype', celltype); - selectByValue(formObj, 'dir', dir); - selectByValue(formObj, 'scope', scope); - - // Resize some elements - if (isVisible('backgroundimagebrowser')) - document.getElementById('backgroundimage').style.width = '180px'; - - updateColor('bordercolor_pick', 'bordercolor'); - updateColor('bgcolor_pick', 'bgcolor'); -} - -function updateAction() { - tinyMCEPopup.restoreSelection(); - - var inst = tinyMCE.selectedInstance; - var tdElm = tinyMCE.getParentElement(inst.getFocusElement(), "td,th"); - var trElm = tinyMCE.getParentElement(inst.getFocusElement(), "tr"); - var tableElm = tinyMCE.getParentElement(inst.getFocusElement(), "table"); - var formObj = document.forms[0]; - - inst.execCommand('mceBeginUndoLevel'); - - switch (getSelectValue(formObj, 'action')) { - case "cell": - var celltype = getSelectValue(formObj, 'celltype'); - var scope = getSelectValue(formObj, 'scope'); - - if (tinyMCE.getParam("accessibility_warnings")) { - if (celltype == "th" && scope == "") - var answer = confirm(tinyMCE.getLang('lang_table_missing_scope', '', true)); - else - var answer = true; - - if (!answer) - return; - } - - updateCell(tdElm); - break; - - case "row": - var cell = trElm.firstChild; - - if (cell.nodeName != "TD" && cell.nodeName != "TH") - cell = nextCell(cell); - - do { - cell = updateCell(cell, true); - } while ((cell = nextCell(cell)) != null); - - break; - - case "all": - var rows = tableElm.getElementsByTagName("tr"); - - for (var i=0; i colLimit) { - alert(tinyMCE.getLang('lang_table_col_limit', '', true, {cols : colLimit})); - return false; - } else if (rowLimit && rows > rowLimit) { - alert(tinyMCE.getLang('lang_table_row_limit', '', true, {rows : rowLimit})); - return false; - } else if (cellLimit && cols * rows > cellLimit) { - alert(tinyMCE.getLang('lang_table_cell_limit', '', true, {cells : cellLimit})); - return false; - } - - // Update table - if (action == "update") { - inst.execCommand('mceBeginUndoLevel'); - - tinyMCE.setAttrib(elm, 'cellPadding', cellpadding, true); - tinyMCE.setAttrib(elm, 'cellSpacing', cellspacing, true); - tinyMCE.setAttrib(elm, 'border', border, true); - tinyMCE.setAttrib(elm, 'align', align); - tinyMCE.setAttrib(elm, 'class', className); - tinyMCE.setAttrib(elm, 'style', style); - tinyMCE.setAttrib(elm, 'id', id); - tinyMCE.setAttrib(elm, 'summary', summary); - tinyMCE.setAttrib(elm, 'dir', dir); - tinyMCE.setAttrib(elm, 'lang', lang); - - // Not inline styles - if (!tinyMCE.getParam("inline_styles")) - tinyMCE.setAttrib(elm, 'width', width, true); - - // Remove these since they are not valid XHTML - tinyMCE.setAttrib(elm, 'borderColor', ''); - tinyMCE.setAttrib(elm, 'bgColor', ''); - tinyMCE.setAttrib(elm, 'background', ''); - tinyMCE.setAttrib(elm, 'height', ''); - - if (background != '') - elm.style.backgroundImage = "url('" + background + "')"; - else - elm.style.backgroundImage = ''; - - if (tinyMCE.getParam("inline_styles")) - elm.style.borderWidth = border + "px"; - - if (tinyMCE.getParam("inline_styles")) { - if (width != '') - elm.style.width = getCSSSize(width); - } - - if (bordercolor != "") { - elm.style.borderColor = bordercolor; - elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle; - elm.style.borderWidth = border == "" ? "1px" : border; - } else - elm.style.borderColor = ''; - - elm.style.backgroundColor = bgcolor; - elm.style.height = getCSSSize(height); - - tinyMCE.handleVisualAid(tinyMCE.tableElm, false, inst.visualAid, inst); - - // Fix for stange MSIE align bug - tinyMCE.tableElm.outerHTML = tinyMCE.tableElm.outerHTML; - - tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); - tinyMCE.triggerNodeChange(); - inst.execCommand('mceEndUndoLevel'); - - // Repaint if dimensions changed - if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight) - inst.repaint(); - - tinyMCEPopup.close(); - return true; - } - - // Create new table - html += '/g, '>'); - - return ' ' + attrib + '="' + value + '"'; -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); - document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); - document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); - document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); - - var cols = 2, rows = 2, border = tinyMCE.getParam('table_default_border', '0'), cellpadding = tinyMCE.getParam('table_default_cellpadding', ''), cellspacing = tinyMCE.getParam('table_default_cellspacing', ''); - var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = ""; - var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = ""; - var inst = tinyMCE.selectedInstance; - var formObj = document.forms[0]; - var elm = tinyMCE.getParentElement(inst.getFocusElement(), "table"); - - tinyMCE.tableElm = elm; - action = tinyMCE.getWindowArg('action'); - if (action == null) - action = tinyMCE.tableElm ? "update" : "insert"; - - if (tinyMCE.tableElm && action != "insert") { - var rowsAr = tinyMCE.tableElm.rows; - var cols = 0; - for (var i=0; i cols) - cols = rowsAr[i].cells.length; - - cols = cols; - rows = rowsAr.length; - - st = tinyMCE.parseStyle(tinyMCE.getAttrib(tinyMCE.tableElm, "style")); - border = trimSize(getStyle(elm, 'border', 'borderWidth')); - cellpadding = tinyMCE.getAttrib(tinyMCE.tableElm, 'cellpadding', ""); - cellspacing = tinyMCE.getAttrib(tinyMCE.tableElm, 'cellspacing', ""); - width = trimSize(getStyle(elm, 'width', 'width')); - height = trimSize(getStyle(elm, 'height', 'height')); - bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor')); - bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor')); - align = tinyMCE.getAttrib(tinyMCE.tableElm, 'align', align); - className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(tinyMCE.tableElm, 'class'), false); - id = tinyMCE.getAttrib(tinyMCE.tableElm, 'id'); - summary = tinyMCE.getAttrib(tinyMCE.tableElm, 'summary'); - style = tinyMCE.serializeStyle(st); - dir = tinyMCE.getAttrib(tinyMCE.tableElm, 'dir'); - lang = tinyMCE.getAttrib(tinyMCE.tableElm, 'lang'); - background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); - - orgTableWidth = width; - orgTableHeight = height; - - action = "update"; - } - - addClassesToList('class', "table_styles"); - - // Update form - selectByValue(formObj, 'align', align); - selectByValue(formObj, 'class', className); - formObj.cols.value = cols; - formObj.rows.value = rows; - formObj.border.value = border; - formObj.cellpadding.value = cellpadding; - formObj.cellspacing.value = cellspacing; - formObj.width.value = width; - formObj.height.value = height; - formObj.bordercolor.value = bordercolor; - formObj.bgcolor.value = bgcolor; - formObj.id.value = id; - formObj.summary.value = summary; - formObj.style.value = style; - formObj.dir.value = dir; - formObj.lang.value = lang; - formObj.backgroundimage.value = background; - formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); - - updateColor('bordercolor_pick', 'bordercolor'); - updateColor('bgcolor_pick', 'bgcolor'); - - // Resize some elements - if (isVisible('backgroundimagebrowser')) - document.getElementById('backgroundimage').style.width = '180px'; - - // Disable some fields in update mode - if (action == "update") { - formObj.cols.disabled = true; - formObj.rows.disabled = true; - } -} - -function changedSize() { - var formObj = document.forms[0]; - var st = tinyMCE.parseStyle(formObj.style.value); - - var width = formObj.width.value; - if (width != "") - st['width'] = tinyMCE.getParam("inline_styles") ? getCSSSize(width) : ""; - else - st['width'] = ""; - - var height = formObj.height.value; - if (height != "") - st['height'] = getCSSSize(height); - else - st['height'] = ""; - - formObj.style.value = tinyMCE.serializeStyle(st); -} - -function changedBackgroundImage() { - var formObj = document.forms[0]; - var st = tinyMCE.parseStyle(formObj.style.value); - - st['background-image'] = "url('" + formObj.backgroundimage.value + "')"; - - formObj.style.value = tinyMCE.serializeStyle(st); -} - -function changedBorder() { - var formObj = document.forms[0]; - var st = tinyMCE.parseStyle(formObj.style.value); - - // Update border width if the element has a color - if (formObj.border.value != "" && formObj.bordercolor.value != "") - st['border-width'] = formObj.border.value + "px"; - - formObj.style.value = tinyMCE.serializeStyle(st); -} - -function changedColor() { - var formObj = document.forms[0]; - var st = tinyMCE.parseStyle(formObj.style.value); - - st['background-color'] = formObj.bgcolor.value; - - if (formObj.bordercolor.value != "") { - st['border-color'] = formObj.bordercolor.value; - - // Add border-width if it's missing - if (!st['border-width']) - st['border-width'] = formObj.border.value == "" ? "1px" : formObj.border.value + "px"; - } - - formObj.style.value = tinyMCE.serializeStyle(st); -} - -function changedStyle() { - var formObj = document.forms[0]; - var st = tinyMCE.parseStyle(formObj.style.value); - - if (st['background-image']) - formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); - else - formObj.backgroundimage.value = ''; - - if (st['width']) - formObj.width.value = trimSize(st['width']); - - if (st['height']) - formObj.height.value = trimSize(st['height']); - - if (st['background-color']) { - formObj.bgcolor.value = st['background-color']; - updateColor('bgcolor_pick','bgcolor'); - } - - if (st['border-color']) { - formObj.bordercolor.value = st['border-color']; - updateColor('bordercolor_pick','bordercolor'); - } -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/langs/en.js deleted file mode 100644 index 108d6afb13..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/langs/en.js +++ /dev/null @@ -1,78 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('table',{ -general_tab : 'General', -advanced_tab : 'Advanced', -general_props : 'General properties', -advanced_props : 'Advanced properties', -desc : 'Inserts a new table', -row_before_desc : 'Insert row before', -row_after_desc : 'Insert row after', -delete_row_desc : 'Delete row', -col_before_desc : 'Insert column before', -col_after_desc : 'Insert column after', -delete_col_desc : 'Remove column', -rowtype : 'Row in table part', -title : 'Insert/Modify table', -width : 'Width', -height : 'Height', -cols : 'Columns', -rows : 'Rows', -cellspacing : 'Cellspacing', -cellpadding : 'Cellpadding', -border : 'Border', -align : 'Alignment', -align_default : 'Default', -align_left : 'Left', -align_right : 'Right', -align_middle : 'Center', -row_title : 'Table row properties', -cell_title : 'Table cell properties', -cell_type : 'Cell type', -row_desc : 'Table row properties', -cell_desc : 'Table cell properties', -valign : 'Vertical alignment', -align_top : 'Top', -align_bottom : 'Bottom', -props_desc : 'Table properties', -bordercolor : 'Border color', -bgcolor : 'Background color', -merge_cells_title : 'Merge table cells', -split_cells_desc : 'Split table cells', -merge_cells_desc : 'Merge table cells', -cut_row_desc : 'Cut table row', -copy_row_desc : 'Copy table row', -paste_row_before_desc : 'Paste table row before', -paste_row_after_desc : 'Paste table row after', -id : 'Id', -style: 'Style', -langdir : 'Language direction', -langcode : 'Language code', -mime : 'Target MIME type', -ltr : 'Left to right', -rtl : 'Right to left', -bgimage : 'Background image', -summary : 'Summary', -td : "Data", -th : "Header", -cell_cell : 'Update current cell', -cell_row : 'Update all cells in row', -cell_all : 'Update all cells in table', -row_row : 'Update current row', -row_odd : 'Update odd rows in table', -row_even : 'Update even rows in table', -row_all : 'Update all rows in table', -thead : 'Table Head', -tbody : 'Table Body', -tfoot : 'Table Foot', -del : 'Delete table', -scope : 'Scope', -row : 'Row', -col : 'Col', -rowgroup : 'Row Group', -colgroup : 'Col Group', -col_limit : 'You\'ve exceeded the maximum number of columns of {$cols}.', -row_limit : 'You\'ve exceeded the maximum number of rows of {$rows}.', -cell_limit : 'You\'ve exceeded the maximum number of cells of {$cells}.', -missing_scope: 'Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/merge_cells.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/merge_cells.htm deleted file mode 100644 index 10896bf9e2..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/merge_cells.htm +++ /dev/null @@ -1,38 +0,0 @@ - - - {$lang_table_merge_cells_title} - - - - - - - -
-
- {$lang_table_merge_cells_title} - - - - - - - - - -
{$lang_table_cols}: -
{$lang_table_rows}:
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/row.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/row.htm deleted file mode 100644 index 64f2afcb5e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/row.htm +++ /dev/null @@ -1,159 +0,0 @@ - - - {$lang_table_row_title} - - - - - - - - -
- - -
-
-
- {$lang_table_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
-
-
- -
-
- {$lang_table_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- - - - - -
 
-
- - - - - -
 
-
-
-
-
- -
-
- -
- -
-
-
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/table.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/table.htm deleted file mode 100644 index 3cb5141baa..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/table/table.htm +++ /dev/null @@ -1,161 +0,0 @@ - - - {$lang_table_title} - - - - - - - - - -
- - -
-
-
- {$lang_table_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
- {$lang_table_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- - - - - -
 
-
- - - - - -
 
-
- - - - - -
 
-
-
-
-
- -
-
- -
- -
- -
-
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracoAdditions/umbPasteCheck.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracoAdditions/umbPasteCheck.js deleted file mode 100644 index 14a84c1b6c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracoAdditions/umbPasteCheck.js +++ /dev/null @@ -1,13 +0,0 @@ -function umbracoPasteCheck(tinyMceId) { - var _content = tinyMCE.getContent(); - - if (_content.indexOf(' 0 || _content.indexOf('MsoNormal') > 0 || _content.indexOf('mso-') > 0 || _content.indexOf('style=') > 0 ) { - - var template = new Array(); - - template['file'] = '../../../../umbraco/plugins/tinymce/paste.aspx'; - template['width'] = 520; - template['height'] = 400; - tinyMCE.openWindow(template, {editor_id : tinyMceId}); - } -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/css/advlink.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/css/advlink.css deleted file mode 100644 index 0cb37bd20a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/css/advlink.css +++ /dev/null @@ -1,35 +0,0 @@ -/* CSS file for advimage plugin popup */ - -.mceLinkList, .mceAnchorList, #targetlist { - width: 280px; -} - -.mceActionPanel { - margin-top: 7px; -} - -.panel_wrapper div.current { - height: 320px; -} - -#classlist, #title, #href { - width: 280px; -} - -#popupurl, #popupname { - width: 200px; -} - -#popupwidth, #popupheight, #popupleft, #popuptop { - width: 30px; - vertical-align: middle; - text-align: center; -} - -#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey { - width: 200px; -} - -#events_panel input { - width: 200px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/editor_plugin.js deleted file mode 100644 index a38218fd10..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/editor_plugin.js +++ /dev/null @@ -1,195 +0,0 @@ - -var TinyMCE_UmbracoLinkPlugin = { - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @returns Name/value array containing information about the plugin. - * @type Array - */ - getInfo : function() { - return { - longname : 'Umbraco Link Dialog', - author : 'Christian Palm', - authorurl : 'http://www.umbraco.org', - infourl : 'http://www.umbraco.org', - version : "0.9" - }; - }, - - /** - * Gets executed when a TinyMCE editor instance is initialized. - * - * @param {TinyMCE_Control} Initialized TinyMCE editor control instance. - */ - initInstance : function(inst) { - // You can take out plugin specific parameters - //alert("Initialization parameter:" + tinyMCE.getParam("somename_someparam", false)); - - // Register custom keyboard shortcut - inst.addShortcut('ctrl', 't', 'lang_somename_desc', 'mceSomeCommand'); - }, - - /** - * Returns the HTML code for a specific control or empty string if this plugin doesn't have that control. - * A control can be a button, select list or any other HTML item to present in the TinyMCE user interface. - * The variable {$editor_id} will be replaced with the current editor instance id and {$pluginurl} will be replaced - * with the URL of the plugin. Language variables such as {$lang_somekey} will also be replaced with contents from - * the language packs. - * - * @param {string} cn Editor control/button name to get HTML for. - * @return HTML code for a specific control or empty string. - * @type string - */ - getControlHTML : function(cn) { - switch (cn) { - case "link": - return tinyMCE.getButtonHTML(cn, 'lang_link_desc', '{$themeurl}/images/link.gif', 'mceUmbracoLink'); - } - - return ""; - }, - - - /** - * Executes a specific command, this function handles plugin commands. - * - * @param {string} editor_id TinyMCE editor instance id that issued the command. - * @param {HTMLElement} element Body or root element for the editor instance. - * @param {string} command Command name to be executed. - * @param {string} user_interface True/false if a user interface should be presented. - * @param {mixed} value Custom value argument, can be anything. - * @return true/false if the command was executed by this plugin or not. - * @type - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - // Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser. - case "mceUmbracoLink": - var anySelection = false; - var inst = tinyMCE.getInstanceById(editor_id); - var focusElm = inst.getFocusElement(); - var selectedText = inst.selection.getSelectedText(); - - if (tinyMCE.selectedElement) - anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0); - - if (anySelection || (focusElm != null && focusElm.nodeName == "A")) { - var template = new Array(); - - template['file'] = '../../plugins/umbracolink/link.htm'; - template['width'] = 480; - template['height'] = 400; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0); - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - } - - return true; - } - - // Pass to next handler in chain - return false; - }, - - /** - * Gets called ones the cursor/selection in a TinyMCE instance changes. This is useful to enable/disable - * button controls depending on where the user are and what they have selected. This method gets executed - * alot and should be as performance tuned as possible. - * - * @param {string} editor_id TinyMCE editor instance id that was changed. - * @param {HTMLNode} node Current node location, where the cursor is in the DOM tree. - * @param {int} undo_index The current undo index, if this is -1 custom undo/redo is disabled. - * @param {int} undo_levels The current undo levels, if this is -1 custom undo/redo is disabled. - * @param {boolean} visual_aid Is visual aids enabled/disabled ex: dotted lines on tables. - * @param {boolean} any_selection Is there any selection at all or is there only a cursor. - */ - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node == null) - return; - - do { - if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "") { - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonSelected'); - return true; - } - } while ((node = node.parentNode)); - - if (any_selection) { - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonNormal'); - return true; - } - - tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonDisabled'); - - return true; - }, - - /** - * Gets called when a TinyMCE editor instance gets filled with content on startup. - * - * @param {string} editor_id TinyMCE editor instance id that was filled with content. - * @param {HTMLElement} body HTML body element of editor instance. - * @param {HTMLDocument} doc HTML document instance. - */ - setupContent : function(editor_id, body, doc) { - }, - - /** - * Gets called when the contents of a TinyMCE area is modified, in other words when a undo level is - * added. - * - * @param {TinyMCE_Control} inst TinyMCE editor area control instance that got modified. - */ - onChange : function(inst) { - }, - - /** - * Gets called when TinyMCE handles events such as keydown, mousedown etc. TinyMCE - * doesn't listen on all types of events so custom event handling may be required for - * some purposes. - * - * @param {Event} e HTML editor event reference. - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - handleEvent : function(e) { - return true; - }, - - /** - * Gets called when HTML contents is inserted or retrived from a TinyMCE editor instance. - * The type parameter contains what type of event that was performed and what format the content is in. - * Possible valuses for type is get_from_editor, insert_to_editor, get_from_editor_dom, insert_to_editor_dom. - * - * @param {string} type Cleanup event type. - * @param {mixed} content Editor contents that gets inserted/extracted can be a string or DOM element. - * @param {TinyMCE_Control} inst TinyMCE editor instance control that performes the cleanup. - * @return New content or the input content depending on action. - * @type string - */ - cleanup : function(type, content, inst) { - return content; - }, - - // Private plugin internal methods - - /** - * This is just a internal plugin method, prefix all internal methods with a _ character. - * The prefix is needed so they doesn't collide with future TinyMCE callback functions. - * - * @param {string} a Some arg1. - * @param {string} b Some arg2. - * @return Some return. - * @type string - */ - _someInternalFunction : function(a, b) { - return 1; - } -}; - -// Adds the plugin class to the list of available TinyMCE plugins -tinyMCE.addPlugin("umbracolink", TinyMCE_UmbracoLinkPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/jscripts/functions.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/jscripts/functions.js deleted file mode 100644 index 58a2c9e98c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/jscripts/functions.js +++ /dev/null @@ -1,568 +0,0 @@ -/* Functions for the advlink plugin popup */ - -var templates = { - "window.open" : "window.open('${url}','${target}','${options}')" -}; - -function preinit() { - // Initialize - tinyMCE.setWindowArg('mce_windowresize', false); - - // Import external list url javascript - var url = tinyMCE.getParam("external_link_list_url"); - if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); - } -} - -function changeClass() { - var formObj = document.forms[0]; - formObj.classes.value = getSelectValue(formObj, 'classlist'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var formObj = document.forms[0]; - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - var action = "insert"; - var html; - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); - document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); - document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); - document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); - document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); - - // Link list - html = getLinkListHTML('linklisthref','href'); - if (html == "") - document.getElementById("linklisthrefrow").style.display = 'none'; - else - document.getElementById("linklisthrefcontainer").innerHTML = html; - - // Resize some elements - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '260px'; - - if (isVisible('popupurlbrowser')) - document.getElementById('popupurl').style.width = '180px'; - - elm = tinyMCE.getParentElement(elm, "a"); - if (elm != null && elm.nodeName == "A") - action = "update"; - - formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); - - setPopupControlsDisabled(true); - - if (action == "update") { - var href = tinyMCE.getAttrib(elm, 'href'); - - href = convertURL(href, elm, true); - - // Use mce_href if found - var mceRealHref = tinyMCE.getAttrib(elm, 'mce_href'); - if (mceRealHref != "") { - href = mceRealHref; - - if (tinyMCE.getParam('convert_urls')) - href = convertURL(href, elm, true); - } - - var onclick = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onclick')); - - // Setup form data - setFormValue('href', href); - setFormValue('title', tinyMCE.getAttrib(elm, 'title')); - setFormValue('id', tinyMCE.getAttrib(elm, 'id')); - setFormValue('style', tinyMCE.serializeStyle(tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style")))); - setFormValue('rel', tinyMCE.getAttrib(elm, 'rel')); - setFormValue('rev', tinyMCE.getAttrib(elm, 'rev')); - setFormValue('charset', tinyMCE.getAttrib(elm, 'charset')); - setFormValue('hreflang', tinyMCE.getAttrib(elm, 'hreflang')); - setFormValue('dir', tinyMCE.getAttrib(elm, 'dir')); - setFormValue('lang', tinyMCE.getAttrib(elm, 'lang')); - setFormValue('tabindex', tinyMCE.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); - setFormValue('accesskey', tinyMCE.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); - setFormValue('type', tinyMCE.getAttrib(elm, 'type')); - setFormValue('onfocus', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onfocus'))); - setFormValue('onblur', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onblur'))); - setFormValue('onclick', onclick); - setFormValue('ondblclick', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'ondblclick'))); - setFormValue('onmousedown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousedown'))); - setFormValue('onmouseup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseup'))); - setFormValue('onmouseover', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover'))); - setFormValue('onmousemove', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousemove'))); - setFormValue('onmouseout', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout'))); - setFormValue('onkeypress', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeypress'))); - setFormValue('onkeydown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeydown'))); - setFormValue('onkeyup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeyup'))); - setFormValue('target', tinyMCE.getAttrib(elm, 'target')); - setFormValue('classes', tinyMCE.getAttrib(elm, 'class')); - - // Parse onclick data - if (onclick != null && onclick.indexOf('window.open') != -1) - parseWindowOpen(onclick); - else - parseFunction(onclick); - - // Select by the values - selectByValue(formObj, 'dir', tinyMCE.getAttrib(elm, 'dir')); - selectByValue(formObj, 'rel', tinyMCE.getAttrib(elm, 'rel')); - selectByValue(formObj, 'rev', tinyMCE.getAttrib(elm, 'rev')); - selectByValue(formObj, 'linklisthref', href); - - if (href.charAt(0) == '#') - selectByValue(formObj, 'anchorlist', href); - - addClassesToList('classlist', 'advlink_styles'); - - selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class'), true); - selectByValue(formObj, 'targetlist', tinyMCE.getAttrib(elm, 'target'), true); - } else - addClassesToList('classlist', 'advlink_styles'); - - window.focus(); -} - -function setFormValue(name, value) { - document.forms[0].elements[name].value = value; -} - -function convertURL(url, node, on_save) { - return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);"); -} - -function parseWindowOpen(onclick) { - var formObj = document.forms[0]; - - // Preprocess center code - if (onclick.indexOf('return false;') != -1) { - formObj.popupreturn.checked = true; - onclick = onclick.replace('return false;', ''); - } else - formObj.popupreturn.checked = false; - - var onClickData = parseLink(onclick); - - if (onClickData != null) { - formObj.ispopup.checked = true; - setPopupControlsDisabled(false); - - var onClickWindowOptions = parseOptions(onClickData['options']); - var url = onClickData['url']; - - if (tinyMCE.getParam('convert_urls')) - url = convertURL(url, null, true); - - formObj.popupname.value = onClickData['target']; - formObj.popupurl.value = url; - formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); - formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); - - formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); - formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); - - if (formObj.popupleft.value.indexOf('screen') != -1) - formObj.popupleft.value = "c"; - - if (formObj.popuptop.value.indexOf('screen') != -1) - formObj.popuptop.value = "c"; - - formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; - formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; - formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; - formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; - formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; - formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; - formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; - - buildOnClick(); - } -} - -function parseFunction(onclick) { - var formObj = document.forms[0]; - var onClickData = parseLink(onclick); - - // TODO: Add stuff here -} - -function getOption(opts, name) { - return typeof(opts[name]) == "undefined" ? "" : opts[name]; -} - -function setPopupControlsDisabled(state) { - var formObj = document.forms[0]; - - formObj.popupname.disabled = state; - formObj.popupurl.disabled = state; - formObj.popupwidth.disabled = state; - formObj.popupheight.disabled = state; - formObj.popupleft.disabled = state; - formObj.popuptop.disabled = state; - formObj.popuplocation.disabled = state; - formObj.popupscrollbars.disabled = state; - formObj.popupmenubar.disabled = state; - formObj.popupresizable.disabled = state; - formObj.popuptoolbar.disabled = state; - formObj.popupstatus.disabled = state; - formObj.popupreturn.disabled = state; - formObj.popupdependent.disabled = state; - - setBrowserDisabled('popupurlbrowser', state); -} - -function parseLink(link) { - link = link.replace(new RegExp(''', 'g'), "'"); - - var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); - - // Is function name a template function - var template = templates[fnName]; - if (template) { - // Build regexp - var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); - var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; - var replaceStr = ""; - for (var i=0; i'); - for (var i=0; i'; - html += ''; - - for (var i=0; i' + name + ''; - } - - html += ''; - - return html; -} - -function insertAction() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var elm = inst.getFocusElement(); - - elm = tinyMCE.getParentElement(elm, "a"); - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - // Create new anchor elements - if (elm == null) { - if (tinyMCE.isSafari) - tinyMCEPopup.execCommand("mceInsertContent", false, '' + inst.selection.getSelectedHTML() + ''); - else - tinyMCEPopup.execCommand("createlink", false, "#mce_temp_url#"); - - var elementArray = tinyMCE.getElementsByAttributeValue(inst.getBody(), "a", "href", "#mce_temp_url#"); - for (var i=0; i' + tinyMCELinkList[i][0] + ''; - - html += ''; - - return html; - - // tinyMCE.debug('-- image list start --', html, '-- image list end --'); -} - -function getTargetListHTML(elm_id, target_form_element) { - var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';'); - var html = ''; - - html += ''; - - return html; -} - -// While loading -preinit(); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/langs/en.js deleted file mode 100644 index e08eefaf18..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/langs/en.js +++ /dev/null @@ -1,45 +0,0 @@ -// UK lang variables -tinyMCE.addToLang('umbracolink',{ -general_tab : 'General', -popup_tab : 'Popup', -events_tab : 'Events', -advanced_tab : 'Advanced', -general_props : 'General properties', -popup_props : 'Popup properties', -event_props : 'Events', -advanced_props : 'Advanced properties', -popup_opts : 'Options', -anchor_names : 'Anchors', -target_same : 'Open in this window / frame', -target_parent : 'Open in parent window / frame', -target_top : 'Open in top frame (replaces all frames)', -target_blank : 'Open in new window', -popup : 'Javascript popup', -popup_url : 'Popup URL', -popup_name : 'Window name', -popup_return : 'Insert \'return false\'', -popup_scrollbars : 'Show scrollbars', -popup_statusbar : 'Show status bar', -popup_toolbar : 'Show toolbars', -popup_menubar : 'Show menu bar', -popup_location : 'Show location bar', -popup_resizable : 'Make window resizable', -popup_dependent : 'Dependent (Mozilla/Firefox only)', -popup_size : 'Size', -popup_position : 'Position (X/Y)', -id : 'Id', -style: 'Style', -classes : 'Classes', -target_name : 'Target name', -langdir : 'Language direction', -target_langcode : 'Target language', -langcode : 'Language code', -encoding : 'Target character encoding', -mime : 'Target MIME type', -rel : 'Relationship page to target', -rev : 'Relationship target to page', -tabindex : 'Tabindex', -accesskey : 'Accesskey', -ltr : 'Left to right', -rtl : 'Right to left' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/link.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/link.htm deleted file mode 100644 index afd04d7e1a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracolink/link.htm +++ /dev/null @@ -1,334 +0,0 @@ - - - {$lang_insert_link_title} - - - - - - - - -
- - -
-
-
- {$lang_advlink_general_props} - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
 
 
 
- -
-
-
- - - -
-
- {$lang_advlink_advanced_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
-
-
-
-
- -
-
- {$lang_advlink_event_props} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/css/content.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/css/content.css deleted file mode 100644 index 064977e41f..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/css/content.css +++ /dev/null @@ -1,7 +0,0 @@ -.umbMacroHolder { - border: 1px dotted #cc0000; - background-image: url('../images/flash.gif'); - background-position: center; - background-repeat: no-repeat; - background-color: #ffffcc; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/editor_plugin.js deleted file mode 100644 index f7e09f2cf8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/editor_plugin.js +++ /dev/null @@ -1,266 +0,0 @@ -/** - * $RCSfile: editor_plugin_src.js,v $ - * $Revision: 1.12 $ - * $Date: 2006/02/22 20:06:23 $ - * - * @author Moxiecode - * @copyright Copyright 2004-2006, Moxiecode Systems AB, All rights reserved. - */ - -/* Import plugin specific language pack */ -tinyMCE.importPluginLanguagePack('umbracomacro', 'en,tr,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl'); // <- Add a comma separated list of all supported languages - -/**** - * Steps for creating a plugin from this template: - * - * 1. Change all "template" to the name of your plugin. - * 2. Remove all the callbacks in this file that you don't need. - * 3. Remove the popup.htm file if you don't need any popups. - * 4. Add your custom logic to the callbacks you needed. - * 5. Write documentation in a readme.txt file on how to use the plugin. - * 6. Upload it under the "Plugins" section at sourceforge. - * - ****/ - -// Singleton class -var TinyMCE_UmbracomacroPlugin = { - /** - * Returns information about the plugin as a name/value array. - * The current keys are longname, author, authorurl, infourl and version. - * - * @returns Name/value array containing information about the plugin. - * @type Array - */ - getInfo : function() { - return { - longname : 'umbracomacro', - author : 'Your name', - authorurl : 'http://www.yoursite.com', - infourl : 'http://www.yoursite.com/docs/template.html', - version : "1.0" - }; - }, - - /** - * Gets executed when a TinyMCE editor instance is initialized. - * - * @param {TinyMCE_Control} Initialized TinyMCE editor control instance. - */ - initInstance : function(inst) { - // You can take out plugin specific parameters - //alert("Initialization parameter:" + tinyMCE.getParam("template_someparam", false)); - - // Register custom keyboard shortcut - //inst.addShortcut('ctrl', 't', 'lang_template_desc', 'mceTemplate'); - if (!tinyMCE.settings['flash_skip_plugin_css']) - tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/umbracomacro/css/content.css"); - - }, - - /** - * Returns the HTML code for a specific control or empty string if this plugin doesn't have that control. - * A control can be a button, select list or any other HTML item to present in the TinyMCE user interface. - * The variable {$editor_id} will be replaced with the current editor instance id and {$pluginurl} will be replaced - * with the URL of the plugin. Language variables such as {$lang_somekey} will also be replaced with contents from - * the language packs. - * - * @param {string} cn Editor control/button name to get HTML for. - * @return HTML code for a specific control or empty string. - * @type string - */ - getControlHTML : function(cn) { - switch (cn) { - case "umbracomacro": - return tinyMCE.getButtonHTML(cn, 'lang_macro_desc', '{$pluginurl}/images/macro.gif', 'mceUmbracomacro', true); - } - - return ""; - }, - - /** - * Executes a specific command, this function handles plugin commands. - * - * @param {string} editor_id TinyMCE editor instance id that issued the command. - * @param {HTMLElement} element Body or root element for the editor instance. - * @param {string} command Command name to be executed. - * @param {string} user_interface True/false if a user interface should be presented. - * @param {mixed} value Custom value argument, can be anything. - * @return true/false if the command was executed by this plugin or not. - * @type - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - // Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser. - case "mceUmbracomacro": - // Open a popup window and send in some custom data in a window argument - var template = new Array(); - - /* UMBRACO CHANGE */ - template['file'] = '../../../..' + tinyMCE.settings["umbracoPath"] + '/plugins/tinymce/insertMacro.aspx?editor=true&umbPageId=' + umbPageId + '&umbVersionId=' + umbVersionId; - /* UMBRACO CHANGE END */ - template['width'] = 600; - template['height'] = 550; - - // Is selection a Macro - var inst = tinyMCE.getInstanceById(editor_id); - var focusElm = inst.getFocusElement(); - - // - var macroElement = null; - - if (focusElm != null) { - do { - if (focusElm.nodeName == "DIV" && tinyMCE.getAttrib(focusElm, 'class').indexOf('umbMacroHolder') >= 0) { - macroElement = focusElm; - inst.selection.selectNode(focusElm, true, true); - } - } while ((focusElm = focusElm.parentNode)); - - // is it Edit? - if (macroElement != null) { - var el = macroElement; - template['file'] = '../../../../umbraco/plugins/tinymce/insertMacro.aspx?mode=edit&'; - - var attrString = ""; - var attrName = ""; - - - for (var i=0; i 0) - attrString = attrString.substr(0, attrString.length-1); - - template['file'] += attrString; - } - // custom macro toolbar command - else if (value != null && value != '') { - template['file'] += '&umb_macroAlias=' + value; - } - - } - - tinyMCE.openWindow(template, {editor_id : editor_id, scrollbars : "yes", some_custom_arg : "somecustomdata"}); - - // Let TinyMCE know that something was modified - tinyMCE.triggerNodeChange(false); - return true; - } - - // Pass to next handler in chain - return false; - }, - - /** - * Gets called ones the cursor/selection in a TinyMCE instance changes. This is useful to enable/disable - * button controls depending on where the user are and what they have selected. This method gets executed - * alot and should be as performance tuned as possible. - * - * @param {string} editor_id TinyMCE editor instance id that was changed. - * @param {HTMLNode} node Current node location, where the cursor is in the DOM tree. - * @param {int} undo_index The current undo index, if this is -1 custom undo/redo is disabled. - * @param {int} undo_levels The current undo levels, if this is -1 custom undo/redo is disabled. - * @param {boolean} visual_aid Is visual aids enabled/disabled ex: dotted lines on tables. - * @param {boolean} any_selection Is there any selection at all or is there only a cursor. - */ - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - if (node == null) - return; - - do { - if (node.nodeName == "DIV" && tinyMCE.getAttrib(node, 'class').indexOf('umbMacroHolder') >= 0) { - tinyMCE.switchClass(editor_id + '_umbracomacro', 'mceButtonSelected'); - return true; - } - } while ((node = node.parentNode)); - - tinyMCE.switchClass(editor_id + '_umbracomacro', 'mceButtonNormal'); - - return true; - }, - - /** - * Gets called when a TinyMCE editor instance gets filled with content on startup. - * - * @param {string} editor_id TinyMCE editor instance id that was filled with content. - * @param {HTMLElement} body HTML body element of editor instance. - * @param {HTMLDocument} doc HTML document instance. - */ - setupContent : function(editor_id, body, doc) { - }, - - /** - * Gets called when the contents of a TinyMCE area is modified, in other words when a undo level is - * added. - * - * @param {TinyMCE_Control} inst TinyMCE editor area control instance that got modified. - */ - onChange : function(inst) { - }, - - /** - * Gets called when TinyMCE handles events such as keydown, mousedown etc. TinyMCE - * doesn't listen on all types of events so custom event handling may be required for - * some purposes. - * - * @param {Event} e HTML editor event reference. - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - handleEvent : function(e) { - - return true; // Pass to next handler - }, - - /** - * Gets called when HTML contents is inserted or retrived from a TinyMCE editor instance. - * The type parameter contains what type of event that was performed and what format the content is in. - * Possible valuses for type is get_from_editor, insert_to_editor, get_from_editor_dom, insert_to_editor_dom. - * - * @param {string} type Cleanup event type. - * @param {mixed} content Editor contents that gets inserted/extracted can be a string or DOM element. - * @param {TinyMCE_Control} inst TinyMCE editor instance control that performes the cleanup. - * @return New content or the input content depending on action. - * @type string - */ - cleanup : function(type, content, inst) { - return content; - switch (type) { - case "get_from_editor": - break; - case "insert_to_editor": - break; - case "get_from_editor_dom": - break; - case "insert_to_editor_dom": - break; - } - return content; - }, - - // Private plugin internal methods - - /** - * This is just a internal plugin method, prefix all internal methods with a _ character. - * The prefix is needed so they doesn't collide with future TinyMCE callback functions. - * - * @param {string} a Some arg1. - * @param {string} b Some arg2. - * @return Some return. - * @type string - */ - _someInternalFunction : function(a, b) { - return 1; - } -}; - -// Adds the plugin class to the list of available TinyMCE plugins -tinyMCE.addPlugin("umbracomacro", TinyMCE_UmbracomacroPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/Thumbs.db b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/Thumbs.db deleted file mode 100644 index 9492364925..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/Thumbs.db and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/macro.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/macro.gif deleted file mode 100644 index 4015875b38..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/macro.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/template.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/template.gif deleted file mode 100644 index 1ab5da4461..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/images/template.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/jscripts/script.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/jscripts/script.js deleted file mode 100644 index 4f08077268..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/jscripts/script.js +++ /dev/null @@ -1,107 +0,0 @@ -var url = tinyMCE.getParam("flash_external_list_url"); -if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById("filebrowsercontainer").innerHTML = getBrowserHTML('filebrowser','file','flash','flash'); - - // Image list outsrc - var html = getFlashListHTML('filebrowser','file','flash','flash'); - if (html == "") - document.getElementById("linklistrow").style.display = 'none'; - else - document.getElementById("linklistcontainer").innerHTML = html; - - var formObj = document.forms[0]; - var swffile = tinyMCE.getWindowArg('swffile'); - var swfwidth = '' + tinyMCE.getWindowArg('swfwidth'); - var swfheight = '' + tinyMCE.getWindowArg('swfheight'); - - if (swfwidth.indexOf('%')!=-1) { - formObj.width2.value = "%"; - formObj.width.value = swfwidth.substring(0,swfwidth.length-1); - } else { - formObj.width2.value = "px"; - formObj.width.value = swfwidth; - } - - if (swfheight.indexOf('%')!=-1) { - formObj.height2.value = "%"; - formObj.height.value = swfheight.substring(0,swfheight.length-1); - } else { - formObj.height2.value = "px"; - formObj.height.value = swfheight; - } - - formObj.file.value = swffile; - formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true); - - selectByValue(formObj, 'linklist', swffile); - - // Handle file browser - if (isVisible('filebrowser')) - document.getElementById('file').style.width = '230px'; - - // Auto select flash in list - if (typeof(tinyMCEFlashList) != "undefined" && tinyMCEFlashList.length > 0) { - for (var i=0; i 0) { - var html = ""; - - html += ''; - - return html; - } - - return ""; -} - -function insertFlash() { - var formObj = document.forms[0]; - var html = ''; - var file = formObj.file.value; - var width = formObj.width.value; - var height = formObj.height.value; - if (formObj.width2.value=='%') { - width = width + '%'; - } - if (formObj.height2.value=='%') { - height = height + '%'; - } - - if (width == "") - width = 100; - - if (height == "") - height = 100; - - html += '' - + '' + file + ''; - - tinyMCEPopup.execCommand("mceInsertContent", true, html); - tinyMCE.selectedInstance.repaint(); - - tinyMCEPopup.close(); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/langs/en.js deleted file mode 100644 index 8f95aca617..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/langs/en.js +++ /dev/null @@ -1,9 +0,0 @@ -// UK lang variables - -/* Remember to namespace the language parameters lang__ */ - -tinyMCE.addToLang('',{ -template_title : 'This is just a template popup', -template_desc : 'This is just a template button', -lang_macro_desc : 'Insert/Edit Macro' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/popup.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/popup.htm deleted file mode 100644 index b07467fa2d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/popup.htm +++ /dev/null @@ -1,48 +0,0 @@ - - - {$lang_template_title} - - - - - -
-

{$lang_template_title}

- - -
- The selected element name: -
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/readme.txt deleted file mode 100644 index 2ee1505cdb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/umbracomacro/readme.txt +++ /dev/null @@ -1 +0,0 @@ -This is a template/tutorial plugin that where created to help you in the development of own plugins for TinyMCE. \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/editor_plugin.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/editor_plugin.js deleted file mode 100644 index 9ab93cf561..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/editor_plugin.js +++ /dev/null @@ -1 +0,0 @@ -var TinyMCE_ZoomPlugin={getInfo:function(){return{longname:'Zoom',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_zoom.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(control_name){if(!tinyMCE.isMSIE||tinyMCE.isMSIE5_0||tinyMCE.isOpera)return"";switch(control_name){case"zoom":return''}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceZoom":tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom=value;tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom=value;return true}return false}};tinyMCE.addPlugin("zoom",TinyMCE_ZoomPlugin); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/editor_plugin_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/editor_plugin_src.js deleted file mode 100644 index e36726ec68..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/editor_plugin_src.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -var TinyMCE_ZoomPlugin = { - getInfo : function() { - return { - longname : 'Zoom', - author : 'Moxiecode Systems AB', - authorurl : 'http://tinymce.moxiecode.com', - infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_zoom.html', - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion - }; - }, - - /** - * Returns the HTML contents of the zoom control. - */ - getControlHTML : function(control_name) { - if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0 || tinyMCE.isOpera) - return ""; - - switch (control_name) { - case "zoom": - return ''; - } - - return ""; - }, - - /** - * Executes the mceZoom command. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceZoom": - tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value; - tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value; - return true; - } - - // Pass to next handler in chain - return false; - } -}; - -tinyMCE.addPlugin("zoom", TinyMCE_ZoomPlugin); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/readme.txt b/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/readme.txt deleted file mode 100644 index 4fdb78aecd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/plugins/zoom/readme.txt +++ /dev/null @@ -1 +0,0 @@ -Check the TinyMCE documentation for details on this plugin. diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/about.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/about.htm deleted file mode 100644 index 6918488a23..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/about.htm +++ /dev/null @@ -1,52 +0,0 @@ - - - {$lang_about_title} - - - - - - - - -
-
-

{$lang_about_title}

-

Version: {$tinymce_version} ({$tinymce_releasedate})

-

TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL - by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

-

Copyright © 2003-2007, Moxiecode Systems AB, All rights reserved.

-

For more information about this software visit the TinyMCE website.

- -
-
- -
-
-

{$lang_loaded_plugins}

- -
-
- -

 

-
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/anchor.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/anchor.htm deleted file mode 100644 index 53d7969f05..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/anchor.htm +++ /dev/null @@ -1,33 +0,0 @@ - - - {$lang_insert_anchor_title} - - - - - -
- - - - - - - - - -
{$lang_insert_anchor_title}
{$lang_insert_anchor_name}:
- -
-
- -
- -
- -
-
- -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/charmap.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/charmap.htm deleted file mode 100644 index 9aed1d4b5c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/charmap.htm +++ /dev/null @@ -1,53 +0,0 @@ - - - {$lang_theme_charmap_title} - - - - - - - - - - - - - - - - - -
{$lang_theme_charmap_title}
- - - - - - - - - -
 
 
-
- - - - - - - - - - - - - - - - -
HTML-Code
 
 
NUM-Code
 
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/color_picker.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/color_picker.htm deleted file mode 100644 index 3f5a198383..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/color_picker.htm +++ /dev/null @@ -1,13 +0,0 @@ - - - {$lang_theme_colorpicker_title} - - - - - -
- -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_content.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_content.css deleted file mode 100644 index 182e791211..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_content.css +++ /dev/null @@ -1,58 +0,0 @@ -/* This file contains the CSS data for the editable area(iframe) of TinyMCE */ -/* You can extend this CSS by adding your own CSS file with the the content_css option */ - -body, td, pre { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; -} - -body { - background-color: #FFFFFF; -} - -.mceVisualAid { - border: 1px dashed #BBBBBB !important; -} - -div.mceVisualAid { - background-image:url('../images/spacer.gif'); - visibility: visible !important; -} - -.mceItemAnchor { - width: 12px; - line-height: 6px; - overflow: hidden; - padding-left: 12px; - background-image: url('../images/anchor_symbol.gif'); - background-position: bottom; - background-repeat: no-repeat; -} - -/* Important is needed in Gecko browsers inorder to style links */ -/* -a { - color: green !important; -} -*/ - -/* Style selection range colors in Gecko browsers */ -/* -::-moz-selection { - background-color: red; - color: green; -} -*/ - -/* MSIE specific */ - -* html body { - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_popup.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_popup.css deleted file mode 100644 index f8d3550cec..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_popup.css +++ /dev/null @@ -1,331 +0,0 @@ -/* This file contains the CSS data for all popups in TinyMCE */ - -body { - background-color: #F0F0EE; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; - margin: 8px; -} - -td { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; -} - -input { - background: #FFFFFF; - border: 1px solid #cccccc; -} - -td, input, select, textarea { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; -} - -input, select, textarea { - border: 1px solid #808080; -} - -.input_noborder { - border: 0; -} - -#insert, .updateButton { - font-weight: bold; - width: 90px; - height: 21px; - border: 0; - background-image: url('../images/insert_button_bg.gif'); - cursor: pointer; -} - -#cancel { - font-weight: bold; - width: 90px; - height: 21px; - border: 0; - background-image: url('../images/cancel_button_bg.gif'); - cursor: pointer; -} - -/* Mozilla only style */ -html>body #insert, html>body #cancel { - padding-bottom: 2px; -} - -.title { - font-size: 12px; - font-weight: bold; - color: #2B6FB6; -} - -table.charmap { - border-style: solid; - border-width: 1px; - border-color: #AAAAAA; -} - -td.charmap, td.charmapOver { - color: #000000; - border-color: #AAAAAA; - border-style: solid; - border-width: 1px; - text-align: center; - font-size: 12px; -} - -td.charmapOver { - background-color: #CCCCCC; - cursor: default; -} - -a.charmap { - color: #000000; - text-decoration: none -} - -.wordWrapCode { - vertical-align: middle; - border: 1px none #000000; - background-color: transparent; -} - -input.radio { - border: 1px none #000000; - background-color: transparent; - vertical-align: middle; -} - -input.checkbox { - border: 1px none #000000; - background-color: transparent; - vertical-align: middle; -} - -.mceButtonNormal, .mceButtonOver, .mceButtonDown, .mceSeparator, .mceButtonDisabled, .mceButtonSelected { - margin-left: 1px; -} - -.mceButtonNormal { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; -} - -.mceButtonOver { - border: 1px solid #0A246A; - cursor: default; - background-color: #B6BDD2; -} - -.mceButtonDown { - cursor: default; - border: 1px solid #0A246A; - background-color: #8592B5; -} - -.mceButtonDisabled { - filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); - -moz-opacity:0.3; - opacity: 0.3; - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; -} - -.mceActionPanel { - margin-top: 5px; -} - -/* Tabs classes */ - -.tabs { - float: left; - width: 100%; - line-height: normal; - background-image: url("../images/xp/tabs_bg.gif"); -} - -.tabs ul { - margin: 0; - padding: 0 0 0; - list-style: none; -} - -.tabs li { - float: left; - background: url("../images/xp/tab_bg.gif") no-repeat left top; - margin: 0; - margin-left: 0; - margin-right: 2px; - padding: 0 0 0 10px; - line-height: 18px; -} - -.tabs li.current { - background: url("../images/xp/tab_sel_bg.gif") no-repeat left top; - margin-right: 2px; -} - -.tabs span { - float: left; - display: block; - background: url("../images/xp/tab_end.gif") no-repeat right top; - padding: 0px 10px 0 0; -} - -.tabs .current span { - background: url("../images/xp/tab_sel_end.gif") no-repeat right top; -} - -.tabs a { - text-decoration: none; - font-family: Verdana, Arial; - font-size: 10px; -} - -.tabs a:link, .tabs a:visited, .tabs a:hover { - color: black; -} - -.tabs a:hover { -} - -.tabs .current { -} - -.tabs .current a, .tabs .current a:link, .tabs .current a:visited { -} - -.panel_wrapper div.panel { - display: none; -} - -.panel_wrapper div.current { - display: block; - width: 100%; - height: 300px; - overflow: visible; /* Should be auto but that breaks Safari */ -} - -.panel_wrapper { - border: 1px solid #919B9C; - border-top: 0px; - padding: 10px; - padding-top: 5px; - clear: both; - background-color: white; -} - -fieldset { - border: 1px solid #919B9C; - font-family: Verdana, Arial; - font-size: 10px; - padding: 0; - margin: 0; - padding: 4px; -} - -legend { - color: #2B6FB6; - font-weight: bold; -} - -.properties { - width: 100%; -} - -.properties .column1 { -} - -.properties .column2 { - text-align: left; -} - -a:link, a:visited { - color: black; -} - -a:hover { - color: #2B6FB6; -} - -#plugintable thead { - font-weight: bold; - background-color: #DDDDDD; -} - -#plugintable, #about #plugintable td { - border: 1px solid #919B9C; -} - -#plugintable { - width: 99%; - margin-top: 10px; -} - -#pluginscontainer { - height: 290px; - overflow: auto; -} - -/* MSIE Specific styles */ - -* html .panel_wrapper { - width: 100%; -} - -.column { - float: left; -} - -h1, h2, h3, h4 { - color: #2B6FB6; - margin: 0; - padding: 0; - padding-top: 5px; -} - -h3 { - font-size: 14px; -} - -#link .panel_wrapper, #link div.current { - height: 125px; -} - -#image .panel_wrapper, #image div.current { - height: 190px; -} - -label.msg { display: none; } -label.invalid { color: #EE0000; display: inline; } -input.invalid { border: 1px solid #EE0000; } - -/* Disables the advanced tab in the table plugin. */ -/* -#table #advanced_tab { - display: none; -} -*/ - -/* Disables the border input field and label in the table plugin. */ -/* -#table #border, #table #borderlabel { - display: none; -} -*/ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_ui.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_ui.css deleted file mode 100644 index d6afff51e1..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/css/editor_ui.css +++ /dev/null @@ -1,95 +0,0 @@ -/* This file contains the CSS data for the editor UI of TinyMCE instances */ - -.mceToolbarTop a, .mceToolbarTop a:visited, .mceToolbarTop a:hover, .mceToolbarBottom a, .mceToolbarBottom a:visited, .mceToolbarBottom a:hover {border: 0; margin: 0; padding: 0; background: transparent;} -.mceSeparatorLine {border: 0; padding: 0; margin-left: 4px; margin-right: 2px;} -.mceSelectList {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 7pt !important; font-weight: normal; margin-top: 3px; padding: 0; display: inline; vertical-align: top; background-color: #F0F0EE;} -.mceLabel, .mceLabelDisabled {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt;} -.mceLabel {color: #000000;} -.mceLabelDisabled {cursor: text; color: #999999;} -.mceEditor {background: #F0F0EE; border: 1px solid #cccccc; padding: 0; margin: 0;} -.mceEditorArea { font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; background: #FFFFFF; padding: 0; margin: 0; } -.mceToolbarTop, .mceToolbarBottom {background: #F0F0EE; line-height: 1px; font-size: 1px;} -.mceToolbarTop {border-bottom: 1px solid #cccccc; padding-bottom: 1px;} -.mceToolbarBottom {border-top: 1px solid #cccccc;} -.mceToolbarContainer {position: relative; left: 0; top: 0; display: block;} -.mceStatusbarTop, .mceStatusbarBottom, .mceStatusbar {height: 20px;} -.mceStatusbarTop .mceStatusbarPathText, .mceStatusbarBottom .mceStatusbarPathText, .mceStatusbar .mceStatusbarPathText {font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt; padding: 2px; line-height: 16px; overflow: visible;} -.mceStatusbarTop {border-bottom: 1px solid #cccccc;} -.mceStatusbarBottom {border-top: 1px solid #cccccc;} -.mceStatusbar {border-bottom: 1px solid #cccccc;} -.mcePathItem, .mcePathItem:link, .mcePathItem:visited, .mcePathItem:hover {text-decoration: none; font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; font-size: 9pt; color: #000000;} -.mcePathItem:hover {text-decoration: underline;} -.mceStatusbarPathText {float: left;} -.mceStatusbarResize {float: right; background-image: url('../images/statusbar_resize.gif'); background-repeat: no-repeat; width: 11px; height: 20px; cursor: se-resize;} -.mceResizeBox {width: 10px; height: 10px; display: none; border: 1px dotted gray; margin: 0; padding: 0;} -.mceEditorIframe {border: 0;} - -/* Button CSS rules */ - -a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {width: 20px; height: 20px; cursor: default; margin-top: 1px; margin-left: 3px;} -a.mceButtonDisabled img {border: 0 !important;} -a.mceButtonSelected img {border: 1px solid #6779AA !important; background-color: #D4D5D8;} -a.mceButtonNormal img:hover, a.mceButtonSelected img:hover {border: 1px solid #0A246A !important; cursor: default; background-color: #B6BDD2;} -a.mceButtonDisabled img {-moz-opacity:0.3; opacity: 0.3; border: 1px solid #F0F0EE !important; cursor: default;} -a.mceTiledButton img {background-image: url('../images/buttons.gif'); background-repeat: no-repeat;} - -/* Menu button CSS rules */ - -span.mceMenuButton img, span.mceMenuButtonSelected img {border: 1px solid #F0F0EE; margin-left: 1px;} -span.mceMenuButtonSelected img {border: 1px solid #6779AA; background-color: #B6BDD2;} -span.mceMenuButtonSelected img.mceMenuButton {border: 1px solid #F0F0EE; background-color: transparent;} -span.mceMenuButton img.mceMenuButton, span.mceMenuButtonSelected img.mceMenuButton {border-left: 0; margin-left: 0;} -span.mceMenuButton:hover img, span.mceMenuButtonSelected:hover img {border: 1px solid #0A246A; background-color: #B6BDD2;} -span.mceMenuButton:hover img.mceMenuButton, span.mceMenuButtonSelected:hover img.mceMenuButton {border-left: 0;} -span.mceMenuButtonFocus img {border: 1px solid gray; border-right: 0; margin-left: 1px; background-color: #F5F4F2;} -span.mceMenuButtonFocus img.mceMenuButton {border: 1px solid gray; border-left: 1px solid #F5F4F2; margin-left: 0;} -span.mceMenuHover img {border: 1px solid #0A246A; background-color: #B6BDD2;} -span.mceMenuButtonSelected.mceMenuHover img.mceMenuButton {border: 1px solid #0A246A; background-color: #B6BDD2; border-left: 0;} - -/* Menu */ - -.mceMenu {position: absolute; left: 0; top: 0; display: none; z-index: 100; background-color: white; border: 1px solid gray; font-weight: normal;} -.mceMenu a, .mceMenuTitle, .mceMenuDisabled {display: block; width: 100%; text-decoration: none; background-color: white; font-family: Tahoma, Verdana, Arial, Helvetica; font-size: 11px; line-height: 20px; color: black;} -.mceMenu a:hover {background-color: #B6BDD2; color: black; text-decoration: none !important;} -.mceMenu span {padding-left: 10px; padding-right: 10px; display: block; line-height: 20px;} -.mceMenuSeparator {border-bottom: 1px solid gray; background-color: gray; height: 1px;} -.mceMenuTitle span {padding-left: 5px;} -.mceMenuTitle {background-color: #DDDDDD; font-weight: bold;} -.mceMenuDisabled {color: gray;} -span.mceMenuSelectedItem {background-image: url('../images/menu_check.gif'); background-repeat: no-repeat; background-position: 5px 8px; padding-left: 20px;} -span.mceMenuCheckItem {padding-left: 20px;} -span.mceMenuLine {display: block; position: absolute; left: 0; top: -1px; background-color: #F5F4F2; width: 30px; height: 1px; overflow: hidden; padding-left: 0; padding-right: 0;} -.mceColors table, .mceColors td {margin: 0; padding: 2px;} -a.mceMoreColors {width: 130px; margin: 0; padding: 0; margin-left: 3px; margin-bottom: 3px; text-align: center; border: 1px solid white;} -.mceColorPreview {position: absolute; overflow:hidden; left: 0; top: 0; margin-left: 3px; margin-top: 15px; width: 16px; height: 4px; background-color: red;} -a.mceMoreColors:hover {border: 1px solid #0A246A;} -.mceColors td a {width: 9px; height: 9px; overflow: hidden; border: 1px solid #808080;} - -/* MSIE 6 specific rules */ - -* html a.mceButtonNormal img, * html a.mceButtonSelected img, * html a.mceButtonDisabled img {border: 0 !important; margin-top: 2px; margin-bottom: 1px;} -* html a.mceButtonDisabled img {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); border: 0 !important;} -* html a.mceButtonNormal, * html a.mceButtonSelected {cursor: default;} -* html a.mceButtonSelected {border: 1px solid #6779AA !important; background-color: #D4D5D8;} -* html a.mceButtonNormal:hover, * html a.mceButtonSelected:hover {border: 1px solid #0A246A !important; background-color: #B6BDD2; cursor: default;} -* html .mceSelectList {margin-top: 2px;} -* html span.mceMenuButton, * html span.mceMenuButtonFocus {position: relative; left: 0; top: 0;} -* html span.mceMenuButton img, * html span.mceMenuButtonSelected img, * html span.mceMenuButtonFocus img {position: relative; top: 1px;} -* html a.mceMoreColors {width: 132px;} -* html .mceColors td a {width: 10px; height: 10px;} -* html .mceColorPreview {margin-left: 2px; margin-top: 14px;} - -/* MSIE 7 specific rules */ - -*:first-child+html a.mceButtonNormal img, *:first-child+html a.mceButtonSelected img, *:first-child+html a.mceButtonDisabled img {border: 0 !important; margin-top: 2px; margin-bottom: 1px;} -*:first-child+html a.mceButtonDisabled img {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); border: 0 !important;} -*:first-child+html a.mceButtonDisabled {border: 1px solid #F0F0EE !important;} -*:first-child+html a.mceButtonNormal, *:first-child+html a.mceButtonSelected {cursor: default;} -*:first-child+html a.mceButtonSelected {border: 1px solid #6779AA !important; background-color: #D4D5D8;} -*:first-child+html a.mceButtonNormal:hover, *:first-child+html a.mceButtonSelected:hover {border: 1px solid #0A246A !important; background-color: #B6BDD2; cursor: default;} -*:first-child+html .mceSelectList {margin-top: 2px;} -*:first-child+html span.mceMenuButton, *:first-child+html span.mceMenuButtonFocus {position: relative; left: 0; top: 0;} -*:first-child+html span.mceMenuButton img, *:first-child+html span.mceMenuButtonSelected img, *:first-child+html span.mceMenuButtonFocus img {position: relative; top: 1px;} -*:first-child+html a.mceMoreColors {width: 132px;} -*:first-child+html .mceColors td a {width: 10px; height: 10px;} -*:first-child+html .mceColorPreview {margin: 0; padding-left: 4px; margin-top: 14px; width: 14px;} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/about.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/about.htm deleted file mode 100644 index 3a0c4437aa..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/about.htm +++ /dev/null @@ -1,31 +0,0 @@ - - -About TinyMCE - - - - - - - - - - - -
-
-TinyMCE is a small WYSIWYG editor control for web browsers such as MSIE or Mozilla -that enables you to edit HTML contents in a more user friendly way. It has common -features that are found in most word processors and should not be difficult to -use.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/common_buttons.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/common_buttons.htm deleted file mode 100644 index 5fc9e5f3cb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/common_buttons.htm +++ /dev/null @@ -1,162 +0,0 @@ - - -Common buttons - - - - - - - - - - - -
-
-Below is a short description about each button. -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Bold text iconBold text style (Ctrl+B).
Italic text iconItalic text style (Ctrl+I).
Underline text icon.Underline text style (Ctrl+U).
Strikethrough text icon.Strikethrough text style.
Align left icon.Align left.
Align center icon.Align center.
Align right icon.Align right.
Align full icon.Align full.
Unordered list/bullet list icon.Unordered list/bullet list.
Ordered list/numbered list icon.Ordered list/numbered list
Outdent/decrease indentation icon.Outdent/decrease indentation.
Indent/increase indentation icon.Indent/increase indentation.
Undo the last operation.Undo the last operation (Ctrl+Z).
Redo the last operation icon.Redo the last operation (Ctrl+Y).
Insert a new link icon.Insert a new link, read more about this function in the Insert - link section.
Unlinks the current selection icon.Unlinks the current selection/removes all selected links.
Insert a new anchor icon.Insert a new anchor, read more about this function in the Insert anchor section.
Insert a new image icon.Insert a new image, read more about this function in the Insert - image section.
Cleanup code icon.Cleanup code/Removes unwanted formating. This function is useful when - you copy contents from for example a office product.
Show help icon.Shows this help window.
Source code editor icon.Opens HTML source code editor.
Insert table icon.Inserts a new table at the current location.
Adds a row above icon.Adds a row above the current one.
Adds a row under icon.Adds a row under the current one.
Remove row icon.Removes the row.
Add column before icon.Adds a column before the current one.
Add column after icon.Adds a column after the current one.
Remove column icon.Removes the current column.
Insert horizontal ruler icon.Inserts a new horizontal ruler
Remove formatting icon.Removes formatting from the selection.
Subscript icon.Makes the selection to be subscript.
Superscript icon.Makes the selection to be superscripted.
-
-
- - - - - - - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/create_accessible_content.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/create_accessible_content.htm deleted file mode 100644 index e72de1352d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/create_accessible_content.htm +++ /dev/null @@ -1,45 +0,0 @@ - - -Insert table button - - - - - - - - - - - -
-

TinyMCE can create HTML content that will be accessible to all users, including those with disabilities using assistive technologies, as well as those using text-based browsers, or those browsing the Web with images turned off.

- -

Things you can do to make your content accessible:

-
    -
  1. Include an Image Description: Blind users, or others who are unable to view images, will rely on the Image Description (or Alt text) to take the place of the image. If an image contains no meaning, such as a decoration or a spacer image, leave the Image Description empty. TinyMCE will then insert an empty Alt text attribute that will force assistive technologies to ignore the image.

  2. - -
  3. Add Scope to data table header cells: In the table cell editor dialog window, choose a Scope when creating Header cells so the column or row label in that cell becomes explicitely associated with its data cells. Table cell headers will then be announced with each data cell, making it easier for blind users using a screen reader to understand what the content of each cell represents.

  4. - -
  5. Structure content with properly nested headings: In the format selection menu choose Heading 1 to Heading 6 to represent headings in your content, rather than using other font formating options. Blind users using a screen reader can then extract the headings from the page to generate a summary of the content it contains, and use those headings to navigate quickly to subsections within the page.

  6. - -
  7. Include alternate content: Create an alternate page for non-HTML content such as Flash, Java applets, or embedded movies. This might be a static image, with a description of the image, and a description of the content that would have appeared in its place. An alternate HTML page could also be created, and a link to it included next to the non-HTML object. This will ensure that the content will be accessible to users of assistive technologies that can not view or play the content, and ensure the content will be available to those who do not have the appropriate plugin or helper application installed.

  8. - -
  9. Check accessbility: When the AChecker plugin is installed with TinyMCE, click on the Check Accessibility button to generate a report of potential accessibility problems.

  10. - -
- -

See the AChecker Web Site for further details about creating content that will be accessible to all users.
-

- -
- - - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_anchor_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_anchor_window.gif deleted file mode 100644 index 5b5f528dd5..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_anchor_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_image_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_image_window.gif deleted file mode 100644 index cdc617eab3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_image_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_link_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_link_window.gif deleted file mode 100644 index 7bad7583ab..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_link_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_table_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_table_window.gif deleted file mode 100644 index 6a032c5ae8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/images/insert_table_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/index.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/index.htm deleted file mode 100644 index 82bd8db592..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/index.htm +++ /dev/null @@ -1,27 +0,0 @@ - - -Help Index - - - - - - - - - -
-
-Click the links below to go to the different help sections. - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_anchor_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_anchor_button.htm deleted file mode 100644 index 3d2f28d881..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_anchor_button.htm +++ /dev/null @@ -1,32 +0,0 @@ - - -Insert anchor button - - - - - - - - - - - -
-
-This button opens a new window with the insert/edit anchor function.
-
-Anchor dialog/window
-
-There are one field in this window, this is where you enter the name of you anchor point. Remember the anchor name needs to be unique.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_image_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_image_button.htm deleted file mode 100644 index 2392c22ee8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_image_button.htm +++ /dev/null @@ -1,65 +0,0 @@ - - -Insert image button - - - - - - - - - - - -
-
-The insert image button opens the window shown below.
-
-Insert image dialog/window
-
-You simply enter a URL to the image you want to link to and enter a image description, -this is then displayed as an alternative text descripton of the image on the page.
-
-Field descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Image URL URL/path to the image.
Image description Alternative description of image contents.
DimentionsImage width/height.
AlignmentImage alignment, useful when wrapping text around images.
BorderBorder thickness.
VSpaceVertical space, useful when wrapping text around images.
HSpaceHorizontal space, useful when wrapping text around images.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_link_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_link_button.htm deleted file mode 100644 index 8183cea210..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_link_button.htm +++ /dev/null @@ -1,33 +0,0 @@ - - -Insert link button - - - - - - - - - - - -
-
-This button opens a new window with the insert/edit link function.
-
-Insert link dialog/window
-
-There are two fields in this window the first one "Link URL" is the -URL of the link. The target enables you to select how the link is to be opened.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_table_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_table_button.htm deleted file mode 100644 index dc71e6f0dd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/insert_table_button.htm +++ /dev/null @@ -1,71 +0,0 @@ - - -Insert table button - - - - - - - - - - - -
-
-The insert table button opens the window shown below. This action enables you to create tables.
-
-Image of table window
-
-Field descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ColumnsNumber of columns in the table.
RowsNumber of rows in the new table.
CellpaddingCellpadding of the table .
CellspacingCellspacing of the table .
AlignmentTable alignment .
BorderBorder thinkness of table.
WidthWidth in pixels of table .
HeightHeight in pixels of table.
ClassStyle or CSS class of table.
-
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/style.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/style.css deleted file mode 100644 index ebc05380ec..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/docs/en/style.css +++ /dev/null @@ -1,28 +0,0 @@ -body { background-color: #FFFFFF; } -body, td, .content { font-family: Verdana, Arial, helvetica, sans-serif; font-size: 12px; } -.title { font-family: Verdana, Arial, helvetica, sans-serif; font-size: 16px; font-weight: bold; } -.subtitle { font-size: 12px; font-weight: bold; } - -.toc_ul, .toc_li { margin-left: 8px; line-height: 16px; } -.step_ol, .step_li { margin-left: 11px; line-height: 16px; } -img { border: #000000 solid 1px; } - -a:visited { color: #666666; text-decoration: underline; } -a:active { color: #666666; text-decoration: underline; } -a:hover { color: #666666; text-decoration: underline; } -a { color: #666666; text-decoration: underline; } - -.pageheader { border: #E0E0E0 solid 1px; } -.pagefooter { border: #E0E0E0 solid 1px; } -.sample { background-color: #FFFFFF; border: #000000 solid 1px; } -.samplecontent { font-size: 10px; } - -.code { background-color: #FFFFFF; border: #000000 solid 1px; } -.codecontent { font-size: 10px; } -.codecontent a:visited { color: #666666; text-decoration: none; font-weight: bold } -.codecontent a:active { color: #666666; text-decoration: none; font-weight: bold } -.codecontent a:hover { color: #666666; text-decoration: none; font-weight: bold } -.codecontent a { color: #666666; text-decoration: none; font-weight: bold } - -hr { height: 1px; } - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/editor_template.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/editor_template.js deleted file mode 100644 index f676205a4b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/editor_template.js +++ /dev/null @@ -1,80 +0,0 @@ -tinyMCE.importThemeLanguagePack('advanced');var TinyMCE_AdvancedTheme={_defColors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",_autoImportCSSClasses:true,_resizer:{},_buttons:[['bold','{$lang_bold_img}','lang_bold_desc','Bold'],['italic','{$lang_italic_img}','lang_italic_desc','Italic'],['underline','{$lang_underline_img}','lang_underline_desc','Underline'],['strikethrough','strikethrough.gif','lang_striketrough_desc','Strikethrough'],['justifyleft','justifyleft.gif','lang_justifyleft_desc','JustifyLeft'],['justifycenter','justifycenter.gif','lang_justifycenter_desc','JustifyCenter'],['justifyright','justifyright.gif','lang_justifyright_desc','JustifyRight'],['justifyfull','justifyfull.gif','lang_justifyfull_desc','JustifyFull'],['bullist','bullist.gif','lang_bullist_desc','InsertUnorderedList'],['numlist','numlist.gif','lang_numlist_desc','InsertOrderedList'],['outdent','outdent.gif','lang_outdent_desc','Outdent'],['indent','indent.gif','lang_indent_desc','Indent'],['cut','cut.gif','lang_cut_desc','Cut'],['copy','copy.gif','lang_copy_desc','Copy'],['paste','paste.gif','lang_paste_desc','Paste'],['undo','undo.gif','lang_undo_desc','Undo'],['redo','redo.gif','lang_redo_desc','Redo'],['link','link.gif','lang_link_desc','mceLink',true],['unlink','unlink.gif','lang_unlink_desc','unlink'],['image','image.gif','lang_image_desc','mceImage',true],['cleanup','cleanup.gif','lang_cleanup_desc','mceCleanup'],['help','help.gif','lang_help_desc','mceHelp'],['code','code.gif','lang_theme_code_desc','mceCodeEditor'],['hr','hr.gif','lang_theme_hr_desc','inserthorizontalrule'],['removeformat','removeformat.gif','lang_theme_removeformat_desc','removeformat'],['sub','sub.gif','lang_theme_sub_desc','subscript'],['sup','sup.gif','lang_theme_sup_desc','superscript'],['forecolor','forecolor.gif','lang_theme_forecolor_desc','forecolor',true],['backcolor','backcolor.gif','lang_theme_backcolor_desc','HiliteColor',true],['charmap','charmap.gif','lang_theme_charmap_desc','mceCharMap'],['visualaid','visualaid.gif','lang_theme_visualaid_desc','mceToggleVisualAid'],['anchor','anchor.gif','lang_theme_anchor_desc','mceInsertAnchor'],['newdocument','newdocument.gif','lang_newdocument_desc','mceNewDocument']],_buttonMap:'anchor,backcolor,bold,bullist,charmap,cleanup,code,copy,cut,forecolor,help,hr,image,indent,italic,justifycenter,justifyfull,justifyleft,justifyright,link,newdocument,numlist,outdent,paste,redo,removeformat,strikethrough,sub,sup,underline,undo,unlink,visualaid,advhr,ltr,rtl,emotions,flash,fullpage,fullscreen,iespell,insertdate,inserttime,pastetext,pasteword,selectall,preview,print,save,replace,search,table,cell_props,delete_col,delete_row,col_after,col_before,row_after,row_before,merge_cells,row_props,split_cells,delete_table',getControlHTML:function(button_name){var i,x,but;for(i=0;i4?but[4]:false),(but.length>5?but[5]:null));if(but[0]==button_name)return tinyMCE.getButtonHTML(but[0],but[2],'{$themeurl}/images/'+but[1],but[3],(but.length>4?but[4]:false),(but.length>5?but[5]:null))}switch(button_name){ - // ######################################################################## - // *** umbraco changes *** - case "umbracoformatselector": - - return ''; - // *** umbraco change end *** - // ######################################################################## - -case"formatselect":var html='';return html;case"styleselect":return'';case"fontselect":var fontHTML='';return fontHTML;case"fontsizeselect":return'';case"|":case"separator":return'';case"spacer":return'';case"rowseparator":return'
'}return""},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case'mceHelp':tinyMCE.openWindow({file:'about.htm',width:480,height:380},{tinymce_version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion,tinymce_releasedate:tinyMCE.releaseDate,inline:"yes"});return true;case"mceLink":var inst=tinyMCE.getInstanceById(editor_id);var doc=inst.getDoc();var selectedText="";if(tinyMCE.isMSIE){var rng=doc.selection.createRange();selectedText=rng.text}else selectedText=inst.getSel().toString();if(!tinyMCE.linkElement){if((tinyMCE.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=0))return true}var href="",target="",title="",onclick="",action="insert",style_class="";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a")tinyMCE.linkElement=tinyMCE.selectedElement;if(tinyMCE.linkElement!=null&&tinyMCE.getAttrib(tinyMCE.linkElement,'href')=="")tinyMCE.linkElement=null;if(tinyMCE.linkElement){href=tinyMCE.getAttrib(tinyMCE.linkElement,'href');target=tinyMCE.getAttrib(tinyMCE.linkElement,'target');title=tinyMCE.getAttrib(tinyMCE.linkElement,'title');onclick=tinyMCE.getAttrib(tinyMCE.linkElement,'onclick');style_class=tinyMCE.getAttrib(tinyMCE.linkElement,'class');if(onclick=="")onclick=tinyMCE.getAttrib(tinyMCE.linkElement,'onclick');onclick=tinyMCE.cleanupEventStr(onclick);href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement, true);");mceRealHref=tinyMCE.getAttrib(tinyMCE.linkElement,'mce_href');if(mceRealHref!=""){href=mceRealHref;if(tinyMCE.getParam('convert_urls'))href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement, true);")}action="update"}var template=new Array();template['file']='link.htm';template['width']=310;template['height']=200;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);if(inst.settings['insertlink_callback']){var returnVal=eval(inst.settings['insertlink_callback']+"(href, target, title, onclick, action, style_class);");if(returnVal&&returnVal['href'])TinyMCE_AdvancedTheme._insertLink(returnVal['href'],returnVal['target'],returnVal['title'],returnVal['onclick'],returnVal['style_class'])}else{tinyMCE.openWindow(template,{href:href,target:target,title:title,onclick:onclick,action:action,className:style_class,inline:"yes"})}return true;case"mceImage":var src="",alt="",border="",hspace="",vspace="",width="",height="",align="";var title="",onmouseover="",onmouseout="",action="insert";var img=tinyMCE.imgElement;var inst=tinyMCE.getInstanceById(editor_id);if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){img=tinyMCE.selectedElement;tinyMCE.imgElement=img}if(img){if(tinyMCE.getAttrib(img,'name').indexOf('mce_')==0)return true;src=tinyMCE.getAttrib(img,'src');alt=tinyMCE.getAttrib(img,'alt');if(alt=="")alt=tinyMCE.getAttrib(img,'title');if(tinyMCE.isGecko){var w=img.style.width;if(w!=null&&w!="")img.setAttribute("width",w);var h=img.style.height;if(h!=null&&h!="")img.setAttribute("height",h)}border=tinyMCE.getAttrib(img,'border');hspace=tinyMCE.getAttrib(img,'hspace');vspace=tinyMCE.getAttrib(img,'vspace');width=tinyMCE.getAttrib(img,'width');height=tinyMCE.getAttrib(img,'height');align=tinyMCE.getAttrib(img,'align');onmouseover=tinyMCE.getAttrib(img,'onmouseover');onmouseout=tinyMCE.getAttrib(img,'onmouseout');title=tinyMCE.getAttrib(img,'title');if(tinyMCE.isMSIE){width=img.attributes['width'].specified?width:"";height=img.attributes['height'].specified?height:""}src=eval(tinyMCE.settings['urlconverter_callback']+"(src, img, true);");mceRealSrc=tinyMCE.getAttrib(img,'mce_src');if(mceRealSrc!=""){src=mceRealSrc;if(tinyMCE.getParam('convert_urls'))src=eval(tinyMCE.settings['urlconverter_callback']+"(src, img, true);")}action="update"}var template=new Array();template['file']='image.htm?src={$src}';template['width']=355;template['height']=265+(tinyMCE.isMSIE?25:0);template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);if(inst.settings['insertimage_callback']){var returnVal=eval(inst.settings['insertimage_callback']+"(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");if(returnVal&&returnVal['src'])TinyMCE_AdvancedTheme._insertImage(returnVal['src'],returnVal['alt'],returnVal['border'],returnVal['hspace'],returnVal['vspace'],returnVal['width'],returnVal['height'],returnVal['align'],returnVal['title'],returnVal['onmouseover'],returnVal['onmouseout'])}else tinyMCE.openWindow(template,{src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout,action:action,inline:"yes"});return true;case"forecolor":var fcp=new TinyMCE_Layer(editor_id+'_fcPreview',false),p,img,elm;TinyMCE_AdvancedTheme._hideMenus(editor_id);if(!fcp.exists()){fcp.create('div','mceColorPreview',document.getElementById(editor_id+'_toolbar'));elm=fcp.getElement();elm._editor_id=editor_id;elm._command="forecolor";elm._switchId=editor_id+"_forecolor";tinyMCE.addEvent(elm,'click',TinyMCE_AdvancedTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseover',TinyMCE_AdvancedTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseout',TinyMCE_AdvancedTheme._handleMenuEvent)}img=tinyMCE.selectNodes(document.getElementById(editor_id+"_forecolor"),function(n){return n.nodeName=="IMG"})[0];p=tinyMCE.getAbsPosition(img,document.getElementById(editor_id+'_toolbar'));fcp.moveTo(p.absLeft,p.absTop);fcp.getElement().style.backgroundColor=value!=null?value:tinyMCE.getInstanceById(editor_id).foreColor;fcp.show();return false;case"forecolorMenu":TinyMCE_AdvancedTheme._hideMenus(editor_id);var ml=new TinyMCE_Layer(editor_id+'_fcMenu');if(!ml.exists())ml.create('div','mceMenu',document.body,TinyMCE_AdvancedTheme._getColorHTML(editor_id,'theme_advanced_text_colors','forecolor'));tinyMCE.switchClass(editor_id+'_forecolor','mceMenuButtonFocus');ml.moveRelativeTo(document.getElementById(editor_id+"_forecolor"),'bl');ml.moveBy(tinyMCE.isMSIE&&!tinyMCE.isOpera?-1:1,-1);if(tinyMCE.isOpera)ml.moveBy(0,-2);ml.show();return true;case"HiliteColor":var bcp=new TinyMCE_Layer(editor_id+'_bcPreview',false),p,img;TinyMCE_AdvancedTheme._hideMenus(editor_id);if(!bcp.exists()){bcp.create('div','mceColorPreview',document.getElementById(editor_id+'_toolbar'));elm=bcp.getElement();elm._editor_id=editor_id;elm._command="HiliteColor";elm._switchId=editor_id+"_backcolor";tinyMCE.addEvent(elm,'click',TinyMCE_AdvancedTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseover',TinyMCE_AdvancedTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseout',TinyMCE_AdvancedTheme._handleMenuEvent)}img=tinyMCE.selectNodes(document.getElementById(editor_id+"_backcolor"),function(n){return n.nodeName=="IMG"})[0];p=tinyMCE.getAbsPosition(img,document.getElementById(editor_id+'_toolbar'));bcp.moveTo(p.absLeft,p.absTop);bcp.getElement().style.backgroundColor=value!=null?value:tinyMCE.getInstanceById(editor_id).backColor;bcp.show();return false;case"HiliteColorMenu":TinyMCE_AdvancedTheme._hideMenus(editor_id);var ml=new TinyMCE_Layer(editor_id+'_bcMenu');if(!ml.exists())ml.create('div','mceMenu',document.body,TinyMCE_AdvancedTheme._getColorHTML(editor_id,'theme_advanced_background_colors','HiliteColor'));tinyMCE.switchClass(editor_id+'_backcolor','mceMenuButtonFocus');ml.moveRelativeTo(document.getElementById(editor_id+"_backcolor"),'bl');ml.moveBy(tinyMCE.isMSIE&&!tinyMCE.isOpera?-1:1,-1);if(tinyMCE.isOpera)ml.moveBy(0,-2);ml.show();return true;case"mceColorPicker":if(user_interface){var template=new Array();var inputColor=value['document'].getElementById(value['element_id']).value;template['file']='color_picker.htm';template['width']=220;template['height']=190;template['close_previous']="no";template['width']+=tinyMCE.getLang('lang_theme_advanced_colorpicker_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_colorpicker_delta_height',0);if(typeof(value['store_selection'])=="undefined")value['store_selection']=true;tinyMCE.lastColorPickerValue=value;tinyMCE.openWindow(template,{editor_id:editor_id,mce_store_selection:value['store_selection'],inline:"yes",command:"mceColorPicker",input_color:inputColor})}else{var savedVal=tinyMCE.lastColorPickerValue;var elm=savedVal['document'].getElementById(savedVal['element_id']);elm.value=value;if(elm.onchange!=null&&elm.onchange!='')eval('elm.onchange();')}return true;case"mceCodeEditor":var template=new Array();template['file']='source_editor.htm';template['width']=parseInt(tinyMCE.getParam("theme_advanced_source_editor_width",720));template['height']=parseInt(tinyMCE.getParam("theme_advanced_source_editor_height",580));tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"no",inline:"yes"});return true;case"mceCharMap":var template=new Array();template['file']='charmap.htm';template['width']=550+(tinyMCE.isOpera?40:0);template['height']=250;template['width']+=tinyMCE.getLang('lang_theme_advanced_charmap_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_charmap_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceInsertAnchor":var template=new Array();template['file']='anchor.htm';template['width']=320;template['height']=90+(tinyMCE.isNS7?30:0);template['width']+=tinyMCE.getLang('lang_theme_advanced_anchor_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_anchor_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceNewDocument":if(confirm(tinyMCE.getLang('lang_newdocument')))tinyMCE.execInstanceCommand(editor_id,'mceSetContent',false,' ');return true}return false},getEditorTemplate:function(settings,editorId){function removeFromArray(in_array,remove_array){var outArray=new Array(),skip;for(var i=0;i 

';var layoutManager=tinyMCE.getParam("theme_advanced_layout_manager","SimpleLayout");var styleSelectHTML='';if(settings['theme_advanced_styles']){var stylesAr=settings['theme_advanced_styles'].split(';');for(var i=0;i' + key + ''; - else - styleSelectHTML += ''; - // *** umbraco change end *** - // ######################################################################## -}TinyMCE_AdvancedTheme._autoImportCSSClasses=false}switch(layoutManager){case"SimpleLayout":var toolbarHTML="";var toolbarLocation=tinyMCE.getParam("theme_advanced_toolbar_location","bottom");var toolbarAlign=tinyMCE.getParam("theme_advanced_toolbar_align","center");var pathLocation=tinyMCE.getParam("theme_advanced_path_location","none");var statusbarLocation=tinyMCE.getParam("theme_advanced_statusbar_location",pathLocation);var defVals={theme_advanced_buttons1:"bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,separator,sub,sup,separator,charmap"};toolbarHTML+='0){toolbarHTML+="
";deltaHeight-=23}}toolbarHTML+='
';template['html']='';if(toolbarLocation=="top"){template['html']+=''}if(statusbarLocation=="top"){template['html']+='';deltaHeight-=23}template['html']+='';if(toolbarLocation=="bottom"){template['html']+=''}if(toolbarLocation=="external"){var bod=document.body;var elm=document.createElement("div");toolbarHTML=tinyMCE.replaceVar(toolbarHTML,'style_select_options',styleSelectHTML);toolbarHTML=tinyMCE.applyTemplate(toolbarHTML,{editor_id:editorId});elm.className="mceToolbarExternal";elm.id=editorId+"_toolbar"; - // ######################################################################## - // *** umbraco changes *** - elm.innerHTML = '
'+toolbarHTML+'
'+statusbarHTML+'
'+toolbarHTML+'
'+toolbarHTML+'
'; - - //bod.appendChild (elm); - document.getElementById(tinyMCE.getParam("umbraco_toolbar_id", "*")).appendChild(elm); - - // *** umbraco change end *** - // ######################################################################## - - // bod.style.marginTop = elm.offsetHeight + "px"; - -deltaHeight=0;tinyMCE.getInstanceById(editorId).toolbarElement=elm;}else{tinyMCE.getInstanceById(editorId).toolbarElement=null}if(statusbarLocation=="bottom"){template['html']+=''+statusbarHTML+'';deltaHeight-=23}template['html']+='';break;case"RowLayout":template['html']='';var containers=tinyMCE.getParam("theme_advanced_containers","",true,",");var defaultContainerCSS=tinyMCE.getParam("theme_advanced_containers_default_class","container");var defaultContainerAlign=tinyMCE.getParam("theme_advanced_containers_default_align","center");for(var i=0;i';else if(containers[i]=="mceElementpath"||containers[i]=="mceStatusbar"){var pathClass="mceStatusbar";if(i==containers.length-1){pathClass="mceStatusbarBottom"}else if(i==0){pathClass="mceStatusbar"}else{deltaHeight-=2}template['html']+='';deltaHeight-=22}else{var curContainer=tinyMCE.getParam("theme_advanced_container_"+containers[i],"",true,',');var curContainerHTML="";var curAlign=tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_align",defaultContainerAlign);var curCSS=tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_class",defaultContainerCSS);curContainer=removeFromArray(curContainer,tinyMCE.getParam("theme_advanced_disable","",true,','));for(var j=0;j0){curContainerHTML+="
";deltaHeight-=23}template['html']+='
'}}template['html']+='
'+statusbarHTML+'
'+curContainerHTML+'
';break;case"CustomLayout":var customLayout=tinyMCE.getParam("theme_advanced_custom_layout","");if(customLayout!=""&&eval("typeof("+customLayout+")")!="undefined"){template=eval(customLayout+"(template);")}break}if(resizing)template['html']+='';template['html']=tinyMCE.replaceVar(template['html'],'style_select_options',styleSelectHTML);if(!template['delta_width'])template['delta_width']=0;if(!template['delta_height'])template['delta_height']=deltaHeight;return template},initInstance:function(inst){if(tinyMCE.getParam("theme_advanced_resizing",false)){if(tinyMCE.getParam("theme_advanced_resizing_use_cookie",true)){var w=TinyMCE_AdvancedTheme._getCookie("TinyMCE_"+inst.editorId+"_width");var h=TinyMCE_AdvancedTheme._getCookie("TinyMCE_"+inst.editorId+"_height");TinyMCE_AdvancedTheme._resizeTo(inst,w,h,tinyMCE.getParam("theme_advanced_resize_horizontal",true))}}inst.addShortcut('ctrl','k','lang_link_desc','mceLink')},removeInstance:function(inst){var fcm=new TinyMCE_Layer(inst.editorId+'_fcMenu');fcm.remove()},_handleMenuEvent:function(e){var te=tinyMCE.isMSIE?window.event.srcElement:e.target;tinyMCE._menuButtonEvent(e.type=="mouseover"?"over":"out",document.getElementById(te._switchId));if(e.type=="click")tinyMCE.execInstanceCommand(te._editor_id,te._command)},_hideMenus:function(id){var fcml=new TinyMCE_Layer(id+'_fcMenu'),bcml=new TinyMCE_Layer(id+'_bcMenu');if(fcml.exists()&&fcml.isVisible()){tinyMCE.switchClass(id+'_forecolor','mceMenuButton');fcml.hide()}if(bcml.exists()&&bcml.isVisible()){tinyMCE.switchClass(id+'_backcolor','mceMenuButton');bcml.hide()}},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection,setup_content){var alignNode,breakOut,classNode;function selectByValue(select_elm,value,first_index){first_index=typeof(first_index)=="undefined"?false:true;if(select_elm){for(var i=0;i=0;i--){var nodeName=path[i].nodeName.toLowerCase();var nodeData="";if(nodeName.indexOf("html:")==0)nodeName=nodeName.substring(5);if(nodeName=="b"){nodeName="strong"}if(nodeName=="i"){nodeName="em"}if(nodeName=="span"){var cn=tinyMCE.getAttrib(path[i],"class");if(cn!=""&&cn.indexOf('mceItem')==-1)nodeData+="class: "+cn+" ";var st=tinyMCE.getAttrib(path[i],"style");if(st!=""){st=tinyMCE.serializeStyle(tinyMCE.parseStyle(st));nodeData+="style: "+tinyMCE.xmlEncode(st)+" "}}if(nodeName=="font"){if(tinyMCE.getParam("convert_fonts_to_spans"))nodeName="span";var face=tinyMCE.getAttrib(path[i],"face");if(face!="")nodeData+="font: "+tinyMCE.xmlEncode(face)+" ";var size=tinyMCE.getAttrib(path[i],"size");if(size!="")nodeData+="size: "+tinyMCE.xmlEncode(size)+" ";var color=tinyMCE.getAttrib(path[i],"color");if(color!="")nodeData+="color: "+tinyMCE.xmlEncode(color)+" "}if(tinyMCE.getAttrib(path[i],'id')!=""){nodeData+="id: "+path[i].getAttribute('id')+" "}var className=tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i],"class"),false);if(className!=""&&className.indexOf('mceItem')==-1)nodeData+="class: "+className+" ";if(tinyMCE.getAttrib(path[i],'src')!=""){var src=tinyMCE.getAttrib(path[i],"mce_src");if(src=="")src=tinyMCE.getAttrib(path[i],"src");nodeData+="src: "+tinyMCE.xmlEncode(src)+" "}if(path[i].nodeName=='A'&&tinyMCE.getAttrib(path[i],'href')!=""){var href=tinyMCE.getAttrib(path[i],"mce_href");if(href=="")href=tinyMCE.getAttrib(path[i],"href");nodeData+="href: "+tinyMCE.xmlEncode(href)+" "}className=tinyMCE.getAttrib(path[i],"class");if((nodeName=="img"||nodeName=="span")&&className.indexOf('mceItem')!=-1){nodeName=className.replace(/mceItem([a-z]+)/gi,'$1').toLowerCase();nodeData=path[i].getAttribute('title')}if(nodeName=="a"&&(anchor=tinyMCE.getAttrib(path[i],"name"))!=""){nodeName="a";nodeName+="#"+tinyMCE.xmlEncode(anchor);nodeData=""}if(tinyMCE.getAttrib(path[i],'name').indexOf("mce_")!=0){var className=tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i],"class"),false);if(className!=""&&className.indexOf('mceItem')==-1){nodeName+="."+className}}var cmd='tinyMCE.execInstanceCommand(\''+editor_id+'\',\'mceSelectNodeDepth\',false,\''+i+'\');';html+=''+nodeName+'';if(i>0){html+=" » "}}pathElm.innerHTML=''+tinyMCE.getLang('lang_theme_path')+": "+html+' '}tinyMCE.switchClass(editor_id+'_justifyleft','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifyright','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifycenter','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifyfull','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_numlist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_sub','mceButtonNormal');tinyMCE.switchClass(editor_id+'_sup','mceButtonNormal');tinyMCE.switchClass(editor_id+'_anchor','mceButtonNormal');tinyMCE.switchClass(editor_id+'_link','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_unlink','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_outdent','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_image','mceButtonNormal');tinyMCE.switchClass(editor_id+'_hr','mceButtonNormal');if(node.nodeName=="A"&&tinyMCE.getAttrib(node,"class").indexOf('mceItemAnchor')!=-1)tinyMCE.switchClass(editor_id+'_anchor','mceButtonSelected');var anchorLink=tinyMCE.getParentElement(node,"a","href");if(anchorLink||any_selection){tinyMCE.switchClass(editor_id+'_link',anchorLink?'mceButtonSelected':'mceButtonNormal');tinyMCE.switchClass(editor_id+'_unlink',anchorLink?'mceButtonSelected':'mceButtonNormal')}tinyMCE.switchClass(editor_id+'_visualaid',visual_aid?'mceButtonSelected':'mceButtonNormal');if(undo_levels!=-1){tinyMCE.switchClass(editor_id+'_undo','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_redo','mceButtonDisabled')}if(tinyMCE.getParentElement(node,"li,blockquote"))tinyMCE.switchClass(editor_id+'_outdent','mceButtonNormal');if(undo_index!=-1&&(undo_index0))tinyMCE.switchClass(editor_id+'_redo','mceButtonNormal');if(undo_index!=-1&&(undo_index>0&&undo_levels>0))tinyMCE.switchClass(editor_id+'_undo','mceButtonNormal'); - // ######################################################################## - // *** umbraco changes *** - - var selectElm = document.getElementById(editor_id + "_umbracoFormatSelect"); - - if (selectElm) { - TinyMCE_AdvancedTheme._setupCSSClasses(editor_id); - - classNode = node; - breakOut = false; - var index = 0; - - do { - if (classNode && classNode.className) { - for (var i=0; i"); - else - selectByValue(selectElm, ""); - } - // *** umbraco change end *** - // ######################################################################## - -var selectElm=document.getElementById(editor_id+"_fontNameSelect");if(selectElm){if(!tinyMCE.isSafari&&!(tinyMCE.isMSIE&&!tinyMCE.isOpera)){var face=inst.queryCommandValue('FontName');face=face==null||face==""?"":face;selectByValue(selectElm,face,face!="")}else{var elm=tinyMCE.getParentElement(node,"font","face");if(elm){var family=tinyMCE.getAttrib(elm,"face");if(family=='')family=''+elm.style.fontFamily;if(!selectByValue(selectElm,family,family!=""))selectByValue(selectElm,"")}else selectByValue(selectElm,"")}}var selectElm=document.getElementById(editor_id+"_fontSizeSelect");if(selectElm){if(!tinyMCE.isSafari&&!tinyMCE.isOpera){var size=inst.queryCommandValue('FontSize');selectByValue(selectElm,size==null||size==""?"0":size)}else{var elm=tinyMCE.getParentElement(node,"font","size");if(elm){var size=tinyMCE.getAttrib(elm,"size");if(size==''){var sizes=new Array('','8px','10px','12px','14px','18px','24px','36px');size=''+elm.style.fontSize;for(var i=0;i0)selectElm.setAttribute('cssImported','true')}},_setCookie:function(name,value,expires,path,domain,secure){var curCookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+escape(path):"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");document.cookie=curCookie},_getCookie:function(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null}else begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin+prefix.length,end))},_resizeTo:function(inst,w,h,set_w){var editorContainer=document.getElementById(inst.editorId+'_parent');var tableElm=editorContainer.firstChild;var iframe=inst.iframeElement;if(w==null||w=="null"){set_w=false;w=0}if(h==null||h=="null")return;w=parseInt(w);h=parseInt(h);if(tinyMCE.isGecko){w+=2;h+=2}var dx=w-tableElm.clientWidth;var dy=h-tableElm.clientHeight;w=w<1?30:w;h=h<1?30:h;if(set_w)tableElm.style.width=w+"px";tableElm.style.height=h+"px";iw=iframe.clientWidth+dx;ih=iframe.clientHeight+dy;iw=iw<1?30:iw;ih=ih<1?30:ih;if(tinyMCE.isGecko){iw-=2;ih-=2}if(set_w)iframe.style.width=iw+"px";iframe.style.height=ih+"px";if(set_w){var tableBodyElm=tableElm.firstChild;var minIframeWidth=tableBodyElm.scrollWidth;if(inst.iframeElement.clientWidth';for(i=0;i';if((i+1)%8==0)h+=''}h+='';return h},_insertImage:function(src,alt,border,hspace,vspace,width,height,align,title,onmouseover,onmouseout){tinyMCE.execCommand('mceBeginUndoLevel');if(src=="")return;if(!tinyMCE.imgElement&&tinyMCE.isSafari){var html="";html+=''+alt+'';tinyMCE.execCommand("mceInsertContent",false,html)}else{if(!tinyMCE.imgElement&&tinyMCE.selectedInstance){if(tinyMCE.isSafari)tinyMCE.execCommand("mceInsertContent",false,'');else tinyMCE.selectedInstance.contentDocument.execCommand("insertimage",false,tinyMCE.uniqueURL);tinyMCE.imgElement=tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"img","src",tinyMCE.uniqueURL)}}if(tinyMCE.imgElement){var needsRepaint=false;var msrc=src;src=eval(tinyMCE.settings['urlconverter_callback']+"(src, tinyMCE.imgElement);");if(tinyMCE.getParam('convert_urls'))msrc=src;if(onmouseover&&onmouseover!="")onmouseover="this.src='"+eval(tinyMCE.settings['urlconverter_callback']+"(onmouseover, tinyMCE.imgElement);")+"';";if(onmouseout&&onmouseout!="")onmouseout="this.src='"+eval(tinyMCE.settings['urlconverter_callback']+"(onmouseout, tinyMCE.imgElement);")+"';";if(typeof(title)=="undefined")title=alt;if(width!=tinyMCE.imgElement.getAttribute("width")||height!=tinyMCE.imgElement.getAttribute("height")||align!=tinyMCE.imgElement.getAttribute("align"))needsRepaint=true;tinyMCE.setAttrib(tinyMCE.imgElement,'src',src);tinyMCE.setAttrib(tinyMCE.imgElement,'mce_src',msrc);tinyMCE.setAttrib(tinyMCE.imgElement,'alt',alt);tinyMCE.setAttrib(tinyMCE.imgElement,'title',title);tinyMCE.setAttrib(tinyMCE.imgElement,'align',align);tinyMCE.setAttrib(tinyMCE.imgElement,'border',border,true);tinyMCE.setAttrib(tinyMCE.imgElement,'hspace',hspace,true);tinyMCE.setAttrib(tinyMCE.imgElement,'vspace',vspace,true);tinyMCE.setAttrib(tinyMCE.imgElement,'width',width,true);tinyMCE.setAttrib(tinyMCE.imgElement,'height',height,true);tinyMCE.setAttrib(tinyMCE.imgElement,'onmouseover',onmouseover);tinyMCE.setAttrib(tinyMCE.imgElement,'onmouseout',onmouseout);if(width&&width!="")tinyMCE.imgElement.style.pixelWidth=width;if(height&&height!="")tinyMCE.imgElement.style.pixelHeight=height;if(needsRepaint)tinyMCE.selectedInstance.repaint()}tinyMCE.execCommand('mceEndUndoLevel')},_insertLink:function(href,target,title,onclick,style_class){tinyMCE.execCommand('mceBeginUndoLevel');if(tinyMCE.selectedInstance&&tinyMCE.selectedElement&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){var doc=tinyMCE.selectedInstance.getDoc();var linkElement=tinyMCE.getParentElement(tinyMCE.selectedElement,"a");var newLink=false;if(!linkElement){linkElement=doc.createElement("a");newLink=true}var mhref=href;var thref=eval(tinyMCE.settings['urlconverter_callback']+"(href, linkElement);");mhref=tinyMCE.getParam('convert_urls')?href:mhref;tinyMCE.setAttrib(linkElement,'href',thref);tinyMCE.setAttrib(linkElement,'mce_href',mhref);tinyMCE.setAttrib(linkElement,'target',target);tinyMCE.setAttrib(linkElement,'title',title);tinyMCE.setAttrib(linkElement,'onclick',onclick);tinyMCE.setAttrib(linkElement,'class',style_class);if(newLink){linkElement.appendChild(tinyMCE.selectedElement.cloneNode(true));tinyMCE.selectedElement.parentNode.replaceChild(linkElement,tinyMCE.selectedElement)}return}if(!tinyMCE.linkElement&&tinyMCE.selectedInstance){if(tinyMCE.isSafari){tinyMCE.execCommand("mceInsertContent",false,''+tinyMCE.selectedInstance.selection.getSelectedHTML()+'')}else tinyMCE.selectedInstance.contentDocument.execCommand("createlink",false,tinyMCE.uniqueURL);tinyMCE.linkElement=tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"a","href",tinyMCE.uniqueURL);var elementArray=tinyMCE.getElementsByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"a","href",tinyMCE.uniqueURL);for(var i=0;i 4 ? but[4] : false), (but.length > 5 ? but[5] : null)); - - if (but[0] == button_name) - return tinyMCE.getButtonHTML(but[0], but[2], '{$themeurl}/images/' + but[1], but[3], (but.length > 4 ? but[4] : false), (but.length > 5 ? but[5] : null)); - } - - // Custom controlls other than buttons - switch (button_name) { - case "umbracoformatselector": - - return ''; - - case "formatselect": - var html = ''; - - return html; - - case "styleselect": - return ''; - - case "fontselect": - var fontHTML = ''; - return fontHTML; - - case "fontsizeselect": - return ''; - - case "|": - case "separator": - return ''; - - case "spacer": - return ''; - - case "rowseparator": - return '
'; - } - - return ""; - }, - - /** - * Theme specific execcommand handling. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - switch (command) { - case 'mceHelp': - tinyMCE.openWindow({ - file : 'about.htm', - width : 480, - height : 380 - }, { - tinymce_version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion, - tinymce_releasedate : tinyMCE.releaseDate, - inline : "yes" - }); - return true; - - case "mceLink": - var inst = tinyMCE.getInstanceById(editor_id); - var doc = inst.getDoc(); - var selectedText = ""; - - if (tinyMCE.isMSIE) { - var rng = doc.selection.createRange(); - selectedText = rng.text; - } else - selectedText = inst.getSel().toString(); - - if (!tinyMCE.linkElement) { - if ((tinyMCE.selectedElement.nodeName.toLowerCase() != "img") && (selectedText.length <= 0)) - return true; - } - - var href = "", target = "", title = "", onclick = "", action = "insert", style_class = ""; - - if (tinyMCE.selectedElement.nodeName.toLowerCase() == "a") - tinyMCE.linkElement = tinyMCE.selectedElement; - - // Is anchor not a link - if (tinyMCE.linkElement != null && tinyMCE.getAttrib(tinyMCE.linkElement, 'href') == "") - tinyMCE.linkElement = null; - - if (tinyMCE.linkElement) { - href = tinyMCE.getAttrib(tinyMCE.linkElement, 'href'); - target = tinyMCE.getAttrib(tinyMCE.linkElement, 'target'); - title = tinyMCE.getAttrib(tinyMCE.linkElement, 'title'); - onclick = tinyMCE.getAttrib(tinyMCE.linkElement, 'onclick'); - style_class = tinyMCE.getAttrib(tinyMCE.linkElement, 'class'); - - // Try old onclick to if copy/pasted content - if (onclick == "") - onclick = tinyMCE.getAttrib(tinyMCE.linkElement, 'onclick'); - - onclick = tinyMCE.cleanupEventStr(onclick); - - href = eval(tinyMCE.settings['urlconverter_callback'] + "(href, tinyMCE.linkElement, true);"); - - // Use mce_href if defined - mceRealHref = tinyMCE.getAttrib(tinyMCE.linkElement, 'mce_href'); - if (mceRealHref != "") { - href = mceRealHref; - - if (tinyMCE.getParam('convert_urls')) - href = eval(tinyMCE.settings['urlconverter_callback'] + "(href, tinyMCE.linkElement, true);"); - } - - action = "update"; - } - - var template = new Array(); - - template['file'] = 'link.htm'; - template['width'] = 310; - template['height'] = 200; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_link_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_link_delta_height', 0); - - if (inst.settings['insertlink_callback']) { - var returnVal = eval(inst.settings['insertlink_callback'] + "(href, target, title, onclick, action, style_class);"); - if (returnVal && returnVal['href']) - TinyMCE_AdvancedTheme._insertLink(returnVal['href'], returnVal['target'], returnVal['title'], returnVal['onclick'], returnVal['style_class']); - } else { - tinyMCE.openWindow(template, {href : href, target : target, title : title, onclick : onclick, action : action, className : style_class, inline : "yes"}); - } - - return true; - - case "mceImage": - var src = "", alt = "", border = "", hspace = "", vspace = "", width = "", height = "", align = ""; - var title = "", onmouseover = "", onmouseout = "", action = "insert"; - var img = tinyMCE.imgElement; - var inst = tinyMCE.getInstanceById(editor_id); - - if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "img") { - img = tinyMCE.selectedElement; - tinyMCE.imgElement = img; - } - - if (img) { - // Is it a internal MCE visual aid image, then skip this one. - if (tinyMCE.getAttrib(img, 'name').indexOf('mce_') == 0) - return true; - - src = tinyMCE.getAttrib(img, 'src'); - alt = tinyMCE.getAttrib(img, 'alt'); - - // Try polling out the title - if (alt == "") - alt = tinyMCE.getAttrib(img, 'title'); - - // Fix width/height attributes if the styles is specified - if (tinyMCE.isGecko) { - var w = img.style.width; - if (w != null && w != "") - img.setAttribute("width", w); - - var h = img.style.height; - if (h != null && h != "") - img.setAttribute("height", h); - } - - border = tinyMCE.getAttrib(img, 'border'); - hspace = tinyMCE.getAttrib(img, 'hspace'); - vspace = tinyMCE.getAttrib(img, 'vspace'); - width = tinyMCE.getAttrib(img, 'width'); - height = tinyMCE.getAttrib(img, 'height'); - align = tinyMCE.getAttrib(img, 'align'); - onmouseover = tinyMCE.getAttrib(img, 'onmouseover'); - onmouseout = tinyMCE.getAttrib(img, 'onmouseout'); - title = tinyMCE.getAttrib(img, 'title'); - - // Is realy specified? - if (tinyMCE.isMSIE) { - width = img.attributes['width'].specified ? width : ""; - height = img.attributes['height'].specified ? height : ""; - } - - //onmouseover = tinyMCE.getImageSrc(tinyMCE.cleanupEventStr(onmouseover)); - //onmouseout = tinyMCE.getImageSrc(tinyMCE.cleanupEventStr(onmouseout)); - - src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, img, true);"); - - // Use mce_src if defined - mceRealSrc = tinyMCE.getAttrib(img, 'mce_src'); - if (mceRealSrc != "") { - src = mceRealSrc; - - if (tinyMCE.getParam('convert_urls')) - src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, img, true);"); - } - - //if (onmouseover != "") - // onmouseover = eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseover, img, true);"); - - //if (onmouseout != "") - // onmouseout = eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseout, img, true);"); - - action = "update"; - } - - var template = new Array(); - - template['file'] = 'image.htm?src={$src}'; - template['width'] = 355; - template['height'] = 265 + (tinyMCE.isMSIE ? 25 : 0); - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0); - - if (inst.settings['insertimage_callback']) { - var returnVal = eval(inst.settings['insertimage_callback'] + "(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);"); - if (returnVal && returnVal['src']) - TinyMCE_AdvancedTheme._insertImage(returnVal['src'], returnVal['alt'], returnVal['border'], returnVal['hspace'], returnVal['vspace'], returnVal['width'], returnVal['height'], returnVal['align'], returnVal['title'], returnVal['onmouseover'], returnVal['onmouseout']); - } else - tinyMCE.openWindow(template, {src : src, alt : alt, border : border, hspace : hspace, vspace : vspace, width : width, height : height, align : align, title : title, onmouseover : onmouseover, onmouseout : onmouseout, action : action, inline : "yes"}); - - return true; - - case "forecolor": - var fcp = new TinyMCE_Layer(editor_id + '_fcPreview', false), p, img, elm; - - TinyMCE_AdvancedTheme._hideMenus(editor_id); - - if (!fcp.exists()) { - fcp.create('div', 'mceColorPreview', document.getElementById(editor_id + '_toolbar')); - elm = fcp.getElement(); - elm._editor_id = editor_id; - elm._command = "forecolor"; - elm._switchId = editor_id + "_forecolor"; - tinyMCE.addEvent(elm, 'click', TinyMCE_AdvancedTheme._handleMenuEvent); - tinyMCE.addEvent(elm, 'mouseover', TinyMCE_AdvancedTheme._handleMenuEvent); - tinyMCE.addEvent(elm, 'mouseout', TinyMCE_AdvancedTheme._handleMenuEvent); - } - - img = tinyMCE.selectNodes(document.getElementById(editor_id + "_forecolor"), function(n) {return n.nodeName == "IMG";})[0]; - p = tinyMCE.getAbsPosition(img, document.getElementById(editor_id + '_toolbar')); - - fcp.moveTo(p.absLeft, p.absTop); - fcp.getElement().style.backgroundColor = value != null ? value : tinyMCE.getInstanceById(editor_id).foreColor; - fcp.show(); - - return false; - - case "forecolorMenu": - TinyMCE_AdvancedTheme._hideMenus(editor_id); - - // Create color layer - var ml = new TinyMCE_Layer(editor_id + '_fcMenu'); - - if (!ml.exists()) - ml.create('div', 'mceMenu', document.body, TinyMCE_AdvancedTheme._getColorHTML(editor_id, 'theme_advanced_text_colors', 'forecolor')); - - tinyMCE.switchClass(editor_id + '_forecolor', 'mceMenuButtonFocus'); - ml.moveRelativeTo(document.getElementById(editor_id + "_forecolor"), 'bl'); - - ml.moveBy(tinyMCE.isMSIE && !tinyMCE.isOpera ? -1 : 1, -1); - - if (tinyMCE.isOpera) - ml.moveBy(0, -2); - - ml.show(); - return true; - - case "HiliteColor": - var bcp = new TinyMCE_Layer(editor_id + '_bcPreview', false), p, img; - - TinyMCE_AdvancedTheme._hideMenus(editor_id); - - if (!bcp.exists()) { - bcp.create('div', 'mceColorPreview', document.getElementById(editor_id + '_toolbar')); - elm = bcp.getElement(); - elm._editor_id = editor_id; - elm._command = "HiliteColor"; - elm._switchId = editor_id + "_backcolor"; - tinyMCE.addEvent(elm, 'click', TinyMCE_AdvancedTheme._handleMenuEvent); - tinyMCE.addEvent(elm, 'mouseover', TinyMCE_AdvancedTheme._handleMenuEvent); - tinyMCE.addEvent(elm, 'mouseout', TinyMCE_AdvancedTheme._handleMenuEvent); - } - - img = tinyMCE.selectNodes(document.getElementById(editor_id + "_backcolor"), function(n) {return n.nodeName == "IMG";})[0]; - p = tinyMCE.getAbsPosition(img, document.getElementById(editor_id + '_toolbar')); - - bcp.moveTo(p.absLeft, p.absTop); - bcp.getElement().style.backgroundColor = value != null ? value : tinyMCE.getInstanceById(editor_id).backColor; - bcp.show(); - - return false; - - case "HiliteColorMenu": - TinyMCE_AdvancedTheme._hideMenus(editor_id); - - // Create color layer - var ml = new TinyMCE_Layer(editor_id + '_bcMenu'); - - if (!ml.exists()) - ml.create('div', 'mceMenu', document.body, TinyMCE_AdvancedTheme._getColorHTML(editor_id, 'theme_advanced_background_colors', 'HiliteColor')); - - tinyMCE.switchClass(editor_id + '_backcolor', 'mceMenuButtonFocus'); - ml.moveRelativeTo(document.getElementById(editor_id + "_backcolor"), 'bl'); - - ml.moveBy(tinyMCE.isMSIE && !tinyMCE.isOpera ? -1 : 1, -1); - - if (tinyMCE.isOpera) - ml.moveBy(0, -2); - - ml.show(); - return true; - - case "mceColorPicker": - if (user_interface) { - var template = new Array(); - var inputColor = value['document'].getElementById(value['element_id']).value; - - template['file'] = 'color_picker.htm'; - template['width'] = 220; - template['height'] = 190; - template['close_previous'] = "no"; - - template['width'] += tinyMCE.getLang('lang_theme_advanced_colorpicker_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_advanced_colorpicker_delta_height', 0); - - if (typeof(value['store_selection']) == "undefined") - value['store_selection'] = true; - - tinyMCE.lastColorPickerValue = value; - tinyMCE.openWindow(template, {editor_id : editor_id, mce_store_selection : value['store_selection'], inline : "yes", command : "mceColorPicker", input_color : inputColor}); - } else { - var savedVal = tinyMCE.lastColorPickerValue; - var elm = savedVal['document'].getElementById(savedVal['element_id']); - elm.value = value; - - if (elm.onchange != null && elm.onchange != '') - eval('elm.onchange();'); - } - return true; - - case "mceCodeEditor": - var template = new Array(); - - template['file'] = 'source_editor.htm'; - template['width'] = parseInt(tinyMCE.getParam("theme_advanced_source_editor_width", 720)); - template['height'] = parseInt(tinyMCE.getParam("theme_advanced_source_editor_height", 580)); - - tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "no", inline : "yes"}); - return true; - - case "mceCharMap": - var template = new Array(); - - template['file'] = 'charmap.htm'; - template['width'] = 550 + (tinyMCE.isOpera ? 40 : 0); - template['height'] = 250; - - template['width'] += tinyMCE.getLang('lang_theme_advanced_charmap_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_advanced_charmap_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - return true; - - case "mceInsertAnchor": - var template = new Array(); - - template['file'] = 'anchor.htm'; - template['width'] = 320; - template['height'] = 90 + (tinyMCE.isNS7 ? 30 : 0); - - template['width'] += tinyMCE.getLang('lang_theme_advanced_anchor_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_advanced_anchor_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - return true; - - case "mceNewDocument": - if (confirm(tinyMCE.getLang('lang_newdocument'))) - tinyMCE.execInstanceCommand(editor_id, 'mceSetContent', false, ' '); - - return true; - } - - return false; - }, - - /** - * Editor instance template function. - */ - getEditorTemplate : function(settings, editorId) { - function removeFromArray(in_array, remove_array) { - var outArray = new Array(), skip; - - for (var i=0; i 

'; - var layoutManager = tinyMCE.getParam("theme_advanced_layout_manager", "SimpleLayout"); - - // Setup style select options -- MOVED UP FOR EXTERNAL TOOLBAR COMPATABILITY! - var styleSelectHTML = ''; - if (settings['theme_advanced_styles']) { - var stylesAr = settings['theme_advanced_styles'].split(';'); - - for (var i=0; i' + key + ''; - else - styleSelectHTML += ''; - } - - TinyMCE_AdvancedTheme._autoImportCSSClasses = false; - } - - switch(layoutManager) { - case "SimpleLayout" : //the default TinyMCE Layout (for backwards compatibility)... - var toolbarHTML = ""; - var toolbarLocation = tinyMCE.getParam("theme_advanced_toolbar_location", "bottom"); - var toolbarAlign = tinyMCE.getParam("theme_advanced_toolbar_align", "center"); - var pathLocation = tinyMCE.getParam("theme_advanced_path_location", "none"); // Compatiblity - var statusbarLocation = tinyMCE.getParam("theme_advanced_statusbar_location", pathLocation); - var defVals = { - theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect", - theme_advanced_buttons2 : "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code", - theme_advanced_buttons3 : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap" - }; - - // Add accessibility control - toolbarHTML += ' 0) { - toolbarHTML += "
"; - deltaHeight -= 23; - } - } - - // Add accessibility control - toolbarHTML += '
'; - - // Setup template html - template['html'] = ''; - - if (toolbarLocation == "top") { - template['html'] += ''; - } - - if (statusbarLocation == "top") { - template['html'] += ''; - deltaHeight -= 23; - } - - template['html'] += ''; - - if (toolbarLocation == "bottom") { - template['html'] += ''; - } - - // External toolbar changes - if (toolbarLocation == "external") { - var bod = document.body; - var elm = document.createElement ("div"); - - toolbarHTML = tinyMCE.replaceVar(toolbarHTML, 'style_select_options', styleSelectHTML); - toolbarHTML = tinyMCE.applyTemplate(toolbarHTML, {editor_id : editorId}); - - elm.className = "mceToolbarExternal"; - elm.id = editorId+"_toolbar"; - - // ######################################################################## - // *** umbraco changes *** - elm.innerHTML = '
' + toolbarHTML + '
' + statusbarHTML + '
' + toolbarHTML + '
'+toolbarHTML+'
'; - - //bod.appendChild (elm); - document.getElementById(tinyMCE.getParam("umbraco_toolbar_id", "*")).appendChild(elm); - - // *** umbraco change end *** - // ######################################################################## - - // bod.style.marginTop = elm.offsetHeight + "px"; - - deltaHeight = 0; - tinyMCE.getInstanceById(editorId).toolbarElement = elm; - - //template['html'] = '
'+toolbarHTML+'
' + template["html"]; - } else { - tinyMCE.getInstanceById(editorId).toolbarElement = null; - } - - if (statusbarLocation == "bottom") { - template['html'] += '' + statusbarHTML + ''; - deltaHeight -= 23; - } - - template['html'] += ''; - //"SimpleLayout" - break; - - case "RowLayout" : //Container Layout - containers defined in "theme_advanced_containers" are rendered from top to bottom. - template['html'] = ''; - - var containers = tinyMCE.getParam("theme_advanced_containers", "", true, ","); - var defaultContainerCSS = tinyMCE.getParam("theme_advanced_containers_default_class", "container"); - var defaultContainerAlign = tinyMCE.getParam("theme_advanced_containers_default_align", "center"); - - //Render Containers: - for (var i = 0; i < containers.length; i++) - { - if (containers[i] == "mceEditor") //Exceptions for mceEditor and ... - template['html'] += ''; - else if (containers[i] == "mceElementpath" || containers[i] == "mceStatusbar") // ... mceElementpath: - { - var pathClass = "mceStatusbar"; - - if (i == containers.length-1) - { - pathClass = "mceStatusbarBottom"; - } - else if (i == 0) - { - pathClass = "mceStatusbar"; - } - else - { - deltaHeight-=2; - } - - template['html'] += ''; - deltaHeight -= 22; - } else { // Render normal Container - var curContainer = tinyMCE.getParam("theme_advanced_container_"+containers[i], "", true, ','); - var curContainerHTML = ""; - var curAlign = tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_align", defaultContainerAlign); - var curCSS = tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_class", defaultContainerCSS); - - curContainer = removeFromArray(curContainer, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); - - for (var j=0; j 0) { - curContainerHTML += "
"; - deltaHeight -= 23; - } - - template['html'] += '
'; - } - } - - template['html'] += '
' + statusbarHTML + '
' + curContainerHTML + '
'; - //RowLayout - break; - - case "CustomLayout" : //User defined layout callback... - var customLayout = tinyMCE.getParam("theme_advanced_custom_layout",""); - - if (customLayout != "" && eval("typeof(" + customLayout + ")") != "undefined") { - template = eval(customLayout + "(template);"); - } - break; - } - - if (resizing) - template['html'] += ''; - - template['html'] = tinyMCE.replaceVar(template['html'], 'style_select_options', styleSelectHTML); - - // Set to default values - if (!template['delta_width']) - template['delta_width'] = 0; - - if (!template['delta_height']) - template['delta_height'] = deltaHeight; - - return template; - }, - - initInstance : function(inst) { - if (tinyMCE.getParam("theme_advanced_resizing", false)) { - if (tinyMCE.getParam("theme_advanced_resizing_use_cookie", true)) { - var w = TinyMCE_AdvancedTheme._getCookie("TinyMCE_" + inst.editorId + "_width"); - var h = TinyMCE_AdvancedTheme._getCookie("TinyMCE_" + inst.editorId + "_height"); - - TinyMCE_AdvancedTheme._resizeTo(inst, w, h, tinyMCE.getParam("theme_advanced_resize_horizontal", true)); - } - } - - inst.addShortcut('ctrl', 'k', 'lang_link_desc', 'mceLink'); - }, - - removeInstance : function(inst) { - var fcm = new TinyMCE_Layer(inst.editorId + '_fcMenu'); - - fcm.remove(); - }, - - _handleMenuEvent : function(e) { - var te = tinyMCE.isMSIE ? window.event.srcElement : e.target; - tinyMCE._menuButtonEvent(e.type == "mouseover" ? "over" : "out", document.getElementById(te._switchId)); - - if (e.type == "click") - tinyMCE.execInstanceCommand(te._editor_id, te._command); - }, - - _hideMenus : function(id) { - var fcml = new TinyMCE_Layer(id + '_fcMenu'), bcml = new TinyMCE_Layer(id + '_bcMenu'); - - if (fcml.exists() && fcml.isVisible()) { - tinyMCE.switchClass(id + '_forecolor', 'mceMenuButton'); - fcml.hide(); - } - - if (bcml.exists() && bcml.isVisible()) { - tinyMCE.switchClass(id + '_backcolor', 'mceMenuButton'); - bcml.hide(); - } - }, - - /** - * Node change handler. - */ - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection, setup_content) { - var alignNode, breakOut, classNode; - - function selectByValue(select_elm, value, first_index) { - first_index = typeof(first_index) == "undefined" ? false : true; - - if (select_elm) { - for (var i=0; i=0; i--) { - var nodeName = path[i].nodeName.toLowerCase(); - var nodeData = ""; - - if (nodeName.indexOf("html:") == 0) - nodeName = nodeName.substring(5); - - if (nodeName == "b") { - nodeName = "strong"; - } - - if (nodeName == "i") { - nodeName = "em"; - } - - if (nodeName == "span") { - var cn = tinyMCE.getAttrib(path[i], "class"); - if (cn != "" && cn.indexOf('mceItem') == -1) - nodeData += "class: " + cn + " "; - - var st = tinyMCE.getAttrib(path[i], "style"); - if (st != "") { - st = tinyMCE.serializeStyle(tinyMCE.parseStyle(st)); - nodeData += "style: " + tinyMCE.xmlEncode(st) + " "; - } - } - - if (nodeName == "font") { - if (tinyMCE.getParam("convert_fonts_to_spans")) - nodeName = "span"; - - var face = tinyMCE.getAttrib(path[i], "face"); - if (face != "") - nodeData += "font: " + tinyMCE.xmlEncode(face) + " "; - - var size = tinyMCE.getAttrib(path[i], "size"); - if (size != "") - nodeData += "size: " + tinyMCE.xmlEncode(size) + " "; - - var color = tinyMCE.getAttrib(path[i], "color"); - if (color != "") - nodeData += "color: " + tinyMCE.xmlEncode(color) + " "; - } - - if (tinyMCE.getAttrib(path[i], 'id') != "") { - nodeData += "id: " + path[i].getAttribute('id') + " "; - } - - var className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i], "class"), false); - if (className != "" && className.indexOf('mceItem') == -1) - nodeData += "class: " + className + " "; - - if (tinyMCE.getAttrib(path[i], 'src') != "") { - var src = tinyMCE.getAttrib(path[i], "mce_src"); - - if (src == "") - src = tinyMCE.getAttrib(path[i], "src"); - - nodeData += "src: " + tinyMCE.xmlEncode(src) + " "; - } - - if (path[i].nodeName == 'A' && tinyMCE.getAttrib(path[i], 'href') != "") { - var href = tinyMCE.getAttrib(path[i], "mce_href"); - - if (href == "") - href = tinyMCE.getAttrib(path[i], "href"); - - nodeData += "href: " + tinyMCE.xmlEncode(href) + " "; - } - - className = tinyMCE.getAttrib(path[i], "class"); - if ((nodeName == "img" || nodeName == "span") && className.indexOf('mceItem') != -1) { - nodeName = className.replace(/mceItem([a-z]+)/gi, '$1').toLowerCase(); - nodeData = path[i].getAttribute('title'); - } - - if (nodeName == "a" && (anchor = tinyMCE.getAttrib(path[i], "name")) != "") { - nodeName = "a"; - nodeName += "#" + tinyMCE.xmlEncode(anchor); - nodeData = ""; - } - - if (tinyMCE.getAttrib(path[i], 'name').indexOf("mce_") != 0) { - var className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i], "class"), false); - if (className != "" && className.indexOf('mceItem') == -1) { - nodeName += "." + className; - } - } - - var cmd = 'tinyMCE.execInstanceCommand(\'' + editor_id + '\',\'mceSelectNodeDepth\',false,\'' + i + '\');'; - html += '' + nodeName + ''; - - if (i > 0) { - html += " » "; - } - } - - pathElm.innerHTML = '' + tinyMCE.getLang('lang_theme_path') + ": " + html + ' '; - } - - // Reset old states - tinyMCE.switchClass(editor_id + '_justifyleft', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_justifyright', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_justifycenter', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_justifyfull', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_bold', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_italic', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_underline', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_strikethrough', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_bullist', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_numlist', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_sub', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_sup', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_anchor', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_link', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_unlink', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_outdent', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_image', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_hr', 'mceButtonNormal'); - - if (node.nodeName == "A" && tinyMCE.getAttrib(node, "class").indexOf('mceItemAnchor') != -1) - tinyMCE.switchClass(editor_id + '_anchor', 'mceButtonSelected'); - - // Get link - var anchorLink = tinyMCE.getParentElement(node, "a", "href"); - - if (anchorLink || any_selection) { - tinyMCE.switchClass(editor_id + '_link', anchorLink ? 'mceButtonSelected' : 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_unlink', anchorLink ? 'mceButtonSelected' : 'mceButtonNormal'); - } - - // Handle visual aid - tinyMCE.switchClass(editor_id + '_visualaid', visual_aid ? 'mceButtonSelected' : 'mceButtonNormal'); - - if (undo_levels != -1) { - tinyMCE.switchClass(editor_id + '_undo', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_redo', 'mceButtonDisabled'); - } - - // Within li, blockquote - if (tinyMCE.getParentElement(node, "li,blockquote")) - tinyMCE.switchClass(editor_id + '_outdent', 'mceButtonNormal'); - - // Has redo levels - if (undo_index != -1 && (undo_index < undo_levels-1 && undo_levels > 0)) - tinyMCE.switchClass(editor_id + '_redo', 'mceButtonNormal'); - - // Has undo levels - if (undo_index != -1 && (undo_index > 0 && undo_levels > 0)) - tinyMCE.switchClass(editor_id + '_undo', 'mceButtonNormal'); - - // Select class in select box - var selectElm = document.getElementById(editor_id + "_umbracoFormatSelect"); - - if (selectElm) { - TinyMCE_AdvancedTheme._setupCSSClasses(editor_id); - - classNode = node; - breakOut = false; - var index = 0; - - do { - if (classNode && classNode.className) { - for (var i=0; i"); - else - selectByValue(selectElm, ""); - } - - // Select fontselect - var selectElm = document.getElementById(editor_id + "_fontNameSelect"); - if (selectElm) { - if (!tinyMCE.isSafari && !(tinyMCE.isMSIE && !tinyMCE.isOpera)) { - var face = inst.queryCommandValue('FontName'); - - face = face == null || face == "" ? "" : face; - - selectByValue(selectElm, face, face != ""); - } else { - var elm = tinyMCE.getParentElement(node, "font", "face"); - - if (elm) { - var family = tinyMCE.getAttrib(elm, "face"); - - if (family == '') - family = '' + elm.style.fontFamily; - - if (!selectByValue(selectElm, family, family != "")) - selectByValue(selectElm, ""); - } else - selectByValue(selectElm, ""); - } - } - - // Select fontsize - var selectElm = document.getElementById(editor_id + "_fontSizeSelect"); - if (selectElm) { - if (!tinyMCE.isSafari && !tinyMCE.isOpera) { - var size = inst.queryCommandValue('FontSize'); - selectByValue(selectElm, size == null || size == "" ? "0" : size); - } else { - var elm = tinyMCE.getParentElement(node, "font", "size"); - if (elm) { - var size = tinyMCE.getAttrib(elm, "size"); - - if (size == '') { - var sizes = new Array('', '8px', '10px', '12px', '14px', '18px', '24px', '36px'); - - size = '' + elm.style.fontSize; - - for (var i=0; i 0) - selectElm.setAttribute('cssImported', 'true'); - } - }, - - _setCookie : function(name, value, expires, path, domain, secure) { - var curCookie = name + "=" + escape(value) + - ((expires) ? "; expires=" + expires.toGMTString() : "") + - ((path) ? "; path=" + escape(path) : "") + - ((domain) ? "; domain=" + domain : "") + - ((secure) ? "; secure" : ""); - - document.cookie = curCookie; - }, - - _getCookie : function(name) { - var dc = document.cookie; - var prefix = name + "="; - var begin = dc.indexOf("; " + prefix); - - if (begin == -1) { - begin = dc.indexOf(prefix); - - if (begin != 0) - return null; - } else - begin += 2; - - var end = document.cookie.indexOf(";", begin); - - if (end == -1) - end = dc.length; - - return unescape(dc.substring(begin + prefix.length, end)); - }, - - _resizeTo : function(inst, w, h, set_w) { - var editorContainer = document.getElementById(inst.editorId + '_parent'); - var tableElm = editorContainer.firstChild; - var iframe = inst.iframeElement; - - if (w == null || w == "null") { - set_w = false; - w = 0; - } - - if (h == null || h == "null") - return; - - w = parseInt(w); - h = parseInt(h); - - if (tinyMCE.isGecko) { - w += 2; - h += 2; - } - - var dx = w - tableElm.clientWidth; - var dy = h - tableElm.clientHeight; - - w = w < 1 ? 30 : w; - h = h < 1 ? 30 : h; - - if (set_w) - tableElm.style.width = w + "px"; - - tableElm.style.height = h + "px"; - - iw = iframe.clientWidth + dx; - ih = iframe.clientHeight + dy; - - iw = iw < 1 ? 30 : iw; - ih = ih < 1 ? 30 : ih; - - if (tinyMCE.isGecko) { - iw -= 2; - ih -= 2; - } - - if (set_w) - iframe.style.width = iw + "px"; - - iframe.style.height = ih + "px"; - - // Is it to small, make it bigger again - if (set_w) { - var tableBodyElm = tableElm.firstChild; - var minIframeWidth = tableBodyElm.scrollWidth; - if (inst.iframeElement.clientWidth < minIframeWidth) { - dx = minIframeWidth - inst.iframeElement.clientWidth; - - inst.iframeElement.style.width = (iw + dx) + "px"; - } - } - - // Remove pesky table controls - inst.useCSS = false; - }, - - /** - * Handles resizing events. - */ - _resizeEventHandler : function(e) { - var resizer = TinyMCE_AdvancedTheme._resizer; - - // Do nothing - if (!resizer.resizing) - return; - - e = typeof(e) == "undefined" ? window.event : e; - - var dx = e.screenX - resizer.downX; - var dy = e.screenY - resizer.downY; - var resizeBox = resizer.resizeBox; - var editorId = resizer.editorId; - - switch (e.type) { - case "mousemove": - var w, h; - - w = resizer.width + dx; - h = resizer.height + dy; - - w = w < 1 ? 1 : w; - h = h < 1 ? 1 : h; - - if (resizer.horizontal) - resizeBox.style.width = w + "px"; - - resizeBox.style.height = h + "px"; - break; - - case "mouseup": - TinyMCE_AdvancedTheme._setResizing(e, editorId, false); - TinyMCE_AdvancedTheme._resizeTo(tinyMCE.getInstanceById(editorId), resizer.width + dx, resizer.height + dy, resizer.horizontal); - - // Expire in a month - if (tinyMCE.getParam("theme_advanced_resizing_use_cookie", true)) { - var expires = new Date(); - expires.setTime(expires.getTime() + 3600000 * 24 * 30); - - // Set the cookies - TinyMCE_AdvancedTheme._setCookie("TinyMCE_" + editorId + "_width", "" + (resizer.horizontal ? resizer.width + dx : ""), expires); - TinyMCE_AdvancedTheme._setCookie("TinyMCE_" + editorId + "_height", "" + (resizer.height + dy), expires); - } - break; - } - }, - - /** - * Starts/stops the editor resizing. - */ - _setResizing : function(e, editor_id, state) { - e = typeof(e) == "undefined" ? window.event : e; - - var resizer = TinyMCE_AdvancedTheme._resizer; - var editorContainer = document.getElementById(editor_id + '_parent'); - var editorArea = document.getElementById(editor_id + '_parent').firstChild; - var resizeBox = document.getElementById(editor_id + '_resize_box'); - var inst = tinyMCE.getInstanceById(editor_id); - - if (state) { - // Place box over editor area - var width = editorArea.clientWidth; - var height = editorArea.clientHeight; - - resizeBox.style.width = width + "px"; - resizeBox.style.height = height + "px"; - - resizer.iframeWidth = inst.iframeElement.clientWidth; - resizer.iframeHeight = inst.iframeElement.clientHeight; - - // Hide editor and show resize box - editorArea.style.display = "none"; - resizeBox.style.display = "block"; - - // Add event handlers, only once - if (!resizer.eventHandlers) { - if (tinyMCE.isMSIE) - tinyMCE.addEvent(document, "mousemove", TinyMCE_AdvancedTheme._resizeEventHandler); - else - tinyMCE.addEvent(window, "mousemove", TinyMCE_AdvancedTheme._resizeEventHandler); - - tinyMCE.addEvent(document, "mouseup", TinyMCE_AdvancedTheme._resizeEventHandler); - - resizer.eventHandlers = true; - } - - resizer.resizing = true; - resizer.downX = e.screenX; - resizer.downY = e.screenY; - resizer.width = parseInt(resizeBox.style.width); - resizer.height = parseInt(resizeBox.style.height); - resizer.editorId = editor_id; - resizer.resizeBox = resizeBox; - resizer.horizontal = tinyMCE.getParam("theme_advanced_resize_horizontal", true); - } else { - resizer.resizing = false; - resizeBox.style.display = "none"; - editorArea.style.display = tinyMCE.isMSIE && !tinyMCE.isOpera ? "block" : "table"; - tinyMCE.execCommand('mceResetDesignMode'); - } - }, - - _getColorHTML : function(id, n, cm) { - var i, h, cl; - - h = ''; - cl = tinyMCE.getParam(n, TinyMCE_AdvancedTheme._defColors).split(','); - - h += ''; - for (i=0; i'; - - if ((i+1) % 8 == 0) - h += ''; - } - - h += '
'; - /* - h += 'More colors'; - */ - - return h; - }, - - _insertImage : function(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout) { - tinyMCE.execCommand('mceBeginUndoLevel'); - - if (src == "") - return; - - if (!tinyMCE.imgElement && tinyMCE.isSafari) { - var html = ""; - - html += '' + alt + ''; - - tinyMCE.execCommand("mceInsertContent", false, html); - } else { - if (!tinyMCE.imgElement && tinyMCE.selectedInstance) { - if (tinyMCE.isSafari) - tinyMCE.execCommand("mceInsertContent", false, ''); - else - tinyMCE.selectedInstance.contentDocument.execCommand("insertimage", false, tinyMCE.uniqueURL); - - tinyMCE.imgElement = tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body, "img", "src", tinyMCE.uniqueURL); - } - } - - if (tinyMCE.imgElement) { - var needsRepaint = false; - var msrc = src; - - src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, tinyMCE.imgElement);"); - - if (tinyMCE.getParam('convert_urls')) - msrc = src; - - if (onmouseover && onmouseover != "") - onmouseover = "this.src='" + eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseover, tinyMCE.imgElement);") + "';"; - - if (onmouseout && onmouseout != "") - onmouseout = "this.src='" + eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseout, tinyMCE.imgElement);") + "';"; - - // Use alt as title if it's undefined - if (typeof(title) == "undefined") - title = alt; - - if (width != tinyMCE.imgElement.getAttribute("width") || height != tinyMCE.imgElement.getAttribute("height") || align != tinyMCE.imgElement.getAttribute("align")) - needsRepaint = true; - - tinyMCE.setAttrib(tinyMCE.imgElement, 'src', src); - tinyMCE.setAttrib(tinyMCE.imgElement, 'mce_src', msrc); - tinyMCE.setAttrib(tinyMCE.imgElement, 'alt', alt); - tinyMCE.setAttrib(tinyMCE.imgElement, 'title', title); - tinyMCE.setAttrib(tinyMCE.imgElement, 'align', align); - tinyMCE.setAttrib(tinyMCE.imgElement, 'border', border, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'hspace', hspace, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'vspace', vspace, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'width', width, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'height', height, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'onmouseover', onmouseover); - tinyMCE.setAttrib(tinyMCE.imgElement, 'onmouseout', onmouseout); - - // Fix for bug #989846 - Image resize bug - if (width && width != "") - tinyMCE.imgElement.style.pixelWidth = width; - - if (height && height != "") - tinyMCE.imgElement.style.pixelHeight = height; - - if (needsRepaint) - tinyMCE.selectedInstance.repaint(); - } - - tinyMCE.execCommand('mceEndUndoLevel'); - }, - - _insertLink : function(href, target, title, onclick, style_class) { - tinyMCE.execCommand('mceBeginUndoLevel'); - - if (tinyMCE.selectedInstance && tinyMCE.selectedElement && tinyMCE.selectedElement.nodeName.toLowerCase() == "img") { - var doc = tinyMCE.selectedInstance.getDoc(); - var linkElement = tinyMCE.getParentElement(tinyMCE.selectedElement, "a"); - var newLink = false; - - if (!linkElement) { - linkElement = doc.createElement("a"); - newLink = true; - } - - var mhref = href; - var thref = eval(tinyMCE.settings['urlconverter_callback'] + "(href, linkElement);"); - mhref = tinyMCE.getParam('convert_urls') ? href : mhref; - - tinyMCE.setAttrib(linkElement, 'href', thref); - tinyMCE.setAttrib(linkElement, 'mce_href', mhref); - tinyMCE.setAttrib(linkElement, 'target', target); - tinyMCE.setAttrib(linkElement, 'title', title); - tinyMCE.setAttrib(linkElement, 'onclick', onclick); - tinyMCE.setAttrib(linkElement, 'class', style_class); - - if (newLink) { - linkElement.appendChild(tinyMCE.selectedElement.cloneNode(true)); - tinyMCE.selectedElement.parentNode.replaceChild(linkElement, tinyMCE.selectedElement); - } - - return; - } - - if (!tinyMCE.linkElement && tinyMCE.selectedInstance) { - if (tinyMCE.isSafari) { - tinyMCE.execCommand("mceInsertContent", false, '' + tinyMCE.selectedInstance.selection.getSelectedHTML() + ''); - } else - tinyMCE.selectedInstance.contentDocument.execCommand("createlink", false, tinyMCE.uniqueURL); - - tinyMCE.linkElement = tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body, "a", "href", tinyMCE.uniqueURL); - - var elementArray = tinyMCE.getElementsByAttributeValue(tinyMCE.selectedInstance.contentDocument.body, "a", "href", tinyMCE.uniqueURL); - - for (var i=0; i - - {$lang_insert_image_title} - - - - - - - -
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
- x -
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/anchor.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/anchor.gif deleted file mode 100644 index 34ab71534b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/anchor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/anchor_symbol.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/anchor_symbol.gif deleted file mode 100644 index 2eafd7954e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/anchor_symbol.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/backcolor.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/backcolor.gif deleted file mode 100644 index d03e206a35..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/backcolor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold.gif deleted file mode 100644 index d6a9cc2cd4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_de_se.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_de_se.gif deleted file mode 100644 index 9b129de25e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_de_se.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_es.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_es.gif deleted file mode 100644 index ea341e6089..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_es.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_fr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_fr.gif deleted file mode 100644 index 2816454515..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_fr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_ru.gif deleted file mode 100644 index e000d461c9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_tw.gif deleted file mode 100644 index 82085432c6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bold_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/browse.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/browse.gif deleted file mode 100644 index c786d0b205..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/browse.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bullist.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bullist.gif deleted file mode 100644 index 6e19467c70..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/bullist.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/button_menu.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/button_menu.gif deleted file mode 100644 index c3d8fa2311..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/button_menu.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/buttons.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/buttons.gif deleted file mode 100644 index 5ad99a7c43..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/buttons.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cancel_button_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cancel_button_bg.gif deleted file mode 100644 index 4b4aeefcbb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cancel_button_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/charmap.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/charmap.gif deleted file mode 100644 index 3cdc4ac913..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/charmap.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cleanup.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cleanup.gif deleted file mode 100644 index 16491f6cfc..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cleanup.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/close.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/close.gif deleted file mode 100644 index 679ca2aa47..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/close.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/code.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/code.gif deleted file mode 100644 index c5d5a67275..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/code.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/color.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/color.gif deleted file mode 100644 index 1ecd5743b6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/color.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/copy.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/copy.gif deleted file mode 100644 index dc146865c5..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/copy.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/custom_1.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/custom_1.gif deleted file mode 100644 index 4cbccdadf6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/custom_1.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cut.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cut.gif deleted file mode 100644 index 4e9a70b6e2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/cut.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/forecolor.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/forecolor.gif deleted file mode 100644 index 8b70361608..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/forecolor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/help.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/help.gif deleted file mode 100644 index 51a1ee4207..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/help.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/hr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/hr.gif deleted file mode 100644 index 1a1ba2a015..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/hr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/image.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/image.gif deleted file mode 100644 index 4b88eddc26..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/image.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/indent.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/indent.gif deleted file mode 100644 index acd315bb16..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/indent.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/insert_button_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/insert_button_bg.gif deleted file mode 100644 index 69c131ce29..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/insert_button_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic.gif deleted file mode 100644 index 8bb330bd0b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_de_se.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_de_se.gif deleted file mode 100644 index feb0309e74..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_de_se.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_es.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_es.gif deleted file mode 100644 index 4572cdb1d0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_es.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_ru.gif deleted file mode 100644 index a2bb69a725..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_tw.gif deleted file mode 100644 index 4f6eeaa2b2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/italic_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifycenter.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifycenter.gif deleted file mode 100644 index 42d609a991..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifycenter.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyfull.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyfull.gif deleted file mode 100644 index c8504f626f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyfull.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyleft.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyleft.gif deleted file mode 100644 index e8f7e42769..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyleft.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyright.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyright.gif deleted file mode 100644 index e4cea97148..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/justifyright.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/link.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/link.gif deleted file mode 100644 index 1accf42626..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/link.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/menu_check.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/menu_check.gif deleted file mode 100644 index 50d6afd505..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/menu_check.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/newdocument.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/newdocument.gif deleted file mode 100644 index a9d2938423..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/newdocument.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/numlist.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/numlist.gif deleted file mode 100644 index a2683522f4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/numlist.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/opacity.png b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/opacity.png deleted file mode 100644 index b4217cb212..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/opacity.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/outdent.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/outdent.gif deleted file mode 100644 index 23f6aa4086..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/outdent.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/paste.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/paste.gif deleted file mode 100644 index 1b45000a01..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/paste.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/redo.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/redo.gif deleted file mode 100644 index 3af90697f0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/redo.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/removeformat.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/removeformat.gif deleted file mode 100644 index 0fa3cb7973..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/removeformat.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/separator.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/separator.gif deleted file mode 100644 index 4f39b809e9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/separator.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/spacer.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/spacer.gif deleted file mode 100644 index 388486517f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/spacer.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/statusbar_resize.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/statusbar_resize.gif deleted file mode 100644 index af89d803f8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/statusbar_resize.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/strikethrough.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/strikethrough.gif deleted file mode 100644 index 3264635918..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/strikethrough.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/sub.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/sub.gif deleted file mode 100644 index 4d7ce30ff9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/sub.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/sup.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/sup.gif deleted file mode 100644 index a7145e019a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/sup.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline.gif deleted file mode 100644 index 1dfeb5f6d0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_es.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_es.gif deleted file mode 100644 index 551d9148d3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_es.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_fr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_fr.gif deleted file mode 100644 index 551d9148d3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_fr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_ru.gif deleted file mode 100644 index b78e2a498f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_tw.gif deleted file mode 100644 index b715390484..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/underline_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/undo.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/undo.gif deleted file mode 100644 index 520796d69d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/undo.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/unlink.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/unlink.gif deleted file mode 100644 index 5c8a33db8d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/unlink.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/visualaid.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/visualaid.gif deleted file mode 100644 index 63caf18071..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/visualaid.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_bg.gif deleted file mode 100644 index 897a01f2ba..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_end.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_end.gif deleted file mode 100644 index aee442beba..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_end.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_sel_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_sel_bg.gif deleted file mode 100644 index 9dc8abe1a4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_sel_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_sel_end.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_sel_end.gif deleted file mode 100644 index 616a889d17..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tab_sel_end.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tabs_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tabs_bg.gif deleted file mode 100644 index c303f66dd4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/images/xp/tabs_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/about.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/about.js deleted file mode 100644 index 4e53c285b3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/about.js +++ /dev/null @@ -1,75 +0,0 @@ -function init() { - var inst; - - tinyMCEPopup.resizeToInnerSize(); - inst = tinyMCE.selectedInstance; - - // Give FF some time - window.setTimeout('insertHelpIFrame();', 10); - - var tcont = document.getElementById('plugintablecontainer'); - var plugins = tinyMCE.getParam('plugins', '', true, ','); - if (plugins.length == 0) - document.getElementById('plugins_tab').style.display = 'none'; - - var html = ""; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - - for (var i=0; i' + info.longname + ''; - else - html += ''; - - if (info.authorurl != null && info.authorurl != '') - html += ''; - else - html += ''; - - html += ''; - html += ''; - } - - html += ''; - html += '
' + tinyMCE.getLang('lang_plugin') + '' + tinyMCE.getLang('lang_author') + '' + tinyMCE.getLang('lang_version') + '
' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
'; - - tcont.innerHTML = html; -} - -function getPluginInfo(name) { - if (tinyMCE.plugins[name].getInfo) - return tinyMCE.plugins[name].getInfo(); - - return { - longname : name, - authorurl : '', - infourl : '', - author : '--', - version : '--' - }; -} - -function insertHelpIFrame() { - var html = ''; - - document.getElementById('iframecontainer').innerHTML = html; - - html = ''; - html += 'Got Moxie? '; - html += 'Hosted By Sourceforge '; - html += 'Also on freshmeat '; - - document.getElementById('buttoncontainer').innerHTML = html; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/anchor.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/anchor.js deleted file mode 100644 index e7c1c62c56..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/anchor.js +++ /dev/null @@ -1,74 +0,0 @@ -var action, element; - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var anchor = tinyMCE.getParentElement(inst.getFocusElement(), "a", "name"); - var img = inst.getFocusElement(); - action = 'insert'; - - if (anchor != null) { - element = anchor; - action = "update"; - } - - if (tinyMCE.getAttrib(img, "class") == "mceItemAnchor") { - element = img; - action = "update"; - } - - if (action == "update") - document.forms[0].anchorName.value = element.nodeName == "IMG" ? element.getAttribute("title") : element.getAttribute("name"); - - document.forms[0].insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); -} - -function insertAnchor() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var name = document.forms[0].anchorName.value, e; - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - if (action == "update") { - if (element.nodeName == "IMG") - element.setAttribute("title", name); - else - element.setAttribute("name", name); - } else { - var rng = inst.getRng(); - - if (rng.collapse) - rng.collapse(false); - - name = name.replace(/&/g, '&'); - name = name.replace(/\"/g, '"'); - name = name.replace(//g, '>'); - - // Fix for bug #1447335 - if (tinyMCE.isGecko) - html = ''; - else - html = ''; - - tinyMCEPopup.execCommand("mceInsertContent", false, html); - - // Fix for bug #1447335 force cursor after the anchor element - if (tinyMCE.isGecko) { - e = inst.getDoc().getElementById('mceNewAnchor'); - - if (e) { - inst.selection.selectNode(e, true, false, false); - e.removeAttribute('id'); - } - } - - tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); - } - - tinyMCEPopup.execCommand("mceEndUndoLevel"); - - tinyMCE.triggerNodeChange(); - tinyMCEPopup.close(); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/charmap.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/charmap.js deleted file mode 100644 index eaa6a94b65..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/charmap.js +++ /dev/null @@ -1,326 +0,0 @@ -function init() { - tinyMCEPopup.resizeToInnerSize(); -} - -var charmap = new Array(); - -// for mor details please see w3c.org -// now here is the complete list ;) - -charmap = [ - [' ', ' ', true, 'no-break space'], - ['&', '&', true, 'ampersand'], - ['"', '"', true, 'quotation mark'], -// finance - ['¢', '¢', true, 'cent sign'], - ['€', '€', true, 'euro sign'], - ['£', '£', true, 'pound sign'], - ['¥', '¥', true, 'yen sign'], -// signs - ['©', '©', true, 'copyright sign'], - ['®', '®', true, 'registered sign'], - ['™', '™', true, 'trade mark sign'], - ['‰', '‰', true, 'per mille sign'], - ['µ', 'µ', true, 'micro sign'], - ['·', '·', true, 'middle dot'], - ['•', '•', true, 'bullet'], - ['…', '…', true, 'three dot leader'], - ['′', '′', true, 'minutes / feet'], - ['″', '″', true, 'seconds / inches'], - ['§', '§', true, 'section sign'], - ['¶', '¶', true, 'paragraph sign'], - ['ß', 'ß', true, 'sharp s / ess-zed'], -// quotations - ['‹', '‹', true, 'single left-pointing angle quotation mark'], - ['›', '›', true, 'single right-pointing angle quotation mark'], - ['«', '«', true, 'left pointing guillemet'], - ['»', '»', true, 'right pointing guillemet'], - ['‘', '‘', true, 'left single quotation mark'], - ['’', '’', true, 'right single quotation mark'], - ['“', '“', true, 'left double quotation mark'], - ['”', '”', true, 'right double quotation mark'], - ['‚', '‚', true, 'single low-9 quotation mark'], - ['„', '„', true, 'double low-9 quotation mark'], - ['<', '<', true, 'less-than sign'], - ['>', '>', true, 'greater-than sign'], - ['≤', '≤', true, 'less-than or equal to'], - ['≥', '≥', true, 'greater-than or equal to'], - ['–', '–', true, 'en dash'], - ['—', '—', true, 'em dash'], - ['¯', '¯', true, 'macron'], - ['‾', '‾', true, 'overline'], - ['¤', '¤', true, 'currency sign'], - ['¦', '¦', true, 'broken bar'], - ['¨', '¨', true, 'diaeresis'], - ['¡', '¡', true, 'inverted exclamation mark'], - ['¿', '¿', true, 'turned question mark'], - ['ˆ', 'ˆ', true, 'circumflex accent'], - ['˜', '˜', true, 'small tilde'], - ['°', '°', true, 'degree sign'], - ['−', '−', true, 'minus sign'], - ['±', '±', true, 'plus-minus sign'], - ['÷', '÷', true, 'division sign'], - ['⁄', '⁄', true, 'fraction slash'], - ['×', '×', true, 'multiplication sign'], - ['¹', '¹', true, 'superscript one'], - ['²', '²', true, 'superscript two'], - ['³', '³', true, 'superscript three'], - ['¼', '¼', true, 'fraction one quarter'], - ['½', '½', true, 'fraction one half'], - ['¾', '¾', true, 'fraction three quarters'], -// math / logical - ['ƒ', 'ƒ', true, 'function / florin'], - ['∫', '∫', true, 'integral'], - ['∑', '∑', true, 'n-ary sumation'], - ['∞', '∞', true, 'infinity'], - ['√', '√', true, 'square root'], - ['∼', '∼', false,'similar to'], - ['≅', '≅', false,'approximately equal to'], - ['≈', '≈', true, 'almost equal to'], - ['≠', '≠', true, 'not equal to'], - ['≡', '≡', true, 'identical to'], - ['∈', '∈', false,'element of'], - ['∉', '∉', false,'not an element of'], - ['∋', '∋', false,'contains as member'], - ['∏', '∏', true, 'n-ary product'], - ['∧', '∧', false,'logical and'], - ['∨', '∨', false,'logical or'], - ['¬', '¬', true, 'not sign'], - ['∩', '∩', true, 'intersection'], - ['∪', '∪', false,'union'], - ['∂', '∂', true, 'partial differential'], - ['∀', '∀', false,'for all'], - ['∃', '∃', false,'there exists'], - ['∅', '∅', false,'diameter'], - ['∇', '∇', false,'backward difference'], - ['∗', '∗', false,'asterisk operator'], - ['∝', '∝', false,'proportional to'], - ['∠', '∠', false,'angle'], -// undefined - ['´', '´', true, 'acute accent'], - ['¸', '¸', true, 'cedilla'], - ['ª', 'ª', true, 'feminine ordinal indicator'], - ['º', 'º', true, 'masculine ordinal indicator'], - ['†', '†', true, 'dagger'], - ['‡', '‡', true, 'double dagger'], -// alphabetical special chars - ['À', 'À', true, 'A - grave'], - ['Á', 'Á', true, 'A - acute'], - ['Â', 'Â', true, 'A - circumflex'], - ['Ã', 'Ã', true, 'A - tilde'], - ['Ä', 'Ä', true, 'A - diaeresis'], - ['Å', 'Å', true, 'A - ring above'], - ['Æ', 'Æ', true, 'ligature AE'], - ['Ç', 'Ç', true, 'C - cedilla'], - ['È', 'È', true, 'E - grave'], - ['É', 'É', true, 'E - acute'], - ['Ê', 'Ê', true, 'E - circumflex'], - ['Ë', 'Ë', true, 'E - diaeresis'], - ['Ì', 'Ì', true, 'I - grave'], - ['Í', 'Í', true, 'I - acute'], - ['Î', 'Î', true, 'I - circumflex'], - ['Ï', 'Ï', true, 'I - diaeresis'], - ['Ð', 'Ð', true, 'ETH'], - ['Ñ', 'Ñ', true, 'N - tilde'], - ['Ò', 'Ò', true, 'O - grave'], - ['Ó', 'Ó', true, 'O - acute'], - ['Ô', 'Ô', true, 'O - circumflex'], - ['Õ', 'Õ', true, 'O - tilde'], - ['Ö', 'Ö', true, 'O - diaeresis'], - ['Ø', 'Ø', true, 'O - slash'], - ['Œ', 'Œ', true, 'ligature OE'], - ['Š', 'Š', true, 'S - caron'], - ['Ù', 'Ù', true, 'U - grave'], - ['Ú', 'Ú', true, 'U - acute'], - ['Û', 'Û', true, 'U - circumflex'], - ['Ü', 'Ü', true, 'U - diaeresis'], - ['Ý', 'Ý', true, 'Y - acute'], - ['Ÿ', 'Ÿ', true, 'Y - diaeresis'], - ['Þ', 'Þ', true, 'THORN'], - ['à', 'à', true, 'a - grave'], - ['á', 'á', true, 'a - acute'], - ['â', 'â', true, 'a - circumflex'], - ['ã', 'ã', true, 'a - tilde'], - ['ä', 'ä', true, 'a - diaeresis'], - ['å', 'å', true, 'a - ring above'], - ['æ', 'æ', true, 'ligature ae'], - ['ç', 'ç', true, 'c - cedilla'], - ['è', 'è', true, 'e - grave'], - ['é', 'é', true, 'e - acute'], - ['ê', 'ê', true, 'e - circumflex'], - ['ë', 'ë', true, 'e - diaeresis'], - ['ì', 'ì', true, 'i - grave'], - ['í', 'í', true, 'i - acute'], - ['î', 'î', true, 'i - circumflex'], - ['ï', 'ï', true, 'i - diaeresis'], - ['ð', 'ð', true, 'eth'], - ['ñ', 'ñ', true, 'n - tilde'], - ['ò', 'ò', true, 'o - grave'], - ['ó', 'ó', true, 'o - acute'], - ['ô', 'ô', true, 'o - circumflex'], - ['õ', 'õ', true, 'o - tilde'], - ['ö', 'ö', true, 'o - diaeresis'], - ['ø', 'ø', true, 'o slash'], - ['œ', 'œ', true, 'ligature oe'], - ['š', 'š', true, 's - caron'], - ['ù', 'ù', true, 'u - grave'], - ['ú', 'ú', true, 'u - acute'], - ['û', 'û', true, 'u - circumflex'], - ['ü', 'ü', true, 'u - diaeresis'], - ['ý', 'ý', true, 'y - acute'], - ['þ', 'þ', true, 'thorn'], - ['ÿ', 'ÿ', true, 'y - diaeresis'], - ['Α', 'Α', true, 'Alpha'], - ['Β', 'Β', true, 'Beta'], - ['Γ', 'Γ', true, 'Gamma'], - ['Δ', 'Δ', true, 'Delta'], - ['Ε', 'Ε', true, 'Epsilon'], - ['Ζ', 'Ζ', true, 'Zeta'], - ['Η', 'Η', true, 'Eta'], - ['Θ', 'Θ', true, 'Theta'], - ['Ι', 'Ι', true, 'Iota'], - ['Κ', 'Κ', true, 'Kappa'], - ['Λ', 'Λ', true, 'Lambda'], - ['Μ', 'Μ', true, 'Mu'], - ['Ν', 'Ν', true, 'Nu'], - ['Ξ', 'Ξ', true, 'Xi'], - ['Ο', 'Ο', true, 'Omicron'], - ['Π', 'Π', true, 'Pi'], - ['Ρ', 'Ρ', true, 'Rho'], - ['Σ', 'Σ', true, 'Sigma'], - ['Τ', 'Τ', true, 'Tau'], - ['Υ', 'Υ', true, 'Upsilon'], - ['Φ', 'Φ', true, 'Phi'], - ['Χ', 'Χ', true, 'Chi'], - ['Ψ', 'Ψ', true, 'Psi'], - ['Ω', 'Ω', true, 'Omega'], - ['α', 'α', true, 'alpha'], - ['β', 'β', true, 'beta'], - ['γ', 'γ', true, 'gamma'], - ['δ', 'δ', true, 'delta'], - ['ε', 'ε', true, 'epsilon'], - ['ζ', 'ζ', true, 'zeta'], - ['η', 'η', true, 'eta'], - ['θ', 'θ', true, 'theta'], - ['ι', 'ι', true, 'iota'], - ['κ', 'κ', true, 'kappa'], - ['λ', 'λ', true, 'lambda'], - ['μ', 'μ', true, 'mu'], - ['ν', 'ν', true, 'nu'], - ['ξ', 'ξ', true, 'xi'], - ['ο', 'ο', true, 'omicron'], - ['π', 'π', true, 'pi'], - ['ρ', 'ρ', true, 'rho'], - ['ς', 'ς', true, 'final sigma'], - ['σ', 'σ', true, 'sigma'], - ['τ', 'τ', true, 'tau'], - ['υ', 'υ', true, 'upsilon'], - ['φ', 'φ', true, 'phi'], - ['χ', 'χ', true, 'chi'], - ['ψ', 'ψ', true, 'psi'], - ['ω', 'ω', true, 'omega'], -// symbols - ['ℵ', 'ℵ', false,'alef symbol'], - ['ϖ', 'ϖ', false,'pi symbol'], - ['ℜ', 'ℜ', false,'real part symbol'], - ['ϑ','ϑ', false,'theta symbol'], - ['ϒ', 'ϒ', false,'upsilon - hook symbol'], - ['℘', '℘', false,'Weierstrass p'], - ['ℑ', 'ℑ', false,'imaginary part'], -// arrows - ['←', '←', true, 'leftwards arrow'], - ['↑', '↑', true, 'upwards arrow'], - ['→', '→', true, 'rightwards arrow'], - ['↓', '↓', true, 'downwards arrow'], - ['↔', '↔', true, 'left right arrow'], - ['↵', '↵', false,'carriage return'], - ['⇐', '⇐', false,'leftwards double arrow'], - ['⇑', '⇑', false,'upwards double arrow'], - ['⇒', '⇒', false,'rightwards double arrow'], - ['⇓', '⇓', false,'downwards double arrow'], - ['⇔', '⇔', false,'left right double arrow'], - ['∴', '∴', false,'therefore'], - ['⊂', '⊂', false,'subset of'], - ['⊃', '⊃', false,'superset of'], - ['⊄', '⊄', false,'not a subset of'], - ['⊆', '⊆', false,'subset of or equal to'], - ['⊇', '⊇', false,'superset of or equal to'], - ['⊕', '⊕', false,'circled plus'], - ['⊗', '⊗', false,'circled times'], - ['⊥', '⊥', false,'perpendicular'], - ['⋅', '⋅', false,'dot operator'], - ['⌈', '⌈', false,'left ceiling'], - ['⌉', '⌉', false,'right ceiling'], - ['⌊', '⌊', false,'left floor'], - ['⌋', '⌋', false,'right floor'], - ['⟨', '〈', false,'left-pointing angle bracket'], - ['⟩', '〉', false,'right-pointing angle bracket'], - ['◊', '◊', true,'lozenge'], - ['♠', '♠', false,'black spade suit'], - ['♣', '♣', true, 'black club suit'], - ['♥', '♥', true, 'black heart suit'], - ['♦', '♦', true, 'black diamond suit'], - [' ', ' ', false,'en space'], - [' ', ' ', false,'em space'], - [' ', ' ', false,'thin space'], - ['‌', '‌', false,'zero width non-joiner'], - ['‍', '‍', false,'zero width joiner'], - ['‎', '‎', false,'left-to-right mark'], - ['‏', '‏', false,'right-to-left mark'], - ['­', '­', false,'soft hyphen'] -]; - -function renderCharMapHTML() { - var charsPerRow = 20, tdWidth=20, tdHeight=20; - var html = ''; - var cols=-1; - for (var i=0; i' - + charmap[i][1] - + ''; - if ((cols+1) % charsPerRow == 0) - html += ''; - } - } - if (cols % charsPerRow > 0) { - var padd = charsPerRow - (cols % charsPerRow); - for (var i=0; i '; - } - html += '
'; - document.write(html); -} - -function insertChar(chr) { - tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';'); - - // Refocus in window - if (tinyMCEPopup.isWindow) - window.focus(); - - tinyMCEPopup.close(); -} - -function previewChar(codeA, codeB, codeN) { - var elmA = document.getElementById('codeA'); - var elmB = document.getElementById('codeB'); - var elmV = document.getElementById('codeV'); - var elmN = document.getElementById('codeN'); - - if (codeA=='#160;') { - elmV.innerHTML = '__'; - } else { - elmV.innerHTML = '&' + codeA; - } - - elmB.innerHTML = '&' + codeA; - elmA.innerHTML = '&' + codeB; - elmN.innerHTML = codeN; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/color_picker.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/color_picker.js deleted file mode 100644 index 68b5db2d6a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/color_picker.js +++ /dev/null @@ -1,108 +0,0 @@ -function init() { - if (tinyMCE.isMSIE) - tinyMCEPopup.resizeToInnerSize(); -} - -function selectColor() { - var color = document.getElementById("selectedColorBox").value; - - tinyMCEPopup.execCommand(tinyMCE.getWindowArg('command'), false, color); - tinyMCEPopup.close(); -} - -function showColor(color) { - document.getElementById("selectedColor").style.backgroundColor = color; - document.getElementById("selectedColorBox").value = color; -} - -var colors = new Array( - "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", - "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", - "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff", - "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033", - "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399", - "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff", - "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333", - "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399", - "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff", - "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633", - "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699", - "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff", - "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633", - "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999", - "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff", - "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933", - "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999", - "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff", - "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33", - "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99", - "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff", - "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33", - "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99", - "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff", - "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33", - "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99", - "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff" -); - -function convertRGBToHex(col) { - var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi"); - - var rgb = col.replace(re, "$1,$2,$3").split(','); - if (rgb.length == 3) { - r = parseInt(rgb[0]).toString(16); - g = parseInt(rgb[1]).toString(16); - b = parseInt(rgb[2]).toString(16); - - r = r.length == 1 ? '0' + r : r; - g = g.length == 1 ? '0' + g : g; - b = b.length == 1 ? '0' + b : b; - - return "#" + r + g + b; - } - - return col; -} - -function convertHexToRGB(col) { - if (col.indexOf('#') != -1) { - col = col.replace(new RegExp('[^0-9A-F]', 'gi'), ''); - - r = parseInt(col.substring(0, 2), 16); - g = parseInt(col.substring(2, 4), 16); - b = parseInt(col.substring(4, 6), 16); - - return "rgb(" + r + "," + g + "," + b + ")"; - } - - return col; -} - -function renderColorMap() { - var html = ""; - var inputColor = convertRGBToHex(tinyMCE.getWindowArg('input_color')); - - html += '' - + ''; - for (var i=0; i' - + '' - + '' + colors[i] +  ''; - if ((i+1) % 18 == 0) - html += ''; - } - html += '' - + '
' - + '' - + '' - + '
' - + '' - + '' - + '' - + '
' - + '
' - + '
' - + '
'; - - document.write(html); -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/image.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/image.js deleted file mode 100644 index a52bfad6ae..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/jscripts/image.js +++ /dev/null @@ -1,81 +0,0 @@ -var url = tinyMCE.getParam("external_image_list_url"); -if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); -} - -function insertImage() { - var src = document.forms[0].src.value; - var alt = document.forms[0].alt.value; - var border = document.forms[0].border.value; - var vspace = document.forms[0].vspace.value; - var hspace = document.forms[0].hspace.value; - var width = document.forms[0].width.value; - var height = document.forms[0].height.value; - var align = document.forms[0].align.options[document.forms[0].align.selectedIndex].value; - - tinyMCEPopup.restoreSelection(); - tinyMCE.themes['advanced']._insertImage(src, alt, border, hspace, vspace, width, height, align); - tinyMCEPopup.close(); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); - - var formObj = document.forms[0]; - - for (var i=0; i 0) { - for (var i=0; i'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','theme_advanced_link'); - - // Handle file browser - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '180px'; - - var formObj = document.forms[0]; - - for (var i=0; i 0) { - var formObj = document.forms[0]; - - for (var i=0; i - - {$lang_insert_link_title} - - - - - - - -
- - -
-
- - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/source_editor.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/source_editor.htm deleted file mode 100644 index a8fb005116..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/advanced/source_editor.htm +++ /dev/null @@ -1,32 +0,0 @@ - - - - {$lang_theme_code_title} - - - - - -
-
{$lang_theme_code_title}
- -
- -
- -
- - - -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_content.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_content.css deleted file mode 100644 index 2506c807ca..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_content.css +++ /dev/null @@ -1,25 +0,0 @@ -body, td, pre { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; -} - -body { - background-color: #FFFFFF; -} - -.mceVisualAid { - border: 1px dashed #BBBBBB; -} - -/* MSIE specific */ - -* html body { - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_popup.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_popup.css deleted file mode 100644 index f29b04a55b..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_popup.css +++ /dev/null @@ -1,41 +0,0 @@ -body { - background-color: #F0F0EE; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; -} - -td { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; -} - -input { - background: #FFFFFF; - border: 1px solid #cccccc; -} - -td, input, select, textarea { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; -} - -input, select, textarea { - border: 1px solid #808080; -} - -.input_noborder { - border: 0; -} - -.title { - font-size: 12px; - font-weight: bold; -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_ui.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_ui.css deleted file mode 100644 index 6f5776820a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/css/editor_ui.css +++ /dev/null @@ -1,125 +0,0 @@ -.mceSeparatorLine { - border: 0; - padding: 0; - margin-left: 4px; - margin-right: 2px; -} - -.mceSelectList { - font-family: "MS Sans Serif"; - font-size: 7pt; - font-weight: normal; - margin-top: 2px; -} - -.mceLabel, .mceLabelDisabled { - font-family: "MS Sans Serif"; - font-size: 9pt; -} - -.mceLabel { - color: #000000; -} - -.mceLabelDisabled { - cursor: text; - color: #999999; -} - -.mceEditor { - background: #F0F0EE; - border: 1px solid #cccccc; -} - -.mceEditorArea { - font-family: "MS Sans Serif"; - background: #FFFFFF; -} - -.mceToolbar { - background: #F0F0EE; - border-top: 1px solid #cccccc; - line-height: 1px; - font-size: 1px; - padding-bottom: 1px; -} - -.mceEditorIframe { - border: 0; -} - -/* Button CSS rules */ - -a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img { - width: 20px; - height: 20px; - cursor: default; - margin-top: 1px; - margin-left: 1px; -} - -a.mceButtonDisabled img { - border: 0 !important; -} - -a.mceButtonNormal img, a.mceButtonSelected img { - border: 1px solid #F0F0EE !important; -} - -a.mceButtonSelected img { - border: 1px solid #C0C0BB !important; -} - -a.mceButtonNormal img:hover, a.mceButtonSelected img:hover { - border: 1px solid #0A246A !important; - cursor: default; - background-color: #B6BDD2; -} - -a.mceButtonDisabled img { - -moz-opacity:0.3; - opacity: 0.3; - border: 1px solid #F0F0EE !important; - cursor: default; -} - -a.mceTiledButton img { - background-image: url('../images/buttons.gif'); - background-repeat: no-repeat; -} - -/* MSIE specific rules */ - -* html a.mceButtonNormal img, * html a.mceButtonSelected img, * html a.mceButtonDisabled img { - border: 0px !important; - margin-top: 2px; - margin-bottom: 1px; -} - -* html a.mceButtonDisabled img { - filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); - border: 0px !important; -} - -* html a.mceButtonDisabled { - border: 1px solid #F0F0EE !important; -} - -* html a.mceButtonNormal, * html a.mceButtonSelected { - border: 1px solid #F0F0EE; - cursor: default; -} - -* html a.mceButtonSelected { - border: 1px solid #C0C0BB; -} - -* html a.mceButtonNormal:hover, * html a.mceButtonSelected:hover { - border: 1px solid #0A246A; - cursor: default; - background-color: #B6BDD2; -} - -* html .mceSelectList { - margin-top: 2px; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/editor_template.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/editor_template.js deleted file mode 100644 index ef99fa29d6..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/editor_template.js +++ /dev/null @@ -1 +0,0 @@ -var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='';html+='';html+='
';html+='IFRAME';html+='
';html+=tinyMCE.getButtonHTML('bold','lang_bold_desc','{$themeurl}/images/{$lang_bold_img}','Bold');html+=tinyMCE.getButtonHTML('italic','lang_italic_desc','{$themeurl}/images/{$lang_italic_img}','Italic');html+=tinyMCE.getButtonHTML('underline','lang_underline_desc','{$themeurl}/images/{$lang_underline_img}','Underline');html+=tinyMCE.getButtonHTML('strikethrough','lang_striketrough_desc','{$themeurl}/images/strikethrough.gif','Strikethrough');html+='';html+=tinyMCE.getButtonHTML('undo','lang_undo_desc','{$themeurl}/images/undo.gif','Undo');html+=tinyMCE.getButtonHTML('redo','lang_redo_desc','{$themeurl}/images/redo.gif','Redo');html+='';html+=tinyMCE.getButtonHTML('cleanup','lang_cleanup_desc','{$themeurl}/images/cleanup.gif','mceCleanup');html+='';html+=tinyMCE.getButtonHTML('bullist','lang_bullist_desc','{$themeurl}/images/bullist.gif','InsertUnorderedList');html+=tinyMCE.getButtonHTML('numlist','lang_numlist_desc','{$themeurl}/images/numlist.gif','InsertOrderedList');html+='
';return{delta_width:0,delta_height:20,html:html}},handleNodeChange:function(editor_id,node){tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_numlist','mceButtonNormal');do{switch(node.nodeName.toLowerCase()){case"b":case"strong":tinyMCE.switchClass(editor_id+'_bold','mceButtonSelected');break;case"i":case"em":tinyMCE.switchClass(editor_id+'_italic','mceButtonSelected');break;case"u":tinyMCE.switchClass(editor_id+'_underline','mceButtonSelected');break;case"strike":tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonSelected');break;case"ul":tinyMCE.switchClass(editor_id+'_bullist','mceButtonSelected');break;case"ol":tinyMCE.switchClass(editor_id+'_numlist','mceButtonSelected');break}}while((node=node.parentNode)!=null)}};tinyMCE.addTheme("simple",TinyMCE_SimpleTheme);tinyMCE.addButtonMap(TinyMCE_SimpleTheme._buttonMap); \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/editor_template_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/editor_template_src.js deleted file mode 100644 index 73a0df3d9e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/editor_template_src.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * $Id: editor_template_src.js 162 2007-01-03 16:16:52Z spocke $ - * - * @author Moxiecode - * @copyright Copyright 2004-2007, Moxiecode Systems AB, All rights reserved. - */ - -var TinyMCE_SimpleTheme = { - // List of button ids in tile map - _buttonMap : 'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo', - - getEditorTemplate : function() { - var html = ''; - - html += ''; - html += ''; - html += '
'; - html += 'IFRAME'; - html += '
'; - html += tinyMCE.getButtonHTML('bold', 'lang_bold_desc', '{$themeurl}/images/{$lang_bold_img}', 'Bold'); - html += tinyMCE.getButtonHTML('italic', 'lang_italic_desc', '{$themeurl}/images/{$lang_italic_img}', 'Italic'); - html += tinyMCE.getButtonHTML('underline', 'lang_underline_desc', '{$themeurl}/images/{$lang_underline_img}', 'Underline'); - html += tinyMCE.getButtonHTML('strikethrough', 'lang_striketrough_desc', '{$themeurl}/images/strikethrough.gif', 'Strikethrough'); - html += ''; - html += tinyMCE.getButtonHTML('undo', 'lang_undo_desc', '{$themeurl}/images/undo.gif', 'Undo'); - html += tinyMCE.getButtonHTML('redo', 'lang_redo_desc', '{$themeurl}/images/redo.gif', 'Redo'); - html += ''; - html += tinyMCE.getButtonHTML('cleanup', 'lang_cleanup_desc', '{$themeurl}/images/cleanup.gif', 'mceCleanup'); - html += ''; - html += tinyMCE.getButtonHTML('bullist', 'lang_bullist_desc', '{$themeurl}/images/bullist.gif', 'InsertUnorderedList'); - html += tinyMCE.getButtonHTML('numlist', 'lang_numlist_desc', '{$themeurl}/images/numlist.gif', 'InsertOrderedList'); - html += '
'; - - return { - delta_width : 0, - delta_height : 20, - html : html - }; - }, - - handleNodeChange : function(editor_id, node) { - // Reset old states - tinyMCE.switchClass(editor_id + '_bold', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_italic', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_underline', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_strikethrough', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_bullist', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_numlist', 'mceButtonNormal'); - - // Handle elements - do { - switch (node.nodeName.toLowerCase()) { - case "b": - case "strong": - tinyMCE.switchClass(editor_id + '_bold', 'mceButtonSelected'); - break; - - case "i": - case "em": - tinyMCE.switchClass(editor_id + '_italic', 'mceButtonSelected'); - break; - - case "u": - tinyMCE.switchClass(editor_id + '_underline', 'mceButtonSelected'); - break; - - case "strike": - tinyMCE.switchClass(editor_id + '_strikethrough', 'mceButtonSelected'); - break; - - case "ul": - tinyMCE.switchClass(editor_id + '_bullist', 'mceButtonSelected'); - break; - - case "ol": - tinyMCE.switchClass(editor_id + '_numlist', 'mceButtonSelected'); - break; - } - } while ((node = node.parentNode) != null); - } -}; - -tinyMCE.addTheme("simple", TinyMCE_SimpleTheme); -tinyMCE.addButtonMap(TinyMCE_SimpleTheme._buttonMap); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold.gif deleted file mode 100644 index d6a9cc2cd4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_de_se.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_de_se.gif deleted file mode 100644 index 9b129de25e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_de_se.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_fr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_fr.gif deleted file mode 100644 index 2816454515..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_fr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_ru.gif deleted file mode 100644 index e000d461c9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_tw.gif deleted file mode 100644 index 82085432c6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bold_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bullist.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bullist.gif deleted file mode 100644 index 6e19467c70..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/bullist.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/buttons.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/buttons.gif deleted file mode 100644 index 9d86222e63..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/buttons.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/cleanup.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/cleanup.gif deleted file mode 100644 index 16491f6cfc..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/cleanup.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic.gif deleted file mode 100644 index 8bb330bd0b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_de_se.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_de_se.gif deleted file mode 100644 index feb0309e74..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_de_se.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_ru.gif deleted file mode 100644 index a2bb69a725..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_tw.gif deleted file mode 100644 index 4f6eeaa2b2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/italic_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/numlist.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/numlist.gif deleted file mode 100644 index a2683522f4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/numlist.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/redo.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/redo.gif deleted file mode 100644 index 3af90697f0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/redo.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/separator.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/separator.gif deleted file mode 100644 index 4f39b809e9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/separator.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/spacer.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/spacer.gif deleted file mode 100644 index 388486517f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/spacer.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/strikethrough.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/strikethrough.gif deleted file mode 100644 index 3264635918..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/strikethrough.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline.gif deleted file mode 100644 index 1dfeb5f6d0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_fr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_fr.gif deleted file mode 100644 index 551d9148d3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_fr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_ru.gif deleted file mode 100644 index b78e2a498f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_tw.gif deleted file mode 100644 index b715390484..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/underline_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/undo.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/undo.gif deleted file mode 100644 index 520796d69d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/simple/images/undo.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/about.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/about.htm deleted file mode 100644 index d15ff3a761..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/about.htm +++ /dev/null @@ -1,52 +0,0 @@ - - - {$lang_about_title} - - - - - - - - -
-
-

{$lang_about_title}

-

Version: {$tinymce_version} ({$tinymce_releasedate})

-

TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL - by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

-

Copyright © 2003-2006, Moxiecode Systems AB, All rights reserved.

-

For more information about this software visit the TinyMCE website.

- -
-
- -
-
-

{$lang_loaded_plugins}

- -
-
- -

 

-
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/anchor.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/anchor.htm deleted file mode 100644 index 53d7969f05..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/anchor.htm +++ /dev/null @@ -1,33 +0,0 @@ - - - {$lang_insert_anchor_title} - - - - - -
- - - - - - - - - -
{$lang_insert_anchor_title}
{$lang_insert_anchor_name}:
- -
-
- -
- -
- -
-
- -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/charmap.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/charmap.htm deleted file mode 100644 index 9aed1d4b5c..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/charmap.htm +++ /dev/null @@ -1,53 +0,0 @@ - - - {$lang_theme_charmap_title} - - - - - - - - - - - - - - - - - -
{$lang_theme_charmap_title}
- - - - - - - - - -
 
 
-
- - - - - - - - - - - - - - - - -
HTML-Code
 
 
NUM-Code
 
-
- - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/color_picker.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/color_picker.htm deleted file mode 100644 index 3f5a198383..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/color_picker.htm +++ /dev/null @@ -1,13 +0,0 @@ - - - {$lang_theme_colorpicker_title} - - - - - -
- -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_content.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_content.css deleted file mode 100644 index 182e791211..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_content.css +++ /dev/null @@ -1,58 +0,0 @@ -/* This file contains the CSS data for the editable area(iframe) of TinyMCE */ -/* You can extend this CSS by adding your own CSS file with the the content_css option */ - -body, td, pre { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; -} - -body { - background-color: #FFFFFF; -} - -.mceVisualAid { - border: 1px dashed #BBBBBB !important; -} - -div.mceVisualAid { - background-image:url('../images/spacer.gif'); - visibility: visible !important; -} - -.mceItemAnchor { - width: 12px; - line-height: 6px; - overflow: hidden; - padding-left: 12px; - background-image: url('../images/anchor_symbol.gif'); - background-position: bottom; - background-repeat: no-repeat; -} - -/* Important is needed in Gecko browsers inorder to style links */ -/* -a { - color: green !important; -} -*/ - -/* Style selection range colors in Gecko browsers */ -/* -::-moz-selection { - background-color: red; - color: green; -} -*/ - -/* MSIE specific */ - -* html body { - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_popup.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_popup.css deleted file mode 100644 index 2bae9158a0..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_popup.css +++ /dev/null @@ -1,327 +0,0 @@ -/* This file contains the CSS data for all popups in TinyMCE */ - -body { - background-color: #F0F0EE; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; - scrollbar-3dlight-color: #F0F0EE; - scrollbar-arrow-color: #676662; - scrollbar-base-color: #F0F0EE; - scrollbar-darkshadow-color: #DDDDDD; - scrollbar-face-color: #E0E0DD; - scrollbar-highlight-color: #F0F0EE; - scrollbar-shadow-color: #F0F0EE; - scrollbar-track-color: #F5F5F5; - margin: 8px; -} - -td { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; -} - -input { - background: #FFFFFF; - border: 1px solid #cccccc; -} - -td, input, select, textarea { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10px; -} - -input, select, textarea { - border: 1px solid #808080; -} - -.input_noborder { - border: 0; -} - -#insert, .updateButton { - font-weight: bold; - width: 90px; - height: 21px; - border: 0; - background-image: url('../images/insert_button_bg.gif'); - cursor: pointer; -} - -#cancel { - font-weight: bold; - width: 90px; - height: 21px; - border: 0; - background-image: url('../images/cancel_button_bg.gif'); - cursor: pointer; -} - -/* Mozilla only style */ -html>body #insert, html>body #cancel { - padding-bottom: 2px; -} - -.title { - font-size: 12px; - font-weight: bold; - color: #2B6FB6; -} - -table.charmap { - border-style: solid; - border-width: 1px; - border-color: #AAAAAA; -} - -td.charmap, td.charmapOver { - color: #000000; - border-color: #AAAAAA; - border-style: solid; - border-width: 1px; - text-align: center; - font-size: 12px; -} - -td.charmapOver { - background-color: #CCCCCC; - cursor: default; -} - -a.charmap { - color: #000000; - text-decoration: none -} - -.wordWrapCode { - vertical-align: middle; - border: 1px none #000000; - background-color: transparent; -} - -input.radio { - border: 1px none #000000; - background-color: transparent; - vertical-align: middle; -} - -input.checkbox { - border: 1px none #000000; - background-color: transparent; - vertical-align: middle; -} - -.mceButtonNormal, .mceButtonOver, .mceButtonDown, .mceSeparator, .mceButtonDisabled, .mceButtonSelected { - margin-left: 1px; -} - -.mceButtonNormal { - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; -} - -.mceButtonOver { - border: 1px solid #0A246A; - cursor: default; - background-color: #B6BDD2; -} - -.mceButtonDown { - cursor: default; - border: 1px solid #0A246A; - background-color: #8592B5; -} - -.mceButtonDisabled { - filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); - -moz-opacity:0.3; - opacity: 0.3; - border-top: 1px solid; - border-left: 1px solid; - border-bottom: 1px solid; - border-right: 1px solid; - border-color: #F0F0EE; - cursor: default; -} - -.mceActionPanel { - margin-top: 5px; -} - -/* Tabs classes */ - -.tabs { - float: left; - width: 100%; - line-height: normal; - background-image: url("../images/xp/tabs_bg.gif"); -} - -.tabs ul { - margin: 0; - padding: 0 0 0; - list-style: none; -} - -.tabs li { - float: left; - background: url("../images/xp/tab_bg.gif") no-repeat left top; - margin: 0; - margin-left: 0; - margin-right: 2px; - padding: 0 0 0 10px; - line-height: 18px; -} - -.tabs li.current { - background: url("../images/xp/tab_sel_bg.gif") no-repeat left top; - margin-right: 2px; -} - -.tabs span { - float: left; - display: block; - background: url("../images/xp/tab_end.gif") no-repeat right top; - padding: 0px 10px 0 0; -} - -.tabs .current span { - background: url("../images/xp/tab_sel_end.gif") no-repeat right top; -} - -.tabs a { - text-decoration: none; - font-family: Verdana, Arial; - font-size: 10px; -} - -.tabs a:link, .tabs a:visited, .tabs a:hover { - color: black; -} - -.tabs a:hover { -} - -.tabs .current { -} - -.tabs .current a, .tabs .current a:link, .tabs .current a:visited { -} - -.panel_wrapper div.panel { - display: none; -} - -.panel_wrapper div.current { - display: block; - width: 100%; - height: 300px; - overflow: visible; /* Should be auto but that breaks Safari */ -} - -.panel_wrapper { - border: 1px solid #919B9C; - border-top: 0px; - padding: 10px; - padding-top: 5px; - clear: both; - background-color: white; -} - -fieldset { - border: 1px solid #919B9C; - font-family: Verdana, Arial; - font-size: 10px; - padding: 0; - margin: 0; - padding: 4px; -} - -legend { - color: #2B6FB6; - font-weight: bold; -} - -.properties { - width: 100%; -} - -.properties .column1 { -} - -.properties .column2 { - text-align: left; -} - -a:link, a:visited { - color: black; -} - -a:hover { - color: #2B6FB6; -} - -#plugintable thead { - font-weight: bold; - background-color: #DDDDDD; -} - -#plugintable, #about #plugintable td { - border: 1px solid #919B9C; -} - -#plugintable { - width: 99%; - margin-top: 10px; -} - -#pluginscontainer { - height: 290px; - overflow: auto; -} - -/* MSIE Specific styles */ - -* html .panel_wrapper { - width: 100%; -} - -.column { - float: left; -} - -h1, h2, h3, h4 { - color: #2B6FB6; - margin: 0; - padding: 0; - padding-top: 5px; -} - -h3 { - font-size: 14px; -} - -#link .panel_wrapper, #link div.current { - height: 125px; -} - -#image .panel_wrapper, #image div.current { - height: 190px; -} - -/* Disables the advanced tab in the table plugin. */ -/* -#table #advanced_tab { - display: none; -} -*/ - -/* Disables the border input field and label in the table plugin. */ -/* -#table #border, #table #borderlabel { - display: none; -} -*/ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_ui.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_ui.css deleted file mode 100644 index c51be6c894..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/css/editor_ui.css +++ /dev/null @@ -1,353 +0,0 @@ -/* This file contains the CSS data for the editor UI of TinyMCE instances */ - -.mceToolbarTop a, .mceToolbarTop a:visited, .mceToolbarTop a:hover, .mceToolbarBottom a, .mceToolbarBottom a:visited, .mceToolbarBottom a:hover { - border: 0; margin: 0; padding: 0; background: transparent; -} - -.mceSeparatorLine { - border: 0; - padding: 0; - margin-left: 4px; - margin-right: 2px; -} - -.mceSelectList { - font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; - font-size: 7pt !important; - font-weight: normal; - margin-top: 3px; - padding: 0; - display: inline; - vertical-align: top; - background-color: #F0F0EE; -} - -.mceLabel, .mceLabelDisabled { - font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; - font-size: 9pt; -} - -.mceLabel { - color: #000000; -} - -.mceLabelDisabled { - cursor: text; - color: #999999; -} - -.mceEditor { - background: #F0F0EE; - border: 1px solid #cccccc; - padding: 0; - margin: 0; -} - -.mceEditorArea { - font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; - background: #FFFFFF; - padding: 0; - margin: 0; -} - -.mceToolbarTop, .mceToolbarBottom { - background: #F0F0EE; - line-height: 1px; - font-size: 1px; -} - -.mceToolbarTop { - border-bottom: 1px solid #cccccc; - padding-bottom: 1px; -} - -.mceToolbarBottom { - border-top: 1px solid #cccccc; -} - -.mceStatusbarTop, .mceStatusbarBottom, .mceStatusbar { - height: 20px; -} - -.mceStatusbarTop .mceStatusbarPathText, .mceStatusbarBottom .mceStatusbarPathText, .mceStatusbar .mceStatusbarPathText { - font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; - font-size: 9pt; - padding: 2px; - line-height: 16px; - overflow: visible; -} - -.mceStatusbarTop { - border-bottom: 1px solid #cccccc; -} - -.mceStatusbarBottom { - border-top: 1px solid #cccccc; -} - -.mceStatusbar { - border-bottom: 1px solid #cccccc; -} - -.mcePathItem, .mcePathItem:link, .mcePathItem:visited, .mcePathItem:hover { - text-decoration: none; - font-family: 'MS Sans Serif', sans-serif, Verdana, Arial; - font-size: 9pt; - color: #000000; -} - -.mcePathItem:hover { - text-decoration: underline; -} - -.mceStatusbarPathText { - float: left; -} - -.mceStatusbarResize { - float: right; - background-image: url('../images/statusbar_resize.gif'); - background-repeat: no-repeat; - width: 11px; - height: 20px; - cursor: se-resize; -} - -.mceResizeBox { - width: 10px; - height: 10px; - display: none; - border: 1px dotted gray; - margin: 0; - padding: 0; -} - -.mceEditorIframe { - border: 0; -} - -/* Button CSS rules */ - -a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img { - width: 20px; - height: 20px; - cursor: default; - margin-top: 1px; - margin-left: 1px; -} - -a.mceButtonDisabled img { - border: 0 !important; -} - -a.mceButtonNormal img, a.mceButtonSelected img { - border: 1px solid #F0F0EE !important; -} - -a.mceButtonSelected img { - border: 1px solid #6779AA !important; - background-color: #D4D5D8; -} - -a.mceButtonNormal img:hover, a.mceButtonSelected img:hover { - border: 1px solid #0A246A !important; - cursor: default; - background-color: #B6BDD2; -} - -a.mceButtonDisabled img { - -moz-opacity:0.3; - opacity: 0.3; - border: 1px solid #F0F0EE !important; - cursor: default; -} - -a.mceTiledButton img { - background-image: url('../images/buttons.gif'); - background-repeat: no-repeat; -} - -/* MSIE specific rules */ - -* html a.mceButtonNormal img, * html a.mceButtonSelected img, * html a.mceButtonDisabled img { - border: 0 !important; - margin-top: 2px; - margin-bottom: 1px; -} - -* html a.mceButtonDisabled img { - filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); - border: 0 !important; -} - -* html a.mceButtonDisabled { - border: 1px solid #F0F0EE !important; -} - -* html a.mceButtonNormal, * html a.mceButtonSelected { - border: 1px solid #F0F0EE !important; - cursor: default; -} - -* html a.mceButtonSelected { - border: 1px solid #6779AA !important; - background-color: #D4D5D8; -} - -* html a.mceButtonNormal:hover, * html a.mceButtonSelected:hover { - border: 1px solid #0A246A !important; - cursor: default; - background-color: #B6BDD2; -} - -* html .mceSelectList { - margin-top: 2px; -} - -/* Menu button CSS rules */ - -span.mceMenuButton img, span.mceMenuButtonSelected img { - border: 1px solid #F0F0EE; - margin-left: 1px; -} - -span.mceMenuButtonSelected img { - border: 1px solid #6779AA; - background-color: #B6BDD2; -} - -span.mceMenuButtonSelected img.mceMenuButton { - border: 1px solid #F0F0EE; - background-color: transparent; -} - -span.mceMenuButton img.mceMenuButton, span.mceMenuButtonSelected img.mceMenuButton { - border-left: 0; - margin-left: 0; -} - -span.mceMenuButton:hover img, span.mceMenuButtonSelected:hover img { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -span.mceMenuButton:hover img.mceMenuButton, span.mceMenuButtonSelected:hover img.mceMenuButton { - border-left: 0; -} - -span.mceMenuButtonFocus img { - border: 1px solid gray; - border-right: 0; - margin-left: 1px; - background-color: #F5F4F2; -} - -span.mceMenuButtonFocus img.mceMenuButton { - border: 1px solid gray; - border-left: 1px solid #F5F4F2; - margin-left: 0; -} - -/* Menu button MSIE specific rules */ - -* html span.mceMenuButton, * html span.mceMenuButtonFocus { - position: relative; - left: 0; - top: 0; -} - -* html span.mceMenuButton img, * html span.mceMenuButtonSelected img, * html span.mceMenuButtonFocus img { - position: relative; - top: 1px; -} - -* html span.mceMenuHover img { - border: 1px solid #0A246A; - background-color: #B6BDD2; -} - -* html span.mceMenuButtonSelected.mceMenuHover img.mceMenuButton { - border: 1px solid #0A246A; - background-color: #B6BDD2; - border-left: 0; -} - -/* Menu */ - -.mceMenu { - position: absolute; - left: 0; - top: 0; - display: none; - z-index: 100; - background-color: white; - border: 1px solid gray; - font-weight: normal; -} - -.mceMenu a, .mceMenuTitle, .mceMenuDisabled { - display: block; - width: 100%; - text-decoration: none; - background-color: white; - font-family: Tahoma, Verdana, Arial, Helvetica; - font-size: 11px; - line-height: 20px; - color: black; -} - -.mceMenu a:hover { - background-color: #B6BDD2; - color: black; - text-decoration: none !important; -} - -.mceMenu span { - padding-left: 10px; - padding-right: 10px; - display: block; - line-height: 20px; -} - -.mceMenuSeparator { - border-bottom: 1px solid gray; - background-color: gray; - height: 1px; -} - -.mceMenuTitle span { - padding-left: 5px; -} - -.mceMenuTitle { - background-color: #DDDDDD; - font-weight: bold; -} - -.mceMenuDisabled { - color: gray; -} - -span.mceMenuSelectedItem { - background-image: url('../images/menu_check.gif'); - background-repeat: no-repeat; - background-position: 5px 8px; - padding-left: 20px; -} - -span.mceMenuCheckItem { - padding-left: 20px; -} - -span.mceMenuLine { - display: block; - position: absolute; - left: 0; - top: -1px; - background-color: #F5F4F2; - width: 30px; - height: 1px; - overflow: hidden; - padding-left: 0; - padding-right: 0; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/about.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/about.htm deleted file mode 100644 index 3a0c4437aa..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/about.htm +++ /dev/null @@ -1,31 +0,0 @@ - - -About TinyMCE - - - - - - - - - - - -
-
-TinyMCE is a small WYSIWYG editor control for web browsers such as MSIE or Mozilla -that enables you to edit HTML contents in a more user friendly way. It has common -features that are found in most word processors and should not be difficult to -use.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/common_buttons.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/common_buttons.htm deleted file mode 100644 index 5fc9e5f3cb..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/common_buttons.htm +++ /dev/null @@ -1,162 +0,0 @@ - - -Common buttons - - - - - - - - - - - -
-
-Below is a short description about each button. -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Bold text iconBold text style (Ctrl+B).
Italic text iconItalic text style (Ctrl+I).
Underline text icon.Underline text style (Ctrl+U).
Strikethrough text icon.Strikethrough text style.
Align left icon.Align left.
Align center icon.Align center.
Align right icon.Align right.
Align full icon.Align full.
Unordered list/bullet list icon.Unordered list/bullet list.
Ordered list/numbered list icon.Ordered list/numbered list
Outdent/decrease indentation icon.Outdent/decrease indentation.
Indent/increase indentation icon.Indent/increase indentation.
Undo the last operation.Undo the last operation (Ctrl+Z).
Redo the last operation icon.Redo the last operation (Ctrl+Y).
Insert a new link icon.Insert a new link, read more about this function in the Insert - link section.
Unlinks the current selection icon.Unlinks the current selection/removes all selected links.
Insert a new anchor icon.Insert a new anchor, read more about this function in the Insert anchor section.
Insert a new image icon.Insert a new image, read more about this function in the Insert - image section.
Cleanup code icon.Cleanup code/Removes unwanted formating. This function is useful when - you copy contents from for example a office product.
Show help icon.Shows this help window.
Source code editor icon.Opens HTML source code editor.
Insert table icon.Inserts a new table at the current location.
Adds a row above icon.Adds a row above the current one.
Adds a row under icon.Adds a row under the current one.
Remove row icon.Removes the row.
Add column before icon.Adds a column before the current one.
Add column after icon.Adds a column after the current one.
Remove column icon.Removes the current column.
Insert horizontal ruler icon.Inserts a new horizontal ruler
Remove formatting icon.Removes formatting from the selection.
Subscript icon.Makes the selection to be subscript.
Superscript icon.Makes the selection to be superscripted.
-
-
- - - - - - - - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/create_accessible_content.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/create_accessible_content.htm deleted file mode 100644 index e72de1352d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/create_accessible_content.htm +++ /dev/null @@ -1,45 +0,0 @@ - - -Insert table button - - - - - - - - - - - -
-

TinyMCE can create HTML content that will be accessible to all users, including those with disabilities using assistive technologies, as well as those using text-based browsers, or those browsing the Web with images turned off.

- -

Things you can do to make your content accessible:

-
    -
  1. Include an Image Description: Blind users, or others who are unable to view images, will rely on the Image Description (or Alt text) to take the place of the image. If an image contains no meaning, such as a decoration or a spacer image, leave the Image Description empty. TinyMCE will then insert an empty Alt text attribute that will force assistive technologies to ignore the image.

  2. - -
  3. Add Scope to data table header cells: In the table cell editor dialog window, choose a Scope when creating Header cells so the column or row label in that cell becomes explicitely associated with its data cells. Table cell headers will then be announced with each data cell, making it easier for blind users using a screen reader to understand what the content of each cell represents.

  4. - -
  5. Structure content with properly nested headings: In the format selection menu choose Heading 1 to Heading 6 to represent headings in your content, rather than using other font formating options. Blind users using a screen reader can then extract the headings from the page to generate a summary of the content it contains, and use those headings to navigate quickly to subsections within the page.

  6. - -
  7. Include alternate content: Create an alternate page for non-HTML content such as Flash, Java applets, or embedded movies. This might be a static image, with a description of the image, and a description of the content that would have appeared in its place. An alternate HTML page could also be created, and a link to it included next to the non-HTML object. This will ensure that the content will be accessible to users of assistive technologies that can not view or play the content, and ensure the content will be available to those who do not have the appropriate plugin or helper application installed.

  8. - -
  9. Check accessbility: When the AChecker plugin is installed with TinyMCE, click on the Check Accessibility button to generate a report of potential accessibility problems.

  10. - -
- -

See the AChecker Web Site for further details about creating content that will be accessible to all users.
-

- -
- - - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_anchor_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_anchor_window.gif deleted file mode 100644 index 5b5f528dd5..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_anchor_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_image_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_image_window.gif deleted file mode 100644 index cdc617eab3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_image_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_link_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_link_window.gif deleted file mode 100644 index 7bad7583ab..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_link_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_table_window.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_table_window.gif deleted file mode 100644 index 6a032c5ae8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/images/insert_table_window.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/index.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/index.htm deleted file mode 100644 index 82bd8db592..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/index.htm +++ /dev/null @@ -1,27 +0,0 @@ - - -Help Index - - - - - - - - - -
-
-Click the links below to go to the different help sections. - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_anchor_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_anchor_button.htm deleted file mode 100644 index 3d2f28d881..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_anchor_button.htm +++ /dev/null @@ -1,32 +0,0 @@ - - -Insert anchor button - - - - - - - - - - - -
-
-This button opens a new window with the insert/edit anchor function.
-
-Anchor dialog/window
-
-There are one field in this window, this is where you enter the name of you anchor point. Remember the anchor name needs to be unique.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_image_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_image_button.htm deleted file mode 100644 index 2392c22ee8..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_image_button.htm +++ /dev/null @@ -1,65 +0,0 @@ - - -Insert image button - - - - - - - - - - - -
-
-The insert image button opens the window shown below.
-
-Insert image dialog/window
-
-You simply enter a URL to the image you want to link to and enter a image description, -this is then displayed as an alternative text descripton of the image on the page.
-
-Field descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Image URL URL/path to the image.
Image description Alternative description of image contents.
DimentionsImage width/height.
AlignmentImage alignment, useful when wrapping text around images.
BorderBorder thickness.
VSpaceVertical space, useful when wrapping text around images.
HSpaceHorizontal space, useful when wrapping text around images.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_link_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_link_button.htm deleted file mode 100644 index 8183cea210..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_link_button.htm +++ /dev/null @@ -1,33 +0,0 @@ - - -Insert link button - - - - - - - - - - - -
-
-This button opens a new window with the insert/edit link function.
-
-Insert link dialog/window
-
-There are two fields in this window the first one "Link URL" is the -URL of the link. The target enables you to select how the link is to be opened.
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_table_button.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_table_button.htm deleted file mode 100644 index dc71e6f0dd..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/insert_table_button.htm +++ /dev/null @@ -1,71 +0,0 @@ - - -Insert table button - - - - - - - - - - - -
-
-The insert table button opens the window shown below. This action enables you to create tables.
-
-Image of table window
-
-Field descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ColumnsNumber of columns in the table.
RowsNumber of rows in the new table.
CellpaddingCellpadding of the table .
CellspacingCellspacing of the table .
AlignmentTable alignment .
BorderBorder thinkness of table.
WidthWidth in pixels of table .
HeightHeight in pixels of table.
ClassStyle or CSS class of table.
-
-
-
- - - - - - -
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/style.css b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/style.css deleted file mode 100644 index ebc05380ec..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/docs/en/style.css +++ /dev/null @@ -1,28 +0,0 @@ -body { background-color: #FFFFFF; } -body, td, .content { font-family: Verdana, Arial, helvetica, sans-serif; font-size: 12px; } -.title { font-family: Verdana, Arial, helvetica, sans-serif; font-size: 16px; font-weight: bold; } -.subtitle { font-size: 12px; font-weight: bold; } - -.toc_ul, .toc_li { margin-left: 8px; line-height: 16px; } -.step_ol, .step_li { margin-left: 11px; line-height: 16px; } -img { border: #000000 solid 1px; } - -a:visited { color: #666666; text-decoration: underline; } -a:active { color: #666666; text-decoration: underline; } -a:hover { color: #666666; text-decoration: underline; } -a { color: #666666; text-decoration: underline; } - -.pageheader { border: #E0E0E0 solid 1px; } -.pagefooter { border: #E0E0E0 solid 1px; } -.sample { background-color: #FFFFFF; border: #000000 solid 1px; } -.samplecontent { font-size: 10px; } - -.code { background-color: #FFFFFF; border: #000000 solid 1px; } -.codecontent { font-size: 10px; } -.codecontent a:visited { color: #666666; text-decoration: none; font-weight: bold } -.codecontent a:active { color: #666666; text-decoration: none; font-weight: bold } -.codecontent a:hover { color: #666666; text-decoration: none; font-weight: bold } -.codecontent a { color: #666666; text-decoration: none; font-weight: bold } - -hr { height: 1px; } - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/editor_template.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/editor_template.js deleted file mode 100644 index 1a348af227..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/editor_template.js +++ /dev/null @@ -1,1412 +0,0 @@ - -/** - * $RCSfile: editor_template_src.js,v $ - * $Revision: 1.96 $ - * $Date: 2006/04/18 13:32:52 $ - * - * @author Moxiecode - * @copyright Copyright 2004-2006, Moxiecode Systems AB, All rights reserved. - */ - -/* Import theme specific language pack */ -tinyMCE.importThemeLanguagePack('umbraco'); - -var TinyMCE_UmbracoTheme = { - // Private theme fields - _autoImportCSSClasses : true, - _resizer : {}, - _buttons : [ - // Control id, button img, button title, command, user_interface, value - ['bold', '{$lang_bold_img}', 'lang_bold_desc', 'Bold'], - ['italic', '{$lang_italic_img}', 'lang_italic_desc', 'Italic'], - ['underline', '{$lang_underline_img}', 'lang_underline_desc', 'Underline'], - ['strikethrough', 'strikethrough.gif', 'lang_striketrough_desc', 'Strikethrough'], - ['justifyleft', 'justifyleft.gif', 'lang_justifyleft_desc', 'JustifyLeft'], - ['justifycenter', 'justifycenter.gif', 'lang_justifycenter_desc', 'JustifyCenter'], - ['justifyright', 'justifyright.gif', 'lang_justifyright_desc', 'JustifyRight'], - ['justifyfull', 'justifyfull.gif', 'lang_justifyfull_desc', 'JustifyFull'], - ['bullist', 'bullist.gif', 'lang_bullist_desc', 'InsertUnorderedList'], - ['numlist', 'numlist.gif', 'lang_numlist_desc', 'InsertOrderedList'], - ['outdent', 'outdent.gif', 'lang_outdent_desc', 'Outdent'], - ['indent', 'indent.gif', 'lang_indent_desc', 'Indent'], - ['cut', 'cut.gif', 'lang_cut_desc', 'Cut'], - ['copy', 'copy.gif', 'lang_copy_desc', 'Copy'], - ['paste', 'paste.gif', 'lang_paste_desc', 'Paste'], - ['undo', 'undo.gif', 'lang_undo_desc', 'Undo'], - ['redo', 'redo.gif', 'lang_redo_desc', 'Redo'], - ['link', 'link.gif', 'lang_link_desc', 'mceLink', true], - ['unlink', 'unlink.gif', 'lang_unlink_desc', 'unlink'], - ['image', 'image.gif', 'lang_image_desc', 'mceImage', true], - ['cleanup', 'cleanup.gif', 'lang_cleanup_desc', 'mceCleanup'], - ['help', 'help.gif', 'lang_help_desc', 'mceHelp'], - ['code', 'code.gif', 'lang_theme_code_desc', 'mceCodeEditor'], - ['hr', 'hr.gif', 'lang_theme_hr_desc', 'inserthorizontalrule'], - ['removeformat', 'removeformat.gif', 'lang_theme_removeformat_desc', 'removeformat'], - ['sub', 'sub.gif', 'lang_theme_sub_desc', 'subscript'], - ['sup', 'sup.gif', 'lang_theme_sup_desc', 'superscript'], - ['forecolor', 'forecolor.gif', 'lang_theme_forecolor_desc', 'mceForeColor', true], - ['backcolor', 'backcolor.gif', 'lang_theme_backcolor_desc', 'mceBackColor', true], - ['charmap', 'charmap.gif', 'lang_theme_charmap_desc', 'mceCharMap'], - ['visualaid', 'visualaid.gif', 'lang_theme_visualaid_desc', 'mceToggleVisualAid'], - ['anchor', 'anchor.gif', 'lang_theme_anchor_desc', 'mceInsertAnchor'], - ['newdocument', 'newdocument.gif', 'lang_newdocument_desc', 'mceNewDocument'] - ], - - _buttonMap : 'anchor,backcolor,bold,bullist,charmap,cleanup,code,copy,cut,forecolor,help,hr,image,indent,italic,justifycenter,justifyfull,justifyleft,justifyright,link,newdocument,numlist,outdent,paste,redo,removeformat,strikethrough,sub,sup,underline,undo,unlink,visualaid,advhr,ltr,rtl,emotions,flash,fullpage,fullscreen,iespell,insertdate,inserttime,pastetext,pasteword,selectall,preview,print,save,replace,search,table,cell_props,delete_col,delete_row,col_after,col_before,row_after,row_before,merge_cells,row_props,split_cells', - - /** - * Returns HTML code for the specificed control. - */ - getControlHTML : function(button_name) { - var i, x; - - // Lookup button in button list - for (i=0; i 4 ? but[4] : false), (but.length > 5 ? but[5] : null)); - } - - // Custom controlls other than buttons - switch (button_name) { - case "formatselect": - var html = ''; - - return html; - - case "styleselect": - return ''; - - case "fontselect": - var fontHTML = ''; - return fontHTML; - - case "fontsizeselect": - return ''; - - case "|": - case "separator": - return ''; - - case "spacer": - return ''; - - case "rowseparator": - return '
'; - } - - return ""; - }, - - /** - * Theme specific execcommand handling. - */ - execCommand : function(editor_id, element, command, user_interface, value) { - switch (command) { - case "mceLink": - var inst = tinyMCE.getInstanceById(editor_id); - var doc = inst.getDoc(); - var selectedText = ""; - - if (tinyMCE.isMSIE) { - var rng = doc.selection.createRange(); - selectedText = rng.text; - } else - selectedText = inst.getSel().toString(); - - if (!tinyMCE.linkElement) { - if ((tinyMCE.selectedElement.nodeName.toLowerCase() != "img") && (selectedText.length <= 0)) - return true; - } - - var href = "", target = "", title = "", onclick = "", action = "insert", style_class = ""; - - if (tinyMCE.selectedElement.nodeName.toLowerCase() == "a") - tinyMCE.linkElement = tinyMCE.selectedElement; - - // Is anchor not a link - if (tinyMCE.linkElement != null && tinyMCE.getAttrib(tinyMCE.linkElement, 'href') == "") - tinyMCE.linkElement = null; - - if (tinyMCE.linkElement) { - href = tinyMCE.getAttrib(tinyMCE.linkElement, 'href'); - target = tinyMCE.getAttrib(tinyMCE.linkElement, 'target'); - title = tinyMCE.getAttrib(tinyMCE.linkElement, 'title'); - onclick = tinyMCE.getAttrib(tinyMCE.linkElement, 'onclick'); - style_class = tinyMCE.getAttrib(tinyMCE.linkElement, 'class'); - - // Try old onclick to if copy/pasted content - if (onclick == "") - onclick = tinyMCE.getAttrib(tinyMCE.linkElement, 'onclick'); - - onclick = tinyMCE.cleanupEventStr(onclick); - - href = eval(tinyMCE.settings['urlconverter_callback'] + "(href, tinyMCE.linkElement, true);"); - - // Use mce_href if defined - mceRealHref = tinyMCE.getAttrib(tinyMCE.linkElement, 'mce_href'); - if (mceRealHref != "") { - href = mceRealHref; - - if (tinyMCE.getParam('convert_urls')) - href = eval(tinyMCE.settings['urlconverter_callback'] + "(href, tinyMCE.linkElement, true);"); - } - - action = "update"; - } - - var template = new Array(); - - template['file'] = 'link.htm'; - template['width'] = 310; - template['height'] = 200; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_link_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_link_delta_height', 0); - - if (inst.settings['insertlink_callback']) { - var returnVal = eval(inst.settings['insertlink_callback'] + "(href, target, title, onclick, action, style_class);"); - if (returnVal && returnVal['href']) - TinyMCE_UmbracoTheme._insertLink(returnVal['href'], returnVal['target'], returnVal['title'], returnVal['onclick'], returnVal['style_class']); - } else { - tinyMCE.openWindow(template, {href : href, target : target, title : title, onclick : onclick, action : action, className : style_class, inline : "yes"}); - } - - return true; - - case "mceImage": - var src = "", alt = "", border = "", hspace = "", vspace = "", width = "", height = "", align = ""; - var title = "", onmouseover = "", onmouseout = "", action = "insert"; - var img = tinyMCE.imgElement; - var inst = tinyMCE.getInstanceById(editor_id); - - if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "img") { - img = tinyMCE.selectedElement; - tinyMCE.imgElement = img; - } - - if (img) { - // Is it a internal MCE visual aid image, then skip this one. - if (tinyMCE.getAttrib(img, 'name').indexOf('mce_') == 0) - return true; - - src = tinyMCE.getAttrib(img, 'src'); - alt = tinyMCE.getAttrib(img, 'alt'); - - // Try polling out the title - if (alt == "") - alt = tinyMCE.getAttrib(img, 'title'); - - // Fix width/height attributes if the styles is specified - if (tinyMCE.isGecko) { - var w = img.style.width; - if (w != null && w != "") - img.setAttribute("width", w); - - var h = img.style.height; - if (h != null && h != "") - img.setAttribute("height", h); - } - - border = tinyMCE.getAttrib(img, 'border'); - hspace = tinyMCE.getAttrib(img, 'hspace'); - vspace = tinyMCE.getAttrib(img, 'vspace'); - width = tinyMCE.getAttrib(img, 'width'); - height = tinyMCE.getAttrib(img, 'height'); - align = tinyMCE.getAttrib(img, 'align'); - onmouseover = tinyMCE.getAttrib(img, 'onmouseover'); - onmouseout = tinyMCE.getAttrib(img, 'onmouseout'); - title = tinyMCE.getAttrib(img, 'title'); - - // Is realy specified? - if (tinyMCE.isMSIE) { - width = img.attributes['width'].specified ? width : ""; - height = img.attributes['height'].specified ? height : ""; - } - - //onmouseover = tinyMCE.getImageSrc(tinyMCE.cleanupEventStr(onmouseover)); - //onmouseout = tinyMCE.getImageSrc(tinyMCE.cleanupEventStr(onmouseout)); - - src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, img, true);"); - - // Use mce_src if defined - mceRealSrc = tinyMCE.getAttrib(img, 'mce_src'); - if (mceRealSrc != "") { - src = mceRealSrc; - - if (tinyMCE.getParam('convert_urls')) - src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, img, true);"); - } - - //if (onmouseover != "") - // onmouseover = eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseover, img, true);"); - - //if (onmouseout != "") - // onmouseout = eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseout, img, true);"); - - action = "update"; - } - - var template = new Array(); - - template['file'] = 'image.htm?src={$src}'; - template['width'] = 355; - template['height'] = 265 + (tinyMCE.isMSIE ? 25 : 0); - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0); - - if (inst.settings['insertimage_callback']) { - var returnVal = eval(inst.settings['insertimage_callback'] + "(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);"); - if (returnVal && returnVal['src']) - TinyMCE_UmbracoTheme._insertImage(returnVal['src'], returnVal['alt'], returnVal['border'], returnVal['hspace'], returnVal['vspace'], returnVal['width'], returnVal['height'], returnVal['align'], returnVal['title'], returnVal['onmouseover'], returnVal['onmouseout']); - } else - tinyMCE.openWindow(template, {src : src, alt : alt, border : border, hspace : hspace, vspace : vspace, width : width, height : height, align : align, title : title, onmouseover : onmouseover, onmouseout : onmouseout, action : action, inline : "yes"}); - - return true; - - case "mceForeColor": - var template = new Array(); - var elm = tinyMCE.selectedInstance.getFocusElement(); - var inputColor = tinyMCE.getAttrib(elm, "color"); - - if (inputColor == '') - inputColor = elm.style.color; - - if (!inputColor) - inputColor = "#000000"; - - template['file'] = 'color_picker.htm'; - template['width'] = 220; - template['height'] = 190; - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", command : "forecolor", input_color : inputColor}); - return true; - - case "mceBackColor": - var template = new Array(); - var elm = tinyMCE.selectedInstance.getFocusElement(); - var inputColor = elm.style.backgroundColor; - - if (!inputColor) - inputColor = "#000000"; - - template['file'] = 'color_picker.htm'; - template['width'] = 220; - template['height'] = 190; - - template['width'] += tinyMCE.getLang('lang_theme_umbraco_backcolor_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_umbraco_backcolor_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", command : "HiliteColor", input_color : inputColor}); - //mceBackColor - return true; - - case "mceColorPicker": - if (user_interface) { - var template = new Array(); - var inputColor = value['document'].getElementById(value['element_id']).value; - - template['file'] = 'color_picker.htm'; - template['width'] = 220; - template['height'] = 190; - template['close_previous'] = "no"; - - template['width'] += tinyMCE.getLang('lang_theme_umbraco_colorpicker_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_umbraco_colorpicker_delta_height', 0); - - if (typeof(value['store_selection']) == "undefined") - value['store_selection'] = true; - - tinyMCE.lastColorPickerValue = value; - tinyMCE.openWindow(template, {editor_id : editor_id, mce_store_selection : value['store_selection'], inline : "yes", command : "mceColorPicker", input_color : inputColor}); - } else { - var savedVal = tinyMCE.lastColorPickerValue; - var elm = savedVal['document'].getElementById(savedVal['element_id']); - elm.value = value; - - if (elm.onchange != null && elm.onchange != '') - eval('elm.onchange();'); - } - return true; - - case "mceCodeEditor": - var template = new Array(); - - template['file'] = 'source_editor.htm'; - template['width'] = parseInt(tinyMCE.getParam("theme_umbraco_source_editor_width", 720)); - template['height'] = parseInt(tinyMCE.getParam("theme_umbraco_source_editor_height", 580)); - - tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "no", inline : "yes"}); - return true; - - case "mceCharMap": - var template = new Array(); - - template['file'] = 'charmap.htm'; - template['width'] = 550 + (tinyMCE.isOpera ? 40 : 0); - template['height'] = 250; - - template['width'] += tinyMCE.getLang('lang_theme_umbraco_charmap_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_umbraco_charmap_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - return true; - - case "mceInsertAnchor": - var template = new Array(); - - template['file'] = 'anchor.htm'; - template['width'] = 320; - template['height'] = 90 + (tinyMCE.isNS7 ? 30 : 0); - - template['width'] += tinyMCE.getLang('lang_theme_umbraco_anchor_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_theme_umbraco_anchor_delta_height', 0); - - tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"}); - return true; - - case "mceNewDocument": - if (confirm(tinyMCE.getLang('lang_newdocument'))) - tinyMCE.execInstanceCommand(editor_id, 'mceSetContent', false, ' '); - - return true; - } - - return false; - }, - - /** - * Editor instance template function. - */ - getEditorTemplate : function(settings, editorId) { - function removeFromArray(in_array, remove_array) { - var outArray = new Array(); - - for (var i=0; i 

'; - var layoutManager = tinyMCE.getParam("theme_umbraco_layout_manager", "SimpleLayout"); - - // Setup style select options -- MOVED UP FOR EXTERNAL TOOLBAR COMPATABILITY! - var styleSelectHTML = ''; - if (settings['theme_umbraco_styles']) { - var stylesAr = settings['theme_umbraco_styles'].split(';'); - - for (var i=0; i' + key + ''; - } - - TinyMCE_UmbracoTheme._autoImportCSSClasses = false; - } - - switch(layoutManager) { - case "SimpleLayout" : //the default TinyMCE Layout (for backwards compatibility)... - var toolbarHTML = ""; - var toolbarLocation = tinyMCE.getParam("theme_umbraco_toolbar_location", "bottom"); - var toolbarAlign = tinyMCE.getParam("theme_umbraco_toolbar_align", "center"); - var pathLocation = tinyMCE.getParam("theme_umbraco_path_location", "none"); // Compatiblity - var statusbarLocation = tinyMCE.getParam("theme_umbraco_statusbar_location", pathLocation); - var defVals = { - theme_umbraco_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect", - theme_umbraco_buttons2 : "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code", - theme_umbraco_buttons3 : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap" - }; - - // Add accessibility control - toolbarHTML += ' 0) { - toolbarHTML += "
"; - deltaHeight -= 23; - } - } - - // Add accessibility control - toolbarHTML += '
'; - - // Setup template html - template['html'] = ''; - - if (toolbarLocation == "top") { - template['html'] += ''; - } - - if (statusbarLocation == "top") { - template['html'] += ''; - deltaHeight -= 23; - } - - template['html'] += ''; - - if (toolbarLocation == "bottom") { - template['html'] += ''; - } - - // External toolbar changes - if (toolbarLocation == "external") { - var bod = document.body; - var elm = document.createElement ("div"); - - toolbarHTML = tinyMCE.replaceVar(toolbarHTML, 'style_select_options', styleSelectHTML); - toolbarHTML = tinyMCE.applyTemplate(toolbarHTML, {editor_id : editorId}); - - elm.className = "mceToolbarExternal"; - elm.id = editorId+"_toolbar"; - elm.innerHTML = '
' + toolbarHTML + '
' + statusbarHTML + '
' + toolbarHTML + '
'+toolbarHTML+'
'; - bod.appendChild (elm); - // bod.style.marginTop = elm.offsetHeight + "px"; - - deltaHeight = 0; - tinyMCE.getInstanceById(editorId).toolbarElement = elm; - - //template['html'] = '
'+toolbarHTML+'
' + template["html"]; - } else { - tinyMCE.getInstanceById(editorId).toolbarElement = null; - } - - if (statusbarLocation == "bottom") { - template['html'] += '' + statusbarHTML + ''; - deltaHeight -= 23; - } - - template['html'] += ''; - //"SimpleLayout" - break; - - case "RowLayout" : //Container Layout - containers defined in "theme_umbraco_containers" are rendered from top to bottom. - template['html'] = ''; - - var containers = tinyMCE.getParam("theme_umbraco_containers", "", true, ","); - var defaultContainerCSS = tinyMCE.getParam("theme_umbraco_containers_default_class", "container"); - var defaultContainerAlign = tinyMCE.getParam("theme_umbraco_containers_default_align", "center"); - - //Render Containers: - for (var i = 0; i < containers.length; i++) - { - if (containers[i] == "mceEditor") //Exceptions for mceEditor and ... - template['html'] += ''; - else if (containers[i] == "mceElementpath" || containers[i] == "mceStatusbar") // ... mceElementpath: - { - var pathClass = "mceStatusbar"; - - if (i == containers.length-1) - { - pathClass = "mceStatusbarBottom"; - } - else if (i == 0) - { - pathClass = "mceStatusbar"; - } - else - { - deltaHeight-=2; - } - - template['html'] += ''; - deltaHeight -= 22; - } else { // Render normal Container - var curContainer = tinyMCE.getParam("theme_umbraco_container_"+containers[i], "", true, ','); - var curContainerHTML = ""; - var curAlign = tinyMCE.getParam("theme_umbraco_container_"+containers[i]+"_align", defaultContainerAlign); - var curCSS = tinyMCE.getParam("theme_umbraco_container_"+containers[i]+"_class", defaultContainerCSS); - - for (var j=0; j 0) { - curContainerHTML += "
"; - deltaHeight -= 23; - } - - template['html'] += '
'; - } - } - - template['html'] += '
' + statusbarHTML + '
' + curContainerHTML + '
'; - //RowLayout - break; - - case "CustomLayout" : //User defined layout callback... - var customLayout = tinyMCE.getParam("theme_umbraco_custom_layout",""); - - if (customLayout != "" && eval("typeof(" + customLayout + ")") != "undefined") { - template = eval(customLayout + "(template);"); - } - break; - } - - if (resizing) - template['html'] += ''; - - template['html'] = tinyMCE.replaceVar(template['html'], 'style_select_options', styleSelectHTML); - template['delta_width'] = 0; - template['delta_height'] = deltaHeight; - - return template; - }, - - initInstance : function(inst) { - if (tinyMCE.getParam("theme_umbraco_resizing", false)) { - if (tinyMCE.getParam("theme_umbraco_resizing_use_cookie", true)) { - var w = TinyMCE_UmbracoTheme._getCookie("TinyMCE_" + inst.editorId + "_width"); - var h = TinyMCE_UmbracoTheme._getCookie("TinyMCE_" + inst.editorId + "_height"); - - TinyMCE_UmbracoTheme._resizeTo(inst, w, h, tinyMCE.getParam("theme_umbraco_resize_horizontal", true)); - } - } - - inst.addShortcut('ctrl', 'k', 'lang_link_desc', 'mceLink'); - }, - - /** - * Node change handler. - */ - handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection, setup_content) { - function selectByValue(select_elm, value, first_index) { - first_index = typeof(first_index) == "undefined" ? false : true; - - if (select_elm) { - for (var i=0; i=0; i--) { - var nodeName = path[i].nodeName.toLowerCase(); - var nodeData = ""; - - if (nodeName == "b") { - nodeName = "strong"; - } - - if (nodeName == "i") { - nodeName = "em"; - } - - if (nodeName == "span") { - var cn = tinyMCE.getAttrib(path[i], "class"); - if (cn != "" && cn.indexOf('mceItem') == -1) - nodeData += "class: " + cn + " "; - - var st = tinyMCE.getAttrib(path[i], "style"); - if (st != "") { - st = tinyMCE.serializeStyle(tinyMCE.parseStyle(st)); - nodeData += "style: " + st + " "; - } - } - - if (nodeName == "font") { - if (tinyMCE.getParam("convert_fonts_to_spans")) - nodeName = "span"; - - var face = tinyMCE.getAttrib(path[i], "face"); - if (face != "") - nodeData += "font: " + face + " "; - - var size = tinyMCE.getAttrib(path[i], "size"); - if (size != "") - nodeData += "size: " + size + " "; - - var color = tinyMCE.getAttrib(path[i], "color"); - if (color != "") - nodeData += "color: " + color + " "; - } - - if (getAttrib(path[i], 'id') != "") { - nodeData += "id: " + path[i].getAttribute('id') + " "; - } - - var className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i], "class"), false); - if (className != "" && className.indexOf('mceItem') == -1) - nodeData += "class: " + className + " "; - - if (getAttrib(path[i], 'src') != "") { - var src = tinyMCE.getAttrib(path[i], "mce_src"); - - if (src == "") - src = tinyMCE.getAttrib(path[i], "src"); - - nodeData += "src: " + src + " "; - } - - if (getAttrib(path[i], 'href') != "") { - var href = tinyMCE.getAttrib(path[i], "mce_href"); - - if (href == "") - href = tinyMCE.getAttrib(path[i], "href"); - - nodeData += "href: " + href + " "; - } - - if (nodeName == "img" && tinyMCE.getAttrib(path[i], "class").indexOf('mceItemFlash') != -1) { - nodeName = "flash"; - nodeData = "src: " + path[i].getAttribute('title'); - } - - if (nodeName == "a" && (anchor = tinyMCE.getAttrib(path[i], "name")) != "") { - nodeName = "a"; - nodeName += "#" + anchor; - nodeData = ""; - } - - if (getAttrib(path[i], 'name').indexOf("mce_") != 0) { - var className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i], "class"), false); - if (className != "" && className.indexOf('mceItem') == -1) { - nodeName += "." + className; - } - } - - var cmd = 'tinyMCE.execInstanceCommand(\'' + editor_id + '\',\'mceSelectNodeDepth\',false,\'' + i + '\');'; - html += '' + nodeName + ''; - - if (i > 0) { - html += " » "; - } - } - - pathElm.innerHTML = '' + tinyMCE.getLang('lang_theme_path') + ": " + html + ' '; - } - - // Reset old states - tinyMCE.switchClass(editor_id + '_justifyleft', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_justifyright', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_justifycenter', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_justifyfull', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_bold', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_italic', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_underline', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_strikethrough', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_bullist', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_numlist', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_sub', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_sup', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_anchor', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_link', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_unlink', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_outdent', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_image', 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_hr', 'mceButtonNormal'); - - if (node.nodeName == "A" && tinyMCE.getAttrib(node, "class").indexOf('mceItemAnchor') != -1) - tinyMCE.switchClass(editor_id + '_anchor', 'mceButtonSelected'); - - // Get link - var anchorLink = tinyMCE.getParentElement(node, "a", "href"); - - if (anchorLink || any_selection) { - tinyMCE.switchClass(editor_id + '_link', anchorLink ? 'mceButtonSelected' : 'mceButtonNormal'); - tinyMCE.switchClass(editor_id + '_unlink', anchorLink ? 'mceButtonSelected' : 'mceButtonNormal'); - } - - // Handle visual aid - tinyMCE.switchClass(editor_id + '_visualaid', visual_aid ? 'mceButtonSelected' : 'mceButtonNormal'); - - if (undo_levels != -1) { - tinyMCE.switchClass(editor_id + '_undo', 'mceButtonDisabled'); - tinyMCE.switchClass(editor_id + '_redo', 'mceButtonDisabled'); - } - - // Within li, blockquote - if (tinyMCE.getParentElement(node, "li,blockquote")) - tinyMCE.switchClass(editor_id + '_outdent', 'mceButtonNormal'); - - // Has redo levels - if (undo_index != -1 && (undo_index < undo_levels-1 && undo_levels > 0)) - tinyMCE.switchClass(editor_id + '_redo', 'mceButtonNormal'); - - // Has undo levels - if (undo_index != -1 && (undo_index > 0 && undo_levels > 0)) - tinyMCE.switchClass(editor_id + '_undo', 'mceButtonNormal'); - - // Select class in select box - var selectElm = document.getElementById(editor_id + "_styleSelect"); - - if (selectElm) { - TinyMCE_UmbracoTheme._setupCSSClasses(editor_id); - - classNode = node; - breakOut = false; - var index = 0; - - do { - if (classNode && classNode.className) { - for (var i=0; i"); - else - selectByValue(selectElm, ""); - } - - // Select fontselect - var selectElm = document.getElementById(editor_id + "_fontNameSelect"); - if (selectElm) { - if (!tinyMCE.isSafari && !(tinyMCE.isMSIE && !tinyMCE.isOpera)) { - var face = inst.queryCommandValue('FontName'); - - face = face == null || face == "" ? "" : face; - - selectByValue(selectElm, face, face != ""); - } else { - var elm = tinyMCE.getParentElement(node, "font", "face"); - - if (elm) { - var family = tinyMCE.getAttrib(elm, "face"); - - if (family == '') - family = '' + elm.style.fontFamily; - - if (!selectByValue(selectElm, family, family != "")) - selectByValue(selectElm, ""); - } else - selectByValue(selectElm, ""); - } - } - - // Select fontsize - var selectElm = document.getElementById(editor_id + "_fontSizeSelect"); - if (selectElm) { - if (!tinyMCE.isSafari && !tinyMCE.isOpera) { - var size = inst.queryCommandValue('FontSize'); - selectByValue(selectElm, size == null || size == "" ? "0" : size); - } else { - var elm = tinyMCE.getParentElement(node, "font", "size"); - if (elm) { - var size = tinyMCE.getAttrib(elm, "size"); - - if (size == '') { - var sizes = new Array('', '8px', '10px', '12px', '14px', '18px', '24px', '36px'); - - size = '' + elm.style.fontSize; - - for (var i=0; i 0) - selectElm.setAttribute('cssImported', 'true'); - } - }, - - _setCookie : function(name, value, expires, path, domain, secure) { - var curCookie = name + "=" + escape(value) + - ((expires) ? "; expires=" + expires.toGMTString() : "") + - ((path) ? "; path=" + escape(path) : "") + - ((domain) ? "; domain=" + domain : "") + - ((secure) ? "; secure" : ""); - - document.cookie = curCookie; - }, - - _getCookie : function(name) { - var dc = document.cookie; - var prefix = name + "="; - var begin = dc.indexOf("; " + prefix); - - if (begin == -1) { - begin = dc.indexOf(prefix); - - if (begin != 0) - return null; - } else - begin += 2; - - var end = document.cookie.indexOf(";", begin); - - if (end == -1) - end = dc.length; - - return unescape(dc.substring(begin + prefix.length, end)); - }, - - _resizeTo : function(inst, w, h, set_w) { - var editorContainer = document.getElementById(inst.editorId + '_parent'); - var tableElm = editorContainer.firstChild; - var iframe = inst.iframeElement; - - if (w == null || w == "null") { - set_w = false; - w = 0; - } - - if (h == null || h == "null") - return; - - w = parseInt(w); - h = parseInt(h); - - if (tinyMCE.isGecko) { - w += 2; - h += 2; - } - - var dx = w - tableElm.clientWidth; - var dy = h - tableElm.clientHeight; - - w = w < 1 ? 30 : w; - h = h < 1 ? 30 : h; - - if (set_w) - tableElm.style.width = w + "px"; - - tableElm.style.height = h + "px"; - - iw = iframe.clientWidth + dx; - ih = iframe.clientHeight + dy; - - iw = iw < 1 ? 30 : iw; - ih = ih < 1 ? 30 : ih; - - if (tinyMCE.isGecko) { - iw -= 2; - ih -= 2; - } - - if (set_w) - iframe.style.width = iw + "px"; - - iframe.style.height = ih + "px"; - - // Is it to small, make it bigger again - if (set_w) { - var tableBodyElm = tableElm.firstChild; - var minIframeWidth = tableBodyElm.scrollWidth; - if (inst.iframeElement.clientWidth < minIframeWidth) { - dx = minIframeWidth - inst.iframeElement.clientWidth; - - inst.iframeElement.style.width = (iw + dx) + "px"; - } - } - }, - - /** - * Handles resizing events. - */ - _resizeEventHandler : function(e) { - var resizer = TinyMCE_UmbracoTheme._resizer; - - // Do nothing - if (!resizer.resizing) - return; - - e = typeof(e) == "undefined" ? window.event : e; - - var dx = e.screenX - resizer.downX; - var dy = e.screenY - resizer.downY; - var resizeBox = resizer.resizeBox; - var editorId = resizer.editorId; - - switch (e.type) { - case "mousemove": - var w, h; - - w = resizer.width + dx; - h = resizer.height + dy; - - w = w < 1 ? 1 : w; - h = h < 1 ? 1 : h; - - if (resizer.horizontal) - resizeBox.style.width = w + "px"; - - resizeBox.style.height = h + "px"; - break; - - case "mouseup": - TinyMCE_UmbracoTheme._setResizing(e, editorId, false); - TinyMCE_UmbracoTheme._resizeTo(tinyMCE.getInstanceById(editorId), resizer.width + dx, resizer.height + dy, resizer.horizontal); - - // Expire in a month - if (tinyMCE.getParam("theme_umbraco_resizing_use_cookie", true)) { - var expires = new Date(); - expires.setTime(expires.getTime() + 3600000 * 24 * 30); - - // Set the cookies - TinyMCE_UmbracoTheme._setCookie("TinyMCE_" + editorId + "_width", "" + (resizer.horizontal ? resizer.width + dx : ""), expires); - TinyMCE_UmbracoTheme._setCookie("TinyMCE_" + editorId + "_height", "" + (resizer.height + dy), expires); - } - break; - } - }, - - /** - * Starts/stops the editor resizing. - */ - _setResizing : function(e, editor_id, state) { - e = typeof(e) == "undefined" ? window.event : e; - - var resizer = TinyMCE_UmbracoTheme._resizer; - var editorContainer = document.getElementById(editor_id + '_parent'); - var editorArea = document.getElementById(editor_id + '_parent').firstChild; - var resizeBox = document.getElementById(editor_id + '_resize_box'); - var inst = tinyMCE.getInstanceById(editor_id); - - if (state) { - // Place box over editor area - var width = editorArea.clientWidth; - var height = editorArea.clientHeight; - - resizeBox.style.width = width + "px"; - resizeBox.style.height = height + "px"; - - resizer.iframeWidth = inst.iframeElement.clientWidth; - resizer.iframeHeight = inst.iframeElement.clientHeight; - - // Hide editor and show resize box - editorArea.style.display = "none"; - resizeBox.style.display = "block"; - - // Add event handlers, only once - if (!resizer.eventHandlers) { - if (tinyMCE.isMSIE) - tinyMCE.addEvent(document, "mousemove", TinyMCE_UmbracoTheme._resizeEventHandler); - else - tinyMCE.addEvent(window, "mousemove", TinyMCE_UmbracoTheme._resizeEventHandler); - - tinyMCE.addEvent(document, "mouseup", TinyMCE_UmbracoTheme._resizeEventHandler); - - resizer.eventHandlers = true; - } - - resizer.resizing = true; - resizer.downX = e.screenX; - resizer.downY = e.screenY; - resizer.width = parseInt(resizeBox.style.width); - resizer.height = parseInt(resizeBox.style.height); - resizer.editorId = editor_id; - resizer.resizeBox = resizeBox; - resizer.horizontal = tinyMCE.getParam("theme_umbraco_resize_horizontal", true); - } else { - resizer.resizing = false; - resizeBox.style.display = "none"; - editorArea.style.display = tinyMCE.isMSIE && !tinyMCE.isOpera ? "block" : "table"; - tinyMCE.execCommand('mceResetDesignMode'); - } - }, - - _insertImage : function(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout) { - tinyMCE.execCommand('mceBeginUndoLevel'); - - if (src == "") - return; - - if (!tinyMCE.imgElement && tinyMCE.isSafari) { - var html = ""; - - html += '' + alt + ''; - - tinyMCE.execCommand("mceInsertContent", false, html); - } else { - if (!tinyMCE.imgElement && tinyMCE.selectedInstance) { - if (tinyMCE.isSafari) - tinyMCE.execCommand("mceInsertContent", false, ''); - else - tinyMCE.selectedInstance.contentDocument.execCommand("insertimage", false, tinyMCE.uniqueURL); - - tinyMCE.imgElement = tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body, "img", "src", tinyMCE.uniqueURL); - } - } - - if (tinyMCE.imgElement) { - var needsRepaint = false; - var msrc = src; - - src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, tinyMCE.imgElement);"); - - if (tinyMCE.getParam('convert_urls')) - msrc = src; - - if (onmouseover && onmouseover != "") - onmouseover = "this.src='" + eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseover, tinyMCE.imgElement);") + "';"; - - if (onmouseout && onmouseout != "") - onmouseout = "this.src='" + eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseout, tinyMCE.imgElement);") + "';"; - - // Use alt as title if it's undefined - if (typeof(title) == "undefined") - title = alt; - - if (width != tinyMCE.imgElement.getAttribute("width") || height != tinyMCE.imgElement.getAttribute("height") || align != tinyMCE.imgElement.getAttribute("align")) - needsRepaint = true; - - tinyMCE.setAttrib(tinyMCE.imgElement, 'src', src); - tinyMCE.setAttrib(tinyMCE.imgElement, 'mce_src', msrc); - tinyMCE.setAttrib(tinyMCE.imgElement, 'alt', alt); - tinyMCE.setAttrib(tinyMCE.imgElement, 'title', title); - tinyMCE.setAttrib(tinyMCE.imgElement, 'align', align); - tinyMCE.setAttrib(tinyMCE.imgElement, 'border', border, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'hspace', hspace, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'vspace', vspace, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'width', width, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'height', height, true); - tinyMCE.setAttrib(tinyMCE.imgElement, 'onmouseover', onmouseover); - tinyMCE.setAttrib(tinyMCE.imgElement, 'onmouseout', onmouseout); - - // Fix for bug #989846 - Image resize bug - if (width && width != "") - tinyMCE.imgElement.style.pixelWidth = width; - - if (height && height != "") - tinyMCE.imgElement.style.pixelHeight = height; - - if (needsRepaint) - tinyMCE.selectedInstance.repaint(); - } - - tinyMCE.execCommand('mceEndUndoLevel'); - }, - - _insertLink : function(href, target, title, onclick, style_class) { - tinyMCE.execCommand('mceBeginUndoLevel'); - - if (tinyMCE.selectedInstance && tinyMCE.selectedElement && tinyMCE.selectedElement.nodeName.toLowerCase() == "img") { - var doc = tinyMCE.selectedInstance.getDoc(); - var linkElement = tinyMCE.getParentElement(tinyMCE.selectedElement, "a"); - var newLink = false; - - if (!linkElement) { - linkElement = doc.createElement("a"); - newLink = true; - } - - var mhref = href; - var thref = eval(tinyMCE.settings['urlconverter_callback'] + "(href, linkElement);"); - mhref = tinyMCE.getParam('convert_urls') ? href : mhref; - - tinyMCE.setAttrib(linkElement, 'href', thref); - tinyMCE.setAttrib(linkElement, 'mce_href', mhref); - tinyMCE.setAttrib(linkElement, 'target', target); - tinyMCE.setAttrib(linkElement, 'title', title); - tinyMCE.setAttrib(linkElement, 'onclick', onclick); - tinyMCE.setAttrib(linkElement, 'class', style_class); - - if (newLink) { - linkElement.appendChild(tinyMCE.selectedElement.cloneNode(true)); - tinyMCE.selectedElement.parentNode.replaceChild(linkElement, tinyMCE.selectedElement); - } - - return; - } - - if (!tinyMCE.linkElement && tinyMCE.selectedInstance) { - if (tinyMCE.isSafari) { - tinyMCE.execCommand("mceInsertContent", false, '' + tinyMCE.selectedInstance.selection.getSelectedHTML() + ''); - } else - tinyMCE.selectedInstance.contentDocument.execCommand("createlink", false, tinyMCE.uniqueURL); - - tinyMCE.linkElement = tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body, "a", "href", tinyMCE.uniqueURL); - - var elementArray = tinyMCE.getElementsByAttributeValue(tinyMCE.selectedInstance.contentDocument.body, "a", "href", tinyMCE.uniqueURL); - - for (var i=0; i4?but[4]:false),(but.length>5?but[5]:null));}switch(button_name){case"formatselect":var html='';return html;case"styleselect":return'';case"fontselect":var fontHTML='';return fontHTML;case"fontsizeselect":return'';case"|":case"separator":return'';case"spacer":return'';case"rowseparator":return'
';}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceLink":var inst=tinyMCE.getInstanceById(editor_id);var doc=inst.getDoc();var selectedText="";if(tinyMCE.isMSIE){var rng=doc.selection.createRange();selectedText=rng.text;}else selectedText=inst.getSel().toString();if(!tinyMCE.linkElement){if((tinyMCE.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=0))return true;}var href="",target="",title="",onclick="",action="insert",style_class="";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a")tinyMCE.linkElement=tinyMCE.selectedElement;if(tinyMCE.linkElement!=null&&tinyMCE.getAttrib(tinyMCE.linkElement,'href')=="")tinyMCE.linkElement=null;if(tinyMCE.linkElement){href=tinyMCE.getAttrib(tinyMCE.linkElement,'href');target=tinyMCE.getAttrib(tinyMCE.linkElement,'target');title=tinyMCE.getAttrib(tinyMCE.linkElement,'title');onclick=tinyMCE.getAttrib(tinyMCE.linkElement,'onclick');style_class=tinyMCE.getAttrib(tinyMCE.linkElement,'class');if(onclick=="")onclick=tinyMCE.getAttrib(tinyMCE.linkElement,'onclick');onclick=tinyMCE.cleanupEventStr(onclick);href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement, true);");mceRealHref=tinyMCE.getAttrib(tinyMCE.linkElement,'mce_href');if(mceRealHref!=""){href=mceRealHref;if(tinyMCE.getParam('convert_urls'))href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement, true);");}action="update";}var template=new Array();template['file']='link.htm';template['width']=310;template['height']=200;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);if(inst.settings['insertlink_callback']){var returnVal=eval(inst.settings['insertlink_callback']+"(href, target, title, onclick, action, style_class);");if(returnVal&&returnVal['href'])TinyMCE_AdvancedTheme._insertLink(returnVal['href'],returnVal['target'],returnVal['title'],returnVal['onclick'],returnVal['style_class']);}else{tinyMCE.openWindow(template,{href:href,target:target,title:title,onclick:onclick,action:action,className:style_class,inline:"yes"});}return true;case"mceImage":var src="",alt="",border="",hspace="",vspace="",width="",height="",align="";var title="",onmouseover="",onmouseout="",action="insert";var img=tinyMCE.imgElement;var inst=tinyMCE.getInstanceById(editor_id);if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){img=tinyMCE.selectedElement;tinyMCE.imgElement=img;}if(img){if(tinyMCE.getAttrib(img,'name').indexOf('mce_')==0)return true;src=tinyMCE.getAttrib(img,'src');alt=tinyMCE.getAttrib(img,'alt');if(alt=="")alt=tinyMCE.getAttrib(img,'title');if(tinyMCE.isGecko){var w=img.style.width;if(w!=null&&w!="")img.setAttribute("width",w);var h=img.style.height;if(h!=null&&h!="")img.setAttribute("height",h);}border=tinyMCE.getAttrib(img,'border');hspace=tinyMCE.getAttrib(img,'hspace');vspace=tinyMCE.getAttrib(img,'vspace');width=tinyMCE.getAttrib(img,'width');height=tinyMCE.getAttrib(img,'height');align=tinyMCE.getAttrib(img,'align');onmouseover=tinyMCE.getAttrib(img,'onmouseover');onmouseout=tinyMCE.getAttrib(img,'onmouseout');title=tinyMCE.getAttrib(img,'title');if(tinyMCE.isMSIE){width=img.attributes['width'].specified?width:"";height=img.attributes['height'].specified?height:"";}src=eval(tinyMCE.settings['urlconverter_callback']+"(src, img, true);");mceRealSrc=tinyMCE.getAttrib(img,'mce_src');if(mceRealSrc!=""){src=mceRealSrc;if(tinyMCE.getParam('convert_urls'))src=eval(tinyMCE.settings['urlconverter_callback']+"(src, img, true);");}action="update";}var template=new Array();template['file']='image.htm?src={$src}';template['width']=355;template['height']=265+(tinyMCE.isMSIE?25:0);template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);if(inst.settings['insertimage_callback']){var returnVal=eval(inst.settings['insertimage_callback']+"(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");if(returnVal&&returnVal['src'])TinyMCE_AdvancedTheme._insertImage(returnVal['src'],returnVal['alt'],returnVal['border'],returnVal['hspace'],returnVal['vspace'],returnVal['width'],returnVal['height'],returnVal['align'],returnVal['title'],returnVal['onmouseover'],returnVal['onmouseout']);}else tinyMCE.openWindow(template,{src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout,action:action,inline:"yes"});return true;case"mceForeColor":var template=new Array();var elm=tinyMCE.selectedInstance.getFocusElement();var inputColor=tinyMCE.getAttrib(elm,"color");if(inputColor=='')inputColor=elm.style.color;if(!inputColor)inputColor="#000000";template['file']='color_picker.htm';template['width']=220;template['height']=190;tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",command:"forecolor",input_color:inputColor});return true;case"mceBackColor":var template=new Array();var elm=tinyMCE.selectedInstance.getFocusElement();var inputColor=elm.style.backgroundColor;if(!inputColor)inputColor="#000000";template['file']='color_picker.htm';template['width']=220;template['height']=190;template['width']+=tinyMCE.getLang('lang_theme_advanced_backcolor_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_backcolor_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",command:"HiliteColor",input_color:inputColor});return true;case"mceColorPicker":if(user_interface){var template=new Array();var inputColor=value['document'].getElementById(value['element_id']).value;template['file']='color_picker.htm';template['width']=220;template['height']=190;template['close_previous']="no";template['width']+=tinyMCE.getLang('lang_theme_advanced_colorpicker_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_colorpicker_delta_height',0);if(typeof(value['store_selection'])=="undefined")value['store_selection']=true;tinyMCE.lastColorPickerValue=value;tinyMCE.openWindow(template,{editor_id:editor_id,mce_store_selection:value['store_selection'],inline:"yes",command:"mceColorPicker",input_color:inputColor});}else{var savedVal=tinyMCE.lastColorPickerValue;var elm=savedVal['document'].getElementById(savedVal['element_id']);elm.value=value;if(elm.onchange!=null&&elm.onchange!='')eval('elm.onchange();');}return true;case"mceCodeEditor":var template=new Array();template['file']='source_editor.htm';template['width']=parseInt(tinyMCE.getParam("theme_advanced_source_editor_width",720));template['height']=parseInt(tinyMCE.getParam("theme_advanced_source_editor_height",580));tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"no",inline:"yes"});return true;case"mceCharMap":var template=new Array();template['file']='charmap.htm';template['width']=550+(tinyMCE.isOpera?40:0);template['height']=250;template['width']+=tinyMCE.getLang('lang_theme_advanced_charmap_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_charmap_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceInsertAnchor":var template=new Array();template['file']='anchor.htm';template['width']=320;template['height']=90+(tinyMCE.isNS7?30:0);template['width']+=tinyMCE.getLang('lang_theme_advanced_anchor_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_advanced_anchor_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceNewDocument":if(confirm(tinyMCE.getLang('lang_newdocument')))tinyMCE.execInstanceCommand(editor_id,'mceSetContent',false,' ');return true;}return false;},getEditorTemplate:function(settings,editorId){function removeFromArray(in_array,remove_array){var outArray=new Array();for(var i=0;i 

';var layoutManager=tinyMCE.getParam("theme_advanced_layout_manager","SimpleLayout");var styleSelectHTML='';if(settings['theme_advanced_styles']){var stylesAr=settings['theme_advanced_styles'].split(';');for(var i=0;i'+key+'';}TinyMCE_AdvancedTheme._autoImportCSSClasses=false;}switch(layoutManager){case"SimpleLayout":var toolbarHTML="";var toolbarLocation=tinyMCE.getParam("theme_advanced_toolbar_location","bottom");var toolbarAlign=tinyMCE.getParam("theme_advanced_toolbar_align","center");var pathLocation=tinyMCE.getParam("theme_advanced_path_location","none");var statusbarLocation=tinyMCE.getParam("theme_advanced_statusbar_location",pathLocation);var defVals={theme_advanced_buttons1:"bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,separator,sub,sup,separator,charmap"};toolbarHTML+='0){toolbarHTML+="
";deltaHeight-=23;}}toolbarHTML+='
';template['html']='';if(toolbarLocation=="top"){template['html']+='';}if(statusbarLocation=="top"){template['html']+='';deltaHeight-=23;}template['html']+='';if(toolbarLocation=="bottom"){template['html']+='';}if(toolbarLocation=="external"){var bod=document.body;var elm=document.createElement("div");toolbarHTML=tinyMCE.replaceVar(toolbarHTML,'style_select_options',styleSelectHTML);toolbarHTML=tinyMCE.applyTemplate(toolbarHTML,{editor_id:editorId});elm.className="mceToolbarExternal";elm.id=editorId+"_toolbar";elm.innerHTML='
'+toolbarHTML+'
'+statusbarHTML+'
'+toolbarHTML+'
'+toolbarHTML+'
';bod.appendChild(elm);deltaHeight=0;tinyMCE.getInstanceById(editorId).toolbarElement=elm;}else{tinyMCE.getInstanceById(editorId).toolbarElement=null;}if(statusbarLocation=="bottom"){template['html']+=''+statusbarHTML+'';deltaHeight-=23;}template['html']+='';break;case"RowLayout":template['html']='';var containers=tinyMCE.getParam("theme_advanced_containers","",true,",");var defaultContainerCSS=tinyMCE.getParam("theme_advanced_containers_default_class","container");var defaultContainerAlign=tinyMCE.getParam("theme_advanced_containers_default_align","center");for(var i=0;i';else if(containers[i]=="mceElementpath"||containers[i]=="mceStatusbar"){var pathClass="mceStatusbar";if(i==containers.length-1){pathClass="mceStatusbarBottom";}else if(i==0){pathClass="mceStatusbar";}else{deltaHeight-=2;}template['html']+='';deltaHeight-=22;}else{var curContainer=tinyMCE.getParam("theme_advanced_container_"+containers[i],"",true,',');var curContainerHTML="";var curAlign=tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_align",defaultContainerAlign);var curCSS=tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_class",defaultContainerCSS);for(var j=0;j0){curContainerHTML+="
";deltaHeight-=23;}template['html']+='
';}}template['html']+='
'+statusbarHTML+'
'+curContainerHTML+'
';break;case"CustomLayout":var customLayout=tinyMCE.getParam("theme_advanced_custom_layout","");if(customLayout!=""&&eval("typeof("+customLayout+")")!="undefined"){template=eval(customLayout+"(template);");}break;}if(resizing)template['html']+='';template['html']=tinyMCE.replaceVar(template['html'],'style_select_options',styleSelectHTML);template['delta_width']=0;template['delta_height']=deltaHeight;return template;},initInstance:function(inst){if(tinyMCE.getParam("theme_advanced_resizing",false)){if(tinyMCE.getParam("theme_advanced_resizing_use_cookie",true)){var w=TinyMCE_AdvancedTheme._getCookie("TinyMCE_"+inst.editorId+"_width");var h=TinyMCE_AdvancedTheme._getCookie("TinyMCE_"+inst.editorId+"_height");TinyMCE_AdvancedTheme._resizeTo(inst,w,h,tinyMCE.getParam("theme_advanced_resize_horizontal",true));}}inst.addShortcut('ctrl','k','lang_link_desc','mceLink');},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection,setup_content){function selectByValue(select_elm,value,first_index){first_index=typeof(first_index)=="undefined"?false:true;if(select_elm){for(var i=0;i=0;i--){var nodeName=path[i].nodeName.toLowerCase();var nodeData="";if(nodeName=="b"){nodeName="strong";}if(nodeName=="i"){nodeName="em";}if(nodeName=="span"){var cn=tinyMCE.getAttrib(path[i],"class");if(cn!=""&&cn.indexOf('mceItem')==-1)nodeData+="class: "+cn+" ";var st=tinyMCE.getAttrib(path[i],"style");if(st!=""){st=tinyMCE.serializeStyle(tinyMCE.parseStyle(st));nodeData+="style: "+st+" ";}}if(nodeName=="font"){if(tinyMCE.getParam("convert_fonts_to_spans"))nodeName="span";var face=tinyMCE.getAttrib(path[i],"face");if(face!="")nodeData+="font: "+face+" ";var size=tinyMCE.getAttrib(path[i],"size");if(size!="")nodeData+="size: "+size+" ";var color=tinyMCE.getAttrib(path[i],"color");if(color!="")nodeData+="color: "+color+" ";}if(getAttrib(path[i],'id')!=""){nodeData+="id: "+path[i].getAttribute('id')+" ";}var className=tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i],"class"),false);if(className!=""&&className.indexOf('mceItem')==-1)nodeData+="class: "+className+" ";if(getAttrib(path[i],'src')!=""){var src=tinyMCE.getAttrib(path[i],"mce_src");if(src=="")src=tinyMCE.getAttrib(path[i],"src");nodeData+="src: "+src+" ";}if(getAttrib(path[i],'href')!=""){var href=tinyMCE.getAttrib(path[i],"mce_href");if(href=="")href=tinyMCE.getAttrib(path[i],"href");nodeData+="href: "+href+" ";}if(nodeName=="img"&&tinyMCE.getAttrib(path[i],"class").indexOf('mceItemFlash')!=-1){nodeName="flash";nodeData="src: "+path[i].getAttribute('title');}if(nodeName=="a"&&(anchor=tinyMCE.getAttrib(path[i],"name"))!=""){nodeName="a";nodeName+="#"+anchor;nodeData="";}if(getAttrib(path[i],'name').indexOf("mce_")!=0){var className=tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i],"class"),false);if(className!=""&&className.indexOf('mceItem')==-1){nodeName+="."+className;}}var cmd='tinyMCE.execInstanceCommand(\''+editor_id+'\',\'mceSelectNodeDepth\',false,\''+i+'\');';html+=''+nodeName+'';if(i>0){html+=" » ";}}pathElm.innerHTML=''+tinyMCE.getLang('lang_theme_path')+": "+html+' ';}tinyMCE.switchClass(editor_id+'_justifyleft','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifyright','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifycenter','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifyfull','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_numlist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_sub','mceButtonNormal');tinyMCE.switchClass(editor_id+'_sup','mceButtonNormal');tinyMCE.switchClass(editor_id+'_anchor','mceButtonNormal');tinyMCE.switchClass(editor_id+'_link','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_unlink','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_outdent','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_image','mceButtonNormal');tinyMCE.switchClass(editor_id+'_hr','mceButtonNormal');if(node.nodeName=="A"&&tinyMCE.getAttrib(node,"class").indexOf('mceItemAnchor')!=-1)tinyMCE.switchClass(editor_id+'_anchor','mceButtonSelected');var anchorLink=tinyMCE.getParentElement(node,"a","href");if(anchorLink||any_selection){tinyMCE.switchClass(editor_id+'_link',anchorLink?'mceButtonSelected':'mceButtonNormal');tinyMCE.switchClass(editor_id+'_unlink',anchorLink?'mceButtonSelected':'mceButtonNormal');}tinyMCE.switchClass(editor_id+'_visualaid',visual_aid?'mceButtonSelected':'mceButtonNormal');if(undo_levels!=-1){tinyMCE.switchClass(editor_id+'_undo','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_redo','mceButtonDisabled');}if(tinyMCE.getParentElement(node,"li,blockquote"))tinyMCE.switchClass(editor_id+'_outdent','mceButtonNormal');if(undo_index!=-1&&(undo_index0))tinyMCE.switchClass(editor_id+'_redo','mceButtonNormal');if(undo_index!=-1&&(undo_index>0&&undo_levels>0))tinyMCE.switchClass(editor_id+'_undo','mceButtonNormal');var selectElm=document.getElementById(editor_id+"_styleSelect");if(selectElm){TinyMCE_AdvancedTheme._setupCSSClasses(editor_id);classNode=node;breakOut=false;var index=0;do{if(classNode&&classNode.className){for(var i=0;i");else selectByValue(selectElm,"");}var selectElm=document.getElementById(editor_id+"_fontNameSelect");if(selectElm){if(!tinyMCE.isSafari&&!(tinyMCE.isMSIE&&!tinyMCE.isOpera)){var face=inst.queryCommandValue('FontName');face=face==null||face==""?"":face;selectByValue(selectElm,face,face!="");}else{var elm=tinyMCE.getParentElement(node,"font","face");if(elm){var family=tinyMCE.getAttrib(elm,"face");if(family=='')family=''+elm.style.fontFamily;if(!selectByValue(selectElm,family,family!=""))selectByValue(selectElm,"");}else selectByValue(selectElm,"");}}var selectElm=document.getElementById(editor_id+"_fontSizeSelect");if(selectElm){if(!tinyMCE.isSafari&&!tinyMCE.isOpera){var size=inst.queryCommandValue('FontSize');selectByValue(selectElm,size==null||size==""?"0":size);}else{var elm=tinyMCE.getParentElement(node,"font","size");if(elm){var size=tinyMCE.getAttrib(elm,"size");if(size==''){var sizes=new Array('','8px','10px','12px','14px','18px','24px','36px');size=''+elm.style.fontSize;for(var i=0;i0)selectElm.setAttribute('cssImported','true');}},_setCookie:function(name,value,expires,path,domain,secure){var curCookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+escape(path):"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"");document.cookie=curCookie;},_getCookie:function(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin+prefix.length,end));},_resizeTo:function(inst,w,h,set_w){var editorContainer=document.getElementById(inst.editorId+'_parent');var tableElm=editorContainer.firstChild;var iframe=inst.iframeElement;if(w==null||w=="null"){set_w=false;w=0;}if(h==null||h=="null")return;w=parseInt(w);h=parseInt(h);if(tinyMCE.isGecko){w+=2;h+=2;}var dx=w-tableElm.clientWidth;var dy=h-tableElm.clientHeight;w=w<1?30:w;h=h<1?30:h;if(set_w)tableElm.style.width=w+"px";tableElm.style.height=h+"px";iw=iframe.clientWidth+dx;ih=iframe.clientHeight+dy;iw=iw<1?30:iw;ih=ih<1?30:ih;if(tinyMCE.isGecko){iw-=2;ih-=2;}if(set_w)iframe.style.width=iw+"px";iframe.style.height=ih+"px";if(set_w){var tableBodyElm=tableElm.firstChild;var minIframeWidth=tableBodyElm.scrollWidth;if(inst.iframeElement.clientWidth';tinyMCE.execCommand("mceInsertContent",false,html);}else{if(!tinyMCE.imgElement&&tinyMCE.selectedInstance){if(tinyMCE.isSafari)tinyMCE.execCommand("mceInsertContent",false,'');else tinyMCE.selectedInstance.contentDocument.execCommand("insertimage",false,tinyMCE.uniqueURL);tinyMCE.imgElement=tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"img","src",tinyMCE.uniqueURL);}}if(tinyMCE.imgElement){var needsRepaint=false;var msrc=src;src=eval(tinyMCE.settings['urlconverter_callback']+"(src, tinyMCE.imgElement);");if(tinyMCE.getParam('convert_urls'))msrc=src;if(onmouseover&&onmouseover!="")onmouseover="this.src='"+eval(tinyMCE.settings['urlconverter_callback']+"(onmouseover, tinyMCE.imgElement);")+"';";if(onmouseout&&onmouseout!="")onmouseout="this.src='"+eval(tinyMCE.settings['urlconverter_callback']+"(onmouseout, tinyMCE.imgElement);")+"';";if(typeof(title)=="undefined")title=alt;if(width!=tinyMCE.imgElement.getAttribute("width")||height!=tinyMCE.imgElement.getAttribute("height")||align!=tinyMCE.imgElement.getAttribute("align"))needsRepaint=true;tinyMCE.setAttrib(tinyMCE.imgElement,'src',src);tinyMCE.setAttrib(tinyMCE.imgElement,'mce_src',msrc);tinyMCE.setAttrib(tinyMCE.imgElement,'alt',alt);tinyMCE.setAttrib(tinyMCE.imgElement,'title',title);tinyMCE.setAttrib(tinyMCE.imgElement,'align',align);tinyMCE.setAttrib(tinyMCE.imgElement,'border',border,true);tinyMCE.setAttrib(tinyMCE.imgElement,'hspace',hspace,true);tinyMCE.setAttrib(tinyMCE.imgElement,'vspace',vspace,true);tinyMCE.setAttrib(tinyMCE.imgElement,'width',width,true);tinyMCE.setAttrib(tinyMCE.imgElement,'height',height,true);tinyMCE.setAttrib(tinyMCE.imgElement,'onmouseover',onmouseover);tinyMCE.setAttrib(tinyMCE.imgElement,'onmouseout',onmouseout);if(width&&width!="")tinyMCE.imgElement.style.pixelWidth=width;if(height&&height!="")tinyMCE.imgElement.style.pixelHeight=height;if(needsRepaint)tinyMCE.selectedInstance.repaint();}tinyMCE.execCommand('mceEndUndoLevel');},_insertLink:function(href,target,title,onclick,style_class){tinyMCE.execCommand('mceBeginUndoLevel');if(tinyMCE.selectedInstance&&tinyMCE.selectedElement&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){var doc=tinyMCE.selectedInstance.getDoc();var linkElement=tinyMCE.getParentElement(tinyMCE.selectedElement,"a");var newLink=false;if(!linkElement){linkElement=doc.createElement("a");newLink=true;}var mhref=href;var thref=eval(tinyMCE.settings['urlconverter_callback']+"(href, linkElement);");mhref=tinyMCE.getParam('convert_urls')?href:mhref;tinyMCE.setAttrib(linkElement,'href',thref);tinyMCE.setAttrib(linkElement,'mce_href',mhref);tinyMCE.setAttrib(linkElement,'target',target);tinyMCE.setAttrib(linkElement,'title',title);tinyMCE.setAttrib(linkElement,'onclick',onclick);tinyMCE.setAttrib(linkElement,'class',style_class);if(newLink){linkElement.appendChild(tinyMCE.selectedElement.cloneNode(true));tinyMCE.selectedElement.parentNode.replaceChild(linkElement,tinyMCE.selectedElement);}return;}if(!tinyMCE.linkElement&&tinyMCE.selectedInstance){if(tinyMCE.isSafari){tinyMCE.execCommand("mceInsertContent",false,''+tinyMCE.selectedInstance.selection.getSelectedHTML()+'');}else tinyMCE.selectedInstance.contentDocument.execCommand("createlink",false,tinyMCE.uniqueURL);tinyMCE.linkElement=tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"a","href",tinyMCE.uniqueURL);var elementArray=tinyMCE.getElementsByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"a","href",tinyMCE.uniqueURL);for(var i=0;i - - {$lang_insert_image_title} - - - - - - - -
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
- x -
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/anchor.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/anchor.gif deleted file mode 100644 index 34ab71534b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/anchor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/anchor_symbol.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/anchor_symbol.gif deleted file mode 100644 index 2eafd7954e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/anchor_symbol.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/backcolor.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/backcolor.gif deleted file mode 100644 index 8a532e5e62..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/backcolor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold.gif deleted file mode 100644 index d6a9cc2cd4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_de_se.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_de_se.gif deleted file mode 100644 index 9b129de25e..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_de_se.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_es.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_es.gif deleted file mode 100644 index ea341e6089..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_es.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_fr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_fr.gif deleted file mode 100644 index 2816454515..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_fr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_ru.gif deleted file mode 100644 index e000d461c9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_tw.gif deleted file mode 100644 index 82085432c6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bold_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/browse.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/browse.gif deleted file mode 100644 index c786d0b205..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/browse.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bullist.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bullist.gif deleted file mode 100644 index 6e19467c70..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/bullist.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/button_menu.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/button_menu.gif deleted file mode 100644 index c3d8fa2311..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/button_menu.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/buttons.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/buttons.gif deleted file mode 100644 index 6196350de8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/buttons.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cancel_button_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cancel_button_bg.gif deleted file mode 100644 index 4b4aeefcbb..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cancel_button_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/charmap.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/charmap.gif deleted file mode 100644 index 3cdc4ac913..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/charmap.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cleanup.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cleanup.gif deleted file mode 100644 index 16491f6cfc..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cleanup.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/close.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/close.gif deleted file mode 100644 index 679ca2aa47..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/close.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/code.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/code.gif deleted file mode 100644 index c5d5a67275..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/code.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/color.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/color.gif deleted file mode 100644 index 1ecd5743b6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/color.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/copy.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/copy.gif deleted file mode 100644 index dc146865c5..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/copy.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/custom_1.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/custom_1.gif deleted file mode 100644 index 4cbccdadf6..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/custom_1.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cut.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cut.gif deleted file mode 100644 index 4e9a70b6e2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/cut.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/forecolor.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/forecolor.gif deleted file mode 100644 index d5e381425f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/forecolor.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/help.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/help.gif deleted file mode 100644 index 51a1ee4207..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/help.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/hr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/hr.gif deleted file mode 100644 index 1a1ba2a015..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/hr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/image.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/image.gif deleted file mode 100644 index 4b88eddc26..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/image.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/indent.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/indent.gif deleted file mode 100644 index acd315bb16..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/indent.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/insert_button_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/insert_button_bg.gif deleted file mode 100644 index 69c131ce29..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/insert_button_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic.gif deleted file mode 100644 index 8bb330bd0b..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_de_se.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_de_se.gif deleted file mode 100644 index feb0309e74..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_de_se.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_es.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_es.gif deleted file mode 100644 index 4572cdb1d0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_es.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_ru.gif deleted file mode 100644 index a2bb69a725..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_tw.gif deleted file mode 100644 index 4f6eeaa2b2..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/italic_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifycenter.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifycenter.gif deleted file mode 100644 index 42d609a991..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifycenter.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyfull.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyfull.gif deleted file mode 100644 index c8504f626f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyfull.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyleft.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyleft.gif deleted file mode 100644 index e8f7e42769..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyleft.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyright.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyright.gif deleted file mode 100644 index e4cea97148..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/justifyright.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/link.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/link.gif deleted file mode 100644 index 1accf42626..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/link.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/menu_check.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/menu_check.gif deleted file mode 100644 index 50d6afd505..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/menu_check.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/newdocument.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/newdocument.gif deleted file mode 100644 index a9d2938423..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/newdocument.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/numlist.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/numlist.gif deleted file mode 100644 index a2683522f4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/numlist.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/opacity.png b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/opacity.png deleted file mode 100644 index b4217cb212..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/opacity.png and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/outdent.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/outdent.gif deleted file mode 100644 index 23f6aa4086..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/outdent.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/paste.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/paste.gif deleted file mode 100644 index 1b45000a01..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/paste.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/redo.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/redo.gif deleted file mode 100644 index 3af90697f0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/redo.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/removeformat.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/removeformat.gif deleted file mode 100644 index 0fa3cb7973..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/removeformat.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/separator.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/separator.gif deleted file mode 100644 index 4f39b809e9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/separator.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/spacer.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/spacer.gif deleted file mode 100644 index 388486517f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/spacer.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/statusbar_resize.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/statusbar_resize.gif deleted file mode 100644 index af89d803f8..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/statusbar_resize.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/strikethrough.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/strikethrough.gif deleted file mode 100644 index 3264635918..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/strikethrough.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/sub.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/sub.gif deleted file mode 100644 index 4d7ce30ff9..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/sub.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/sup.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/sup.gif deleted file mode 100644 index a7145e019a..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/sup.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline.gif deleted file mode 100644 index 1dfeb5f6d0..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_es.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_es.gif deleted file mode 100644 index 551d9148d3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_es.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_fr.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_fr.gif deleted file mode 100644 index 551d9148d3..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_fr.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_ru.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_ru.gif deleted file mode 100644 index b78e2a498f..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_ru.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_tw.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_tw.gif deleted file mode 100644 index b715390484..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/underline_tw.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/undo.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/undo.gif deleted file mode 100644 index 520796d69d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/undo.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/unlink.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/unlink.gif deleted file mode 100644 index 5c8a33db8d..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/unlink.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/visualaid.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/visualaid.gif deleted file mode 100644 index 63caf18071..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/visualaid.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_bg.gif deleted file mode 100644 index 897a01f2ba..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_end.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_end.gif deleted file mode 100644 index aee442beba..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_end.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_sel_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_sel_bg.gif deleted file mode 100644 index 9dc8abe1a4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_sel_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_sel_end.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_sel_end.gif deleted file mode 100644 index 616a889d17..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tab_sel_end.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tabs_bg.gif b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tabs_bg.gif deleted file mode 100644 index c303f66dd4..0000000000 Binary files a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/images/xp/tabs_bg.gif and /dev/null differ diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/about.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/about.js deleted file mode 100644 index 4e53c285b3..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/about.js +++ /dev/null @@ -1,75 +0,0 @@ -function init() { - var inst; - - tinyMCEPopup.resizeToInnerSize(); - inst = tinyMCE.selectedInstance; - - // Give FF some time - window.setTimeout('insertHelpIFrame();', 10); - - var tcont = document.getElementById('plugintablecontainer'); - var plugins = tinyMCE.getParam('plugins', '', true, ','); - if (plugins.length == 0) - document.getElementById('plugins_tab').style.display = 'none'; - - var html = ""; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - - for (var i=0; i' + info.longname + ''; - else - html += ''; - - if (info.authorurl != null && info.authorurl != '') - html += ''; - else - html += ''; - - html += ''; - html += ''; - } - - html += ''; - html += '
' + tinyMCE.getLang('lang_plugin') + '' + tinyMCE.getLang('lang_author') + '' + tinyMCE.getLang('lang_version') + '
' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
'; - - tcont.innerHTML = html; -} - -function getPluginInfo(name) { - if (tinyMCE.plugins[name].getInfo) - return tinyMCE.plugins[name].getInfo(); - - return { - longname : name, - authorurl : '', - infourl : '', - author : '--', - version : '--' - }; -} - -function insertHelpIFrame() { - var html = ''; - - document.getElementById('iframecontainer').innerHTML = html; - - html = ''; - html += 'Got Moxie? '; - html += 'Hosted By Sourceforge '; - html += 'Also on freshmeat '; - - document.getElementById('buttoncontainer').innerHTML = html; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/anchor.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/anchor.js deleted file mode 100644 index e7c1c62c56..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/anchor.js +++ /dev/null @@ -1,74 +0,0 @@ -var action, element; - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var anchor = tinyMCE.getParentElement(inst.getFocusElement(), "a", "name"); - var img = inst.getFocusElement(); - action = 'insert'; - - if (anchor != null) { - element = anchor; - action = "update"; - } - - if (tinyMCE.getAttrib(img, "class") == "mceItemAnchor") { - element = img; - action = "update"; - } - - if (action == "update") - document.forms[0].anchorName.value = element.nodeName == "IMG" ? element.getAttribute("title") : element.getAttribute("name"); - - document.forms[0].insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); -} - -function insertAnchor() { - var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); - var name = document.forms[0].anchorName.value, e; - - tinyMCEPopup.execCommand("mceBeginUndoLevel"); - - if (action == "update") { - if (element.nodeName == "IMG") - element.setAttribute("title", name); - else - element.setAttribute("name", name); - } else { - var rng = inst.getRng(); - - if (rng.collapse) - rng.collapse(false); - - name = name.replace(/&/g, '&'); - name = name.replace(/\"/g, '"'); - name = name.replace(//g, '>'); - - // Fix for bug #1447335 - if (tinyMCE.isGecko) - html = ''; - else - html = ''; - - tinyMCEPopup.execCommand("mceInsertContent", false, html); - - // Fix for bug #1447335 force cursor after the anchor element - if (tinyMCE.isGecko) { - e = inst.getDoc().getElementById('mceNewAnchor'); - - if (e) { - inst.selection.selectNode(e, true, false, false); - e.removeAttribute('id'); - } - } - - tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); - } - - tinyMCEPopup.execCommand("mceEndUndoLevel"); - - tinyMCE.triggerNodeChange(); - tinyMCEPopup.close(); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/charmap.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/charmap.js deleted file mode 100644 index eaa6a94b65..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/charmap.js +++ /dev/null @@ -1,326 +0,0 @@ -function init() { - tinyMCEPopup.resizeToInnerSize(); -} - -var charmap = new Array(); - -// for mor details please see w3c.org -// now here is the complete list ;) - -charmap = [ - [' ', ' ', true, 'no-break space'], - ['&', '&', true, 'ampersand'], - ['"', '"', true, 'quotation mark'], -// finance - ['¢', '¢', true, 'cent sign'], - ['€', '€', true, 'euro sign'], - ['£', '£', true, 'pound sign'], - ['¥', '¥', true, 'yen sign'], -// signs - ['©', '©', true, 'copyright sign'], - ['®', '®', true, 'registered sign'], - ['™', '™', true, 'trade mark sign'], - ['‰', '‰', true, 'per mille sign'], - ['µ', 'µ', true, 'micro sign'], - ['·', '·', true, 'middle dot'], - ['•', '•', true, 'bullet'], - ['…', '…', true, 'three dot leader'], - ['′', '′', true, 'minutes / feet'], - ['″', '″', true, 'seconds / inches'], - ['§', '§', true, 'section sign'], - ['¶', '¶', true, 'paragraph sign'], - ['ß', 'ß', true, 'sharp s / ess-zed'], -// quotations - ['‹', '‹', true, 'single left-pointing angle quotation mark'], - ['›', '›', true, 'single right-pointing angle quotation mark'], - ['«', '«', true, 'left pointing guillemet'], - ['»', '»', true, 'right pointing guillemet'], - ['‘', '‘', true, 'left single quotation mark'], - ['’', '’', true, 'right single quotation mark'], - ['“', '“', true, 'left double quotation mark'], - ['”', '”', true, 'right double quotation mark'], - ['‚', '‚', true, 'single low-9 quotation mark'], - ['„', '„', true, 'double low-9 quotation mark'], - ['<', '<', true, 'less-than sign'], - ['>', '>', true, 'greater-than sign'], - ['≤', '≤', true, 'less-than or equal to'], - ['≥', '≥', true, 'greater-than or equal to'], - ['–', '–', true, 'en dash'], - ['—', '—', true, 'em dash'], - ['¯', '¯', true, 'macron'], - ['‾', '‾', true, 'overline'], - ['¤', '¤', true, 'currency sign'], - ['¦', '¦', true, 'broken bar'], - ['¨', '¨', true, 'diaeresis'], - ['¡', '¡', true, 'inverted exclamation mark'], - ['¿', '¿', true, 'turned question mark'], - ['ˆ', 'ˆ', true, 'circumflex accent'], - ['˜', '˜', true, 'small tilde'], - ['°', '°', true, 'degree sign'], - ['−', '−', true, 'minus sign'], - ['±', '±', true, 'plus-minus sign'], - ['÷', '÷', true, 'division sign'], - ['⁄', '⁄', true, 'fraction slash'], - ['×', '×', true, 'multiplication sign'], - ['¹', '¹', true, 'superscript one'], - ['²', '²', true, 'superscript two'], - ['³', '³', true, 'superscript three'], - ['¼', '¼', true, 'fraction one quarter'], - ['½', '½', true, 'fraction one half'], - ['¾', '¾', true, 'fraction three quarters'], -// math / logical - ['ƒ', 'ƒ', true, 'function / florin'], - ['∫', '∫', true, 'integral'], - ['∑', '∑', true, 'n-ary sumation'], - ['∞', '∞', true, 'infinity'], - ['√', '√', true, 'square root'], - ['∼', '∼', false,'similar to'], - ['≅', '≅', false,'approximately equal to'], - ['≈', '≈', true, 'almost equal to'], - ['≠', '≠', true, 'not equal to'], - ['≡', '≡', true, 'identical to'], - ['∈', '∈', false,'element of'], - ['∉', '∉', false,'not an element of'], - ['∋', '∋', false,'contains as member'], - ['∏', '∏', true, 'n-ary product'], - ['∧', '∧', false,'logical and'], - ['∨', '∨', false,'logical or'], - ['¬', '¬', true, 'not sign'], - ['∩', '∩', true, 'intersection'], - ['∪', '∪', false,'union'], - ['∂', '∂', true, 'partial differential'], - ['∀', '∀', false,'for all'], - ['∃', '∃', false,'there exists'], - ['∅', '∅', false,'diameter'], - ['∇', '∇', false,'backward difference'], - ['∗', '∗', false,'asterisk operator'], - ['∝', '∝', false,'proportional to'], - ['∠', '∠', false,'angle'], -// undefined - ['´', '´', true, 'acute accent'], - ['¸', '¸', true, 'cedilla'], - ['ª', 'ª', true, 'feminine ordinal indicator'], - ['º', 'º', true, 'masculine ordinal indicator'], - ['†', '†', true, 'dagger'], - ['‡', '‡', true, 'double dagger'], -// alphabetical special chars - ['À', 'À', true, 'A - grave'], - ['Á', 'Á', true, 'A - acute'], - ['Â', 'Â', true, 'A - circumflex'], - ['Ã', 'Ã', true, 'A - tilde'], - ['Ä', 'Ä', true, 'A - diaeresis'], - ['Å', 'Å', true, 'A - ring above'], - ['Æ', 'Æ', true, 'ligature AE'], - ['Ç', 'Ç', true, 'C - cedilla'], - ['È', 'È', true, 'E - grave'], - ['É', 'É', true, 'E - acute'], - ['Ê', 'Ê', true, 'E - circumflex'], - ['Ë', 'Ë', true, 'E - diaeresis'], - ['Ì', 'Ì', true, 'I - grave'], - ['Í', 'Í', true, 'I - acute'], - ['Î', 'Î', true, 'I - circumflex'], - ['Ï', 'Ï', true, 'I - diaeresis'], - ['Ð', 'Ð', true, 'ETH'], - ['Ñ', 'Ñ', true, 'N - tilde'], - ['Ò', 'Ò', true, 'O - grave'], - ['Ó', 'Ó', true, 'O - acute'], - ['Ô', 'Ô', true, 'O - circumflex'], - ['Õ', 'Õ', true, 'O - tilde'], - ['Ö', 'Ö', true, 'O - diaeresis'], - ['Ø', 'Ø', true, 'O - slash'], - ['Œ', 'Œ', true, 'ligature OE'], - ['Š', 'Š', true, 'S - caron'], - ['Ù', 'Ù', true, 'U - grave'], - ['Ú', 'Ú', true, 'U - acute'], - ['Û', 'Û', true, 'U - circumflex'], - ['Ü', 'Ü', true, 'U - diaeresis'], - ['Ý', 'Ý', true, 'Y - acute'], - ['Ÿ', 'Ÿ', true, 'Y - diaeresis'], - ['Þ', 'Þ', true, 'THORN'], - ['à', 'à', true, 'a - grave'], - ['á', 'á', true, 'a - acute'], - ['â', 'â', true, 'a - circumflex'], - ['ã', 'ã', true, 'a - tilde'], - ['ä', 'ä', true, 'a - diaeresis'], - ['å', 'å', true, 'a - ring above'], - ['æ', 'æ', true, 'ligature ae'], - ['ç', 'ç', true, 'c - cedilla'], - ['è', 'è', true, 'e - grave'], - ['é', 'é', true, 'e - acute'], - ['ê', 'ê', true, 'e - circumflex'], - ['ë', 'ë', true, 'e - diaeresis'], - ['ì', 'ì', true, 'i - grave'], - ['í', 'í', true, 'i - acute'], - ['î', 'î', true, 'i - circumflex'], - ['ï', 'ï', true, 'i - diaeresis'], - ['ð', 'ð', true, 'eth'], - ['ñ', 'ñ', true, 'n - tilde'], - ['ò', 'ò', true, 'o - grave'], - ['ó', 'ó', true, 'o - acute'], - ['ô', 'ô', true, 'o - circumflex'], - ['õ', 'õ', true, 'o - tilde'], - ['ö', 'ö', true, 'o - diaeresis'], - ['ø', 'ø', true, 'o slash'], - ['œ', 'œ', true, 'ligature oe'], - ['š', 'š', true, 's - caron'], - ['ù', 'ù', true, 'u - grave'], - ['ú', 'ú', true, 'u - acute'], - ['û', 'û', true, 'u - circumflex'], - ['ü', 'ü', true, 'u - diaeresis'], - ['ý', 'ý', true, 'y - acute'], - ['þ', 'þ', true, 'thorn'], - ['ÿ', 'ÿ', true, 'y - diaeresis'], - ['Α', 'Α', true, 'Alpha'], - ['Β', 'Β', true, 'Beta'], - ['Γ', 'Γ', true, 'Gamma'], - ['Δ', 'Δ', true, 'Delta'], - ['Ε', 'Ε', true, 'Epsilon'], - ['Ζ', 'Ζ', true, 'Zeta'], - ['Η', 'Η', true, 'Eta'], - ['Θ', 'Θ', true, 'Theta'], - ['Ι', 'Ι', true, 'Iota'], - ['Κ', 'Κ', true, 'Kappa'], - ['Λ', 'Λ', true, 'Lambda'], - ['Μ', 'Μ', true, 'Mu'], - ['Ν', 'Ν', true, 'Nu'], - ['Ξ', 'Ξ', true, 'Xi'], - ['Ο', 'Ο', true, 'Omicron'], - ['Π', 'Π', true, 'Pi'], - ['Ρ', 'Ρ', true, 'Rho'], - ['Σ', 'Σ', true, 'Sigma'], - ['Τ', 'Τ', true, 'Tau'], - ['Υ', 'Υ', true, 'Upsilon'], - ['Φ', 'Φ', true, 'Phi'], - ['Χ', 'Χ', true, 'Chi'], - ['Ψ', 'Ψ', true, 'Psi'], - ['Ω', 'Ω', true, 'Omega'], - ['α', 'α', true, 'alpha'], - ['β', 'β', true, 'beta'], - ['γ', 'γ', true, 'gamma'], - ['δ', 'δ', true, 'delta'], - ['ε', 'ε', true, 'epsilon'], - ['ζ', 'ζ', true, 'zeta'], - ['η', 'η', true, 'eta'], - ['θ', 'θ', true, 'theta'], - ['ι', 'ι', true, 'iota'], - ['κ', 'κ', true, 'kappa'], - ['λ', 'λ', true, 'lambda'], - ['μ', 'μ', true, 'mu'], - ['ν', 'ν', true, 'nu'], - ['ξ', 'ξ', true, 'xi'], - ['ο', 'ο', true, 'omicron'], - ['π', 'π', true, 'pi'], - ['ρ', 'ρ', true, 'rho'], - ['ς', 'ς', true, 'final sigma'], - ['σ', 'σ', true, 'sigma'], - ['τ', 'τ', true, 'tau'], - ['υ', 'υ', true, 'upsilon'], - ['φ', 'φ', true, 'phi'], - ['χ', 'χ', true, 'chi'], - ['ψ', 'ψ', true, 'psi'], - ['ω', 'ω', true, 'omega'], -// symbols - ['ℵ', 'ℵ', false,'alef symbol'], - ['ϖ', 'ϖ', false,'pi symbol'], - ['ℜ', 'ℜ', false,'real part symbol'], - ['ϑ','ϑ', false,'theta symbol'], - ['ϒ', 'ϒ', false,'upsilon - hook symbol'], - ['℘', '℘', false,'Weierstrass p'], - ['ℑ', 'ℑ', false,'imaginary part'], -// arrows - ['←', '←', true, 'leftwards arrow'], - ['↑', '↑', true, 'upwards arrow'], - ['→', '→', true, 'rightwards arrow'], - ['↓', '↓', true, 'downwards arrow'], - ['↔', '↔', true, 'left right arrow'], - ['↵', '↵', false,'carriage return'], - ['⇐', '⇐', false,'leftwards double arrow'], - ['⇑', '⇑', false,'upwards double arrow'], - ['⇒', '⇒', false,'rightwards double arrow'], - ['⇓', '⇓', false,'downwards double arrow'], - ['⇔', '⇔', false,'left right double arrow'], - ['∴', '∴', false,'therefore'], - ['⊂', '⊂', false,'subset of'], - ['⊃', '⊃', false,'superset of'], - ['⊄', '⊄', false,'not a subset of'], - ['⊆', '⊆', false,'subset of or equal to'], - ['⊇', '⊇', false,'superset of or equal to'], - ['⊕', '⊕', false,'circled plus'], - ['⊗', '⊗', false,'circled times'], - ['⊥', '⊥', false,'perpendicular'], - ['⋅', '⋅', false,'dot operator'], - ['⌈', '⌈', false,'left ceiling'], - ['⌉', '⌉', false,'right ceiling'], - ['⌊', '⌊', false,'left floor'], - ['⌋', '⌋', false,'right floor'], - ['⟨', '〈', false,'left-pointing angle bracket'], - ['⟩', '〉', false,'right-pointing angle bracket'], - ['◊', '◊', true,'lozenge'], - ['♠', '♠', false,'black spade suit'], - ['♣', '♣', true, 'black club suit'], - ['♥', '♥', true, 'black heart suit'], - ['♦', '♦', true, 'black diamond suit'], - [' ', ' ', false,'en space'], - [' ', ' ', false,'em space'], - [' ', ' ', false,'thin space'], - ['‌', '‌', false,'zero width non-joiner'], - ['‍', '‍', false,'zero width joiner'], - ['‎', '‎', false,'left-to-right mark'], - ['‏', '‏', false,'right-to-left mark'], - ['­', '­', false,'soft hyphen'] -]; - -function renderCharMapHTML() { - var charsPerRow = 20, tdWidth=20, tdHeight=20; - var html = ''; - var cols=-1; - for (var i=0; i' - + charmap[i][1] - + ''; - if ((cols+1) % charsPerRow == 0) - html += ''; - } - } - if (cols % charsPerRow > 0) { - var padd = charsPerRow - (cols % charsPerRow); - for (var i=0; i '; - } - html += '
'; - document.write(html); -} - -function insertChar(chr) { - tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';'); - - // Refocus in window - if (tinyMCEPopup.isWindow) - window.focus(); - - tinyMCEPopup.close(); -} - -function previewChar(codeA, codeB, codeN) { - var elmA = document.getElementById('codeA'); - var elmB = document.getElementById('codeB'); - var elmV = document.getElementById('codeV'); - var elmN = document.getElementById('codeN'); - - if (codeA=='#160;') { - elmV.innerHTML = '__'; - } else { - elmV.innerHTML = '&' + codeA; - } - - elmB.innerHTML = '&' + codeA; - elmA.innerHTML = '&' + codeB; - elmN.innerHTML = codeN; -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/color_picker.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/color_picker.js deleted file mode 100644 index 68b5db2d6a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/color_picker.js +++ /dev/null @@ -1,108 +0,0 @@ -function init() { - if (tinyMCE.isMSIE) - tinyMCEPopup.resizeToInnerSize(); -} - -function selectColor() { - var color = document.getElementById("selectedColorBox").value; - - tinyMCEPopup.execCommand(tinyMCE.getWindowArg('command'), false, color); - tinyMCEPopup.close(); -} - -function showColor(color) { - document.getElementById("selectedColor").style.backgroundColor = color; - document.getElementById("selectedColorBox").value = color; -} - -var colors = new Array( - "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", - "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", - "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff", - "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033", - "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399", - "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff", - "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333", - "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399", - "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff", - "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633", - "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699", - "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff", - "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633", - "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999", - "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff", - "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933", - "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999", - "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff", - "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33", - "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99", - "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff", - "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33", - "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99", - "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff", - "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33", - "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99", - "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff" -); - -function convertRGBToHex(col) { - var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi"); - - var rgb = col.replace(re, "$1,$2,$3").split(','); - if (rgb.length == 3) { - r = parseInt(rgb[0]).toString(16); - g = parseInt(rgb[1]).toString(16); - b = parseInt(rgb[2]).toString(16); - - r = r.length == 1 ? '0' + r : r; - g = g.length == 1 ? '0' + g : g; - b = b.length == 1 ? '0' + b : b; - - return "#" + r + g + b; - } - - return col; -} - -function convertHexToRGB(col) { - if (col.indexOf('#') != -1) { - col = col.replace(new RegExp('[^0-9A-F]', 'gi'), ''); - - r = parseInt(col.substring(0, 2), 16); - g = parseInt(col.substring(2, 4), 16); - b = parseInt(col.substring(4, 6), 16); - - return "rgb(" + r + "," + g + "," + b + ")"; - } - - return col; -} - -function renderColorMap() { - var html = ""; - var inputColor = convertRGBToHex(tinyMCE.getWindowArg('input_color')); - - html += '' - + ''; - for (var i=0; i' - + '' - + '' + colors[i] +  ''; - if ((i+1) % 18 == 0) - html += ''; - } - html += '' - + '
' - + '' - + '' - + '
' - + '' - + '' - + '' - + '
' - + '
' - + '
' - + '
'; - - document.write(html); -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/image.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/image.js deleted file mode 100644 index a52bfad6ae..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/jscripts/image.js +++ /dev/null @@ -1,81 +0,0 @@ -var url = tinyMCE.getParam("external_image_list_url"); -if (url != null) { - // Fix relative - if (url.charAt(0) != '/' && url.indexOf('://') == -1) - url = tinyMCE.documentBasePath + "/" + url; - - document.write(''); -} - -function insertImage() { - var src = document.forms[0].src.value; - var alt = document.forms[0].alt.value; - var border = document.forms[0].border.value; - var vspace = document.forms[0].vspace.value; - var hspace = document.forms[0].hspace.value; - var width = document.forms[0].width.value; - var height = document.forms[0].height.value; - var align = document.forms[0].align.options[document.forms[0].align.selectedIndex].value; - - tinyMCEPopup.restoreSelection(); - tinyMCE.themes['advanced']._insertImage(src, alt, border, hspace, vspace, width, height, align); - tinyMCEPopup.close(); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); - - var formObj = document.forms[0]; - - for (var i=0; i 0) { - for (var i=0; i'); -} - -function init() { - tinyMCEPopup.resizeToInnerSize(); - - document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','theme_advanced_link'); - - // Handle file browser - if (isVisible('hrefbrowser')) - document.getElementById('href').style.width = '180px'; - - var formObj = document.forms[0]; - - for (var i=0; i 0) { - var formObj = document.forms[0]; - - for (var i=0; i', 'gi'),'\n'); - html = tinyMCE.regexpReplace(html, '
','
\n','gi'); - html = tinyMCE.regexpReplace(html, '\n\n','\n','gi');*/ - return html; -} - -function onLoadInit() { - tinyMCEPopup.resizeToInnerSize(); - - document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id'))); - resizeInputs(); - - if (tinyMCE.getParam("theme_advanced_source_editor_wrap", true)) { - setWrap('soft'); - document.forms[0].wraped.checked = true; - } -} - -function setWrap(val) { - var s = document.forms[0].htmlSource; - - s.wrap = val; - - if (tinyMCE.isGecko) { - var v = s.value; - var n = s.cloneNode(false); - n.setAttribute("wrap", val); - s.parentNode.replaceChild(n, s); - n.value = v; - } -} - -function toggleWordWrap(elm) { - if (elm.checked) - setWrap('soft'); - else - setWrap('off'); -} - -var wHeight=0, wWidth=0, owHeight=0, owWidth=0; - -function resizeInputs() { - if (!tinyMCE.isMSIE) { - wHeight = self.innerHeight-80; - wWidth = self.innerWidth-16; - } else { - wHeight = document.body.clientHeight - 80; - wWidth = document.body.clientWidth - 16; - } - - document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px'; - document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px'; -} - -function renderWordWrap() { - if (tinyMCE.isMSIE || tinyMCE.isGecko) - document.write(''); -} diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/langs/en.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/langs/en.js deleted file mode 100644 index 685382e3db..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/langs/en.js +++ /dev/null @@ -1,81 +0,0 @@ -// UK lang variables - -tinyMCE.addToLang('',{ -theme_style_select : '-- Styles --', -theme_code_desc : 'Edit HTML Source', -theme_code_title : 'HTML Source Editor', -theme_code_wordwrap : 'Word wrap', -theme_sub_desc : 'Subscript', -theme_sup_desc : 'Superscript', -theme_hr_desc : 'Insert horizontal ruler', -theme_removeformat_desc : 'Remove formatting', -theme_custom1_desc : 'Your custom description here', -insert_image_border : 'Border', -insert_image_dimensions : 'Dimensions', -insert_image_vspace : 'Vertical space', -insert_image_hspace : 'Horizontal space', -insert_image_align : 'Alignment', -insert_image_align_default : '-- Not set --', -insert_image_align_baseline : 'Baseline', -insert_image_align_top : 'Top', -insert_image_align_middle : 'Middle', -insert_image_align_bottom : 'Bottom', -insert_image_align_texttop : 'TextTop', -insert_image_align_absmiddle : 'Absolute Middle', -insert_image_align_absbottom : 'Absolute Bottom', -insert_image_align_left : 'Left', -insert_image_align_right : 'Right', -theme_font_size : '-- Font size --', -theme_fontdefault : '-- Font family --', -theme_block : '-- Format --', -theme_paragraph : 'Paragraph', -theme_div : 'Div', -theme_address : 'Address', -theme_pre : 'Preformatted', -theme_h1 : 'Heading 1', -theme_h2 : 'Heading 2', -theme_h3 : 'Heading 3', -theme_h4 : 'Heading 4', -theme_h5 : 'Heading 5', -theme_h6 : 'Heading 6', -theme_blockquote : 'Blockquote', -theme_code : 'Code', -theme_samp : 'Code sample', -theme_dt : 'Definition term ', -theme_dd : 'Definition description', -theme_colorpicker_title : 'Select a color', -theme_colorpicker_apply : 'Apply', -theme_forecolor_desc : 'Select text color', -theme_backcolor_desc : 'Select background color', -theme_charmap_title : 'Select custom character', -theme_charmap_desc : 'Insert custom character', -theme_visualaid_desc : 'Toggle guidelines/invisible elements', -insert_anchor_title : 'Insert/edit anchor', -insert_anchor_name : 'Anchor name', -theme_anchor_desc : 'Insert/edit anchor', -theme_insert_link_titlefield : 'Title', -theme_clipboard_msg : 'Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?', -theme_path : 'Path', -cut_desc : 'Cut', -copy_desc : 'Copy', -paste_desc : 'Paste', -link_list : 'Link list', -image_list : 'Image list', -browse : 'Browse', -image_props_desc : 'Image properties', -newdocument_desc : 'New document', -class_name : 'Class', -newdocument : 'Are you sure you want clear all contents?', -about_title : 'About TinyMCE', -about : 'About', -license : 'License', -plugins : 'Plugins', -plugin : 'Plugin', -author : 'Author', -version : 'Version', -loaded_plugins : 'Loaded plugins', -help : 'Help', -not_set : '-- Not set --', -close : 'Close', -toolbar_focus : 'Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X' -}); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/link.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/link.htm deleted file mode 100644 index 4e72eaad5a..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/link.htm +++ /dev/null @@ -1,100 +0,0 @@ - - - {$lang_insert_link_title} - - - - - - - -
- - -
-
- - - - - - - - - - - - - - - - - - - - - -
- - - - -
 
-
-
-
- -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/source_editor.htm b/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/source_editor.htm deleted file mode 100644 index 7cb4d74665..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/themes/umbraco/source_editor.htm +++ /dev/null @@ -1,30 +0,0 @@ - - - - {$lang_theme_code_title} - - - - - -
-
{$lang_theme_code_title}
- -
- -
- - - -
-
- -
- -
- -
-
-
- - diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/tiny_mce.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/tiny_mce.js deleted file mode 100644 index 6ea3b0fb73..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/tiny_mce.js +++ /dev/null @@ -1,9 +0,0 @@ -function TinyMCE_Engine(){var ua;this.majorVersion="2";this.minorVersion="0.9";this.releaseDate="2007-01-09";this.instances=new Array();this.switchClassCache=new Array();this.windowArgs=new Array();this.loadedFiles=new Array();this.pendingFiles=new Array();this.loadingIndex=0;this.configs=new Array();this.currentConfig=0;this.eventHandlers=new Array();this.log=new Array();this.undoLevels=[];this.undoIndex=0;this.typingUndoIndex=-1;ua=navigator.userAgent;this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isMSIE5=this.isMSIE&&(ua.indexOf('MSIE 5')!=-1);this.isMSIE5_0=this.isMSIE&&(ua.indexOf('MSIE 5.0')!=-1);this.isMSIE7=this.isMSIE&&(ua.indexOf('MSIE 7')!=-1);this.isGecko=ua.indexOf('Gecko')!=-1;this.isSafari=ua.indexOf('Safari')!=-1;this.isOpera=ua.indexOf('Opera')!=-1;this.isMac=ua.indexOf('Mac')!=-1;this.isNS7=ua.indexOf('Netscape/7')!=-1;this.isNS71=ua.indexOf('Netscape/7.1')!=-1;this.dialogCounter=0;this.plugins=new Array();this.themes=new Array();this.menus=new Array();this.loadedPlugins=new Array();this.buttonMap=new Array();this.isLoaded=false;if(this.isOpera){this.isMSIE=true;this.isGecko=false;this.isSafari=false}this.isIE=this.isMSIE;this.isRealIE=this.isMSIE&&!this.isOpera;this.idCounter=0};TinyMCE_Engine.prototype={init:function(settings){var theme,nl,baseHREF="",i;if(this.isMSIE5_0)return;this.settings=settings;if(typeof(document.execCommand)=='undefined')return;if(!tinyMCE.baseURL){var elements=document.getElementsByTagName('script');nl=document.getElementsByTagName('base');for(i=0;i');this._def("font_size_classes",'');this._def("font_size_style_values",'xx-small,x-small,small,medium,large,x-large,xx-large',true);this._def("event_elements",'a,img',true);this._def("convert_urls",true);this._def("table_inline_editing",false);this._def("object_resizing",true);this._def("custom_shortcuts",true);this._def("convert_on_click",false);this._def("content_css",'');this._def("fix_list_elements",false);this._def("fix_table_elements",false);this._def("strict_loading_mode",document.contentType=='application/xhtml+xml');this._def("hidden_tab_class",'');this._def("display_tab_class",'');this._def("gecko_spellcheck",false);this._def("hide_selects_on_submit",true);if(this.isMSIE&&!this.isOpera)this.settings.strict_loading_mode=false;if(this.isMSIE&&this.settings['browsers'].indexOf('msie')==-1)return;if(this.isGecko&&this.settings['browsers'].indexOf('gecko')==-1)return;if(this.isSafari&&this.settings['browsers'].indexOf('safari')==-1)return;if(this.isOpera&&this.settings['browsers'].indexOf('opera')==-1)return;baseHREF=tinyMCE.settings['document_base_url'];var h=document.location.href;var p=h.indexOf('://');if(p>0&&document.location.protocol!="file:"){p=h.indexOf('/',p+3);h=h.substring(0,p);if(baseHREF.indexOf('://')==-1)baseHREF=h+baseHREF;tinyMCE.settings['document_base_url']=baseHREF;tinyMCE.settings['document_base_prefix']=h}if(baseHREF.indexOf('?')!=-1)baseHREF=baseHREF.substring(0,baseHREF.indexOf('?'));this.settings['base_href']=baseHREF.substring(0,baseHREF.lastIndexOf('/'))+"/";theme=this.settings['theme'];this.inlineStrict='A|BR|SPAN|BDO|MAP|OBJECT|IMG|TT|I|B|BIG|SMALL|EM|STRONG|DFN|CODE|Q|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|SUB|SUP|#text|#comment';this.inlineTransitional='A|BR|SPAN|BDO|OBJECT|APPLET|IMG|MAP|IFRAME|TT|I|B|U|S|STRIKE|BIG|SMALL|FONT|BASEFONT|EM|STRONG|DFN|CODE|Q|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|SUB|SUP|INPUT|SELECT|TEXTAREA|LABEL|BUTTON|#text|#comment';this.blockElms='H[1-6]|P|DIV|ADDRESS|PRE|FORM|TABLE|LI|OL|UL|TD|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|FORM|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP';this.blockRegExp=new RegExp("^("+this.blockElms+")$","i");this.posKeyCodes=new Array(13,45,36,35,33,34,37,38,39,40);this.uniqueURL='javascript:TINYMCE_UNIQUEURL();';this.uniqueTag='';this.callbacks=new Array('onInit','getInfo','getEditorTemplate','setupContent','onChange','onPageLoad','handleNodeChange','initInstance','execCommand','getControlHTML','handleEvent','cleanup','removeInstance');this.settings['theme_href']=tinyMCE.baseURL+"/themes/"+theme;if(!tinyMCE.isIE||tinyMCE.isOpera)this.settings['force_br_newlines']=false;if(tinyMCE.getParam("popups_css",false)){var cssPath=tinyMCE.getParam("popups_css","");if(cssPath.indexOf('://')==-1&&cssPath.charAt(0)!='/')this.settings['popups_css']=this.documentBasePath+"/"+cssPath;else this.settings['popups_css']=cssPath}else this.settings['popups_css']=tinyMCE.baseURL+"/themes/"+theme+"/css/editor_popup.css";if(tinyMCE.getParam("editor_css",false)){var cssPath=tinyMCE.getParam("editor_css","");if(cssPath.indexOf('://')==-1&&cssPath.charAt(0)!='/')this.settings['editor_css']=this.documentBasePath+"/"+cssPath;else this.settings['editor_css']=cssPath}else{if(this.settings.editor_css!='')this.settings['editor_css']=tinyMCE.baseURL+"/themes/"+theme+"/css/editor_ui.css"}if(tinyMCE.settings['debug']){var msg="Debug: \n";msg+="baseURL: "+this.baseURL+"\n";msg+="documentBasePath: "+this.documentBasePath+"\n";msg+="content_css: "+this.settings['content_css']+"\n";msg+="popups_css: "+this.settings['popups_css']+"\n";msg+="editor_css: "+this.settings['editor_css']+"\n";alert(msg)}if(this.configs.length==0){if(typeof(TinyMCECompressed)=="undefined"){tinyMCE.addEvent(window,"DOMContentLoaded",TinyMCE_Engine.prototype.onLoad);if(tinyMCE.isRealIE){if(document.body)tinyMCE.addEvent(document.body,"readystatechange",TinyMCE_Engine.prototype.onLoad);else tinyMCE.addEvent(document,"readystatechange",TinyMCE_Engine.prototype.onLoad)}tinyMCE.addEvent(window,"load",TinyMCE_Engine.prototype.onLoad);tinyMCE._addUnloadEvents()}}this.loadScript(tinyMCE.baseURL+'/themes/'+this.settings['theme']+'/editor_template'+tinyMCE.srcMode+'.js');this.loadScript(tinyMCE.baseURL+'/langs/'+this.settings['language']+'.js');this.loadCSS(this.settings['editor_css']);var p=tinyMCE.getParam('plugins','',true,',');if(p.length>0){for(var i=0;i&"\']','g');this.xmlEncodeRe=new RegExp('[<>&"]','g');},_addUnloadEvents:function(){if(tinyMCE.isIE){if(tinyMCE.settings['add_unload_trigger']){tinyMCE.addEvent(window,"unload",TinyMCE_Engine.prototype.unloadHandler);tinyMCE.addEvent(window.document,"beforeunload",TinyMCE_Engine.prototype.unloadHandler)}}else{if(tinyMCE.settings['add_unload_trigger'])tinyMCE.addEvent(window,"unload",function(){tinyMCE.triggerSave(true,true)})}},_def:function(key,def_val,t){var v=tinyMCE.getParam(key,def_val);v=t?v.replace(/\s+/g,""):v;this.settings[key]=v},hasPlugin:function(n){return typeof(this.plugins[n])!="undefined"&&this.plugins[n]!=null},addPlugin:function(n,p){var op=this.plugins[n];p.baseURL=op?op.baseURL:tinyMCE.baseURL+"/plugins/"+n;this.plugins[n]=p;this.loadNextScript()},setPluginBaseURL:function(n,u){var op=this.plugins[n];if(op)op.baseURL=u;else this.plugins[n]={baseURL:u}},loadPlugin:function(n,u){u=u.indexOf('.js')!=-1?u.substring(0,u.lastIndexOf('/')):u;u=u.charAt(u.length-1)=='/'?u.substring(0,u.length-1):u;this.plugins[n]={baseURL:u};this.loadScript(u+"/editor_plugin"+(tinyMCE.srcMode?'_src':'')+".js")},hasTheme:function(n){return typeof(this.themes[n])!="undefined"&&this.themes[n]!=null},addTheme:function(n,t){this.themes[n]=t;this.loadNextScript()},addMenu:function(n,m){this.menus[n]=m},hasMenu:function(n){return typeof(this.plugins[n])!="undefined"&&this.plugins[n]!=null},loadScript:function(url){var i;for(i=0;i');this.loadedFiles[this.loadedFiles.length]=url},loadNextScript:function(){var d=document,se;if(!tinyMCE.settings.strict_loading_mode)return;if(this.loadingIndex0){for(i=0,lflen=this.loadedFiles.length;i');this.loadedFiles[this.loadedFiles.length]=ar[x]}}}},importCSS:function(doc,css){var css_ary=css.replace(/\s+/,'').split(',');var csslen,elm,headArr,x,css_file;for(x=0,csslen=css_ary.length;x0){if(css_file.indexOf('://')==-1&&css_file.charAt(0)!='/')css_file=this.documentBasePath+"/"+css_file;if(typeof(doc.createStyleSheet)=="undefined"){elm=doc.createElement("link");elm.rel="stylesheet";elm.href=css_file;if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0)headArr[0].appendChild(elm)}else doc.createStyleSheet(css_file)}}},confirmAdd:function(e,settings){var elm=tinyMCE.isIE?event.srcElement:e.target;var elementId=elm.name?elm.name:elm.id;tinyMCE.settings=settings;if(tinyMCE.settings['convert_on_click']||(!elm.getAttribute('mce_noask')&&confirm(tinyMCELang['lang_edit_confirm'])))tinyMCE.addMCEControl(elm,elementId);elm.setAttribute('mce_noask','true')},updateContent:function(form_element_name){var formElement=document.getElementById(form_element_name);for(var n in tinyMCE.instances){var inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst))continue;inst.switchSettings();if(inst.formElement==formElement){var doc=inst.getDoc();tinyMCE._setHTML(doc,inst.formElement.value);if(!tinyMCE.isIE)doc.body.innerHTML=tinyMCE._cleanupHTML(inst,doc,this.settings,doc.body,inst.visualAid)}}},addMCEControl:function(replace_element,form_element_name,target_document){var id="mce_editor_"+tinyMCE.idCounter++;var inst=new TinyMCE_Control(tinyMCE.settings);inst.editorId=id;this.instances[id]=inst;inst._onAdd(replace_element,form_element_name,target_document)},removeInstance:function(ti){var t=[],n,i;for(n in tinyMCE.instances){i=tinyMCE.instances[n];if(tinyMCE.isInstance(i)&&ti!=i)t[n]=i}tinyMCE.instances=t;n=[];t=tinyMCE.undoLevels;for(i=0;i0){tinyMCE.nextUndoRedoAction='Undo';inst=this.undoLevels[--this.undoIndex];inst.select();if(!tinyMCE.nextUndoRedoInstanceId)inst.execCommand('Undo')}}else inst.execCommand('Undo');return true;case"Redo":if(this.getParam('custom_undo_redo_global')){if(this.undoIndex<=this.undoLevels.length-1){tinyMCE.nextUndoRedoAction='Redo';inst=this.undoLevels[this.undoIndex++];inst.select();if(!tinyMCE.nextUndoRedoInstanceId)inst.execCommand('Redo')}}else inst.execCommand('Redo');return true;case'mceFocus':var inst=tinyMCE.getInstanceById(value);if(inst)inst.getWin().focus();return;case"mceAddControl":case"mceAddEditor":tinyMCE.addMCEControl(tinyMCE._getElementById(value),value);return;case"mceAddFrameControl":tinyMCE.addMCEControl(tinyMCE._getElementById(value['element'],value['document']),value['element'],value['document']);return;case"mceRemoveControl":case"mceRemoveEditor":tinyMCE.removeMCEControl(value);return;case"mceResetDesignMode":if(!tinyMCE.isIE){for(var n in tinyMCE.instances){if(!tinyMCE.isInstance(tinyMCE.instances[n]))continue;try{tinyMCE.instances[n].getDoc().designMode="on"}catch(e){}}}return}if(inst){inst.execCommand(command,user_interface,value)}else if(tinyMCE.settings['focus_alert'])alert(tinyMCELang['lang_focus_alert'])},_createIFrame:function(replace_element,doc,win){var iframe,id=replace_element.getAttribute("id");var aw,ah;if(typeof(doc)=="undefined")doc=document;if(typeof(win)=="undefined")win=window;iframe=doc.createElement("iframe");aw=""+tinyMCE.settings['area_width'];ah=""+tinyMCE.settings['area_height'];if(aw.indexOf('%')==-1){aw=parseInt(aw);aw=(isNaN(aw)||aw<0)?300:aw;aw=aw+"px"}if(ah.indexOf('%')==-1){ah=parseInt(ah);ah=(isNaN(ah)||ah<0)?240:ah;ah=ah+"px"}iframe.setAttribute("id",id);iframe.setAttribute("name",id);iframe.setAttribute("class","mceEditorIframe");iframe.setAttribute("border","0");iframe.setAttribute("frameBorder","0");iframe.setAttribute("marginWidth","0");iframe.setAttribute("marginHeight","0");iframe.setAttribute("leftMargin","0");iframe.setAttribute("topMargin","0");iframe.setAttribute("width",aw);iframe.setAttribute("height",ah);iframe.setAttribute("allowtransparency","true");iframe.className='mceEditorIframe';if(tinyMCE.settings["auto_resize"])iframe.setAttribute("scrolling","no");if(tinyMCE.isRealIE)iframe.setAttribute("src",this.settings['default_document']);iframe.style.width=aw;iframe.style.height=ah;if(tinyMCE.settings.strict_loading_mode)iframe.style.marginBottom='-5px';if(tinyMCE.isRealIE)replace_element.outerHTML=iframe.outerHTML;else replace_element.parentNode.replaceChild(iframe,replace_element);if(tinyMCE.isRealIE)return win.frames[id];else return iframe},setupContent:function(editor_id){var inst=tinyMCE.instances[editor_id],i;var doc=inst.getDoc();var head=doc.getElementsByTagName('head').item(0);var content=inst.startContent;if(tinyMCE.settings.strict_loading_mode){content=content.replace(/</g,'<');content=content.replace(/>/g,'>');content=content.replace(/"/g,'"');content=content.replace(/&/g,'&')}tinyMCE.selectedInstance=inst;inst.switchSettings();if(!tinyMCE.isIE&&tinyMCE.getParam("setupcontent_reload",false)&&doc.title!="blank_page"){try{doc.location.href=tinyMCE.baseURL+"/blank.htm"}catch(ex){}window.setTimeout("tinyMCE.setupContent('"+editor_id+"');",1000);return}if(!head){window.setTimeout("tinyMCE.setupContent('"+editor_id+"');",10);return}tinyMCE.importCSS(inst.getDoc(),tinyMCE.baseURL+"/themes/"+inst.settings['theme']+"/css/editor_content.css");tinyMCE.importCSS(inst.getDoc(),inst.settings['content_css']);tinyMCE.dispatchCallback(inst,'init_instance_callback','initInstance',inst);if(tinyMCE.getParam('custom_undo_redo_keyboard_shortcuts')){inst.addShortcut('ctrl','z','lang_undo_desc','Undo');inst.addShortcut('ctrl','y','lang_redo_desc','Redo')}for(i=1;i<=6;i++)inst.addShortcut('ctrl',''+i,'','FormatBlock',false,'');inst.addShortcut('ctrl','7','','FormatBlock',false,'

');inst.addShortcut('ctrl','8','','FormatBlock',false,'

');inst.addShortcut('ctrl','9','','FormatBlock',false,'
');if(tinyMCE.isGecko){inst.addShortcut('ctrl','b','lang_bold_desc','Bold');inst.addShortcut('ctrl','i','lang_italic_desc','Italic');inst.addShortcut('ctrl','u','lang_underline_desc','Underline')}if(tinyMCE.getParam("convert_fonts_to_spans"))inst.getBody().setAttribute('id','mceSpanFonts');if(tinyMCE.settings['nowrap'])doc.body.style.whiteSpace="nowrap";doc.body.dir=this.settings['directionality'];doc.editorId=editor_id;if(!tinyMCE.isIE)doc.documentElement.editorId=editor_id;inst.setBaseHREF(tinyMCE.settings['base_href']);if(tinyMCE.settings['convert_newlines_to_brs']){content=tinyMCE.regexpReplace(content,"\r\n","
","gi");content=tinyMCE.regexpReplace(content,"\r","
","gi");content=tinyMCE.regexpReplace(content,"\n","
","gi")}content=tinyMCE.storeAwayURLs(content);content=tinyMCE._customCleanup(inst,"insert_to_editor",content);if(tinyMCE.isIE){window.setInterval('try{tinyMCE.getCSSClasses(tinyMCE.instances["'+editor_id+'"].getDoc(), "'+editor_id+'");}catch(e){}',500);if(tinyMCE.settings["force_br_newlines"])doc.styleSheets[0].addRule("p","margin: 0;");var body=inst.getBody();body.editorId=editor_id}content=tinyMCE.cleanupHTMLCode(content);if(!tinyMCE.isIE){var contentElement=inst.getDoc().createElement("body");var doc=inst.getDoc();contentElement.innerHTML=content;if(tinyMCE.isGecko&&tinyMCE.settings['remove_lt_gt'])content=content.replace(new RegExp('<>','g'),"");if(tinyMCE.settings['cleanup_on_startup'])tinyMCE.setInnerHTML(inst.getBody(),tinyMCE._cleanupHTML(inst,doc,this.settings,contentElement));else tinyMCE.setInnerHTML(inst.getBody(),content);tinyMCE.convertAllRelativeURLs(inst.getBody())}else{if(tinyMCE.settings['cleanup_on_startup']){tinyMCE._setHTML(inst.getDoc(),content);eval('try {tinyMCE.setInnerHTML(inst.getBody(), tinyMCE._cleanupHTML(inst, inst.contentDocument, this.settings, inst.getBody()));} catch(e) {}')}else tinyMCE._setHTML(inst.getDoc(),content)}var parentElm=inst.targetDoc.getElementById(inst.editorId+'_parent');inst.formElement=tinyMCE.isGecko?parentElm.previousSibling:parentElm.nextSibling;tinyMCE.handleVisualAid(inst.getBody(),true,tinyMCE.settings['visual'],inst);tinyMCE.dispatchCallback(inst,'setupcontent_callback','setupContent',editor_id,inst.getBody(),inst.getDoc());if(!tinyMCE.isIE)tinyMCE.addEventHandlers(inst);if(tinyMCE.isIE){tinyMCE.addEvent(inst.getBody(),"blur",TinyMCE_Engine.prototype._eventPatch);tinyMCE.addEvent(inst.getBody(),"beforedeactivate",TinyMCE_Engine.prototype._eventPatch);if(!tinyMCE.isOpera){tinyMCE.addEvent(doc.body,"mousemove",TinyMCE_Engine.prototype.onMouseMove);tinyMCE.addEvent(doc.body,"beforepaste",TinyMCE_Engine.prototype._eventPatch);tinyMCE.addEvent(doc.body,"drop",TinyMCE_Engine.prototype._eventPatch)}}inst.select();tinyMCE.selectedElement=inst.contentWindow.document.body;tinyMCE._customCleanup(inst,"insert_to_editor_dom",inst.getBody());tinyMCE._customCleanup(inst,"setup_content_dom",inst.getBody());tinyMCE._setEventsEnabled(inst.getBody(),false);tinyMCE.cleanupAnchors(inst.getDoc());if(tinyMCE.getParam("convert_fonts_to_spans"))tinyMCE.convertSpansToFonts(inst.getDoc());inst.startContent=tinyMCE.trim(inst.getBody().innerHTML);inst.undoRedo.add({content:inst.startContent});if(tinyMCE.isGecko){tinyMCE.selectNodes(inst.getBody(),function(n){if(n.nodeType==3||n.nodeType==8)n.nodeValue=n.nodeValue.replace(new RegExp('\\s(mce_src|mce_href)=\"[^\"]*\"','gi'),"");return false})}if(tinyMCE.isGecko)inst.getBody().spellcheck=tinyMCE.getParam("gecko_spellcheck");tinyMCE._removeInternal(inst.getBody());inst.select();tinyMCE.triggerNodeChange(false,true)},storeAwayURLs:function(s){if(!s.match(/(mce_src|mce_href)/gi,s)){s=s.replace(new RegExp('src\\s*=\\s*\"([^ >\"]*)\"','gi'),'src="$1" mce_src="$1"');s=s.replace(new RegExp('href\\s*=\\s*\"([^ >\"]*)\"','gi'),'href="$1" mce_href="$1"')}return s},_removeInternal:function(n){if(tinyMCE.isGecko){tinyMCE.selectNodes(n,function(n){if(n.nodeType==3||n.nodeType==8)n.nodeValue=n.nodeValue.replace(new RegExp('\\s(mce_src|mce_href)=\"[^\"]*\"','gi'),"");return false})}},removeTinyMCEFormElements:function(form_obj){var i,elementId;if(!tinyMCE.getParam('hide_selects_on_submit'))return;if(typeof(form_obj)=="undefined"||form_obj==null)return;if(form_obj.nodeName!="FORM"){if(form_obj.form)form_obj=form_obj.form;else form_obj=tinyMCE.getParentElement(form_obj,"form")}if(form_obj==null)return;for(i=0;i");rng.collapse(false);rng.select();tinyMCE.execCommand("mceAddUndoLevel");tinyMCE.triggerNodeChange(false);return false}}if(e.keyCode==8||e.keyCode==46){tinyMCE.selectedElement=e.target;tinyMCE.linkElement=tinyMCE.getParentElement(e.target,"a");tinyMCE.imgElement=tinyMCE.getParentElement(e.target,"img");tinyMCE.triggerNodeChange(false)}return false;break;case"keyup":case"keydown":tinyMCE.hideMenus();tinyMCE.hasMouseMoved=false;if(inst&&inst.handleShortcut(e))return false;if(e.target.editorId)tinyMCE.instances[e.target.editorId].select();if(tinyMCE.selectedInstance)tinyMCE.selectedInstance.switchSettings();var inst=tinyMCE.selectedInstance;if(tinyMCE.isGecko&&tinyMCE.settings['force_p_newlines']&&(e.keyCode==8||e.keyCode==46)&&!e.shiftKey){if(TinyMCE_ForceParagraphs._handleBackSpace(tinyMCE.selectedInstance,e.type)){tinyMCE.execCommand("mceAddUndoLevel");e.preventDefault();return false}}tinyMCE.selectedElement=null;tinyMCE.selectedNode=null;var elm=tinyMCE.selectedInstance.getFocusElement();tinyMCE.linkElement=tinyMCE.getParentElement(elm,"a");tinyMCE.imgElement=tinyMCE.getParentElement(elm,"img");tinyMCE.selectedElement=elm;if(tinyMCE.isGecko&&e.type=="keyup"&&e.keyCode==9)tinyMCE.handleVisualAid(tinyMCE.selectedInstance.getBody(),true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);if(tinyMCE.isIE&&e.type=="keydown"&&e.keyCode==13)tinyMCE.enterKeyElement=tinyMCE.selectedInstance.getFocusElement();if(tinyMCE.isIE&&e.type=="keyup"&&e.keyCode==13){var elm=tinyMCE.enterKeyElement;if(elm){var re=new RegExp('^HR|IMG|BR$','g');var dre=new RegExp('^H[1-6]$','g');if(!elm.hasChildNodes()&&!re.test(elm.nodeName)){if(dre.test(elm.nodeName))elm.innerHTML="  ";else elm.innerHTML=" "}}}var keys=tinyMCE.posKeyCodes;var posKey=false;for(var i=0;i';h+='';h+=''}else{h+='';h+='';h+=''}return h},getMenuButtonHTML:function(id,lang,img,mcmd,cmd,ui,val){var h='',m,x;mcmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\''+mcmd+'\');';cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\''+cmd+'\'';if(typeof(ui)!="undefined"&&ui!=null)cmd+=','+ui;if(typeof(val)!="undefined"&&val!=null)cmd+=",'"+val+"'";cmd+=');';if(tinyMCE.getParam('button_tile_map')&&(!tinyMCE.isIE||tinyMCE.isOpera)&&(m=tinyMCE.buttonMap[id])!=null&&(tinyMCE.getParam("language")=="en"||img.indexOf('$lang')==-1)){x=0-(m*20)==0?'0':0-(m*20);if(tinyMCE.isRealIE)h+='';else h+='';h+='';h+='';h+='';h+=''}else{if(tinyMCE.isRealIE)h+='';else h+='';h+='';h+='';h+='';h+=''}return h},_menuButtonEvent:function(e,o){if(o.className=='mceMenuButtonFocus')return;if(e=='over')o.className=o.className+' mceMenuHover';else o.className=o.className.replace(/\s.*$/,'')},addButtonMap:function(m){var i,a=m.replace(/\s+/,'').split(',');for(i=0;i0);if(tinyMCE.settings['custom_undo_redo']){undoIndex=inst.undoRedo.undoIndex;undoLevels=inst.undoRedo.undoLevels.length}tinyMCE.dispatchCallback(inst,'handle_node_change_callback','handleNodeChange',editorId,elm,undoIndex,undoLevels,inst.visualAid,anySelection,setup_content)}if(this.selectedInstance&&(typeof(focus)=="undefined"||focus))this.selectedInstance.contentWindow.focus()},_customCleanup:function(inst,type,content){var pl,po,i;var customCleanup=tinyMCE.settings['cleanup_callback'];if(customCleanup!=""&&eval("typeof("+customCleanup+")")!="undefined")content=eval(customCleanup+"(type, content, inst);");po=tinyMCE.themes[tinyMCE.settings['theme']];if(po&&po.cleanup)content=po.cleanup(type,content,inst);pl=inst.plugins;for(i=0;i0)className+=" ";className+=classNames[i]}return className},handleVisualAid:function(el,deep,state,inst,skip_dispatch){if(!el)return;if(!skip_dispatch)tinyMCE.dispatchCallback(inst,'handle_visual_aid_callback','handleVisualAid',el,deep,state,inst);var tableElement=null;switch(el.nodeName){case"TABLE":var oldW=el.style.width;var oldH=el.style.height;var bo=tinyMCE.getAttrib(el,"border");bo=bo==""||bo=="0"?true:false;tinyMCE.setAttrib(el,"class",tinyMCE.getVisualAidClass(tinyMCE.getAttrib(el,"class"),state&&bo));el.style.width=oldW;el.style.height=oldH;for(var y=0;y0){for(var x=0;x0)tinyMCE.cssClasses=output;return output},regexpReplace:function(in_str,reg_exp,replace_str,opts){if(in_str==null)return in_str;if(typeof(opts)=="undefined")opts='g';var re=new RegExp(reg_exp,opts);return in_str.replace(re,replace_str)},trim:function(s){return s.replace(/^\s*|\s*$/g,"")},cleanupEventStr:function(s){s=""+s;s=s.replace('function anonymous()\n{\n','');s=s.replace('\n}','');s=s.replace(/^return true;/gi,'');return s},getControlHTML:function(c){var i,l,n,o,v;l=tinyMCE.plugins;for(n in l){o=l[n];if(o.getControlHTML&&(v=o.getControlHTML(c))!='')return tinyMCE.replaceVar(v,"pluginurl",o.baseURL)}o=tinyMCE.themes[tinyMCE.settings['theme']];if(o.getControlHTML&&(v=o.getControlHTML(c))!='')return v;return''},evalFunc:function(f,idx,a,o){o=!o?window:o;f=typeof(f)=='function'?f:o[f];return f.apply(o,Array.prototype.slice.call(a,idx))},dispatchCallback:function(i,p,n){return this.callFunc(i,p,n,0,this.dispatchCallback.arguments)},executeCallback:function(i,p,n){return this.callFunc(i,p,n,1,this.executeCallback.arguments)},execCommandCallback:function(i,p,n){return this.callFunc(i,p,n,2,this.execCommandCallback.arguments)},callFunc:function(ins,p,n,m,a){var l,i,on,o,s,v;s=m==2;l=tinyMCE.getParam(p,'');if(l!=''&&(v=tinyMCE.evalFunc(l,3,a))==s&&m>0)return true;if(ins!=null){for(i=0,l=ins.plugins;i0)return true}}l=tinyMCE.themes;for(on in l){o=l[on];if(o[n]&&(v=tinyMCE.evalFunc(n,3,a,o))==s&&m>0)return true}return false},xmlEncode:function(s,skip_apos){return s?(''+s).replace(!skip_apos?this.xmlEncodeAposRe:this.xmlEncodeRe,function(c,b){switch(c){case'&':return'&';case'"':return'"';case'\'':return''';case'<':return'<';case'>':return'>'}return c}):s},extend:function(p,np){var o={};o.parent=p;for(n in p)o[n]=p[n];for(n in np)o[n]=np[n];return o},hideMenus:function(){var e=tinyMCE.lastSelectedMenuBtn;if(tinyMCE.lastMenu){tinyMCE.lastMenu.hide();tinyMCE.lastMenu=null}if(e){tinyMCE.switchClass(e,tinyMCE.lastMenuBtnClass);tinyMCE.lastSelectedMenuBtn=null}}};var TinyMCE=TinyMCE_Engine;var tinyMCE=new TinyMCE_Engine();var tinyMCELang={};function TinyMCE_Control(settings){var t,i,to,fu,p,x,fn,fu,pn,s=settings;this.undoRedoLevel=true;this.isTinyMCE_Control=true;this.settings=s;this.settings['theme']=tinyMCE.getParam("theme","default");this.settings['width']=tinyMCE.getParam("width",-1);this.settings['height']=tinyMCE.getParam("height",-1);this.selection=new TinyMCE_Selection(this);this.undoRedo=new TinyMCE_UndoRedo(this);this.cleanup=new TinyMCE_Cleanup();this.shortcuts=new Array();this.hasMouseMoved=false;this.foreColor=this.backColor="#999999";this.data={};this.cleanup.init({valid_elements:s.valid_elements,extended_valid_elements:s.extended_valid_elements,valid_child_elements:s.valid_child_elements,entities:s.entities,entity_encoding:s.entity_encoding,debug:s.cleanup_debug,indent:s.apply_source_formatting,invalid_elements:s.invalid_elements,verify_html:s.verify_html,fix_content_duplication:s.fix_content_duplication,convert_fonts_to_spans:s.convert_fonts_to_spans});t=this.settings['theme'];if(!tinyMCE.hasTheme(t)){fn=tinyMCE.callbacks;to={};for(i=0;i0){for(i=0;i1&&tinyMCE.currentConfig!=this.settings['index']){tinyMCE.settings=this.settings;tinyMCE.currentConfig=this.settings['index']}},select:function(){var oldInst=tinyMCE.selectedInstance;if(oldInst!=this){if(oldInst)oldInst.execCommand('mceEndTyping');tinyMCE.dispatchCallback(this,'select_instance_callback','selectInstance',this,oldInst);tinyMCE.selectedInstance=this}},getBody:function(){return this.contentBody?this.contentBody:this.getDoc().body},getDoc:function(){return this.contentWindow.document},getWin:function(){return this.contentWindow},getContainerWin:function(){return this.containerWindow?this.containerWindow:window},getViewPort:function(){return tinyMCE.getViewPort(this.getWin())},getParentNode:function(n,f){return tinyMCE.getParentNode(n,f,this.getBody())},getParentElement:function(n,na,f){return tinyMCE.getParentElement(n,na,f,this.getBody())},getParentBlockElement:function(n){return tinyMCE.getParentBlockElement(n,this.getBody())},resizeToContent:function(){var d=this.getDoc(),b=d.body,de=d.documentElement;this.iframeElement.style.height=(tinyMCE.isRealIE)?b.scrollHeight:de.offsetHeight+'px'},addShortcut:function(m,k,d,cmd,ui,va){var n=typeof(k)=="number",ie=tinyMCE.isIE,c,sc,i,scl=this.shortcuts;if(!tinyMCE.getParam('custom_shortcuts'))return false;m=m.toLowerCase();k=ie&&!n?k.toUpperCase():k;c=n?null:k.charCodeAt(0);d=d&&d.indexOf('lang_')==0?tinyMCE.getLang(d):d;sc={alt:m.indexOf('alt')!=-1,ctrl:m.indexOf('ctrl')!=-1,shift:m.indexOf('shift')!=-1,charCode:c,keyCode:n?k:(ie?c:null),desc:d,cmd:cmd,ui:ui,val:va};for(i=0;i0)rng.pasteHTML('
'+rng.htmlText+"
");tinyMCE.triggerNodeChange();return}}}switch(command){case"mceRepaint":this.repaint();return true;case"unlink":if(tinyMCE.isGecko&&this.getSel().isCollapsed){focusElm=tinyMCE.getParentElement(focusElm,'A');if(focusElm)this.selection.selectNode(focusElm,false)}this.getDoc().execCommand(command,user_interface,value);tinyMCE.isGecko&&this.getSel().collapseToEnd();tinyMCE.triggerNodeChange();return true;case"InsertUnorderedList":case"InsertOrderedList":this.getDoc().execCommand(command,user_interface,value);tinyMCE.triggerNodeChange();break;case"Strikethrough":this.getDoc().execCommand(command,user_interface,value);tinyMCE.triggerNodeChange();break;case"mceSelectNode":this.selection.selectNode(value);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=value;break;case"FormatBlock":if(value==null||value==""){var elm=tinyMCE.getParentElement(this.getFocusElement(),"p,div,h1,h2,h3,h4,h5,h6,pre,address,blockquote,dt,dl,dd,samp");if(elm)this.execCommand("mceRemoveNode",false,elm)}else{if(!this.cleanup.isValid(value))return true;if(tinyMCE.isGecko&&new RegExp('<(div|blockquote|code|dt|dd|dl|samp)>','gi').test(value))value=value.replace(/[^a-z]/gi,'');if(tinyMCE.isIE&&new RegExp('blockquote|code|samp','gi').test(value)){var b=this.selection.getBookmark();this.getDoc().execCommand("FormatBlock",false,'

');tinyMCE.renameElement(tinyMCE.getParentBlockElement(this.getFocusElement()),value);this.selection.moveToBookmark(b)}else this.getDoc().execCommand("FormatBlock",false,value)}tinyMCE.triggerNodeChange();break;case"mceRemoveNode":if(!value)value=tinyMCE.getParentElement(this.getFocusElement());if(tinyMCE.isIE){value.outerHTML=value.innerHTML}else{var rng=value.ownerDocument.createRange();rng.setStartBefore(value);rng.setEndAfter(value);rng.deleteContents();rng.insertNode(rng.createContextualFragment(value.innerHTML))}tinyMCE.triggerNodeChange();break;case"mceSelectNodeDepth":var parentNode=this.getFocusElement();for(var i=0;parentNode;i++){if(parentNode.nodeName.toLowerCase()=="body")break;if(parentNode.nodeName.toLowerCase()=="#text"){i--;parentNode=parentNode.parentNode;continue}if(i==value){this.selection.selectNode(parentNode,false);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=parentNode;return}parentNode=parentNode.parentNode}break;case"mceSetStyleInfo":case"SetStyleInfo":var rng=this.getRng();var sel=this.getSel();var scmd=value['command'];var sname=value['name'];var svalue=value['value']==null?'':value['value'];var wrapper=value['wrapper']?value['wrapper']:"span";var parentElm=null;var invalidRe=new RegExp("^BODY|HTML$","g");var invalidParentsRe=tinyMCE.settings['merge_styles_invalid_parents']!=''?new RegExp(tinyMCE.settings['merge_styles_invalid_parents'],"gi"):null;if(tinyMCE.isIE){if(rng.item)parentElm=rng.item(0);else{var pelm=rng.parentElement();var prng=doc.selection.createRange();prng.moveToElementText(pelm);if(rng.htmlText==prng.htmlText||rng.boundingWidth==0){if(invalidParentsRe==null||!invalidParentsRe.test(pelm.nodeName))parentElm=pelm}}}else{var felm=this.getFocusElement();if(sel.isCollapsed||(new RegExp('td|tr|tbody|table','gi').test(felm.nodeName)&&sel.anchorNode==felm.parentNode))parentElm=felm}if(parentElm&&!invalidRe.test(parentElm.nodeName)){if(scmd=="setstyle")tinyMCE.setStyleAttrib(parentElm,sname,svalue);if(scmd=="setattrib")tinyMCE.setAttrib(parentElm,sname,svalue);if(scmd=="removeformat"){parentElm.style.cssText='';tinyMCE.setAttrib(parentElm,'class','')}var ch=tinyMCE.getNodeTree(parentElm,new Array(),1);for(var z=0;z=0;i--){var elm=nodes[i];var isNew=tinyMCE.getAttrib(elm,"mce_new")=="true";elm.removeAttribute("mce_new");if(elm.childNodes&&elm.childNodes.length==1&&elm.childNodes[0].nodeType==1){this._mergeElements(scmd,elm,elm.childNodes[0],isNew);continue}if(elm.parentNode.childNodes.length==1&&!invalidRe.test(elm.nodeName)&&!invalidRe.test(elm.parentNode.nodeName)){if(invalidParentsRe==null||!invalidParentsRe.test(elm.parentNode.nodeName))this._mergeElements(scmd,elm.parentNode,elm,false)}}var nodes=doc.getElementsByTagName(wrapper);for(var i=nodes.length-1;i>=0;i--){var elm=nodes[i];var isEmpty=true;var tmp=doc.createElement("body");tmp.appendChild(elm.cloneNode(false));tmp.innerHTML=tmp.innerHTML.replace(new RegExp('style=""|class=""','gi'),'');if(new RegExp('','gi').test(tmp.innerHTML)){for(var x=0;x0){value=tinyMCE.replaceVar(value,"selection",selectedText);tinyMCE.execCommand('mceInsertContent',false,value)}tinyMCE.triggerNodeChange();break;case"mceSetAttribute":if(typeof(value)=='object'){var targetElms=(typeof(value['targets'])=="undefined")?"p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address":value['targets'];var targetNode=tinyMCE.getParentElement(this.getFocusElement(),targetElms);if(targetNode){targetNode.setAttribute(value['name'],value['value']);tinyMCE.triggerNodeChange()}}break;case"mceSetCSSClass":this.execCommand("mceSetStyleInfo",false,{command:"setattrib",name:"class",value:value});break;case"mceInsertRawHTML":var key='tiny_mce_marker';this.execCommand('mceBeginUndoLevel');this.execCommand('mceInsertContent',false,key);var scrollX=this.getBody().scrollLeft+this.getDoc().documentElement.scrollLeft;var scrollY=this.getBody().scrollTop+this.getDoc().documentElement.scrollTop;var html=this.getBody().innerHTML;if((pos=html.indexOf(key))!=-1)tinyMCE.setInnerHTML(this.getBody(),html.substring(0,pos)+value+html.substring(pos+key.length));this.contentWindow.scrollTo(scrollX,scrollY);this.execCommand('mceEndUndoLevel');break;case"mceInsertContent":if(!value)value='';var insertHTMLFailed=false;if(tinyMCE.isGecko||tinyMCE.isOpera){try{if(value.indexOf('<')==-1&&!value.match(/(&| |<|>)/g)){var r=this.getRng();var n=this.getDoc().createTextNode(tinyMCE.entityDecode(value));var s=this.getSel();var r2=r.cloneRange();s.removeAllRanges();r.deleteContents();r.insertNode(n);r2.selectNode(n);r2.collapse(false);s.removeAllRanges();s.addRange(r2)}else{value=tinyMCE.fixGeckoBaseHREFBug(1,this.getDoc(),value);this.getDoc().execCommand('inserthtml',false,value);tinyMCE.fixGeckoBaseHREFBug(2,this.getDoc(),value)}}catch(ex){insertHTMLFailed=true}if(!insertHTMLFailed){tinyMCE.triggerNodeChange();return}}if(!tinyMCE.isIE){var isHTML=value.indexOf('<')!=-1;var sel=this.getSel();var rng=this.getRng();if(isHTML){if(tinyMCE.isSafari){var tmpRng=this.getDoc().createRange();tmpRng.setStart(this.getBody(),0);tmpRng.setEnd(this.getBody(),0);value=tmpRng.createContextualFragment(value)}else value=rng.createContextualFragment(value)}else{var el=document.createElement("div");el.innerHTML=value;value=el.firstChild.nodeValue;value=doc.createTextNode(value)}if(tinyMCE.isSafari&&!isHTML){this.execCommand('InsertText',false,value.nodeValue);tinyMCE.triggerNodeChange();return true}else if(tinyMCE.isSafari&&isHTML){rng.deleteContents();rng.insertNode(value);tinyMCE.triggerNodeChange();return true}rng.deleteContents();if(rng.startContainer.nodeType==3){var node=rng.startContainer.splitText(rng.startOffset);node.parentNode.insertBefore(value,node)}else rng.insertNode(value);if(!isHTML){sel.selectAllChildren(doc.body);sel.removeAllRanges();var rng=doc.createRange();rng.selectNode(value);rng.collapse(false);sel.addRange(rng)}else rng.collapse(false);tinyMCE.fixGeckoBaseHREFBug(2,this.getDoc(),value)}else{var rng=doc.selection.createRange(),tmpRng=null;var c=value.indexOf('"}if(hc){cn=n.childNodes;for(i=0,l=cn.length;i';return h},_serializeAttribute:function(n,r,an){var av='',t,os=this.settings.on_save;if(os&&(an.indexOf('mce_')==0||an.indexOf('_moz')==0))return'';if(os&&this.mceAttribs[an])av=this._getAttrib(n,this.mceAttribs[an]);if(av.length==0)av=this._getAttrib(n,an);if(av.length==0&&r.defaultAttribs&&(t=r.defaultAttribs[an])){av=t;if(av=="mce_empty")return" "+an+'=""'}if(r.forceAttribs&&(t=r.forceAttribs[an]))av=t;if(os&&av.length!=0&&this.settings.url_converter.length!=0&&/^(src|href|longdesc)$/.test(an))av=this._urlConverter(this,n,av);if(av.length!=0&&r.validAttribValues&&r.validAttribValues[an]&&!r.validAttribValues[an].test(av))return"";if(av.length!=0&&av=="{$uid}")av="uid_"+(this.idCount++);if(av.length!=0){if(an.indexOf('on')!=0)av=this.xmlEncode(av,1);return" "+an+"="+'"'+av+'"'}return""},formatHTML:function(h){var s=this.settings,p='',i=0,li=0,o='',l;h=h.replace(/]*)>(.*?)<\/pre>/gi,function(a,b,c){c=c.replace(//gi,'\n');return''+c+''});h=h.replace(/\r/g,'');h='\n'+h;h=h.replace(new RegExp('\\n\\s+','gi'),'\n');h=h.replace(this.nlBeforeRe,'\n<$1$2>');h=h.replace(this.nlAfterRe,'<$1$2>\n');h=h.replace(this.nlBeforeAfterRe,'\n<$1$2$3>\n');h+='\n';while((i=h.indexOf('\n',i+1))!=-1){if((l=h.substring(li+1,i)).length!=0){if(this.ouRe.test(l)&&p.length>=s.indent_levels)p=p.substring(s.indent_levels);o+=p+l+'\n';if(this.inRe.test(l))p+=this.inStr}li=i}return o},xmlEncode:function(s,skip_apos){var cl=this,re=!skip_apos?this.xmlEncodeAposRe:this.xmlEncodeRe;this._setupEntities();switch(this.settings.entity_encoding){case"raw":return tinyMCE.xmlEncode(s,skip_apos);case"named":return s.replace(re,function(c,b){b=cl.entities[c.charCodeAt(0)];return b?'&'+b+';':c});case"numeric":return s.replace(re,function(c,b){return b?'&#'+c.charCodeAt(0)+';':c})}return s},split:function(re,s){var c=s.split(re);var i,l,o=new Array();for(i=0,l=c.length;i':'>'+h+'';return o};TinyMCE_Engine.prototype.createTag=function(d,tn,a,h){var o=d.createElement(tn);if(a){for(n in a){if(typeof(a[n])!='function'&&a[n]!=null)tinyMCE.setAttrib(o,n,a[n])}}if(h)o.innerHTML=h;return o};TinyMCE_Engine.prototype.getElementByAttributeValue=function(n,e,a,v){return(n=this.getElementsByAttributeValue(n,e,a,v)).length==0?null:n[0]};TinyMCE_Engine.prototype.getElementsByAttributeValue=function(n,e,a,v){var i,nl=n.getElementsByTagName(e),o=new Array();for(i=0;i/gi,'');h=h.replace(/<\/em>/gi,'')}if(tinyMCE.isRealIE){h=h.replace(/\s\/>/g,'>');h=h.replace(/]*)>\u00A0?<\/p>/gi,' 

');h=h.replace(/]*)>\s* \s*<\/p>/gi,' 

');h=h.replace(/]*)>\s+<\/p>/gi,' 

');e.innerHTML=tinyMCE.uniqueTag+h;e.firstChild.removeNode(true);nl=e.getElementsByTagName("p");for(i=nl.length-1;i>=0;i--){n=nl[i];if(n.nodeName=='P'&&!n.hasChildNodes()&&!n.mce_keep)n.parentNode.removeChild(n)}}else{h=this.fixGeckoBaseHREFBug(1,e,h);e.innerHTML=h;this.fixGeckoBaseHREFBug(2,e,h)}};TinyMCE_Engine.prototype.getOuterHTML=function(e){if(tinyMCE.isIE)return e.outerHTML;var d=e.ownerDocument.createElement("body");d.appendChild(e.cloneNode(true));return d.innerHTML};TinyMCE_Engine.prototype.setOuterHTML=function(e,h,d){var d=typeof(d)=="undefined"?e.ownerDocument:d,i,nl,t;if(tinyMCE.isIE&&e.nodeType==1)e.outerHTML=h;else{t=d.createElement("body");t.innerHTML=h;for(i=0,nl=t.childNodes;i-1;i--){if(ar[i].specified&&ar[i].nodeValue)ne.setAttribute(ar[i].nodeName.toLowerCase(),ar[i].nodeValue)}ar=e.childNodes;for(i=0;i=strTok2.length){for(var i=0;i=strTok2.length||strTok1[i]!=strTok2[i]){breakPoint=i+1;break}}}if(strTok1.length=strTok1.length||strTok1[i]!=strTok2[i]){breakPoint=i+1;break}}}if(breakPoint==1)return targetURL.path;for(var i=0;i<(strTok1.length-(breakPoint-1));i++)outPath+="../";for(var i=breakPoint-1;i=0;i--){if(baseURLParts[i].length==0)continue;newBaseURLParts[newBaseURLParts.length]=baseURLParts[i]}baseURLParts=newBaseURLParts.reverse();var newRelURLParts=new Array();var numBack=0;for(var i=relURLParts.length-1;i>=0;i--){if(relURLParts[i].length==0||relURLParts[i]==".")continue;if(relURLParts[i]=='..'){numBack++;continue}if(numBack>0){numBack--;continue}newRelURLParts[newRelURLParts.length]=relURLParts[i]}relURLParts=newRelURLParts.reverse();var len=baseURLParts.length-numBack;var absPath=(len<=0?"":"/")+baseURLParts.slice(0,len).join('/')+"/"+relURLParts.join('/');var start="",end="";relURL.protocol=baseURL.protocol;relURL.host=baseURL.host;relURL.port=baseURL.port;if(relURL.path.charAt(relURL.path.length-1)=="/")absPath+="/";relURL.path=absPath;return this.serializeURL(relURL)};TinyMCE_Engine.prototype.convertURL=function(url,node,on_save){var prot=document.location.protocol;var host=document.location.hostname;var port=document.location.port;if(prot=="file:")return url;url=tinyMCE.regexpReplace(url,'(http|https):///','/');if(url.indexOf('mailto:')!=-1||url.indexOf('javascript:')!=-1||tinyMCE.regexpReplace(url,'[ \t\r\n\+]|%20','').charAt(0)=="#")return url;if(!tinyMCE.isIE&&!on_save&&url.indexOf("://")==-1&&url.charAt(0)!='/')return tinyMCE.settings['base_href']+url;if(on_save&&tinyMCE.getParam('relative_urls')){var curl=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],url);if(curl.charAt(0)=='/')curl=tinyMCE.settings['document_base_prefix']+curl;var urlParts=tinyMCE.parseURL(curl);var tmpUrlParts=tinyMCE.parseURL(tinyMCE.settings['document_base_url']);if(urlParts['host']==tmpUrlParts['host']&&(urlParts['port']==tmpUrlParts['port']))return tinyMCE.convertAbsoluteURLToRelativeURL(tinyMCE.settings['document_base_url'],curl)}if(!tinyMCE.getParam('relative_urls')){var urlParts=tinyMCE.parseURL(url);var baseUrlParts=tinyMCE.parseURL(tinyMCE.settings['base_href']);url=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],url);if(urlParts['anchor']&&urlParts['path']==baseUrlParts['path'])return"#"+urlParts['anchor']}if(tinyMCE.getParam('remove_script_host')){var start="",portPart="";if(port!="")portPart=":"+port;start=prot+"//"+host+portPart+"/";if(url.indexOf(start)==0)url=url.substring(start.length-1)}return url};TinyMCE_Engine.prototype.convertAllRelativeURLs=function(body){var i,elms,src,href,mhref,msrc;elms=body.getElementsByTagName("img");for(i=0;ibookmark.index){try{rng.addElement(nl[bookmark.index])}catch(ex){}}}else{try{if(bookmark.start<0)return true;rng=inst.getSel().createRange();rng.moveToElementText(inst.getBody());rng.collapse(true);rng.moveStart('character',bookmark.start);rng.moveEnd('character',bookmark.length)}catch(ex){return true}}rng.select();win.scrollTo(bookmark.scrollX,bookmark.scrollY);return true}if(tinyMCE.isGecko||tinyMCE.isOpera){if(!sel)return false;if(bookmark.rng){sel.removeAllRanges();sel.addRange(bookmark.rng)}if(bookmark.start!=-1&&bookmark.end!=-1){try{sd=this._getTextPos(b,bookmark.start,bookmark.end);rng=doc.createRange();rng.setStart(sd.startNode,sd.startOffset);rng.setEnd(sd.endNode,sd.endOffset);sel.removeAllRanges();sel.addRange(rng);win.focus()}catch(ex){}}win.scrollTo(bookmark.scrollX,bookmark.scrollY);return true}return false},_getPosText:function(r,sn,en){var w=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null,false),n,p=0,d={};while((n=w.nextNode())!=null){if(n==sn)d.start=p;if(n==en){d.end=p;return d}p+=n.nodeValue?n.nodeValue.length:0}return null},_getTextPos:function(r,sp,ep){var w=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null,false),n,p=0,d={};while((n=w.nextNode())!=null){p+=n.nodeValue?n.nodeValue.length:0;if(p>=sp&&!d.startNode){d.startNode=n;d.startOffset=sp-(p-n.nodeValue.length)}if(p>=ep){d.endNode=n;d.endOffset=ep-(p-n.nodeValue.length);return d}}return null},selectNode:function(node,collapse,select_text_node,to_start){var inst=this.instance,sel,rng,nodes;if(!node)return;if(typeof(collapse)=="undefined")collapse=true;if(typeof(select_text_node)=="undefined")select_text_node=false;if(typeof(to_start)=="undefined")to_start=true;if(inst.settings.auto_resize)inst.resizeToContent();if(tinyMCE.isRealIE){rng=inst.getDoc().body.createTextRange();try{rng.moveToElementText(node);if(collapse)rng.collapse(to_start);rng.select()}catch(e){}}else{sel=this.getSel();if(!sel)return;if(tinyMCE.isSafari){sel.setBaseAndExtent(node,0,node,node.innerText.length);if(collapse){if(to_start)sel.collapseToStart();else sel.collapseToEnd()}this.scrollToNode(node);return}rng=inst.getDoc().createRange();if(select_text_node){nodes=tinyMCE.getNodeTree(node,new Array(),3);if(nodes.length>0)rng.selectNodeContents(nodes[0]);else rng.selectNodeContents(node)}else rng.selectNode(node);if(collapse){if(!to_start&&node.nodeType==3){rng.setStart(node,node.nodeValue.length);rng.setEnd(node,node.nodeValue.length)}else rng.collapse(to_start)}sel.removeAllRanges();sel.addRange(rng)}this.scrollToNode(node);tinyMCE.selectedElement=null;if(node.nodeType==1)tinyMCE.selectedElement=node},scrollToNode:function(node){var inst=this.instance,w=inst.getWin(),vp=inst.getViewPort(),pos=tinyMCE.getAbsPosition(node),cvp,p,cwin;if(pos.absLeftvp.left+vp.width||pos.absTopvp.top+(vp.height-25))w.scrollTo(pos.absLeft,pos.absTop-vp.height+25);if(inst.settings.auto_resize){cwin=inst.getContainerWin();cvp=tinyMCE.getViewPort(cwin);p=this.getAbsPosition(node);if(p.absLeftcvp.left+cvp.width||p.absTopcvp.top+cvp.height)cwin.scrollTo(p.absLeft,p.absTop-cvp.height+25)}},getAbsPosition:function(n){var pos=tinyMCE.getAbsPosition(n),ipos=tinyMCE.getAbsPosition(this.instance.iframeElement);return{absLeft:ipos.absLeft+pos.absLeft,absTop:ipos.absTop+pos.absTop}},getSel:function(){var inst=this.instance;if(tinyMCE.isRealIE)return inst.getDoc().selection;return inst.contentWindow.getSelection()},getRng:function(){var s=this.getSel();if(s==null)return null;if(tinyMCE.isRealIE)return s.createRange();if(tinyMCE.isSafari&&!s.getRangeAt)return''+window.getSelection();if(s.rangeCount>0)return s.getRangeAt(0);return null},isCollapsed:function(){var r=this.getRng();if(r.item)return false;return r.boundingWidth==0||this.getSel().isCollapsed},collapse:function(b){var r=this.getRng(),s=this.getSel();if(r.select){r.collapse(b);r.select()}else{if(b)s.collapseToStart();else s.collapseToEnd()}},getFocusElement:function(){var inst=this.instance,doc,rng,sel,elm;if(tinyMCE.isRealIE){doc=inst.getDoc();rng=doc.selection.createRange();elm=rng.item?rng.item(0):rng.parentElement()}else{if(!tinyMCE.isSafari&&inst.isHidden())return inst.getBody();sel=this.getSel();rng=this.getRng();if(!sel||!rng)return null;elm=rng.commonAncestorContainer;if(!rng.collapsed){if(rng.startContainer==rng.endContainer){if(rng.startOffset-rng.endOffset<2){if(rng.startContainer.hasChildNodes())elm=rng.startContainer.childNodes[rng.startOffset]}}}elm=tinyMCE.getParentElement(elm);}return elm}};function TinyMCE_UndoRedo(inst){this.instance=inst;this.undoLevels=new Array();this.undoIndex=0;this.typingUndoIndex=-1;this.undoRedo=true};TinyMCE_UndoRedo.prototype={add:function(l){var b,customUndoLevels,newHTML,inst=this.instance,i,ul,ur;if(l){this.undoLevels[this.undoLevels.length]=l;return true}if(this.typingUndoIndex!=-1){this.undoIndex=this.typingUndoIndex;if(tinyMCE.typingUndoIndex!=-1)tinyMCE.undoIndex=tinyMCE.typingUndoIndex}newHTML=tinyMCE.trim(inst.getBody().innerHTML);if(this.undoLevels[this.undoIndex]&&newHTML!=this.undoLevels[this.undoIndex].content){tinyMCE.dispatchCallback(inst,'onchange_callback','onChange',inst);customUndoLevels=tinyMCE.settings['custom_undo_redo_levels'];if(customUndoLevels!=-1&&this.undoLevels.length>customUndoLevels){for(i=0;i0){this.undoIndex--;tinyMCE.setInnerHTML(inst.getBody(),this.undoLevels[this.undoIndex].content);inst.repaint();if(inst.settings.custom_undo_redo_restore_selection)inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark)}},redo:function(){var inst=this.instance;tinyMCE.execCommand("mceEndTyping");if(this.undoIndex<(this.undoLevels.length-1)){this.undoIndex++;tinyMCE.setInnerHTML(inst.getBody(),this.undoLevels[this.undoIndex].content);inst.repaint();if(inst.settings.custom_undo_redo_restore_selection)inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark)}tinyMCE.triggerNodeChange()}};var TinyMCE_ForceParagraphs={_insertPara:function(inst,e){var doc=inst.getDoc(),sel=inst.getSel(),body=inst.getBody(),win=inst.contentWindow,rng=sel.getRangeAt(0);var rootElm=doc.documentElement,blockName="P",startNode,endNode,startBlock,endBlock;var rngBefore,rngAfter,direct,startNode,startOffset,endNode,endOffset,b=tinyMCE.isOpera?inst.selection.getBookmark():null;var paraBefore,paraAfter,startChop,endChop,contents;function isEmpty(para){function isEmptyHTML(html){return html.replace(new RegExp('[ \t\r\n]+','g'),'').toLowerCase()==""}if(para.getElementsByTagName("img").length>0)return false;if(para.getElementsByTagName("table").length>0)return false;if(para.getElementsByTagName("hr").length>0)return false;var nodes=tinyMCE.getNodeTree(para,new Array(),3);for(var i=0;i <"+blockName+"> ";paraAfter=body.childNodes[1]}inst.selection.moveToBookmark(b);inst.selection.selectNode(paraAfter,true,true);return true}if(startChop.nodeName==blockName)rngBefore.setStart(startChop,0);else rngBefore.setStartBefore(startChop);rngBefore.setEnd(startNode,startOffset);paraBefore.appendChild(rngBefore.cloneContents());rngAfter.setEndAfter(endChop);rngAfter.setStart(endNode,endOffset);contents=rngAfter.cloneContents();if(contents.firstChild&&contents.firstChild.nodeName==blockName){paraAfter.innerHTML=contents.firstChild.innerHTML}else paraAfter.appendChild(contents);if(isEmpty(paraBefore))paraBefore.innerHTML=" ";if(isEmpty(paraAfter))paraAfter.innerHTML=" ";rng=doc.createRange();if(!startChop.previousSibling&&startChop.parentNode.nodeName.toUpperCase()==blockName){rng.setStartBefore(startChop.parentNode)}else{if(rngBefore.startContainer.nodeName.toUpperCase()==blockName&&rngBefore.startOffset==0)rng.setStartBefore(rngBefore.startContainer);else rng.setStart(rngBefore.startContainer,rngBefore.startOffset)}if(!endChop.nextSibling&&endChop.parentNode.nodeName.toUpperCase()==blockName)rng.setEndAfter(endChop.parentNode);else rng.setEnd(rngAfter.endContainer,rngAfter.endOffset);rng.deleteContents();if(tinyMCE.isOpera){rng.insertNode(paraBefore);rng.insertNode(paraAfter)}else{rng.insertNode(paraAfter);rng.insertNode(paraBefore)}paraAfter.normalize();paraBefore.normalize();inst.selection.moveToBookmark(b);inst.selection.selectNode(paraAfter,true,true);return true},_handleBackSpace:function(inst){var r=inst.getRng(),sn=r.startContainer,nv,s=false;if(sn&&sn.nextSibling&&sn.nextSibling.nodeName=="BR"&&sn.parentNode.nodeName!="BODY"){nv=sn.nodeValue;if(nv!=null&&r.startOffset==nv.length)sn.nextSibling.parentNode.removeChild(sn.nextSibling)}if(inst.settings.auto_resize)inst.resizeToContent();return s}};function TinyMCE_Layer(id,bm){this.id=id;this.blockerElement=null;this.events=false;this.element=null;this.blockMode=typeof(bm)!='undefined'?bm:true;this.doc=document};TinyMCE_Layer.prototype={moveRelativeTo:function(re,p){var rep=this.getAbsPosition(re);var w=parseInt(re.offsetWidth);var h=parseInt(re.offsetHeight);var e=this.getElement();var ew=parseInt(e.offsetWidth);var eh=parseInt(e.offsetHeight);var x,y;switch(p){case"tl":x=rep.absLeft;y=rep.absTop;break;case"tr":x=rep.absLeft+w;y=rep.absTop;break;case"bl":x=rep.absLeft;y=rep.absTop+h;break;case"br":x=rep.absLeft+w;y=rep.absTop+h;break;case"cc":x=rep.absLeft+(w/ 2) - (ew /2);y=rep.absTop+(h/ 2) - (eh /2);break}this.moveTo(x,y)},moveBy:function(x,y){var e=this.getElement();this.moveTo(parseInt(e.style.left)+x,parseInt(e.style.top)+y)},moveTo:function(x,y){var e=this.getElement();e.style.left=x+"px";e.style.top=y+"px";this.updateBlocker()},resizeBy:function(w,h){var e=this.getElement();this.resizeTo(parseInt(e.style.width)+w,parseInt(e.style.height)+h)},resizeTo:function(w,h){var e=this.getElement();if(w!=null)e.style.width=w+"px";if(h!=null)e.style.height=h+"px";this.updateBlocker()},show:function(){this.getElement().style.display='block';this.updateBlocker()},hide:function(){this.getElement().style.display='none';this.updateBlocker()},isVisible:function(){return this.getElement().style.display=='block'},getElement:function(){if(!this.element)this.element=this.doc.getElementById(this.id);return this.element},setBlockMode:function(s){this.blockMode=s},updateBlocker:function(){var e,b,x,y,w,h;b=this.getBlocker();if(b){if(this.blockMode){e=this.getElement();x=this.parseInt(e.style.left);y=this.parseInt(e.style.top);w=this.parseInt(e.offsetWidth);h=this.parseInt(e.offsetHeight);b.style.left=x+'px';b.style.top=y+'px';b.style.width=w+'px';b.style.height=h+'px';b.style.display=e.style.display}else b.style.display='none'}},getBlocker:function(){var d,b;if(!this.blockerElement&&this.blockMode){d=this.doc;b=d.getElementById(this.id+"_blocker");if(!b){b=d.createElement("iframe");b.setAttribute('id',this.id+"_blocker");b.style.cssText='display: none; position: absolute; left: 0; top: 0';b.src='javascript:false;';b.frameBorder='0';b.scrolling='no';d.body.appendChild(b)}this.blockerElement=b}return this.blockerElement},getAbsPosition:function(n){var p={absLeft:0,absTop:0};while(n){p.absLeft+=n.offsetLeft;p.absTop+=n.offsetTop;n=n.offsetParent}return p},create:function(n,c,p,h){var d=this.doc,e=d.createElement(n);e.setAttribute('id',this.id);if(c)e.className=c;if(!p)p=d.body;if(h)e.innerHTML=h;p.appendChild(e);return this.element=e},exists:function(){return this.doc.getElementById(this.id)!=null},parseInt:function(s){if(s==null||s=='')return 0;return parseInt(s)},remove:function(){var e=this.getElement(),b=this.getBlocker();if(e)e.parentNode.removeChild(e);if(b)b.parentNode.removeChild(b)}};function TinyMCE_Menu(){var id;if(typeof(tinyMCE.menuCounter)=="undefined")tinyMCE.menuCounter=0;id="mc_menu_"+tinyMCE.menuCounter++;TinyMCE_Layer.call(this,id,true);this.id=id;this.items=new Array();this.needsUpdate=true};TinyMCE_Menu.prototype=tinyMCE.extend(TinyMCE_Layer.prototype,{init:function(s){var n;this.settings={separator_class:'mceMenuSeparator',title_class:'mceMenuTitle',disabled_class:'mceMenuDisabled',menu_class:'mceMenu',drop_menu:true};for(n in s)this.settings[n]=s[n];this.create('div',this.settings.menu_class)},clear:function(){this.items=new Array()},addTitle:function(t){this.add({type:'title',text:t})},addDisabled:function(t){this.add({type:'disabled',text:t})},addSeparator:function(){this.add({type:'separator'})},addItem:function(t,js){this.add({text:t,js:js})},add:function(mi){this.items[this.items.length]=mi;this.needsUpdate=true},update:function(){var e=this.getElement(),h='',i,t,m=this.items,s=this.settings;if(this.settings.drop_menu)h+='';h+='';for(i=0;i'}h+='
';break;case'title':h+='
'+t+'';break;case'disabled':h+='
'+t+'';break;default:h+='
'+t+''}h+='
';e.innerHTML=h;this.needsUpdate=false;this.updateBlocker()},show:function(){var nl,i;if(tinyMCE.lastMenu==this)return;if(this.needsUpdate)this.update();if(tinyMCE.lastMenu&&tinyMCE.lastMenu!=this)tinyMCE.lastMenu.hide();TinyMCE_Layer.prototype.show.call(this);if(!tinyMCE.isOpera){}tinyMCE.lastMenu=this}});if(!Function.prototype.call){Function.prototype.call=function(){var a=arguments,s=a[0],i,as='',r,o;for(i=1;i1?',':'')+'a['+i+']';o=s._fu;s._fu=this;r=eval('s._fu('+as+')');s._fu=o;return r}};TinyMCE_Engine.prototype.debug=function(){var m="",a,i,l=tinyMCE.log.length;for(i=0,a=this.debug.arguments;i'); - - if (tinyMCE.getParam("popups_css_add")) { - c = tinyMCE.getParam("popups_css_add"); - - // Is relative - if (c.indexOf('://') == -1 && c.charAt(0) != '/') - c = tinyMCE.documentBasePath + "/" + c; - - document.write(''); - } - - tinyMCE.addEvent(window, "load", this.onLoad); - }, - - onLoad : function() { - var dir, i, elms, body = document.body; - - if (tinyMCE.getWindowArg('mce_replacevariables', true)) - body.innerHTML = tinyMCE.applyTemplate(body.innerHTML, tinyMCE.windowArgs); - - dir = tinyMCE.selectedInstance.settings['directionality']; - if (dir == "rtl" && document.forms && document.forms.length > 0) { - elms = document.forms[0].elements; - for (i=0; i=0; i--) { - if (wrapper.hasChildNodes()) - wrapper.insertBefore(nodes[i].cloneNode(true), wrapper.firstChild); - else - wrapper.appendChild(nodes[i].cloneNode(true)); - - nodes[i].parentNode.removeChild(nodes[i]); - } - - // Add wrapper - doc.body.appendChild(wrapper); - - // Create iframe - iframe = document.createElement("iframe"); - iframe.id = "mcWinIframe"; - iframe.src = document.location.href.toLowerCase().indexOf('https') == -1 ? "about:blank" : tinyMCE.settings['default_document']; - iframe.width = "100%"; - iframe.height = "100%"; - iframe.style.margin = '0'; - - // Add iframe - doc.body.appendChild(iframe); - - // Measure iframe - iframe = document.getElementById('mcWinIframe'); - dx = tinyMCE.getWindowArg('mce_width') - iframe.clientWidth; - dy = tinyMCE.getWindowArg('mce_height') - iframe.clientHeight; - - // Resize window - // tinyMCE.debug(tinyMCE.getWindowArg('mce_width') + "," + tinyMCE.getWindowArg('mce_height') + " - " + dx + "," + dy); - window.resizeBy(dx, dy); - - // Hide iframe and show wrapper - body.style.margin = oldMargin; - iframe.style.display = 'none'; - wrapper.style.display = 'block'; - } - }, - - resizeToContent : function() { - var isMSIE = (navigator.appName == "Microsoft Internet Explorer"); - var isOpera = (navigator.userAgent.indexOf("Opera") != -1); - - if (isOpera) - return; - - if (isMSIE) { - try { window.resizeTo(10, 10); } catch (e) {} - - var elm = document.body; - var width = elm.offsetWidth; - var height = elm.offsetHeight; - var dx = (elm.scrollWidth - width) + 4; - var dy = elm.scrollHeight - height; - - try { window.resizeBy(dx, dy); } catch (e) {} - } else { - window.scrollBy(1000, 1000); - if (window.scrollX > 0 || window.scrollY > 0) { - window.resizeBy(window.innerWidth * 2, window.innerHeight * 2); - window.sizeToContent(); - window.scrollTo(0, 0); - var x = parseInt(screen.width / 2.0) - (window.outerWidth / 2.0); - var y = parseInt(screen.height / 2.0) - (window.outerHeight / 2.0); - window.moveTo(x, y); - } - } - }, - - getWindowArg : function(name, default_value) { - return tinyMCE.getWindowArg(name, default_value); - }, - - restoreSelection : function() { - if (this.storeSelection) { - var inst = tinyMCE.selectedInstance; - - inst.getWin().focus(); - - if (inst.selectionBookmark) - inst.selection.moveToBookmark(inst.selectionBookmark); - } - }, - - execCommand : function(command, user_interface, value) { - var inst = tinyMCE.selectedInstance; - - this.restoreSelection(); - inst.execCommand(command, user_interface, value); - - // Store selection - if (this.storeSelection) - inst.selectionBookmark = inst.selection.getBookmark(true); - }, - - close : function() { - tinyMCE.closeWindow(window); - }, - - pickColor : function(e, element_id) { - tinyMCE.selectedInstance.execCommand('mceColorPicker', true, { - element_id : element_id, - document : document, - window : window, - store_selection : false - }); - }, - - openBrowser : function(element_id, type, option) { - var cb = tinyMCE.getParam(option, tinyMCE.getParam("file_browser_callback")); - var url = document.getElementById(element_id).value; - - tinyMCE.setWindowArg("window", window); - tinyMCE.setWindowArg("document", document); - - // Call to external callback - if (eval('typeof(tinyMCEPopup.windowOpener.' + cb + ')') == "undefined") - alert("Callback function: " + cb + " could not be found."); - else - eval("tinyMCEPopup.windowOpener." + cb + "(element_id, url, type, window);"); - }, - - importClass : function(c) { - window[c] = function() {}; - - for (var n in window.opener[c].prototype) - window[c].prototype[n] = window.opener[c].prototype[n]; - - window[c].constructor = window.opener[c].constructor; - } - - }; - -// Setup global instance -var tinyMCEPopup = new TinyMCE_Popup(); - -tinyMCEPopup.init(); diff --git a/OLD/umbraco.Legacy/umbraco_client/tinymce/tiny_mce_src.js b/OLD/umbraco.Legacy/umbraco_client/tinymce/tiny_mce_src.js deleted file mode 100644 index 3c2ebe6f8e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/tinymce/tiny_mce_src.js +++ /dev/null @@ -1,7428 +0,0 @@ - -/* file:jscripts/tiny_mce/classes/TinyMCE_Engine.class.js */ - -function TinyMCE_Engine() { - var ua; - - this.majorVersion = "2"; - this.minorVersion = "0.9"; - this.releaseDate = "2007-01-09"; - - this.instances = new Array(); - this.switchClassCache = new Array(); - this.windowArgs = new Array(); - this.loadedFiles = new Array(); - this.pendingFiles = new Array(); - this.loadingIndex = 0; - this.configs = new Array(); - this.currentConfig = 0; - this.eventHandlers = new Array(); - this.log = new Array(); - this.undoLevels = []; - this.undoIndex = 0; - this.typingUndoIndex = -1; - - // Browser check - ua = navigator.userAgent; - this.isMSIE = (navigator.appName == "Microsoft Internet Explorer"); - this.isMSIE5 = this.isMSIE && (ua.indexOf('MSIE 5') != -1); - this.isMSIE5_0 = this.isMSIE && (ua.indexOf('MSIE 5.0') != -1); - this.isMSIE7 = this.isMSIE && (ua.indexOf('MSIE 7') != -1); - this.isGecko = ua.indexOf('Gecko') != -1; - this.isSafari = ua.indexOf('Safari') != -1; - this.isOpera = ua.indexOf('Opera') != -1; - this.isMac = ua.indexOf('Mac') != -1; - this.isNS7 = ua.indexOf('Netscape/7') != -1; - this.isNS71 = ua.indexOf('Netscape/7.1') != -1; - this.dialogCounter = 0; - this.plugins = new Array(); - this.themes = new Array(); - this.menus = new Array(); - this.loadedPlugins = new Array(); - this.buttonMap = new Array(); - this.isLoaded = false; - - // Fake MSIE on Opera and if Opera fakes IE, Gecko or Safari cancel those - if (this.isOpera) { - this.isMSIE = true; - this.isGecko = false; - this.isSafari = false; - } - - this.isIE = this.isMSIE; - this.isRealIE = this.isMSIE && !this.isOpera; - - // TinyMCE editor id instance counter - this.idCounter = 0; -}; - -TinyMCE_Engine.prototype = { - init : function(settings) { - var theme, nl, baseHREF = "", i; - - // IE 5.0x is no longer supported since 5.5, 6.0 and 7.0 now exists. We can't support old browsers forever, sorry. - if (this.isMSIE5_0) - return; - - this.settings = settings; - - // Check if valid browser has execcommand support - if (typeof(document.execCommand) == 'undefined') - return; - - // Get script base path - if (!tinyMCE.baseURL) { - var elements = document.getElementsByTagName('script'); - - // If base element found, add that infront of baseURL - nl = document.getElementsByTagName('base'); - for (i=0; i'); - this._def("font_size_classes", ''); - this._def("font_size_style_values", 'xx-small,x-small,small,medium,large,x-large,xx-large', true); - this._def("event_elements", 'a,img', true); - this._def("convert_urls", true); - this._def("table_inline_editing", false); - this._def("object_resizing", true); - this._def("custom_shortcuts", true); - this._def("convert_on_click", false); - this._def("content_css", ''); - this._def("fix_list_elements", false); - this._def("fix_table_elements", false); - this._def("strict_loading_mode", document.contentType == 'application/xhtml+xml'); - this._def("hidden_tab_class", ''); - this._def("display_tab_class", ''); - this._def("gecko_spellcheck", false); - this._def("hide_selects_on_submit", true); - - // Force strict loading mode to false on non Gecko browsers - if (this.isMSIE && !this.isOpera) - this.settings.strict_loading_mode = false; - - // Browser check IE - if (this.isMSIE && this.settings['browsers'].indexOf('msie') == -1) - return; - - // Browser check Gecko - if (this.isGecko && this.settings['browsers'].indexOf('gecko') == -1) - return; - - // Browser check Safari - if (this.isSafari && this.settings['browsers'].indexOf('safari') == -1) - return; - - // Browser check Opera - if (this.isOpera && this.settings['browsers'].indexOf('opera') == -1) - return; - - // If not super absolute make it so - baseHREF = tinyMCE.settings['document_base_url']; - var h = document.location.href; - var p = h.indexOf('://'); - if (p > 0 && document.location.protocol != "file:") { - p = h.indexOf('/', p + 3); - h = h.substring(0, p); - - if (baseHREF.indexOf('://') == -1) - baseHREF = h + baseHREF; - - tinyMCE.settings['document_base_url'] = baseHREF; - tinyMCE.settings['document_base_prefix'] = h; - } - - // Trim away query part - if (baseHREF.indexOf('?') != -1) - baseHREF = baseHREF.substring(0, baseHREF.indexOf('?')); - - this.settings['base_href'] = baseHREF.substring(0, baseHREF.lastIndexOf('/')) + "/"; - - theme = this.settings['theme']; - this.inlineStrict = 'A|BR|SPAN|BDO|MAP|OBJECT|IMG|TT|I|B|BIG|SMALL|EM|STRONG|DFN|CODE|Q|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|SUB|SUP|#text|#comment'; - this.inlineTransitional = 'A|BR|SPAN|BDO|OBJECT|APPLET|IMG|MAP|IFRAME|TT|I|B|U|S|STRIKE|BIG|SMALL|FONT|BASEFONT|EM|STRONG|DFN|CODE|Q|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|SUB|SUP|INPUT|SELECT|TEXTAREA|LABEL|BUTTON|#text|#comment'; - this.blockElms = 'H[1-6]|P|DIV|ADDRESS|PRE|FORM|TABLE|LI|OL|UL|TD|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|FORM|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP'; - this.blockRegExp = new RegExp("^(" + this.blockElms + ")$", "i"); - this.posKeyCodes = new Array(13,45,36,35,33,34,37,38,39,40); - this.uniqueURL = 'javascript:TINYMCE_UNIQUEURL();'; // Make unique URL non real URL - this.uniqueTag = ''; - this.callbacks = new Array('onInit', 'getInfo', 'getEditorTemplate', 'setupContent', 'onChange', 'onPageLoad', 'handleNodeChange', 'initInstance', 'execCommand', 'getControlHTML', 'handleEvent', 'cleanup', 'removeInstance'); - - // Theme url - this.settings['theme_href'] = tinyMCE.baseURL + "/themes/" + theme; - - if (!tinyMCE.isIE || tinyMCE.isOpera) - this.settings['force_br_newlines'] = false; - - if (tinyMCE.getParam("popups_css", false)) { - var cssPath = tinyMCE.getParam("popups_css", ""); - - // Is relative - if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/') - this.settings['popups_css'] = this.documentBasePath + "/" + cssPath; - else - this.settings['popups_css'] = cssPath; - } else - this.settings['popups_css'] = tinyMCE.baseURL + "/themes/" + theme + "/css/editor_popup.css"; - - if (tinyMCE.getParam("editor_css", false)) { - var cssPath = tinyMCE.getParam("editor_css", ""); - - // Is relative - if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/') - this.settings['editor_css'] = this.documentBasePath + "/" + cssPath; - else - this.settings['editor_css'] = cssPath; - } else { - if (this.settings.editor_css != '') - this.settings['editor_css'] = tinyMCE.baseURL + "/themes/" + theme + "/css/editor_ui.css"; - } - - if (tinyMCE.settings['debug']) { - var msg = "Debug: \n"; - - msg += "baseURL: " + this.baseURL + "\n"; - msg += "documentBasePath: " + this.documentBasePath + "\n"; - msg += "content_css: " + this.settings['content_css'] + "\n"; - msg += "popups_css: " + this.settings['popups_css'] + "\n"; - msg += "editor_css: " + this.settings['editor_css'] + "\n"; - - alert(msg); - } - - // Only do this once - if (this.configs.length == 0) { - if (typeof(TinyMCECompressed) == "undefined") { - tinyMCE.addEvent(window, "DOMContentLoaded", TinyMCE_Engine.prototype.onLoad); - - if (tinyMCE.isRealIE) { - if (document.body) - tinyMCE.addEvent(document.body, "readystatechange", TinyMCE_Engine.prototype.onLoad); - else - tinyMCE.addEvent(document, "readystatechange", TinyMCE_Engine.prototype.onLoad); - } - - tinyMCE.addEvent(window, "load", TinyMCE_Engine.prototype.onLoad); - tinyMCE._addUnloadEvents(); - } - } - - this.loadScript(tinyMCE.baseURL + '/themes/' + this.settings['theme'] + '/editor_template' + tinyMCE.srcMode + '.js'); - this.loadScript(tinyMCE.baseURL + '/langs/' + this.settings['language'] + '.js'); - this.loadCSS(this.settings['editor_css']); - - // Add plugins - var p = tinyMCE.getParam('plugins', '', true, ','); - if (p.length > 0) { - for (var i=0; i&"\']', 'g'); - this.xmlEncodeRe = new RegExp('[<>&"]', 'g'); -// this.xmlEncodeEnts = {'&':'&','"':'"',"'":''','<':'<','>':'>'}; - }, - - _addUnloadEvents : function() { - if (tinyMCE.isIE) { - if (tinyMCE.settings['add_unload_trigger']) { - tinyMCE.addEvent(window, "unload", TinyMCE_Engine.prototype.unloadHandler); - tinyMCE.addEvent(window.document, "beforeunload", TinyMCE_Engine.prototype.unloadHandler); - } - } else { - if (tinyMCE.settings['add_unload_trigger']) - tinyMCE.addEvent(window, "unload", function () {tinyMCE.triggerSave(true, true);}); - } - }, - - _def : function(key, def_val, t) { - var v = tinyMCE.getParam(key, def_val); - - v = t ? v.replace(/\s+/g, "") : v; - - this.settings[key] = v; - }, - - hasPlugin : function(n) { - return typeof(this.plugins[n]) != "undefined" && this.plugins[n] != null; - }, - - addPlugin : function(n, p) { - var op = this.plugins[n]; - - // Use the previous plugin object base URL used when loading external plugins - p.baseURL = op ? op.baseURL : tinyMCE.baseURL + "/plugins/" + n; - this.plugins[n] = p; - - this.loadNextScript(); - }, - - setPluginBaseURL : function(n, u) { - var op = this.plugins[n]; - - if (op) - op.baseURL = u; - else - this.plugins[n] = {baseURL : u}; - }, - - loadPlugin : function(n, u) { - u = u.indexOf('.js') != -1 ? u.substring(0, u.lastIndexOf('/')) : u; - u = u.charAt(u.length-1) == '/' ? u.substring(0, u.length-1) : u; - this.plugins[n] = {baseURL : u}; - this.loadScript(u + "/editor_plugin" + (tinyMCE.srcMode ? '_src' : '') + ".js"); - }, - - hasTheme : function(n) { - return typeof(this.themes[n]) != "undefined" && this.themes[n] != null; - }, - - addTheme : function(n, t) { - this.themes[n] = t; - - this.loadNextScript(); - }, - - addMenu : function(n, m) { - this.menus[n] = m; - }, - - hasMenu : function(n) { - return typeof(this.plugins[n]) != "undefined" && this.plugins[n] != null; - }, - - loadScript : function(url) { - var i; - - for (i=0; i'); - - this.loadedFiles[this.loadedFiles.length] = url; - }, - - loadNextScript : function() { - var d = document, se; - - if (!tinyMCE.settings.strict_loading_mode) - return; - - if (this.loadingIndex < this.pendingFiles.length) { - se = d.createElementNS('http://www.w3.org/1999/xhtml', 'script'); - se.setAttribute('language', 'javascript'); - se.setAttribute('type', 'text/javascript'); - se.setAttribute('src', this.pendingFiles[this.loadingIndex++]); - - d.getElementsByTagName("head")[0].appendChild(se); - } else - this.loadingIndex = -1; // Done with loading - }, - - loadCSS : function(url) { - var ar = url.replace(/\s+/, '').split(','); - var lflen = 0, csslen = 0; - var skip = false; - var x = 0, i = 0, nl, le; - - for (x = 0,csslen = ar.length; x 0) { - /* Make sure it doesn't exist. */ - for (i=0, lflen=this.loadedFiles.length; i'); - - this.loadedFiles[this.loadedFiles.length] = ar[x]; - } - } - } - }, - - importCSS : function(doc, css) { - var css_ary = css.replace(/\s+/, '').split(','); - var csslen, elm, headArr, x, css_file; - - for (x = 0, csslen = css_ary.length; x 0) { - // Is relative, make absolute - if (css_file.indexOf('://') == -1 && css_file.charAt(0) != '/') - css_file = this.documentBasePath + "/" + css_file; - - if (typeof(doc.createStyleSheet) == "undefined") { - elm = doc.createElement("link"); - - elm.rel = "stylesheet"; - elm.href = css_file; - - if ((headArr = doc.getElementsByTagName("head")) != null && headArr.length > 0) - headArr[0].appendChild(elm); - } else - doc.createStyleSheet(css_file); - } - } - }, - - confirmAdd : function(e, settings) { - var elm = tinyMCE.isIE ? event.srcElement : e.target; - var elementId = elm.name ? elm.name : elm.id; - - tinyMCE.settings = settings; - - if (tinyMCE.settings['convert_on_click'] || (!elm.getAttribute('mce_noask') && confirm(tinyMCELang['lang_edit_confirm']))) - tinyMCE.addMCEControl(elm, elementId); - - elm.setAttribute('mce_noask', 'true'); - }, - - updateContent : function(form_element_name) { - // Find MCE instance linked to given form element and copy it's value - var formElement = document.getElementById(form_element_name); - for (var n in tinyMCE.instances) { - var inst = tinyMCE.instances[n]; - if (!tinyMCE.isInstance(inst)) - continue; - - inst.switchSettings(); - - if (inst.formElement == formElement) { - var doc = inst.getDoc(); - - tinyMCE._setHTML(doc, inst.formElement.value); - - if (!tinyMCE.isIE) - doc.body.innerHTML = tinyMCE._cleanupHTML(inst, doc, this.settings, doc.body, inst.visualAid); - } - } - }, - - addMCEControl : function(replace_element, form_element_name, target_document) { - var id = "mce_editor_" + tinyMCE.idCounter++; - var inst = new TinyMCE_Control(tinyMCE.settings); - - inst.editorId = id; - this.instances[id] = inst; - - inst._onAdd(replace_element, form_element_name, target_document); - }, - - removeInstance : function(ti) { - var t = [], n, i; - - // Remove from instances - for (n in tinyMCE.instances) { - i = tinyMCE.instances[n]; - - if (tinyMCE.isInstance(i) && ti != i) - t[n] = i; - } - - tinyMCE.instances = t; - - // Remove from global undo/redo - n = []; - t = tinyMCE.undoLevels; - - for (i=0; i 0) { - tinyMCE.nextUndoRedoAction = 'Undo'; - inst = this.undoLevels[--this.undoIndex]; - inst.select(); - - if (!tinyMCE.nextUndoRedoInstanceId) - inst.execCommand('Undo'); - } - } else - inst.execCommand('Undo'); - return true; - - case "Redo": - if (this.getParam('custom_undo_redo_global')) { - if (this.undoIndex <= this.undoLevels.length - 1) { - tinyMCE.nextUndoRedoAction = 'Redo'; - inst = this.undoLevels[this.undoIndex++]; - inst.select(); - - if (!tinyMCE.nextUndoRedoInstanceId) - inst.execCommand('Redo'); - } - } else - inst.execCommand('Redo'); - - return true; - - case 'mceFocus': - var inst = tinyMCE.getInstanceById(value); - if (inst) - inst.getWin().focus(); - return; - - case "mceAddControl": - case "mceAddEditor": - tinyMCE.addMCEControl(tinyMCE._getElementById(value), value); - return; - - case "mceAddFrameControl": - tinyMCE.addMCEControl(tinyMCE._getElementById(value['element'], value['document']), value['element'], value['document']); - return; - - case "mceRemoveControl": - case "mceRemoveEditor": - tinyMCE.removeMCEControl(value); - return; - - case "mceResetDesignMode": - // Resets the designmode state of the editors in Gecko - if (!tinyMCE.isIE) { - for (var n in tinyMCE.instances) { - if (!tinyMCE.isInstance(tinyMCE.instances[n])) - continue; - - try { - tinyMCE.instances[n].getDoc().designMode = "on"; - } catch (e) { - // Ignore any errors - } - } - } - - return; - } - - if (inst) { - inst.execCommand(command, user_interface, value); - } else if (tinyMCE.settings['focus_alert']) - alert(tinyMCELang['lang_focus_alert']); - }, - - _createIFrame : function(replace_element, doc, win) { - var iframe, id = replace_element.getAttribute("id"); - var aw, ah; - - if (typeof(doc) == "undefined") - doc = document; - - if (typeof(win) == "undefined") - win = window; - - iframe = doc.createElement("iframe"); - - aw = "" + tinyMCE.settings['area_width']; - ah = "" + tinyMCE.settings['area_height']; - - if (aw.indexOf('%') == -1) { - aw = parseInt(aw); - aw = (isNaN(aw) || aw < 0) ? 300 : aw; - aw = aw + "px"; - } - - if (ah.indexOf('%') == -1) { - ah = parseInt(ah); - ah = (isNaN(ah) || ah < 0) ? 240 : ah; - ah = ah + "px"; - } - - iframe.setAttribute("id", id); - iframe.setAttribute("name", id); - iframe.setAttribute("class", "mceEditorIframe"); - iframe.setAttribute("border", "0"); - iframe.setAttribute("frameBorder", "0"); - iframe.setAttribute("marginWidth", "0"); - iframe.setAttribute("marginHeight", "0"); - iframe.setAttribute("leftMargin", "0"); - iframe.setAttribute("topMargin", "0"); - iframe.setAttribute("width", aw); - iframe.setAttribute("height", ah); - iframe.setAttribute("allowtransparency", "true"); - iframe.className = 'mceEditorIframe'; - - if (tinyMCE.settings["auto_resize"]) - iframe.setAttribute("scrolling", "no"); - - // Must have a src element in MSIE HTTPs breaks aswell as absoute URLs - if (tinyMCE.isRealIE) - iframe.setAttribute("src", this.settings['default_document']); - - iframe.style.width = aw; - iframe.style.height = ah; - - // Ugly hack for Gecko problem in strict mode - if (tinyMCE.settings.strict_loading_mode) - iframe.style.marginBottom = '-5px'; - - // MSIE 5.0 issue - if (tinyMCE.isRealIE) - replace_element.outerHTML = iframe.outerHTML; - else - replace_element.parentNode.replaceChild(iframe, replace_element); - - if (tinyMCE.isRealIE) - return win.frames[id]; - else - return iframe; - }, - - setupContent : function(editor_id) { - var inst = tinyMCE.instances[editor_id], i; - var doc = inst.getDoc(); - var head = doc.getElementsByTagName('head').item(0); - var content = inst.startContent; - - // HTML values get XML encoded in strict mode - if (tinyMCE.settings.strict_loading_mode) { - content = content.replace(/</g, '<'); - content = content.replace(/>/g, '>'); - content = content.replace(/"/g, '"'); - content = content.replace(/&/g, '&'); - } - - tinyMCE.selectedInstance = inst; - inst.switchSettings(); - - // Not loaded correctly hit it again, Mozilla bug #997860 - if (!tinyMCE.isIE && tinyMCE.getParam("setupcontent_reload", false) && doc.title != "blank_page") { - // This part will remove the designMode status - // Failes first time in Firefox 1.5b2 on Mac - try {doc.location.href = tinyMCE.baseURL + "/blank.htm";} catch (ex) {} - window.setTimeout("tinyMCE.setupContent('" + editor_id + "');", 1000); - return; - } - - if (!head) { - window.setTimeout("tinyMCE.setupContent('" + editor_id + "');", 10); - return; - } - - // Import theme specific content CSS the user specific - tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/themes/" + inst.settings['theme'] + "/css/editor_content.css"); - tinyMCE.importCSS(inst.getDoc(), inst.settings['content_css']); - tinyMCE.dispatchCallback(inst, 'init_instance_callback', 'initInstance', inst); - - // Setup keyboard shortcuts - if (tinyMCE.getParam('custom_undo_redo_keyboard_shortcuts')) { - inst.addShortcut('ctrl', 'z', 'lang_undo_desc', 'Undo'); - inst.addShortcut('ctrl', 'y', 'lang_redo_desc', 'Redo'); - } - - // BlockFormat shortcuts keys - for (i=1; i<=6; i++) - inst.addShortcut('ctrl', '' + i, '', 'FormatBlock', false, ''); - - inst.addShortcut('ctrl', '7', '', 'FormatBlock', false, '

'); - inst.addShortcut('ctrl', '8', '', 'FormatBlock', false, '

'); - inst.addShortcut('ctrl', '9', '', 'FormatBlock', false, '
'); - - // Add default shortcuts for gecko - if (tinyMCE.isGecko) { - inst.addShortcut('ctrl', 'b', 'lang_bold_desc', 'Bold'); - inst.addShortcut('ctrl', 'i', 'lang_italic_desc', 'Italic'); - inst.addShortcut('ctrl', 'u', 'lang_underline_desc', 'Underline'); - } - - // Setup span styles - if (tinyMCE.getParam("convert_fonts_to_spans")) - inst.getBody().setAttribute('id', 'mceSpanFonts'); - - if (tinyMCE.settings['nowrap']) - doc.body.style.whiteSpace = "nowrap"; - - doc.body.dir = this.settings['directionality']; - doc.editorId = editor_id; - - // Add on document element in Mozilla - if (!tinyMCE.isIE) - doc.documentElement.editorId = editor_id; - - inst.setBaseHREF(tinyMCE.settings['base_href']); - - // Replace new line characters to BRs - if (tinyMCE.settings['convert_newlines_to_brs']) { - content = tinyMCE.regexpReplace(content, "\r\n", "
", "gi"); - content = tinyMCE.regexpReplace(content, "\r", "
", "gi"); - content = tinyMCE.regexpReplace(content, "\n", "
", "gi"); - } - - // Open closed anchors - // content = content.replace(new RegExp('', 'gi'), ''); - - // Call custom cleanup code - content = tinyMCE.storeAwayURLs(content); - content = tinyMCE._customCleanup(inst, "insert_to_editor", content); - - if (tinyMCE.isIE) { - // Ugly!!! - window.setInterval('try{tinyMCE.getCSSClasses(tinyMCE.instances["' + editor_id + '"].getDoc(), "' + editor_id + '");}catch(e){}', 500); - - if (tinyMCE.settings["force_br_newlines"]) - doc.styleSheets[0].addRule("p", "margin: 0;"); - - var body = inst.getBody(); - body.editorId = editor_id; - } - - content = tinyMCE.cleanupHTMLCode(content); - - // Fix for bug #958637 - if (!tinyMCE.isIE) { - var contentElement = inst.getDoc().createElement("body"); - var doc = inst.getDoc(); - - contentElement.innerHTML = content; - - // Remove weridness! - if (tinyMCE.isGecko && tinyMCE.settings['remove_lt_gt']) - content = content.replace(new RegExp('<>', 'g'), ""); - - if (tinyMCE.settings['cleanup_on_startup']) - tinyMCE.setInnerHTML(inst.getBody(), tinyMCE._cleanupHTML(inst, doc, this.settings, contentElement)); - else - tinyMCE.setInnerHTML(inst.getBody(), content); - - tinyMCE.convertAllRelativeURLs(inst.getBody()); - } else { - if (tinyMCE.settings['cleanup_on_startup']) { - tinyMCE._setHTML(inst.getDoc(), content); - - // Produces permission denied error in MSIE 5.5 - eval('try {tinyMCE.setInnerHTML(inst.getBody(), tinyMCE._cleanupHTML(inst, inst.contentDocument, this.settings, inst.getBody()));} catch(e) {}'); - } else - tinyMCE._setHTML(inst.getDoc(), content); - } - - // Fix for bug #957681 - //inst.getDoc().designMode = inst.getDoc().designMode; - - // Setup element references - var parentElm = inst.targetDoc.getElementById(inst.editorId + '_parent'); - inst.formElement = tinyMCE.isGecko ? parentElm.previousSibling : parentElm.nextSibling; - - tinyMCE.handleVisualAid(inst.getBody(), true, tinyMCE.settings['visual'], inst); - tinyMCE.dispatchCallback(inst, 'setupcontent_callback', 'setupContent', editor_id, inst.getBody(), inst.getDoc()); - - // Re-add design mode on mozilla - if (!tinyMCE.isIE) - tinyMCE.addEventHandlers(inst); - - // Add blur handler - if (tinyMCE.isIE) { - tinyMCE.addEvent(inst.getBody(), "blur", TinyMCE_Engine.prototype._eventPatch); - tinyMCE.addEvent(inst.getBody(), "beforedeactivate", TinyMCE_Engine.prototype._eventPatch); // Bug #1439953 - - // Workaround for drag drop/copy paste base href bug - if (!tinyMCE.isOpera) { - tinyMCE.addEvent(doc.body, "mousemove", TinyMCE_Engine.prototype.onMouseMove); - tinyMCE.addEvent(doc.body, "beforepaste", TinyMCE_Engine.prototype._eventPatch); - tinyMCE.addEvent(doc.body, "drop", TinyMCE_Engine.prototype._eventPatch); - } - } - - // Trigger node change, this call locks buttons for tables and so forth - inst.select(); - tinyMCE.selectedElement = inst.contentWindow.document.body; - - // Call custom DOM cleanup - tinyMCE._customCleanup(inst, "insert_to_editor_dom", inst.getBody()); - tinyMCE._customCleanup(inst, "setup_content_dom", inst.getBody()); - tinyMCE._setEventsEnabled(inst.getBody(), false); - tinyMCE.cleanupAnchors(inst.getDoc()); - - if (tinyMCE.getParam("convert_fonts_to_spans")) - tinyMCE.convertSpansToFonts(inst.getDoc()); - - inst.startContent = tinyMCE.trim(inst.getBody().innerHTML); - inst.undoRedo.add({ content : inst.startContent }); - - // Cleanup any mess left from storyAwayURLs - if (tinyMCE.isGecko) { - // Remove mce_src from textnodes and comments - tinyMCE.selectNodes(inst.getBody(), function(n) { - if (n.nodeType == 3 || n.nodeType == 8) - n.nodeValue = n.nodeValue.replace(new RegExp('\\s(mce_src|mce_href)=\"[^\"]*\"', 'gi'), ""); - - return false; - }); - } - - // Remove Gecko spellchecking - if (tinyMCE.isGecko) - inst.getBody().spellcheck = tinyMCE.getParam("gecko_spellcheck"); - - // Cleanup any mess left from storyAwayURLs - tinyMCE._removeInternal(inst.getBody()); - - inst.select(); - tinyMCE.triggerNodeChange(false, true); - }, - - storeAwayURLs : function(s) { - // Remove all mce_src, mce_href and replace them with new ones - // s = s.replace(new RegExp('mce_src\\s*=\\s*\"[^ >\"]*\"', 'gi'), ''); - // s = s.replace(new RegExp('mce_href\\s*=\\s*\"[^ >\"]*\"', 'gi'), ''); - - if (!s.match(/(mce_src|mce_href)/gi, s)) { - s = s.replace(new RegExp('src\\s*=\\s*\"([^ >\"]*)\"', 'gi'), 'src="$1" mce_src="$1"'); - s = s.replace(new RegExp('href\\s*=\\s*\"([^ >\"]*)\"', 'gi'), 'href="$1" mce_href="$1"'); - } - - return s; - }, - - _removeInternal : function(n) { - if (tinyMCE.isGecko) { - // Remove mce_src from textnodes and comments - tinyMCE.selectNodes(n, function(n) { - if (n.nodeType == 3 || n.nodeType == 8) - n.nodeValue = n.nodeValue.replace(new RegExp('\\s(mce_src|mce_href)=\"[^\"]*\"', 'gi'), ""); - - return false; - }); - } - }, - - removeTinyMCEFormElements : function(form_obj) { - var i, elementId; - - // Skip form element removal - if (!tinyMCE.getParam('hide_selects_on_submit')) - return; - - // Check if form is valid - if (typeof(form_obj) == "undefined" || form_obj == null) - return; - - // If not a form, find the form - if (form_obj.nodeName != "FORM") { - if (form_obj.form) - form_obj = form_obj.form; - else - form_obj = tinyMCE.getParentElement(form_obj, "form"); - } - - // Still nothing - if (form_obj == null) - return; - - // Disable all UI form elements that TinyMCE created - for (i=0; i"); - rng.collapse(false); - rng.select(); - - tinyMCE.execCommand("mceAddUndoLevel"); - tinyMCE.triggerNodeChange(false); - return false; - } - } - - // Backspace or delete - if (e.keyCode == 8 || e.keyCode == 46) { - tinyMCE.selectedElement = e.target; - tinyMCE.linkElement = tinyMCE.getParentElement(e.target, "a"); - tinyMCE.imgElement = tinyMCE.getParentElement(e.target, "img"); - tinyMCE.triggerNodeChange(false); - } - - return false; - break; - - case "keyup": - case "keydown": - tinyMCE.hideMenus(); - tinyMCE.hasMouseMoved = false; - - if (inst && inst.handleShortcut(e)) - return false; - - if (e.target.editorId) - tinyMCE.instances[e.target.editorId].select(); - - if (tinyMCE.selectedInstance) - tinyMCE.selectedInstance.switchSettings(); - - var inst = tinyMCE.selectedInstance; - - // Handle backspace - if (tinyMCE.isGecko && tinyMCE.settings['force_p_newlines'] && (e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) { - // Insert P element instead of BR - if (TinyMCE_ForceParagraphs._handleBackSpace(tinyMCE.selectedInstance, e.type)) { - // Cancel event - tinyMCE.execCommand("mceAddUndoLevel"); - e.preventDefault(); - return false; - } - } - - tinyMCE.selectedElement = null; - tinyMCE.selectedNode = null; - var elm = tinyMCE.selectedInstance.getFocusElement(); - tinyMCE.linkElement = tinyMCE.getParentElement(elm, "a"); - tinyMCE.imgElement = tinyMCE.getParentElement(elm, "img"); - tinyMCE.selectedElement = elm; - - // Update visualaids on tabs - if (tinyMCE.isGecko && e.type == "keyup" && e.keyCode == 9) - tinyMCE.handleVisualAid(tinyMCE.selectedInstance.getBody(), true, tinyMCE.settings['visual'], tinyMCE.selectedInstance); - - // Fix empty elements on return/enter, check where enter occured - if (tinyMCE.isIE && e.type == "keydown" && e.keyCode == 13) - tinyMCE.enterKeyElement = tinyMCE.selectedInstance.getFocusElement(); - - // Fix empty elements on return/enter - if (tinyMCE.isIE && e.type == "keyup" && e.keyCode == 13) { - var elm = tinyMCE.enterKeyElement; - if (elm) { - var re = new RegExp('^HR|IMG|BR$','g'); // Skip these - var dre = new RegExp('^H[1-6]$','g'); // Add double on these - - if (!elm.hasChildNodes() && !re.test(elm.nodeName)) { - if (dre.test(elm.nodeName)) - elm.innerHTML = "  "; - else - elm.innerHTML = " "; - } - } - } - - // Check if it's a position key - var keys = tinyMCE.posKeyCodes; - var posKey = false; - for (var i=0; i'; - h += ''; - h += ''; - } else { - // Normal button - h += ''; - h += ''; - h += ''; - } - - return h; - }, - - getMenuButtonHTML : function(id, lang, img, mcmd, cmd, ui, val) { - var h = '', m, x; - - mcmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + mcmd + '\');'; - cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + cmd + '\''; - - if (typeof(ui) != "undefined" && ui != null) - cmd += ',' + ui; - - if (typeof(val) != "undefined" && val != null) - cmd += ",'" + val + "'"; - - cmd += ');'; - - // Use tilemaps when enabled and found and never in MSIE since it loads the tile each time from cache if cahce is disabled - if (tinyMCE.getParam('button_tile_map') && (!tinyMCE.isIE || tinyMCE.isOpera) && (m = tinyMCE.buttonMap[id]) != null && (tinyMCE.getParam("language") == "en" || img.indexOf('$lang') == -1)) { - x = 0 - (m * 20) == 0 ? '0' : 0 - (m * 20); - - if (tinyMCE.isRealIE) - h += ''; - else - h += ''; - - h += ''; - h += ''; - h += ''; - h += ''; - } else { - if (tinyMCE.isRealIE) - h += ''; - else - h += ''; - - h += ''; - h += ''; - h += ''; - h += ''; - } - - return h; - }, - - _menuButtonEvent : function(e, o) { - if (o.className == 'mceMenuButtonFocus') - return; - - if (e == 'over') - o.className = o.className + ' mceMenuHover'; - else - o.className = o.className.replace(/\s.*$/, ''); - }, - - addButtonMap : function(m) { - var i, a = m.replace(/\s+/, '').split(','); - - for (i=0; i 0); - - if (tinyMCE.settings['custom_undo_redo']) { - undoIndex = inst.undoRedo.undoIndex; - undoLevels = inst.undoRedo.undoLevels.length; - } - - tinyMCE.dispatchCallback(inst, 'handle_node_change_callback', 'handleNodeChange', editorId, elm, undoIndex, undoLevels, inst.visualAid, anySelection, setup_content); - } - - if (this.selectedInstance && (typeof(focus) == "undefined" || focus)) - this.selectedInstance.contentWindow.focus(); - }, - - _customCleanup : function(inst, type, content) { - var pl, po, i; - - // Call custom cleanup - var customCleanup = tinyMCE.settings['cleanup_callback']; - if (customCleanup != "" && eval("typeof(" + customCleanup + ")") != "undefined") - content = eval(customCleanup + "(type, content, inst);"); - - // Trigger theme cleanup - po = tinyMCE.themes[tinyMCE.settings['theme']]; - if (po && po.cleanup) - content = po.cleanup(type, content, inst); - - // Trigger plugin cleanups - pl = inst.plugins; - for (i=0; i 0) - className += " "; - - className += classNames[i]; - } - - return className; - }, - - handleVisualAid : function(el, deep, state, inst, skip_dispatch) { - if (!el) - return; - - if (!skip_dispatch) - tinyMCE.dispatchCallback(inst, 'handle_visual_aid_callback', 'handleVisualAid', el, deep, state, inst); - - var tableElement = null; - - switch (el.nodeName) { - case "TABLE": - var oldW = el.style.width; - var oldH = el.style.height; - var bo = tinyMCE.getAttrib(el, "border"); - - bo = bo == "" || bo == "0" ? true : false; - - tinyMCE.setAttrib(el, "class", tinyMCE.getVisualAidClass(tinyMCE.getAttrib(el, "class"), state && bo)); - - el.style.width = oldW; - el.style.height = oldH; - - for (var y=0; y<\/o:p>", "
"); - html = tinyMCE.regexpReplace(html, " <\/o:p>", ""); - html = tinyMCE.regexpReplace(html, "", ""); - html = tinyMCE.regexpReplace(html, "

<\/p>", ""); - html = tinyMCE.regexpReplace(html, "

<\/p>\r\n

<\/p>", ""); - html = tinyMCE.regexpReplace(html, "

 <\/p>", "
"); - html = tinyMCE.regexpReplace(html, "

\s*(

\s*)?", "

"); - html = tinyMCE.regexpReplace(html, "<\/p>\s*(<\/p>\s*)?", "

"); - }*/ - - // Always set the htmlText output - tinyMCE.setInnerHTML(doc.body, html); - } - - tinyMCE.cleanupAnchors(doc); - - if (tinyMCE.getParam("convert_fonts_to_spans")) - tinyMCE.convertSpansToFonts(doc); - }, - - getEditorId : function(form_element) { - var inst = this.getInstanceById(form_element); - if (!inst) - return null; - - return inst.editorId; - }, - - getInstanceById : function(editor_id) { - var inst = this.instances[editor_id]; - if (!inst) { - for (var n in tinyMCE.instances) { - var instance = tinyMCE.instances[n]; - if (!tinyMCE.isInstance(instance)) - continue; - - if (instance.formTargetElementId == editor_id) { - inst = instance; - break; - } - } - } - - return inst; - }, - - queryInstanceCommandValue : function(editor_id, command) { - var inst = tinyMCE.getInstanceById(editor_id); - if (inst) - return inst.queryCommandValue(command); - - return false; - }, - - queryInstanceCommandState : function(editor_id, command) { - var inst = tinyMCE.getInstanceById(editor_id); - if (inst) - return inst.queryCommandState(command); - - return null; - }, - - setWindowArg : function(n, v) { - this.windowArgs[n] = v; - }, - - getWindowArg : function(n, d) { - return (typeof(this.windowArgs[n]) == "undefined") ? d : this.windowArgs[n]; - }, - - getCSSClasses : function(editor_id, doc) { - var output = new Array(); - - // Is cached, use that - if (typeof(tinyMCE.cssClasses) != "undefined") - return tinyMCE.cssClasses; - - if (typeof(editor_id) == "undefined" && typeof(doc) == "undefined") { - var instance; - - for (var instanceName in tinyMCE.instances) { - instance = tinyMCE.instances[instanceName]; - if (!tinyMCE.isInstance(instance)) - continue; - - break; - } - - doc = instance.getDoc(); - } - - if (typeof(doc) == "undefined") { - var instance = tinyMCE.getInstanceById(editor_id); - doc = instance.getDoc(); - } - - if (doc) { - var styles = doc.styleSheets; - - if (styles && styles.length > 0) { - for (var x=0; x 0) - tinyMCE.cssClasses = output; - - return output; - }, - - regexpReplace : function(in_str, reg_exp, replace_str, opts) { - if (in_str == null) - return in_str; - - if (typeof(opts) == "undefined") - opts = 'g'; - - var re = new RegExp(reg_exp, opts); - return in_str.replace(re, replace_str); - }, - - trim : function(s) { - return s.replace(/^\s*|\s*$/g, ""); - }, - - cleanupEventStr : function(s) { - s = "" + s; - s = s.replace('function anonymous()\n{\n', ''); - s = s.replace('\n}', ''); - s = s.replace(/^return true;/gi, ''); // Remove event blocker - - return s; - }, - - getControlHTML : function(c) { - var i, l, n, o, v; - - l = tinyMCE.plugins; - for (n in l) { - o = l[n]; - - if (o.getControlHTML && (v = o.getControlHTML(c)) != '') - return tinyMCE.replaceVar(v, "pluginurl", o.baseURL); - } - - o = tinyMCE.themes[tinyMCE.settings['theme']]; - if (o.getControlHTML && (v = o.getControlHTML(c)) != '') - return v; - - return ''; - }, - - evalFunc : function(f, idx, a, o) { - o = !o ? window : o; - f = typeof(f) == 'function' ? f : o[f]; - - return f.apply(o, Array.prototype.slice.call(a, idx)); - }, - - dispatchCallback : function(i, p, n) { - return this.callFunc(i, p, n, 0, this.dispatchCallback.arguments); - }, - - executeCallback : function(i, p, n) { - return this.callFunc(i, p, n, 1, this.executeCallback.arguments); - }, - - execCommandCallback : function(i, p, n) { - return this.callFunc(i, p, n, 2, this.execCommandCallback.arguments); - }, - - callFunc : function(ins, p, n, m, a) { - var l, i, on, o, s, v; - - s = m == 2; - - l = tinyMCE.getParam(p, ''); - - if (l != '' && (v = tinyMCE.evalFunc(l, 3, a)) == s && m > 0) - return true; - - if (ins != null) { - for (i=0, l = ins.plugins; i 0) - return true; - } - } - - l = tinyMCE.themes; - for (on in l) { - o = l[on]; - - if (o[n] && (v = tinyMCE.evalFunc(n, 3, a, o)) == s && m > 0) - return true; - } - - return false; - }, - - xmlEncode : function(s, skip_apos) { - return s ? ('' + s).replace(!skip_apos ? this.xmlEncodeAposRe : this.xmlEncodeRe, function (c, b) { - switch (c) { - case '&': - return '&'; - - case '"': - return '"'; - - case '\'': - return '''; // ' is not working in MSIE - - case '<': - return '<'; - - case '>': - return '>'; - } - - return c; - }) : s; - }, - - extend : function(p, np) { - var o = {}; - - o.parent = p; - - for (n in p) - o[n] = p[n]; - - for (n in np) - o[n] = np[n]; - - return o; - }, - - hideMenus : function() { - var e = tinyMCE.lastSelectedMenuBtn; - - if (tinyMCE.lastMenu) { - tinyMCE.lastMenu.hide(); - tinyMCE.lastMenu = null; - } - - if (e) { - tinyMCE.switchClass(e, tinyMCE.lastMenuBtnClass); - tinyMCE.lastSelectedMenuBtn = null; - } - } - - }; - -// Global instances -var TinyMCE = TinyMCE_Engine; // Compatiblity with gzip compressors -var tinyMCE = new TinyMCE_Engine(); -var tinyMCELang = {}; - -/* file:jscripts/tiny_mce/classes/TinyMCE_Control.class.js */ - -function TinyMCE_Control(settings) { - var t, i, to, fu, p, x, fn, fu, pn, s = settings; - - this.undoRedoLevel = true; - this.isTinyMCE_Control = true; - - // Default settings - this.settings = s; - this.settings['theme'] = tinyMCE.getParam("theme", "default"); - this.settings['width'] = tinyMCE.getParam("width", -1); - this.settings['height'] = tinyMCE.getParam("height", -1); - this.selection = new TinyMCE_Selection(this); - this.undoRedo = new TinyMCE_UndoRedo(this); - this.cleanup = new TinyMCE_Cleanup(); - this.shortcuts = new Array(); - this.hasMouseMoved = false; - this.foreColor = this.backColor = "#999999"; - this.data = {}; - - this.cleanup.init({ - valid_elements : s.valid_elements, - extended_valid_elements : s.extended_valid_elements, - valid_child_elements : s.valid_child_elements, - entities : s.entities, - entity_encoding : s.entity_encoding, - debug : s.cleanup_debug, - indent : s.apply_source_formatting, - invalid_elements : s.invalid_elements, - verify_html : s.verify_html, - fix_content_duplication : s.fix_content_duplication, - convert_fonts_to_spans : s.convert_fonts_to_spans - }); - - // Wrap old theme - t = this.settings['theme']; - if (!tinyMCE.hasTheme(t)) { - fn = tinyMCE.callbacks; - to = {}; - - for (i=0; i 0) { - for (i=0; i 1 && tinyMCE.currentConfig != this.settings['index']) { - tinyMCE.settings = this.settings; - tinyMCE.currentConfig = this.settings['index']; - } - }, - - select : function() { - var oldInst = tinyMCE.selectedInstance; - - if (oldInst != this) { - if (oldInst) - oldInst.execCommand('mceEndTyping'); - - tinyMCE.dispatchCallback(this, 'select_instance_callback', 'selectInstance', this, oldInst); - tinyMCE.selectedInstance = this; - } - }, - - getBody : function() { - return this.contentBody ? this.contentBody : this.getDoc().body; - }, - - getDoc : function() { -// return this.contentDocument ? this.contentDocument : this.contentWindow.document; // Removed due to IE 5.5 ? - return this.contentWindow.document; - }, - - getWin : function() { - return this.contentWindow; - }, - - getContainerWin : function() { - return this.containerWindow ? this.containerWindow : window; - }, - - getViewPort : function() { - return tinyMCE.getViewPort(this.getWin()); - }, - - getParentNode : function(n, f) { - return tinyMCE.getParentNode(n, f, this.getBody()); - }, - - getParentElement : function(n, na, f) { - return tinyMCE.getParentElement(n, na, f, this.getBody()); - }, - - getParentBlockElement : function(n) { - return tinyMCE.getParentBlockElement(n, this.getBody()); - }, - - resizeToContent : function() { - var d = this.getDoc(), b = d.body, de = d.documentElement; - - this.iframeElement.style.height = (tinyMCE.isRealIE) ? b.scrollHeight : de.offsetHeight + 'px'; - }, - - addShortcut : function(m, k, d, cmd, ui, va) { - var n = typeof(k) == "number", ie = tinyMCE.isIE, c, sc, i, scl = this.shortcuts; - - if (!tinyMCE.getParam('custom_shortcuts')) - return false; - - m = m.toLowerCase(); - k = ie && !n ? k.toUpperCase() : k; - c = n ? null : k.charCodeAt(0); - d = d && d.indexOf('lang_') == 0 ? tinyMCE.getLang(d) : d; - - sc = { - alt : m.indexOf('alt') != -1, - ctrl : m.indexOf('ctrl') != -1, - shift : m.indexOf('shift') != -1, - charCode : c, - keyCode : n ? k : (ie ? c : null), - desc : d, - cmd : cmd, - ui : ui, - val : va - }; - - for (i=0; i 0) - rng.pasteHTML('
' + rng.htmlText + "
"); - - tinyMCE.triggerNodeChange(); - return; - } - } - } - - switch (command) { - case "mceRepaint": - this.repaint(); - return true; - - case "unlink": - // Unlink if caret is inside link - if (tinyMCE.isGecko && this.getSel().isCollapsed) { - focusElm = tinyMCE.getParentElement(focusElm, 'A'); - - if (focusElm) - this.selection.selectNode(focusElm, false); - } - - this.getDoc().execCommand(command, user_interface, value); - - tinyMCE.isGecko && this.getSel().collapseToEnd(); - - tinyMCE.triggerNodeChange(); - - return true; - - case "InsertUnorderedList": - case "InsertOrderedList": - this.getDoc().execCommand(command, user_interface, value); - tinyMCE.triggerNodeChange(); - break; - - case "Strikethrough": - this.getDoc().execCommand(command, user_interface, value); - tinyMCE.triggerNodeChange(); - break; - - case "mceSelectNode": - this.selection.selectNode(value); - tinyMCE.triggerNodeChange(); - tinyMCE.selectedNode = value; - break; - - case "FormatBlock": - if (value == null || value == "") { - var elm = tinyMCE.getParentElement(this.getFocusElement(), "p,div,h1,h2,h3,h4,h5,h6,pre,address,blockquote,dt,dl,dd,samp"); - - if (elm) - this.execCommand("mceRemoveNode", false, elm); - } else { - if (!this.cleanup.isValid(value)) - return true; - - if (tinyMCE.isGecko && new RegExp('<(div|blockquote|code|dt|dd|dl|samp)>', 'gi').test(value)) - value = value.replace(/[^a-z]/gi, ''); - - if (tinyMCE.isIE && new RegExp('blockquote|code|samp', 'gi').test(value)) { - var b = this.selection.getBookmark(); - this.getDoc().execCommand("FormatBlock", false, '

'); - tinyMCE.renameElement(tinyMCE.getParentBlockElement(this.getFocusElement()), value); - this.selection.moveToBookmark(b); - } else { - this.getDoc().execCommand("FormatBlock", false, value); - } - } - - tinyMCE.triggerNodeChange(); - - break; - - case "mceRemoveNode": - if (!value) - value = tinyMCE.getParentElement(this.getFocusElement()); - - if (tinyMCE.isIE) { - value.outerHTML = value.innerHTML; - } else { - var rng = value.ownerDocument.createRange(); - rng.setStartBefore(value); - rng.setEndAfter(value); - rng.deleteContents(); - rng.insertNode(rng.createContextualFragment(value.innerHTML)); - } - - tinyMCE.triggerNodeChange(); - - break; - - case "mceSelectNodeDepth": - var parentNode = this.getFocusElement(); - for (var i=0; parentNode; i++) { - if (parentNode.nodeName.toLowerCase() == "body") - break; - - if (parentNode.nodeName.toLowerCase() == "#text") { - i--; - parentNode = parentNode.parentNode; - continue; - } - - if (i == value) { - this.selection.selectNode(parentNode, false); - tinyMCE.triggerNodeChange(); - tinyMCE.selectedNode = parentNode; - return; - } - - parentNode = parentNode.parentNode; - } - - break; - - case "mceSetStyleInfo": - case "SetStyleInfo": - var rng = this.getRng(); - var sel = this.getSel(); - var scmd = value['command']; - var sname = value['name']; - var svalue = value['value'] == null ? '' : value['value']; - //var svalue = value['value'] == null ? '' : value['value']; - var wrapper = value['wrapper'] ? value['wrapper'] : "span"; - var parentElm = null; - var invalidRe = new RegExp("^BODY|HTML$", "g"); - var invalidParentsRe = tinyMCE.settings['merge_styles_invalid_parents'] != '' ? new RegExp(tinyMCE.settings['merge_styles_invalid_parents'], "gi") : null; - - // Whole element selected check - if (tinyMCE.isIE) { - // Control range - if (rng.item) - parentElm = rng.item(0); - else { - var pelm = rng.parentElement(); - var prng = doc.selection.createRange(); - prng.moveToElementText(pelm); - - if (rng.htmlText == prng.htmlText || rng.boundingWidth == 0) { - if (invalidParentsRe == null || !invalidParentsRe.test(pelm.nodeName)) - parentElm = pelm; - } - } - } else { - var felm = this.getFocusElement(); - if (sel.isCollapsed || (new RegExp('td|tr|tbody|table', 'gi').test(felm.nodeName) && sel.anchorNode == felm.parentNode)) - parentElm = felm; - } - - // Whole element selected - if (parentElm && !invalidRe.test(parentElm.nodeName)) { - if (scmd == "setstyle") - tinyMCE.setStyleAttrib(parentElm, sname, svalue); - - if (scmd == "setattrib") - tinyMCE.setAttrib(parentElm, sname, svalue); - - if (scmd == "removeformat") { - parentElm.style.cssText = ''; - tinyMCE.setAttrib(parentElm, 'class', ''); - } - - // Remove style/attribs from all children - var ch = tinyMCE.getNodeTree(parentElm, new Array(), 1); - for (var z=0; z=0; i--) { - var elm = nodes[i]; - var isNew = tinyMCE.getAttrib(elm, "mce_new") == "true"; - - elm.removeAttribute("mce_new"); - - // Is only child a element - if (elm.childNodes && elm.childNodes.length == 1 && elm.childNodes[0].nodeType == 1) { - //tinyMCE.debug("merge1" + isNew); - this._mergeElements(scmd, elm, elm.childNodes[0], isNew); - continue; - } - - // Is I the only child - if (elm.parentNode.childNodes.length == 1 && !invalidRe.test(elm.nodeName) && !invalidRe.test(elm.parentNode.nodeName)) { - //tinyMCE.debug("merge2" + isNew + "," + elm.nodeName + "," + elm.parentNode.nodeName); - if (invalidParentsRe == null || !invalidParentsRe.test(elm.parentNode.nodeName)) - this._mergeElements(scmd, elm.parentNode, elm, false); - } - } - - // Remove empty wrappers - var nodes = doc.getElementsByTagName(wrapper); - for (var i=nodes.length-1; i>=0; i--) { - var elm = nodes[i]; - var isEmpty = true; - - // Check if it has any attribs - var tmp = doc.createElement("body"); - tmp.appendChild(elm.cloneNode(false)); - - // Is empty span, remove it - tmp.innerHTML = tmp.innerHTML.replace(new RegExp('style=""|class=""', 'gi'), ''); - //tinyMCE.debug(tmp.innerHTML); - if (new RegExp('', 'gi').test(tmp.innerHTML)) { - for (var x=0; x 0) { - value = tinyMCE.replaceVar(value, "selection", selectedText); - tinyMCE.execCommand('mceInsertContent', false, value); - } - - tinyMCE.triggerNodeChange(); - break; - - case "mceSetAttribute": - if (typeof(value) == 'object') { - var targetElms = (typeof(value['targets']) == "undefined") ? "p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address" : value['targets']; - var targetNode = tinyMCE.getParentElement(this.getFocusElement(), targetElms); - - if (targetNode) { - targetNode.setAttribute(value['name'], value['value']); - tinyMCE.triggerNodeChange(); - } - } - break; - - case "mceSetCSSClass": - this.execCommand("mceSetStyleInfo", false, {command : "setattrib", name : "class", value : value}); - break; - - case "mceInsertRawHTML": - var key = 'tiny_mce_marker'; - - this.execCommand('mceBeginUndoLevel'); - - // Insert marker key - this.execCommand('mceInsertContent', false, key); - - // Store away scroll pos - var scrollX = this.getBody().scrollLeft + this.getDoc().documentElement.scrollLeft; - var scrollY = this.getBody().scrollTop + this.getDoc().documentElement.scrollTop; - - // Find marker and replace with RAW HTML - var html = this.getBody().innerHTML; - if ((pos = html.indexOf(key)) != -1) - tinyMCE.setInnerHTML(this.getBody(), html.substring(0, pos) + value + html.substring(pos + key.length)); - - // Restore scoll pos - this.contentWindow.scrollTo(scrollX, scrollY); - - this.execCommand('mceEndUndoLevel'); - - break; - - case "mceInsertContent": - // Force empty string - if (!value) - value = ''; - - var insertHTMLFailed = false; - - // Removed since it produced problems in IE - // this.getWin().focus(); - - if (tinyMCE.isGecko || tinyMCE.isOpera) { - try { - // Is plain text or HTML, &,   etc will be encoded wrong in FF - if (value.indexOf('<') == -1 && !value.match(/(&| |<|>)/g)) { - var r = this.getRng(); - var n = this.getDoc().createTextNode(tinyMCE.entityDecode(value)); - var s = this.getSel(); - var r2 = r.cloneRange(); - - // Insert text at cursor position - s.removeAllRanges(); - r.deleteContents(); - r.insertNode(n); - - // Move the cursor to the end of text - r2.selectNode(n); - r2.collapse(false); - s.removeAllRanges(); - s.addRange(r2); - } else { - value = tinyMCE.fixGeckoBaseHREFBug(1, this.getDoc(), value); - this.getDoc().execCommand('inserthtml', false, value); - tinyMCE.fixGeckoBaseHREFBug(2, this.getDoc(), value); - } - } catch (ex) { - insertHTMLFailed = true; - } - - if (!insertHTMLFailed) { - tinyMCE.triggerNodeChange(); - return; - } - } - - if (!tinyMCE.isIE) { - var isHTML = value.indexOf('<') != -1; - var sel = this.getSel(); - var rng = this.getRng(); - - if (isHTML) { - if (tinyMCE.isSafari) { - var tmpRng = this.getDoc().createRange(); - - tmpRng.setStart(this.getBody(), 0); - tmpRng.setEnd(this.getBody(), 0); - - value = tmpRng.createContextualFragment(value); - } else - value = rng.createContextualFragment(value); - } else { - // Setup text node - var el = document.createElement("div"); - el.innerHTML = value; - value = el.firstChild.nodeValue; - value = doc.createTextNode(value); - } - - // Insert plain text in Safari - if (tinyMCE.isSafari && !isHTML) { - this.execCommand('InsertText', false, value.nodeValue); - tinyMCE.triggerNodeChange(); - return true; - } else if (tinyMCE.isSafari && isHTML) { - rng.deleteContents(); - rng.insertNode(value); - tinyMCE.triggerNodeChange(); - return true; - } - - rng.deleteContents(); - - // If target node is text do special treatment, (Mozilla 1.3 fix) - if (rng.startContainer.nodeType == 3) { - var node = rng.startContainer.splitText(rng.startOffset); - node.parentNode.insertBefore(value, node); - } else - rng.insertNode(value); - - if (!isHTML) { - // Removes weird selection trails - sel.selectAllChildren(doc.body); - sel.removeAllRanges(); - - // Move cursor to end of content - var rng = doc.createRange(); - - rng.selectNode(value); - rng.collapse(false); - - sel.addRange(rng); - } else - rng.collapse(false); - - tinyMCE.fixGeckoBaseHREFBug(2, this.getDoc(), value); - } else { - var rng = doc.selection.createRange(), tmpRng = null; - var c = value.indexOf('"; - } - - if (hc) { - cn = n.childNodes; - - for (i=0, l=cn.length; i'; - - return h; - }, - - _serializeAttribute : function(n, r, an) { - var av = '', t, os = this.settings.on_save; - - if (os && (an.indexOf('mce_') == 0 || an.indexOf('_moz') == 0)) - return ''; - - if (os && this.mceAttribs[an]) - av = this._getAttrib(n, this.mceAttribs[an]); - - if (av.length == 0) - av = this._getAttrib(n, an); - - if (av.length == 0 && r.defaultAttribs && (t = r.defaultAttribs[an])) { - av = t; - - if (av == "mce_empty") - return " " + an + '=""'; - } - - if (r.forceAttribs && (t = r.forceAttribs[an])) - av = t; - - if (os && av.length != 0 && this.settings.url_converter.length != 0 && /^(src|href|longdesc)$/.test(an)) - av = this._urlConverter(this, n, av); - - if (av.length != 0 && r.validAttribValues && r.validAttribValues[an] && !r.validAttribValues[an].test(av)) - return ""; - - if (av.length != 0 && av == "{$uid}") - av = "uid_" + (this.idCount++); - - if (av.length != 0) { - if (an.indexOf('on') != 0) - av = this.xmlEncode(av, 1); - - return " " + an + "=" + '"' + av + '"'; - } - - return ""; - }, - - formatHTML : function(h) { - var s = this.settings, p = '', i = 0, li = 0, o = '', l; - - // Replace BR in pre elements to \n - h = h.replace(/]*)>(.*?)<\/pre>/gi, function (a, b, c) { - c = c.replace(//gi, '\n'); - return '' + c + ''; - }); - - h = h.replace(/\r/g, ''); // Windows sux, isn't carriage return a thing of the past :) - h = '\n' + h; - h = h.replace(new RegExp('\\n\\s+', 'gi'), '\n'); // Remove previous formatting - h = h.replace(this.nlBeforeRe, '\n<$1$2>'); - h = h.replace(this.nlAfterRe, '<$1$2>\n'); - h = h.replace(this.nlBeforeAfterRe, '\n<$1$2$3>\n'); - h += '\n'; - - //tinyMCE.debug(h); - - while ((i = h.indexOf('\n', i + 1)) != -1) { - if ((l = h.substring(li + 1, i)).length != 0) { - if (this.ouRe.test(l) && p.length >= s.indent_levels) - p = p.substring(s.indent_levels); - - o += p + l + '\n'; - - if (this.inRe.test(l)) - p += this.inStr; - } - - li = i; - } - - //tinyMCE.debug(h); - - return o; - }, - - xmlEncode : function(s, skip_apos) { - var cl = this, re = !skip_apos ? this.xmlEncodeAposRe : this.xmlEncodeRe; - - this._setupEntities(); // Will intialize lookup table - - switch (this.settings.entity_encoding) { - case "raw": - return tinyMCE.xmlEncode(s, skip_apos); - - case "named": - return s.replace(re, function (c, b) { - b = cl.entities[c.charCodeAt(0)]; - - return b ? '&' + b + ';' : c; - }); - - case "numeric": - return s.replace(re, function (c, b) { - return b ? '&#' + c.charCodeAt(0) + ';' : c; - }); - } - - return s; - }, - - split : function(re, s) { - var c = s.split(re); - var i, l, o = new Array(); - - for (i=0, l=c.length; i' : '>' + h + ''; - - return o; -}; - -TinyMCE_Engine.prototype.createTag = function(d, tn, a, h) { - var o = d.createElement(tn); - - if (a) { - for (n in a) { - if (typeof(a[n]) != 'function' && a[n] != null) - tinyMCE.setAttrib(o, n, a[n]); - } - } - - if (h) - o.innerHTML = h; - - return o; -}; - -TinyMCE_Engine.prototype.getElementByAttributeValue = function(n, e, a, v) { - return (n = this.getElementsByAttributeValue(n, e, a, v)).length == 0 ? null : n[0]; -}; - -TinyMCE_Engine.prototype.getElementsByAttributeValue = function(n, e, a, v) { - var i, nl = n.getElementsByTagName(e), o = new Array(); - - for (i=0; i/gi, ''); - h = h.replace(/<\/em>/gi, ''); - } - - if (tinyMCE.isRealIE) { - // Since MSIE handles invalid HTML better that valid XHTML we - // need to make some things invalid.


gets converted to
. - h = h.replace(/\s\/>/g, '>'); - - // Since MSIE auto generated emtpy P tags some times we must tell it to keep the real ones - h = h.replace(/]*)>\u00A0?<\/p>/gi, ' 

'); // Keep empty paragraphs - h = h.replace(/]*)>\s* \s*<\/p>/gi, ' 

'); // Keep empty paragraphs - h = h.replace(/]*)>\s+<\/p>/gi, ' 

'); // Keep empty paragraphs - - // Remove first comment - e.innerHTML = tinyMCE.uniqueTag + h; - e.firstChild.removeNode(true); - - // Remove weird auto generated empty paragraphs unless it's supposed to be there - nl = e.getElementsByTagName("p"); - for (i=nl.length-1; i>=0; i--) { - n = nl[i]; - - if (n.nodeName == 'P' && !n.hasChildNodes() && !n.mce_keep) - n.parentNode.removeChild(n); - } - } else { - h = this.fixGeckoBaseHREFBug(1, e, h); - e.innerHTML = h; - this.fixGeckoBaseHREFBug(2, e, h); - } -}; - -TinyMCE_Engine.prototype.getOuterHTML = function(e) { - if (tinyMCE.isIE) - return e.outerHTML; - - var d = e.ownerDocument.createElement("body"); - d.appendChild(e.cloneNode(true)); - return d.innerHTML; -}; - -TinyMCE_Engine.prototype.setOuterHTML = function(e, h, d) { - var d = typeof(d) == "undefined" ? e.ownerDocument : d, i, nl, t; - - if (tinyMCE.isIE && e.nodeType == 1) - e.outerHTML = h; - else { - t = d.createElement("body"); - t.innerHTML = h; - - for (i=0, nl=t.childNodes; i-1; i--) { - if (ar[i].specified && ar[i].nodeValue) - ne.setAttribute(ar[i].nodeName.toLowerCase(), ar[i].nodeValue); - } - - ar = e.childNodes; - for (i=0; i= strTok2.length) { - for (var i=0; i= strTok2.length || strTok1[i] != strTok2[i]) { - breakPoint = i + 1; - break; - } - } - } - - if (strTok1.length < strTok2.length) { - for (var i=0; i= strTok1.length || strTok1[i] != strTok2[i]) { - breakPoint = i + 1; - break; - } - } - } - - if (breakPoint == 1) - return targetURL.path; - - for (var i=0; i<(strTok1.length-(breakPoint-1)); i++) - outPath += "../"; - - for (var i=breakPoint-1; i=0; i--) { - if (baseURLParts[i].length == 0) - continue; - - newBaseURLParts[newBaseURLParts.length] = baseURLParts[i]; - } - baseURLParts = newBaseURLParts.reverse(); - - // Merge relURLParts chunks - var newRelURLParts = new Array(); - var numBack = 0; - for (var i=relURLParts.length-1; i>=0; i--) { - if (relURLParts[i].length == 0 || relURLParts[i] == ".") - continue; - - if (relURLParts[i] == '..') { - numBack++; - continue; - } - - if (numBack > 0) { - numBack--; - continue; - } - - newRelURLParts[newRelURLParts.length] = relURLParts[i]; - } - - relURLParts = newRelURLParts.reverse(); - - // Remove end from absolute path - var len = baseURLParts.length-numBack; - var absPath = (len <= 0 ? "" : "/") + baseURLParts.slice(0, len).join('/') + "/" + relURLParts.join('/'); - var start = "", end = ""; - - // Build output URL - relURL.protocol = baseURL.protocol; - relURL.host = baseURL.host; - relURL.port = baseURL.port; - - // Re-add trailing slash if it's removed - if (relURL.path.charAt(relURL.path.length-1) == "/") - absPath += "/"; - - relURL.path = absPath; - - return this.serializeURL(relURL); -}; - -TinyMCE_Engine.prototype.convertURL = function(url, node, on_save) { - var prot = document.location.protocol; - var host = document.location.hostname; - var port = document.location.port; - - // Pass through file protocol - if (prot == "file:") - return url; - - // Something is wrong, remove weirdness - url = tinyMCE.regexpReplace(url, '(http|https):///', '/'); - - // Mailto link or anchor (Pass through) - if (url.indexOf('mailto:') != -1 || url.indexOf('javascript:') != -1 || tinyMCE.regexpReplace(url,'[ \t\r\n\+]|%20','').charAt(0) == "#") - return url; - - // Fix relative/Mozilla - if (!tinyMCE.isIE && !on_save && url.indexOf("://") == -1 && url.charAt(0) != '/') - return tinyMCE.settings['base_href'] + url; - - // Handle relative URLs - if (on_save && tinyMCE.getParam('relative_urls')) { - var curl = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], url); - if (curl.charAt(0) == '/') - curl = tinyMCE.settings['document_base_prefix'] + curl; - - var urlParts = tinyMCE.parseURL(curl); - var tmpUrlParts = tinyMCE.parseURL(tinyMCE.settings['document_base_url']); - - // Force relative - if (urlParts['host'] == tmpUrlParts['host'] && (urlParts['port'] == tmpUrlParts['port'])) - return tinyMCE.convertAbsoluteURLToRelativeURL(tinyMCE.settings['document_base_url'], curl); - } - - // Handle absolute URLs - if (!tinyMCE.getParam('relative_urls')) { - var urlParts = tinyMCE.parseURL(url); - var baseUrlParts = tinyMCE.parseURL(tinyMCE.settings['base_href']); - - // Force absolute URLs from relative URLs - url = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], url); - - // If anchor and path is the same page - if (urlParts['anchor'] && urlParts['path'] == baseUrlParts['path']) - return "#" + urlParts['anchor']; - } - - // Remove current domain - if (tinyMCE.getParam('remove_script_host')) { - var start = "", portPart = ""; - - if (port != "") - portPart = ":" + port; - - start = prot + "//" + host + portPart + "/"; - - if (url.indexOf(start) == 0) - url = url.substring(start.length-1); - } - - return url; -}; - -TinyMCE_Engine.prototype.convertAllRelativeURLs = function(body) { - var i, elms, src, href, mhref, msrc; - - // Convert all image URL:s to absolute URL - elms = body.getElementsByTagName("img"); - for (i=0; i bookmark.index) { - try { - rng.addElement(nl[bookmark.index]); - } catch (ex) { - // Might be thrown if the node no longer exists - } - } - } else { - // Try/catch needed since this operation breaks when TinyMCE is placed in hidden divs/tabs - try { - // Incorrect bookmark - if (bookmark.start < 0) - return true; - - rng = inst.getSel().createRange(); - rng.moveToElementText(inst.getBody()); - rng.collapse(true); - rng.moveStart('character', bookmark.start); - rng.moveEnd('character', bookmark.length); - } catch (ex) { - return true; - } - } - - rng.select(); - - win.scrollTo(bookmark.scrollX, bookmark.scrollY); - return true; - } - - if (tinyMCE.isGecko || tinyMCE.isOpera) { - if (!sel) - return false; - - if (bookmark.rng) { - sel.removeAllRanges(); - sel.addRange(bookmark.rng); - } - - if (bookmark.start != -1 && bookmark.end != -1) { - try { - sd = this._getTextPos(b, bookmark.start, bookmark.end); - rng = doc.createRange(); - rng.setStart(sd.startNode, sd.startOffset); - rng.setEnd(sd.endNode, sd.endOffset); - sel.removeAllRanges(); - sel.addRange(rng); - win.focus(); - } catch (ex) { - // Ignore - } - } - - /* - if (typeof(bookmark.index) != 'undefined') { - tinyMCE.selectElements(b, 'IMG', function (n) { - if (bookmark.index-- == 0) { - // Select image in Gecko here - } - - return false; - }); - } - */ - - win.scrollTo(bookmark.scrollX, bookmark.scrollY); - return true; - } - - return false; - }, - - _getPosText : function(r, sn, en) { - var w = document.createTreeWalker(r, NodeFilter.SHOW_TEXT, null, false), n, p = 0, d = {}; - - while ((n = w.nextNode()) != null) { - if (n == sn) - d.start = p; - - if (n == en) { - d.end = p; - return d; - } - - p += n.nodeValue ? n.nodeValue.length : 0; - } - - return null; - }, - - _getTextPos : function(r, sp, ep) { - var w = document.createTreeWalker(r, NodeFilter.SHOW_TEXT, null, false), n, p = 0, d = {}; - - while ((n = w.nextNode()) != null) { - p += n.nodeValue ? n.nodeValue.length : 0; - - if (p >= sp && !d.startNode) { - d.startNode = n; - d.startOffset = sp - (p - n.nodeValue.length); - } - - if (p >= ep) { - d.endNode = n; - d.endOffset = ep - (p - n.nodeValue.length); - - return d; - } - } - - return null; - }, - - selectNode : function(node, collapse, select_text_node, to_start) { - var inst = this.instance, sel, rng, nodes; - - if (!node) - return; - - if (typeof(collapse) == "undefined") - collapse = true; - - if (typeof(select_text_node) == "undefined") - select_text_node = false; - - if (typeof(to_start) == "undefined") - to_start = true; - - if (inst.settings.auto_resize) - inst.resizeToContent(); - - if (tinyMCE.isRealIE) { - rng = inst.getDoc().body.createTextRange(); - - try { - rng.moveToElementText(node); - - if (collapse) - rng.collapse(to_start); - - rng.select(); - } catch (e) { - // Throws illigal agrument in MSIE some times - } - } else { - sel = this.getSel(); - - if (!sel) - return; - - if (tinyMCE.isSafari) { - sel.setBaseAndExtent(node, 0, node, node.innerText.length); - - if (collapse) { - if (to_start) - sel.collapseToStart(); - else - sel.collapseToEnd(); - } - - this.scrollToNode(node); - - return; - } - - rng = inst.getDoc().createRange(); - - if (select_text_node) { - // Find first textnode in tree - nodes = tinyMCE.getNodeTree(node, new Array(), 3); - if (nodes.length > 0) - rng.selectNodeContents(nodes[0]); - else - rng.selectNodeContents(node); - } else - rng.selectNode(node); - - if (collapse) { - // Special treatment of textnode collapse - if (!to_start && node.nodeType == 3) { - rng.setStart(node, node.nodeValue.length); - rng.setEnd(node, node.nodeValue.length); - } else - rng.collapse(to_start); - } - - sel.removeAllRanges(); - sel.addRange(rng); - } - - this.scrollToNode(node); - - // Set selected element - tinyMCE.selectedElement = null; - if (node.nodeType == 1) - tinyMCE.selectedElement = node; - }, - - scrollToNode : function(node) { - var inst = this.instance, w = inst.getWin(), vp = inst.getViewPort(), pos = tinyMCE.getAbsPosition(node), cvp, p, cwin; - - // Only scroll if out of visible area - if (pos.absLeft < vp.left || pos.absLeft > vp.left + vp.width || pos.absTop < vp.top || pos.absTop > vp.top + (vp.height-25)) - w.scrollTo(pos.absLeft, pos.absTop - vp.height + 25); - - // Scroll container window - if (inst.settings.auto_resize) { - cwin = inst.getContainerWin(); - cvp = tinyMCE.getViewPort(cwin); - p = this.getAbsPosition(node); - - if (p.absLeft < cvp.left || p.absLeft > cvp.left + cvp.width || p.absTop < cvp.top || p.absTop > cvp.top + cvp.height) - cwin.scrollTo(p.absLeft, p.absTop - cvp.height + 25); - } - }, - - getAbsPosition : function(n) { - var pos = tinyMCE.getAbsPosition(n), ipos = tinyMCE.getAbsPosition(this.instance.iframeElement); - - return { - absLeft : ipos.absLeft + pos.absLeft, - absTop : ipos.absTop + pos.absTop - }; - }, - - getSel : function() { - var inst = this.instance; - - if (tinyMCE.isRealIE) - return inst.getDoc().selection; - - return inst.contentWindow.getSelection(); - }, - - getRng : function() { - var s = this.getSel(); - - if (s == null) - return null; - - if (tinyMCE.isRealIE) - return s.createRange(); - - if (tinyMCE.isSafari && !s.getRangeAt) - return '' + window.getSelection(); - - if (s.rangeCount > 0) - return s.getRangeAt(0); - - return null; - }, - - isCollapsed : function() { - var r = this.getRng(); - - if (r.item) - return false; - - return r.boundingWidth == 0 || this.getSel().isCollapsed; - }, - - collapse : function(b) { - var r = this.getRng(), s = this.getSel(); - - if (r.select) { - r.collapse(b); - r.select(); - } else { - if (b) - s.collapseToStart(); - else - s.collapseToEnd(); - } - }, - - getFocusElement : function() { - var inst = this.instance, doc, rng, sel, elm; - - if (tinyMCE.isRealIE) { - doc = inst.getDoc(); - rng = doc.selection.createRange(); - - // if (rng.collapse) - // rng.collapse(true); - - elm = rng.item ? rng.item(0) : rng.parentElement(); - } else { - if (!tinyMCE.isSafari && inst.isHidden()) - return inst.getBody(); - - sel = this.getSel(); - rng = this.getRng(); - - if (!sel || !rng) - return null; - - elm = rng.commonAncestorContainer; - //elm = (sel && sel.anchorNode) ? sel.anchorNode : null; - - // Handle selection a image or other control like element such as anchors - if (!rng.collapsed) { - // Is selection small - if (rng.startContainer == rng.endContainer) { - if (rng.startOffset - rng.endOffset < 2) { - if (rng.startContainer.hasChildNodes()) - elm = rng.startContainer.childNodes[rng.startOffset]; - } - } - } - - // Get the element parent of the node - elm = tinyMCE.getParentElement(elm); - - //if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "img") - // elm = tinyMCE.selectedElement; - } - - return elm; - } - - }; - -/* file:jscripts/tiny_mce/classes/TinyMCE_UndoRedo.class.js */ - -function TinyMCE_UndoRedo(inst) { - this.instance = inst; - this.undoLevels = new Array(); - this.undoIndex = 0; - this.typingUndoIndex = -1; - this.undoRedo = true; -}; - -TinyMCE_UndoRedo.prototype = { - add : function(l) { - var b, customUndoLevels, newHTML, inst = this.instance, i, ul, ur; - - if (l) { - this.undoLevels[this.undoLevels.length] = l; - return true; - } - - if (this.typingUndoIndex != -1) { - this.undoIndex = this.typingUndoIndex; - - if (tinyMCE.typingUndoIndex != -1) - tinyMCE.undoIndex = tinyMCE.typingUndoIndex; - } - - newHTML = tinyMCE.trim(inst.getBody().innerHTML); - if (this.undoLevels[this.undoIndex] && newHTML != this.undoLevels[this.undoIndex].content) { - //tinyMCE.debug(newHTML, this.undoLevels[this.undoIndex].content); - - tinyMCE.dispatchCallback(inst, 'onchange_callback', 'onChange', inst); - - // Time to compress - customUndoLevels = tinyMCE.settings['custom_undo_redo_levels']; - if (customUndoLevels != -1 && this.undoLevels.length > customUndoLevels) { - for (i=0; i 0) { - this.undoIndex--; - - tinyMCE.setInnerHTML(inst.getBody(), this.undoLevels[this.undoIndex].content); - inst.repaint(); - - if (inst.settings.custom_undo_redo_restore_selection) - inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark); - } - }, - - redo : function() { - var inst = this.instance; - - tinyMCE.execCommand("mceEndTyping"); - - if (this.undoIndex < (this.undoLevels.length-1)) { - this.undoIndex++; - - tinyMCE.setInnerHTML(inst.getBody(), this.undoLevels[this.undoIndex].content); - inst.repaint(); - - if (inst.settings.custom_undo_redo_restore_selection) - inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark); - } - - tinyMCE.triggerNodeChange(); - } - - }; - -/* file:jscripts/tiny_mce/classes/TinyMCE_ForceParagraphs.class.js */ - -var TinyMCE_ForceParagraphs = { - _insertPara : function(inst, e) { - var doc = inst.getDoc(), sel = inst.getSel(), body = inst.getBody(), win = inst.contentWindow, rng = sel.getRangeAt(0); - var rootElm = doc.documentElement, blockName = "P", startNode, endNode, startBlock, endBlock; - var rngBefore, rngAfter, direct, startNode, startOffset, endNode, endOffset, b = tinyMCE.isOpera ? inst.selection.getBookmark() : null; - var paraBefore, paraAfter, startChop, endChop, contents; - - function isEmpty(para) { - function isEmptyHTML(html) { - return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; - } - - // Check for images - if (para.getElementsByTagName("img").length > 0) - return false; - - // Check for tables - if (para.getElementsByTagName("table").length > 0) - return false; - - // Check for HRs - if (para.getElementsByTagName("hr").length > 0) - return false; - - // Check all textnodes - var nodes = tinyMCE.getNodeTree(para, new Array(), 3); - for (var i=0; i <" + blockName + "> "; - paraAfter = body.childNodes[1]; - } - - inst.selection.moveToBookmark(b); - inst.selection.selectNode(paraAfter, true, true); - - return true; - } - - // Place first part within new paragraph - if (startChop.nodeName == blockName) - rngBefore.setStart(startChop, 0); - else - rngBefore.setStartBefore(startChop); - - rngBefore.setEnd(startNode, startOffset); - paraBefore.appendChild(rngBefore.cloneContents()); - - // Place secound part within new paragraph - rngAfter.setEndAfter(endChop); - rngAfter.setStart(endNode, endOffset); - contents = rngAfter.cloneContents(); - - if (contents.firstChild && contents.firstChild.nodeName == blockName) { - /* var nodes = contents.firstChild.childNodes; - for (var i=0; i= r.startOffset && nv.charAt(r.startOffset - 1) == ' ') - s = true;*/ - - // Only remove BRs if we are at the end of line #bug 1464152 - if (nv != null && r.startOffset == nv.length) - sn.nextSibling.parentNode.removeChild(sn.nextSibling); - } - - if (inst.settings.auto_resize) - inst.resizeToContent(); - - return s; - } - - }; - -/* file:jscripts/tiny_mce/classes/TinyMCE_Layer.class.js */ - -function TinyMCE_Layer(id, bm) { - this.id = id; - this.blockerElement = null; - this.events = false; - this.element = null; - this.blockMode = typeof(bm) != 'undefined' ? bm : true; - this.doc = document; -}; - -TinyMCE_Layer.prototype = { - moveRelativeTo : function(re, p) { - var rep = this.getAbsPosition(re); - var w = parseInt(re.offsetWidth); - var h = parseInt(re.offsetHeight); - var e = this.getElement(); - var ew = parseInt(e.offsetWidth); - var eh = parseInt(e.offsetHeight); - var x, y; - - switch (p) { - case "tl": - x = rep.absLeft; - y = rep.absTop; - break; - - case "tr": - x = rep.absLeft + w; - y = rep.absTop; - break; - - case "bl": - x = rep.absLeft; - y = rep.absTop + h; - break; - - case "br": - x = rep.absLeft + w; - y = rep.absTop + h; - break; - - case "cc": - x = rep.absLeft + (w / 2) - (ew / 2); - y = rep.absTop + (h / 2) - (eh / 2); - break; - } - - this.moveTo(x, y); - }, - - moveBy : function(x, y) { - var e = this.getElement(); - this.moveTo(parseInt(e.style.left) + x, parseInt(e.style.top) + y); - }, - - moveTo : function(x, y) { - var e = this.getElement(); - - e.style.left = x + "px"; - e.style.top = y + "px"; - - this.updateBlocker(); - }, - - resizeBy : function(w, h) { - var e = this.getElement(); - this.resizeTo(parseInt(e.style.width) + w, parseInt(e.style.height) + h); - }, - - resizeTo : function(w, h) { - var e = this.getElement(); - - if (w != null) - e.style.width = w + "px"; - - if (h != null) - e.style.height = h + "px"; - - this.updateBlocker(); - }, - - show : function() { - this.getElement().style.display = 'block'; - this.updateBlocker(); - }, - - hide : function() { - this.getElement().style.display = 'none'; - this.updateBlocker(); - }, - - isVisible : function() { - return this.getElement().style.display == 'block'; - }, - - getElement : function() { - if (!this.element) - this.element = this.doc.getElementById(this.id); - - return this.element; - }, - - setBlockMode : function(s) { - this.blockMode = s; - }, - - updateBlocker : function() { - var e, b, x, y, w, h; - - b = this.getBlocker(); - if (b) { - if (this.blockMode) { - e = this.getElement(); - x = this.parseInt(e.style.left); - y = this.parseInt(e.style.top); - w = this.parseInt(e.offsetWidth); - h = this.parseInt(e.offsetHeight); - - b.style.left = x + 'px'; - b.style.top = y + 'px'; - b.style.width = w + 'px'; - b.style.height = h + 'px'; - b.style.display = e.style.display; - } else - b.style.display = 'none'; - } - }, - - getBlocker : function() { - var d, b; - - if (!this.blockerElement && this.blockMode) { - d = this.doc; - b = d.getElementById(this.id + "_blocker"); - - if (!b) { - b = d.createElement("iframe"); - - b.setAttribute('id', this.id + "_blocker"); - b.style.cssText = 'display: none; position: absolute; left: 0; top: 0'; - b.src = 'javascript:false;'; - b.frameBorder = '0'; - b.scrolling = 'no'; - - d.body.appendChild(b); - } - - this.blockerElement = b; - } - - return this.blockerElement; - }, - - getAbsPosition : function(n) { - var p = {absLeft : 0, absTop : 0}; - - while (n) { - p.absLeft += n.offsetLeft; - p.absTop += n.offsetTop; - n = n.offsetParent; - } - - return p; - }, - - create : function(n, c, p, h) { - var d = this.doc, e = d.createElement(n); - - e.setAttribute('id', this.id); - - if (c) - e.className = c; - - if (!p) - p = d.body; - - if (h) - e.innerHTML = h; - - p.appendChild(e); - - return this.element = e; - }, - - exists : function() { - return this.doc.getElementById(this.id) != null; - }, - - parseInt : function(s) { - if (s == null || s == '') - return 0; - - return parseInt(s); - }, - - remove : function() { - var e = this.getElement(), b = this.getBlocker(); - - if (e) - e.parentNode.removeChild(e); - - if (b) - b.parentNode.removeChild(b); - } - - }; - -/* file:jscripts/tiny_mce/classes/TinyMCE_Menu.class.js */ - -function TinyMCE_Menu() { - var id; - - if (typeof(tinyMCE.menuCounter) == "undefined") - tinyMCE.menuCounter = 0; - - id = "mc_menu_" + tinyMCE.menuCounter++; - - TinyMCE_Layer.call(this, id, true); - - this.id = id; - this.items = new Array(); - this.needsUpdate = true; -}; - -TinyMCE_Menu.prototype = tinyMCE.extend(TinyMCE_Layer.prototype, { - init : function(s) { - var n; - - // Default params - this.settings = { - separator_class : 'mceMenuSeparator', - title_class : 'mceMenuTitle', - disabled_class : 'mceMenuDisabled', - menu_class : 'mceMenu', - drop_menu : true - }; - - for (n in s) - this.settings[n] = s[n]; - - this.create('div', this.settings.menu_class); - }, - - clear : function() { - this.items = new Array(); - }, - - addTitle : function(t) { - this.add({type : 'title', text : t}); - }, - - addDisabled : function(t) { - this.add({type : 'disabled', text : t}); - }, - - addSeparator : function() { - this.add({type : 'separator'}); - }, - - addItem : function(t, js) { - this.add({text : t, js : js}); - }, - - add : function(mi) { - this.items[this.items.length] = mi; - this.needsUpdate = true; - }, - - update : function() { - var e = this.getElement(), h = '', i, t, m = this.items, s = this.settings; - - if (this.settings.drop_menu) - h += ''; - - h += ''; - - for (i=0; i'; - } - - h += '
'; - break; - - case 'title': - h += '
' + t + ''; - break; - - case 'disabled': - h += '
' + t + ''; - break; - - default: - h += '
' + t + ''; - } - - h += '
'; - - e.innerHTML = h; - - this.needsUpdate = false; - this.updateBlocker(); - }, - - show : function() { - var nl, i; - - if (tinyMCE.lastMenu == this) - return; - - if (this.needsUpdate) - this.update(); - - if (tinyMCE.lastMenu && tinyMCE.lastMenu != this) - tinyMCE.lastMenu.hide(); - - TinyMCE_Layer.prototype.show.call(this); - - if (!tinyMCE.isOpera) { - // Accessibility stuff -/* nl = this.getElement().getElementsByTagName("a"); - if (nl.length > 0) - nl[0].focus();*/ - } - - tinyMCE.lastMenu = this; - } - - }); - -/* file:jscripts/tiny_mce/classes/TinyMCE_Compatibility.class.js */ - -if (!Function.prototype.call) { - Function.prototype.call = function() { - var a = arguments, s = a[0], i, as = '', r, o; - - for (i=1; i 1 ? ',' : '') + 'a[' + i + ']'; - - o = s._fu; - s._fu = this; - r = eval('s._fu(' + as + ')'); - s._fu = o; - - return r; - }; -}; - -/* file:jscripts/tiny_mce/classes/TinyMCE_Debug.class.js */ - -TinyMCE_Engine.prototype.debug = function() { - var m = "", a, i, l = tinyMCE.log.length; - - for (i=0, a = this.debug.arguments; i'; - h += ''; - - return h; -} - -function pickColor(e, target_form_element) { - if ((e.keyCode == 32 || e.keyCode == 13) || e.type == "mousedown") - tinyMCEPopup.pickColor(e, target_form_element); -} - -function updateColor(img_id, form_element_id) { - document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value; -} - -function setBrowserDisabled(id, state) { - var img = document.getElementById(id); - var lnk = document.getElementById(id + "_link"); - - if (lnk) { - if (state) { - lnk.setAttribute("realhref", lnk.getAttribute("href")); - lnk.removeAttribute("href"); - tinyMCE.switchClass(img, 'mceButtonDisabled', true); - } else { - lnk.setAttribute("href", lnk.getAttribute("realhref")); - tinyMCE.switchClass(img, 'mceButtonNormal', false); - } - } -} - -function getBrowserHTML(id, target_form_element, type, prefix) { - var option = prefix + "_" + type + "_browser_callback"; - var cb = tinyMCE.getParam(option, tinyMCE.getParam("file_browser_callback")); - if (cb == null) - return ""; - - var html = ""; - - html += ''; - html += ''; - - return html; -} - -function openBrower(img_id, target_form_element, type, option) { - var img = document.getElementById(img_id); - - if (img.className != "mceButtonDisabled") - tinyMCEPopup.openBrowser(target_form_element, type, option); -} - -function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { - if (!form_obj || !form_obj.elements[field_name]) - return; - - var sel = form_obj.elements[field_name]; - - var found = false; - for (var i=0; i x && mx < x + w && my > y && my < y + h)) { - MCLayer.visibleLayer = null; - - if (l.autoHideCallback && l.autoHideCallback(l, e, mx, my)) - return true; - - l.hide(); - } - } - }, - - addCSSClass : function(e, c) { - this.removeCSSClass(e, c); - var a = this.explode(' ', e.className); - a[a.length] = c; - e.className = a.join(' '); - }, - - removeCSSClass : function(e, c) { - var a = this.explode(' ', e.className), i; - - for (i=0; i parseInt(v)) - st = this.mark(f, n); - } - } - - return st; - }, - - hasClass : function(n, c, d) { - return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className); - }, - - getNum : function(n, c) { - c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0]; - c = c.replace(/[^0-9]/g, ''); - - return c; - }, - - addClass : function(n, c, b) { - var o = this.removeClass(n, c); - n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c; - }, - - removeClass : function(n, c) { - c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' '); - return n.className = c != ' ' ? c : ''; - }, - - tags : function(f, s) { - return f.getElementsByTagName(s); - }, - - mark : function(f, n) { - var s = this.settings; - - this.addClass(n, s.invalid_cls); - this.markLabels(f, n, s.invalid_cls); - - return false; - }, - - markLabels : function(f, n, ic) { - var nl, i; - - nl = this.tags(f, "label"); - for (i=0; i" + retVal + " of " + ultraSimpleMailerTotalMails + ""); - - // progressbar - retVal = parseInt(retVal); - if (retVal > 0) { - var percent = Math.round((retVal/ultraSimpleMailerTotalMails)*100); - progressBarUpdate('ultraSimpleMailerUpgradeStatus', percent); - } - setTimeout("ultraSimpleMailerUpdateStatus()", 500); -} \ No newline at end of file diff --git a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerConfiguratorPreValueEditor.cs b/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerConfiguratorPreValueEditor.cs deleted file mode 100644 index d3f72e9774..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerConfiguratorPreValueEditor.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Web.UI; -using System.Web.UI.WebControls; - -using umbraco.BusinessLogic; -using umbraco.DataLayer; - -namespace umbraco.editorControls.ultraSimpleMailer -{ - /// - /// Summary description for mailerConfiguratorPreValueEditor. - /// - public class mailerConfiguratorPreValueEditor : umbraco.editorControls.tinymce.tinyMCEPreValueConfigurator - { - - // UI controls - private TextBox _textboxEmail; - private TextBox _textboxSender; - private DropDownList _dropdownlistMG; - - // referenced datatype - private cms.businesslogic.datatype.BaseDataType _datatype; - - public static ISqlHelper SqlHelper - { - get { return Application.SqlHelper; } - } - - public mailerConfiguratorPreValueEditor(cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) - { - // state it knows its datatypedefinitionid - _datatype = DataType; - setupChildControls(); - - } - - private void setupChildControls() - { - - _dropdownlistMG = new DropDownList(); - _dropdownlistMG.ID = "memberGroup"; - - _textboxSender = new TextBox(); - _textboxSender.ID = "SenderName"; - _textboxEmail = new TextBox(); - _textboxEmail.ID = "SenderEmail"; - - // put the childcontrols in context - ensuring that - // the viewstate is persisted etc. - Controls.Add(_dropdownlistMG); - Controls.Add(_textboxSender); - Controls.Add(_textboxEmail); - - - // Get all membergroups - foreach(cms.businesslogic.member.MemberGroup mg in cms.businesslogic.member.MemberGroup.GetAll) - _dropdownlistMG.Items.Add(new ListItem(mg.Text, mg.Id.ToString())); - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad (e); - if (!Page.IsPostBack) - { - string[] config = Configuration.Split("|".ToCharArray()); - if (config.Length > 9) - { - _textboxSender.Text = config[9]; - _textboxEmail.Text = config[10]; - _dropdownlistMG.SelectedValue = config[11]; - } - - } - } - - public Control Editor - { - get - { - return this; - } - } - - public override void Save() - { - base.Save(); - - // Generate data-string - string data = Configuration + "|" + _textboxSender.Text + "|"+ _textboxEmail.Text + "|" + _dropdownlistMG.SelectedValue; - // If the add new prevalue textbox is filled out - add the value to the collection. - IParameter[] SqlParams = new IParameter[] { - SqlHelper.CreateParameter("@value",data), - SqlHelper.CreateParameter("@dtdefid",_datatype.DataTypeDefinitionId)}; - SqlHelper.ExecuteNonQuery("delete from cmsDataTypePreValues where datatypenodeid = @dtdefid",SqlParams); - SqlHelper.ExecuteNonQuery("insert into cmsDataTypePreValues (datatypenodeid,[value],sortorder,alias) values (@dtdefid,@value,0,'')",SqlParams); - } - - protected override void Render(HtmlTextWriter writer) - { - writer.WriteLine(""); - writer.Write(""); - writer.Write(""); - writer.Write(""); - writer.Write("
Sender name:"); - _textboxSender.RenderControl(writer); - writer.Write("
Sender email:"); - _textboxEmail.RenderControl(writer); - writer.Write("
Membergroup to recieve mail:"); - _dropdownlistMG.RenderControl(writer); - writer.Write("
"); - base.Render(writer); - } - - public string Configuration - { - get - { - object conf = - SqlHelper.ExecuteScalar("select value from cmsDataTypePreValues where datatypenodeid = @datatypenodeid", - SqlHelper.CreateParameter("@datatypenodeid", _datatype.DataTypeDefinitionId)); - if (conf != null) - return conf.ToString(); - else - return ""; - - } - } - - } -} diff --git a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerHelper.cs b/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerHelper.cs deleted file mode 100644 index b50330731d..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerHelper.cs +++ /dev/null @@ -1,128 +0,0 @@ -using System; -using System.IO; -using System.Collections; -using System.Text.RegularExpressions; -using DotNetOpenMail; /* http://dotnetopenmail.sourceforge.net/ */ - -namespace umbraco.editorControls.ultraSimpleMailer -{ - /// - /// Summary description for mailerHelper. - /// - public class mailerHelper - { - public mailerHelper() - { - // - // TODO: Add constructor logic here - // - } - - public static EmailMessage CreateEmbeddedEmail(string body, int newsletterId) - { - EmailMessage message = new EmailMessage(); - - Hashtable addedAtt = new Hashtable(); - - body = template.ParseInternalLinks(body); - - //string currentDomain = "http://" + System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"]; - //string pattern = "href=\"?([^\\\"' >]+)|src=\\\"?([^\\\"' >]+)"; - - string currentDomain = "http://" + System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"]; - string pattern = "href=\"?([^\\\"' >]+)|src=\\\"?([^\\\"' >]+)|background=\\\"?([^\\\"' >]+)"; - - string appendNewsletter = "umbNl=" + newsletterId.ToString(); - MatchCollection tags = Regex.Matches(body, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - if (tag.Groups.Count > 0) - { - if (tag.Groups[1].Value.ToLower().IndexOf("http://") == -1 && - tag.Groups[2].Value.ToLower().IndexOf("http://") == -1 && - tag.Groups[1].Value.ToLower().IndexOf("mailto:") == -1 && - tag.Groups[2].Value.ToLower().IndexOf("mailto:") == -1) - { - // links - if (tag.Groups[1].Value != "") - { - if (tag.Groups[0].Value.ToLower() == "href=\"/") - { - if (tag.Groups[1].Value.IndexOf("?") == -1) - body = body.Replace(tag.Groups[0].Value + "\"", "href=\"" + currentDomain + tag.Groups[1].Value + "?" + appendNewsletter+ "\""); - else - body = body.Replace(tag.Groups[0].Value + "\"", "href=\"" + currentDomain + tag.Groups[1].Value + "&" + appendNewsletter + "\""); - } - else - { - if (tag.Groups[1].Value.IndexOf("?") == -1) - body = body.Replace("href=\"" + tag.Groups[1].Value + "\"", "href=\"" + currentDomain + tag.Groups[1].Value + "?" + appendNewsletter + "\""); - else - body = body.Replace("href=\"" + tag.Groups[1].Value + "\"", "href=\"" + currentDomain + tag.Groups[1].Value + "&" + appendNewsletter + "\""); - } - - } - // src - else - { - string imageExtextions = "jpg,jpeg,gif,png"; - string image = tag.Groups[2].Value; - if (image == "") - image = tag.Groups[3].Value; - string orgImage = image; - - string ext = image.Split(char.Parse("."))[image.Split(char.Parse(".")).Length -1].ToLower(); - - bool isImage = imageExtextions.IndexOf(ext) != -1; - - if (isImage) - { - string guid = Guid.NewGuid().ToString(); - FileAttachment attachment = CreateImageAttachment(image, ext, guid); - if (attachment != null) - { - if (addedAtt.ContainsKey(image)) - { - body = body.Replace(image, "cid:" + addedAtt[image].ToString()); - } - else - { - message.AddRelatedAttachment(attachment); - body = body.Replace(image, "cid:" + guid); - addedAtt.Add(image, guid); - } - } - else - { - body = body.Replace(orgImage, currentDomain + tag.Groups[2].Value); - } - // break; - } - else - { - body = body.Replace(orgImage, currentDomain + tag.Groups[2].Value); - } - - } - } - } - - message.HtmlPart = new HtmlAttachment(body); - - return message; - } - - private static FileAttachment CreateImageAttachment(string image, string ext, string contentId) - { - string path = System.Web.HttpContext.Current.Server.MapPath(image); - - if (!System.IO.File.Exists(path)) - return null; - - FileInfo file = new FileInfo(path); - FileAttachment attachment = new FileAttachment(file, contentId); - attachment.ContentType = "image/" + ext.ToLower().Replace("jpg", "jpeg"); - - return attachment; - } - } -} diff --git a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerLogic.cs b/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerLogic.cs deleted file mode 100644 index ee7dcfd35e..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/mailerLogic.cs +++ /dev/null @@ -1,196 +0,0 @@ -using System; -using System.IO; -using System.Text.RegularExpressions; -using DotNetOpenMail; /* http://dotnetopenmail.sourceforge.net/ */ -using System.Collections; - -using umbraco.DataLayer; -using umbraco.BusinessLogic; - -namespace umbraco.editorControls.ultraSimpleMailer -{ - /// - /// Summary description for mailerLogic. - /// - public class mailerLogic - { - public mailerLogic() - { - // - // TODO: Add constructor logic here - // - } - - public static ISqlHelper SqlHelper - { - get { return Application.SqlHelper; } - } - - public static int GetTotalReceiptients(umbraco.cms.businesslogic.member.MemberGroup Group) - { - return SqlHelper.ExecuteScalar("select count(*) from cmsMember inner join cmsMember2memberGroup on cmsmember.nodeId = cmsMember2MemberGroup.member where memberGroup = @memberGroupId", SqlHelper.CreateParameter("@memberGroupId", Group.Id)); - } - - public static void SendTestmail(string email, - umbraco.cms.businesslogic.property.Property Property, - string fromName, string fromEmail, bool IsHtml) - { - // version - string version = Property.VersionId.ToString(); - - // Get document - umbraco.cms.businesslogic.web.Document d = new umbraco.cms.businesslogic.web.Document(umbraco.cms.businesslogic.Content.GetContentFromVersion(Property.VersionId).Id); - System.Web.HttpContext.Current.Items["pageID"] = d.Id; - - // Format mail - string subject = d.Text; - string sender = "\"" + fromName + "\" <" + fromEmail + ">"; - - // Get template - System.Text.StringBuilder sb = new System.Text.StringBuilder(); - System.IO.StringWriter sw = new StringWriter(sb); - System.Web.UI.HtmlTextWriter writer = new System.Web.UI.HtmlTextWriter(sw); - umbraco.template t = new template(d.Template); - t.ParseWithControls(new umbraco.page(d.Id, d.Version)).RenderControl(writer); - - // Embedded emails ;) added by DB, 2005-10-04 - - EmailMessage message = mailerHelper.CreateEmbeddedEmail(sb.ToString(), cms.businesslogic.web.Document.GetContentFromVersion(Property.VersionId).Id); - - message.FromAddress = new EmailAddress(fromEmail, fromName); - message.ToAddresses.Add(new EmailAddress(email)); - message.Subject = subject; - message.Send(new SmtpServer(GlobalSettings.SmtpServer)); - - } - - public static void SendMail(umbraco.cms.businesslogic.member.MemberGroup Group, umbraco.cms.businesslogic.property.Property Property, string fromName, string fromEmail, bool IsHtml) - { - // Create ArrayList with emails who've received the e-mail - ArrayList sent = new ArrayList(); - - // set timeout - System.Web.HttpContext.Current.Server.ScriptTimeout = 43200; // 12 hours - // version - string version = Property.VersionId.ToString(); - - // Get document - umbraco.cms.businesslogic.web.Document d = new umbraco.cms.businesslogic.web.Document(umbraco.cms.businesslogic.Content.GetContentFromVersion(Property.VersionId).Id); - int id = d.Id; - System.Web.HttpContext.Current.Items["pageID"] = id; - - // Format mail - string subject = d.Text; - string sender = "\"" + fromName + "\" <" + fromEmail + ">"; - - // Get template - System.Text.StringBuilder sb = new System.Text.StringBuilder(); - System.IO.StringWriter sw = new StringWriter(sb); - System.Web.UI.HtmlTextWriter writer = new System.Web.UI.HtmlTextWriter(sw); - umbraco.template t = new template(d.Template); - t.ParseWithControls(new umbraco.page(d.Id, d.Version)).RenderControl(writer); - - - EmailMessage message = mailerHelper.CreateEmbeddedEmail(sb.ToString(), cms.businesslogic.web.Document.GetContentFromVersion(Property.VersionId).Id); - - message.FromAddress = new EmailAddress(fromEmail, fromName); - message.Subject = subject; - SmtpServer smtpServer = new SmtpServer(GlobalSettings.SmtpServer); - - // Bulk send mails - int counter = 0; - System.Text.StringBuilder sbStatus = new System.Text.StringBuilder(); - sbStatus.Append("The Newsletter '" + d.Text + "' was starting at " + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + "\n"); - using(IRecordsReader dr = SqlHelper.ExecuteReader("select text, email from cmsMember inner join umbracoNode node on node.id = cmsMember.nodeId inner join cmsMember2memberGroup on cmsmember.nodeId = cmsMember2MemberGroup.member where memberGroup = @memberGroupId", SqlHelper.CreateParameter("@memberGroupId", Group.Id))) - { - while(dr.Read()) - { - try - { - if (!sent.Contains(dr.GetString("email"))) - { - message.ToAddresses.Clear(); - message.ToAddresses.Add(new EmailAddress(dr.GetString("email"), dr.GetString("text"))); - message.Send(smtpServer); - - // add to arraylist of receiptients - sent.Add(dr.GetString("email")); - - // Append to status - sbStatus.Append("Sent to " + dr.GetString("text") + " <" + dr.GetString("email") + "> \n\r"); - } - else - { - // Append to status - sbStatus.Append("E-mail has already been sent to email '" + dr.GetString("email") + ". You have a duplicate member: " + dr.GetString("text") + " <" + dr.GetString("email") + "> \n\r"); - } - } - catch(Exception ee) - { - sbStatus.Append("Error sending to " + dr.GetString("text") + " <" + dr.GetString("email") + ">: " + - ee.ToString() + " \n"); - } - - // For progress bar - counter++; - - if(counter % 5 == 0) - { - System.Web.HttpContext.Current.Application.Lock(); - System.Web.HttpContext.Current.Application["ultraSimpleMailerProgress" + id.ToString() + "Done"] = counter; - System.Web.HttpContext.Current.Application.UnLock(); - } - } - } - - sbStatus.Append("Finished at " + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + "\n"); - - // Send status mail - library.SendMail(fromEmail, fromEmail, "Newsletter status", sbStatus.ToString(), false); - } - - private static string updateLocalUris(string body, int newsletterId) - { - string currentDomain = "http://" + System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"]; - string pattern = "href=\"?([^\\\"' >]+)|src=\\\"?([^\\\"' >]+)"; - string appendNewsletter = "umbNl=" + newsletterId.ToString(); - MatchCollection tags = Regex.Matches(body, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); - foreach (Match tag in tags) - if (tag.Groups.Count > 0) - { - - if (tag.Groups[1].Value.ToLower().IndexOf("http://") == -1 && - tag.Groups[2].Value.ToLower().IndexOf("http://") == -1 && - tag.Groups[1].Value.ToLower().IndexOf("mailto:") == -1 && - tag.Groups[2].Value.ToLower().IndexOf("mailto:") == -1) - { - // links - if (tag.Groups[1].Value != "") - { - // Special case for root link ("/") - if (tag.Groups[0].Value.ToLower() == "href=\"/\"") - { - if (tag.Groups[1].Value.IndexOf("?") == -1) - body = body.Replace(tag.Groups[0].Value, "href=\"" + currentDomain + tag.Groups[1].Value + "?" + appendNewsletter+ "\""); - else - body = body.Replace(tag.Groups[0].Value, "href=\"" + currentDomain + tag.Groups[1].Value + "&" + appendNewsletter + "\""); - } - else - { - if (tag.Groups[1].Value.IndexOf("?") == -1) - body = body.Replace(tag.Groups[1].Value, currentDomain + tag.Groups[1].Value + "?" + appendNewsletter); - else - body = body.Replace(tag.Groups[1].Value, currentDomain + tag.Groups[1].Value + "&" + appendNewsletter); - } - - } - // src - else - body = body.Replace(tag.Groups[2].Value, currentDomain + tag.Groups[2].Value); - } - } - - return body; - } - } -} diff --git a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/ultraSimpleMailerDataType.cs b/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/ultraSimpleMailerDataType.cs deleted file mode 100644 index f881063dec..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/ultraSimpleMailerDataType.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; - -namespace umbraco.editorControls.ultraSimpleMailer -{ - /// - /// Summary description for ultraSimpleMailerDataType. - /// - public class ultraSimpleMailerDataType : cms.businesslogic.datatype.BaseDataType,interfaces.IDataType - { - private ultraSimpleMailerEditor _Editor; - private cms.businesslogic.datatype.DefaultData _baseData; - private mailerConfiguratorPreValueEditor _prevalueeditor; - - public override interfaces.IDataEditor DataEditor - { - get - { - if (_Editor == null) - { - _Editor = new ultraSimpleMailerEditor((umbraco.cms.businesslogic.datatype.DefaultData)Data, ((mailerConfiguratorPreValueEditor)PrevalueEditor).Configuration); - - } - return _Editor; - } - } - - public override interfaces.IData Data - { - get - { - if (_baseData == null) - _baseData = new cms.businesslogic.datatype.DefaultData(this); - return _baseData; - } - } - public override Guid Id - { - get {return new Guid("AABE748C-EFB6-4225-B7B2-DABC6FE36945");} - } - - public override string DataTypeName - { - get {return "UltraSimpleMailer(tm)";} - } - - public override interfaces.IDataPrevalue PrevalueEditor - { - get - { - if (_prevalueeditor == null) - _prevalueeditor = new mailerConfiguratorPreValueEditor(this); - return _prevalueeditor; - } - } - } -} diff --git a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/ultraSimpleMailerEditor.cs b/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/ultraSimpleMailerEditor.cs deleted file mode 100644 index 76e45aca43..0000000000 --- a/OLD/umbraco.Legacy/umbraco_client/ultraSimpleMailer/ultraSimpleMailerEditor.cs +++ /dev/null @@ -1,168 +0,0 @@ -using System; -using System.Collections; - -using umbraco.editorControls.wysiwyg; -using umbraco.uicontrols; -using System.Web.UI; - - -namespace umbraco.editorControls.ultraSimpleMailer -{ - - /// - /// Summary description for ultraSimpleMailerEditor. - /// - - - - public class ultraSimpleMailerEditor : umbraco.editorControls.tinyMCE3.TinyMCE, interfaces.IDataFieldWithButtons - { - umbraco.cms.businesslogic.datatype.DefaultData _data; - string _configuration; - private controls.progressBar pb; - - public ultraSimpleMailerEditor(umbraco.cms.businesslogic.datatype.DefaultData Data, string Configuration) - : base(Data, Configuration) - { - _configuration = Configuration; - _data = Data; - } - - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - - // init progressbar - pb = new umbraco.controls.progressBar(); - Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "UltraSimpleMailerJs", ""); - string[] config = _configuration.Split("|".ToCharArray()); - cms.businesslogic.member.MemberGroup mg = new umbraco.cms.businesslogic.member.MemberGroup(int.Parse(config[11])); - string totalReceip = mailerLogic.GetTotalReceiptients(mg).ToString(); - Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "ultraSimpleMailerAjax", ""); - Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "progressBar", ""); - Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "progressBarCss", ""); - - // We need to make sure we have a reference to the legacy ajax calls in the scriptmanager - presentation.webservices.ajaxHelpers.EnsureLegacyCalls(base.Page); - - } - - protected override void Render(System.Web.UI.HtmlTextWriter writer) - { - - // Debug - needs logic - string[] config = _configuration.Split("|".ToCharArray()); - cms.businesslogic.member.MemberGroup mg = new umbraco.cms.businesslogic.member.MemberGroup(int.Parse(config[11])); - - writer.WriteLine(""); - writer.WriteLine(""); - - if (umbraco.helper.Request(this.ClientID + "_doTest") == "" && umbraco.helper.Request(this.ClientID + "_doSend") == "") - base.Render(writer); - else - { - writer.WriteLine("
"); - - if (umbraco.helper.Request(this.ClientID + "_sendButton") != "") - { - // Test mail - if (umbraco.helper.Request(this.ClientID + "_doTest") != "") - { - writer.WriteLine("

Send newsletter to test...


"); - mailerLogic.SendTestmail(umbraco.helper.Request(this.ClientID + "_test_rcp"), new cms.businesslogic.property.Property(_data.PropertyId), config[9], config[10], true); - writer.WriteLine("Test mail sent to: " + umbraco.helper.Request(this.ClientID + "_test_rcp") + "
"); - } - else - { - writer.WriteLine("

Send newsletter to all...


"); - mailerLogic.SendMail(mg, new cms.businesslogic.property.Property(_data.PropertyId), config[9], config[10], true); - writer.WriteLine("Sent...
"); - - } - } - else - { - if (umbraco.helper.Request(this.ClientID + "_doTest") != "") - { - writer.WriteLine("

Send newsletter to test...


"); - writer.WriteLine("Send test to: "); - writer.WriteLine(""); - } - else - { - string strScript = " alert('The MassMailer / UltraSimplerMailer is incompatible with Umbraco 4'); umbPgStep = 1;\n umbPgIgnoreSteps = true;\n"; - if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack) - ScriptManager.RegisterClientScriptBlock(this, this.GetType(), this.ClientID, strScript, true); - else - Page.ClientScript.RegisterStartupScript(this.GetType(), this.ClientID, strScript, true); - - writer.WriteLine("


\"Sending
\n" + - " Sending mails...\n" + - "
\n" + - "
\n"); - - - - // Progressbar - pb.ID = "ultraSimpleMailerUpgradeStatus"; - pb.Width = 200; - pb.RenderControl(writer); - writer.WriteLine("


\n" + - "
"); - writer.WriteLine("

Send newsletter to all...


"); - writer.WriteLine("Please confirm that you want to send this message to " + mailerLogic.GetTotalReceiptients(mg).ToString() + " recipients
"); - writer.WriteLine(" Yes
"); - writer.WriteLine(""); - writer.WriteLine("
"); - } - - } - writer.WriteLine("
"); - } - - } - - - - public object[] MenuIcons - { - get - { - object[] _buttons = { }; - - ArrayList buttons = new ArrayList(); - for (int i = 0; i < _buttons.Length; i++) - buttons.Add(_buttons[i]); - - // Add the two new buttons - MenuIconI menuItemSend = new MenuIconClass(); - menuItemSend.OnClickCommand = "ultraSimpleMailer_doSend('" + this.ClientID + "')"; - menuItemSend.ImageURL = GlobalSettings.ClientPath + "/ultraSimpleMailer/images/newsletterSend.gif"; - menuItemSend.AltText = "Send newsletter to all"; - menuItemSend.ID = "sendToAll"; - buttons.Insert(0, menuItemSend); - - MenuIconI menuItemTest = new MenuIconClass(); - menuItemTest.OnClickCommand = "ultraSimpleMailer_doSendTest('" + this.ClientID + "')"; - menuItemTest.ImageURL = GlobalSettings.ClientPath + "/ultraSimpleMailer/images/newsletterSendTest.gif"; - menuItemTest.AltText = "Test newsletter by sending to a mail address you specify"; - menuItemTest.ID = "sendToTest"; - buttons.Insert(1, menuItemTest); - buttons.Insert(2, "|"); - - // Re-create the button array - _buttons = new object[buttons.Count]; - for (int i = 0; i < buttons.Count; i++) - _buttons[i] = buttons[i]; - - - return _buttons; - } - } - - - } -} - diff --git a/OLD/umbraco.MacroEngines/DLRScriptingEngine.cs b/OLD/umbraco.MacroEngines/DLRScriptingEngine.cs deleted file mode 100644 index 57e19be2ba..0000000000 --- a/OLD/umbraco.MacroEngines/DLRScriptingEngine.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Collections.Generic; -using umbraco.cms.businesslogic.macro; -using umbraco.interfaces; -using umbraco.IO; -using umbraco.MacroEngines.Legacy.Scripting; - -namespace umbraco.MacroEngines.Legacy -{ - public class DLRScriptingEngine : IMacroEngine - { - public string Name { - get { return "Umbraco DLR Macro Engine"; } - } - - IEnumerable IMacroEngine.SupportedExtensions { - get { return new[] { "py", "rb" }; } - } - - public IEnumerable SupportedUIExtensions { - get { return new[] { "py", "rb" }; } - } - - public Dictionary SupportedProperties { - get { throw new NotImplementedException(); } - } - - public bool Validate(string code, string tempFileName, INode currentPage, out string errorMessage) { - throw new NotImplementedException(); - } - - public string Execute(MacroModel macro, INode currentPage) { - var fileEnding = macro.ScriptName.Substring(macro.ScriptName.LastIndexOf('.')).Trim('.'); - var mse = MacroScriptEngine.LoadEngineByFileExtension(fileEnding); - - var vars = new SortedDictionary(); - vars.Add("currentPage", currentPage); - foreach (MacroPropertyModel prop in macro.Properties) { - vars.Add(prop.Key, prop.Value); - } - mse.ScriptVariables = vars; - - return mse.ExecuteFile(IOHelper.MapPath(SystemDirectories.MacroScripts + "/" + macro.ScriptName)); - } - } -} diff --git a/OLD/umbraco.MacroEngines/Properties/AssemblyInfo.cs b/OLD/umbraco.MacroEngines/Properties/AssemblyInfo.cs deleted file mode 100644 index db6f1457c5..0000000000 --- a/OLD/umbraco.MacroEngines/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("umbraco.MacroEngines")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("umbraco.MacroEngines")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("fef82f07-246f-406a-8a80-db0163bf41dc")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OLD/umbraco.MacroEngines/Scripting/MacroScript.cs b/OLD/umbraco.MacroEngines/Scripting/MacroScript.cs deleted file mode 100644 index a5575a5ae9..0000000000 --- a/OLD/umbraco.MacroEngines/Scripting/MacroScript.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.Scripting.Hosting; - -namespace umbraco.MacroEngines.Legacy.Scripting -{ - public class MacroScript - { - public static string Execute(string script, string scriptType, Hashtable variables) - { - MacroScriptEngine mse = new MacroScriptEngine(scriptType); - mse.ScriptVariables = ConvertHashTable(variables); - mse.Script = script; - return mse.Execute(); - } - - public static string Evaluate(string script, string scriptType, Hashtable variables) - { - MacroScriptEngine mse = new MacroScriptEngine(scriptType); - mse.ScriptVariables = ConvertHashTable(variables); - mse.Script = script; - return mse.Evaluate(); - } - - public static string ExecuteFile(string path, Hashtable variables) - { - string fileEnding = path.Substring(path.LastIndexOf('.')).Trim('.'); - - MacroScriptEngine mse = MacroScriptEngine.LoadEngineByFileExtension(fileEnding); - mse.ScriptVariables = ConvertHashTable(variables); - - return mse.ExecuteFile(path); - } - - //friendly helpers.... - public static string ExecutePython(string script, Hashtable variables) - { - return Execute(script, "python", variables); - } - - public static string ExecuteRuby(string script, Hashtable variables) - { - return Execute(script, "ruby", variables); - } - - private static SortedDictionary ConvertHashTable(Hashtable ht) - { - SortedDictionary retval = new SortedDictionary(); - foreach (DictionaryEntry de in ht) - { - retval.Add(de.Key.ToString(), de.Value); - } - - return retval; - } - - public static List GetAvailableLanguages() - { - return ScriptRuntimeSetup.ReadConfiguration().LanguageSetups.ToList(); - } - } -} diff --git a/OLD/umbraco.MacroEngines/Scripting/ScriptEngine.cs b/OLD/umbraco.MacroEngines/Scripting/ScriptEngine.cs deleted file mode 100644 index c0f97c3f60..0000000000 --- a/OLD/umbraco.MacroEngines/Scripting/ScriptEngine.cs +++ /dev/null @@ -1,199 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text; -using Microsoft.Scripting; -using Microsoft.Scripting.Hosting; - -namespace umbraco.MacroEngines.Legacy.Scripting -{ - internal class MacroScriptEngine - { - ScriptRuntime m_runTime; - ScriptEngine m_engine; - ExceptionOperations m_exceptionOperations; - SortedDictionary m_inputVariables; - SortedDictionary m_outputVariables; - string m_script; - MemoryStream m_output; - - internal MacroScriptEngine() { } - - internal MacroScriptEngine(string scriptType) - { - loadRunTime(); - m_engine = m_runTime.GetEngine(scriptType); - m_exceptionOperations = m_engine.GetService(); - } - - internal static MacroScriptEngine LoadEngineByFileExtension(string fileExtension) - { - MacroScriptEngine mse = new MacroScriptEngine(); - mse.loadRunTime(); - mse.m_engine = mse.m_runTime.GetEngineByFileExtension(fileExtension); - mse.m_exceptionOperations = mse.m_engine.GetService(); - return mse; - } - - internal static MacroScriptEngine GetEngineByType(string scriptType) - { - MacroScriptEngine mse = new MacroScriptEngine(); - mse.loadRunTime(); - mse.m_engine = mse.m_runTime.GetEngine(scriptType); - mse.m_exceptionOperations = mse.m_engine.GetService(); - return mse; - } - - private void loadRunTime() - { - m_output = new MemoryStream(); - m_runTime = ScriptRuntime.CreateFromConfiguration(); - - m_runTime.IO.SetOutput(m_output, new StreamWriter(m_output)); - m_runTime.IO.SetErrorOutput(m_output, new StreamWriter(m_output)); - - Assembly pluginsAssembly = Assembly.LoadFile(IO.IOHelper.MapPath(IO.SystemDirectories.Bin + "/umbraco.dll")); - m_runTime.LoadAssembly(pluginsAssembly); - - m_runTime.LoadAssembly(typeof(String).Assembly); - m_runTime.LoadAssembly(typeof(Uri).Assembly); - m_runTime.LoadAssembly(typeof(umbraco.presentation.nodeFactory.Node).Assembly); - } - - - internal SortedDictionary ScriptVariables - { - set { m_inputVariables = value; } - } - - internal SortedDictionary OutPutVariables - { - get { return m_outputVariables; } - } - - internal string Script - { - set { m_script = value; } - } - - internal ExceptionOperations ExceptionOperations - { - get { return m_exceptionOperations; } - } - - internal string Evaluate() - { - //Create structures - SourceCodeKind sc = SourceCodeKind.Expression; - ScriptSource source = m_engine.CreateScriptSourceFromString(m_script, sc); - ScriptScope scope = m_engine.CreateScope(); - - //Fill input variables - foreach (KeyValuePair variable in m_inputVariables) - { - scope.SetVariable(variable.Key, variable.Value); - } - - string result = ""; - - try - { - object r = source.Execute(scope); - - if (r != null) - result = r.ToString(); - } - catch (Exception e) - { - umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Debug, -1, e.ToString()); - result = m_exceptionOperations.FormatException(e); - } - - return result; - } - - internal string Execute() - { - SourceCodeKind sc = SourceCodeKind.Statements; - ScriptSource source = m_engine.CreateScriptSourceFromString(m_script, sc); - ScriptScope scope = m_engine.CreateScope(); - - //Fill input variables - foreach (KeyValuePair variable in m_inputVariables) - { - scope.SetVariable(variable.Key, variable.Value); - } - - source.Execute(scope); - - m_outputVariables = new SortedDictionary(); - foreach (string variable in scope.GetVariableNames()) - { - m_outputVariables.Add(variable, scope.GetVariable(variable)); - } - - return ReadFromStream(m_output); - } - - internal string ExecuteFile(string path) - { - string rbCode; - - // OpenText will strip the BOM and keep the Unicode intact - using (var rdr = File.OpenText(path)) - { - rbCode = rdr.ReadToEnd(); - } - - m_script = rbCode; - return Execute(); - } - - internal SortedDictionary _Execute() - { - //Create structures - SourceCodeKind sc = SourceCodeKind.Statements; - ScriptSource source = m_engine.CreateScriptSourceFromString(m_script, sc); - ScriptScope scope = m_engine.CreateScope(); - - //Fill input variables - foreach (KeyValuePair variable in m_inputVariables) - { - scope.SetVariable(variable.Key, variable.Value); - } - - SortedDictionary outputVariables = new SortedDictionary(); - //Execute the script - try - { - - source.Execute(scope); - //Recover variables - foreach (string variable in scope.GetVariableNames()) - { - outputVariables.Add(variable, scope.GetVariable(variable)); - } - } - catch (Exception e) - { - string error = m_exceptionOperations.FormatException(e); - //Do something with the pretty printed error - throw; - } - return outputVariables; - } - - private static string ReadFromStream(MemoryStream ms) - { - int length = (int)ms.Length; - Byte[] bytes = new Byte[length]; - - ms.Seek(0, SeekOrigin.Begin); - ms.Read(bytes, 0, (int)ms.Length); - - return Encoding.GetEncoding("utf-8").GetString(bytes, 0, (int)ms.Length); - } - } -} diff --git a/OLD/umbraco.MacroEngines/umbraco.MacroEngines.Legacy.csproj b/OLD/umbraco.MacroEngines/umbraco.MacroEngines.Legacy.csproj deleted file mode 100644 index f03dc88e4f..0000000000 --- a/OLD/umbraco.MacroEngines/umbraco.MacroEngines.Legacy.csproj +++ /dev/null @@ -1,94 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {6AE67079-2C00-476C-81DE-2800D1AC14BC} - Library - Properties - umbraco.MacroEngines.Legacy - umbraco.MacroEngines.Legacy - v4.0 - 512 - - - - - - - - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - False - ..\foreign dlls\DLR 2.0 SP1\Microsoft.Scripting.dll - - - False - ..\foreign dlls\DLR 2.0 SP1\Microsoft.Scripting.Core.dll - - - - - - - - - - - - - - - - - {E469A9CE-1BEC-423F-AC44-713CD72457EA} - umbraco.businesslogic - - - {CCD75EC3-63DB-4184-B49D-51C1DD337230} - umbraco.cms - - - {511F6D8D-7717-440A-9A57-A507E9A8B27F} - umbraco.interfaces - - - {651E1350-91B6-44B7-BD60-7207006D7003} - umbraco.presentation - - - - - - - - - \ No newline at end of file diff --git a/OLD/umbraco.webservices/BaseWebService.cs b/OLD/umbraco.webservices/BaseWebService.cs deleted file mode 100644 index e7e4d165c0..0000000000 --- a/OLD/umbraco.webservices/BaseWebService.cs +++ /dev/null @@ -1,180 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; -using System.Web.Services; -using System.Web.Services.Protocols; - -namespace umbraco.webservices -{ - /// - /// The base-class all webservices should inherit from - /// - /// - /// This class contains all basic methods for authenticating requests. Do not implement these functions yourself. - /// - public abstract class BaseWebService : System.Web.Services.WebService - { - public abstract Services Service - { - get; - } - - /// - /// Enum of services available - /// - public enum Services - { - DocumentService, - FileService, - StylesheetService, - MemberService, - MaintenanceService, - TemplateService, - MediaService - }; - - - /// - /// Gets the umbraco-user from username and password - /// - public umbraco.BusinessLogic.User GetUser(string username, string password) - { - try - { - return new umbraco.BusinessLogic.User(username, password); - } - catch - { - return null; - } - } - - - /// - /// Standart user-validation. All services must perform this - /// - public void Authenticate(string username, string password) - { - if (!WebservicesEnabled()) throw new Exception("Webservices not enabled"); - if (!UserAuthenticates(username, password)) throw new Exception("The user does not authenticate"); - if (!UserHasAccess(username)) throw new Exception("The user (" + username + ") does not have access to this service"); - } - - [WebMethod] - public bool WebservicesEnabled() - { - return umbraco.UmbracoSettings.Webservices.Enabled; - } - - [WebMethod] - public bool UserAuthenticates(string username, string password) - { - if (!WebservicesEnabled()) throw new Exception("Webservices not enabled"); - return GetUser(username, password) != null; - } - - /// - /// Checks if a user has access to a specific webservice - /// - [WebMethod] - public bool UserHasAccess(string username) - { - switch (Service) - { - case Services.DocumentService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.documentServiceUsers, username); - case Services.FileService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.fileServiceUsers, username); - case Services.StylesheetService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.stylesheetServiceUsers, username); - case Services.MemberService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.memberServiceUsers, username); - case Services.MaintenanceService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.maintenanceServiceUsers, username); - case Services.TemplateService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.templateServiceUsers, username); - case Services.MediaService: - return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.mediaServiceUsers, username); - default: - return false; - } - } - - - - public class FileIO - { - /// - /// Validates a filename. Must be used when user inputs a filename - /// - public static bool ValidFileName(string fileName) - { - // Check if a "levelup" string is included, so they dont move out of the folder - // Dont know if its necesary? - if (fileName.IndexOf("..") > -1) - return false; - return true; - } - - /// - /// Checks if user has access to a specific folder - /// - public static bool FolderAccess(String folderName) - { - // Check if the folder is in "fileServiceFolders" - if (Array.IndexOf(umbraco.UmbracoSettings.Webservices.fileServiceFolders, folderName) > -1) - { - return true; - } - else - { - return false; - } - } - - /// - /// Gets the webservers path for a file - /// - public static string GetFilePath(string folderName, string fileName) - { - string FullPath = GetFolderPath(folderName) + fileName; - return FullPath; - } - - /// - /// Gets the webservers path for a folder - /// - public static string GetFolderPath(string folderName) - { - if (string.IsNullOrEmpty(folderName)) - { - return AppRoot; - } - else - { - return AppRoot + folderName + @"\"; - } - } - - /// - /// Gets the webservers path for the application - /// - public static string AppRoot - { - get - { - return System.Web.HttpContext.Current.Server.MapPath("/"); - } - } - - } - - } - -} diff --git a/OLD/umbraco.webservices/Common.cs b/OLD/umbraco.webservices/Common.cs deleted file mode 100644 index cdd51f6762..0000000000 --- a/OLD/umbraco.webservices/Common.cs +++ /dev/null @@ -1,108 +0,0 @@ -//using System; -//using System.Data; -//using System.Configuration; -//using System.Web; -//using System.Web.Security; -//using System.Web.UI; -//using System.Web.UI.WebControls; -//using System.Web.UI.WebControls.WebParts; -//using System.Web.UI.HtmlControls; -//using System.Xml.Serialization; -//using System.Xml; - -//namespace umbraco.webservices -//{ -// public class authentication -// { - - -// /// -// /// Standart user-validation. All services must perform this -// /// -// /// -// /// -// /// -// /// First checks if the webservices are enabled. Then checks if the user is valid -// /// (username and password). Finally it checks if the user has access to the specific service -// /// -// public static void StandartRequestCheck(string username, string password, authentication.EService service) -// { -// // We check if services are enabled and user has access -// if (!umbraco.UmbracoSettings.Webservices.Enabled) -// throw new Exception("webservices not enabled"); - -// // Validating the user -// GetUser(username, password); - -// // Checking if user can use that specific service -// if (!authentication.UserHasAccess(username, service)) -// throw new Exception("user has not access to this service"); -// } - -// /// -// /// Gets the umbraco-user from username and password -// /// -// /// -// /// -// /// -// public static umbraco.BusinessLogic.User GetUser(string username, string password) -// { -// umbraco.BusinessLogic.User user; -// try -// { -// user = new umbraco.BusinessLogic.User(username, password); - -// if (user == null) -// throw new Exception("Incorrect credentials. No user found. Call aborted"); -// } -// catch (Exception ex) -// { -// throw new Exception("Incorrect credentials. Call aborted (error: " + ex.Message + Environment.NewLine + Environment.NewLine + ex.StackTrace + ")"); -// } -// return user; -// } - - -// /// -// /// List of accesible the services -// /// -// public enum EService -// { -// DocumentService, -// FileService, -// StylesheetService, -// MemberService, -// MaintenanceService, -// TemplateService -// }; - -// /// -// /// Checks if a user has access to a specific webservice -// /// -// /// user to check -// /// the webservice to check for -// /// true, if user has access otherwise false -// public static bool UserHasAccess(string username, EService service) -// { -// switch (service) -// { -// case EService.DocumentService: -// return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.documentServiceUsers, username); -// case EService.FileService: -// return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.fileServiceUsers, username); -// case EService.StylesheetService: -// return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.stylesheetServiceUsers, username); -// case EService.MemberService : -// return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.memberServiceUsers, username); -// case EService.MaintenanceService: -// return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.maintenanceServiceUsers, username); -// case EService.TemplateService : -// return -1 < Array.IndexOf(umbraco.UmbracoSettings.Webservices.templateServiceUsers, username); -// default: -// return false; -// } -// } - - -// } -//} diff --git a/OLD/umbraco.webservices/DocumentService.asmx b/OLD/umbraco.webservices/DocumentService.asmx deleted file mode 100644 index dcb6614dda..0000000000 --- a/OLD/umbraco.webservices/DocumentService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="DocumentService.asmx.cs" Class=umbraco.webservices.documents.documentService %> \ No newline at end of file diff --git a/OLD/umbraco.webservices/DocumentService.asmx.cs b/OLD/umbraco.webservices/DocumentService.asmx.cs deleted file mode 100644 index 1bb914efa6..0000000000 --- a/OLD/umbraco.webservices/DocumentService.asmx.cs +++ /dev/null @@ -1,425 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; -using System.Xml.Serialization; -using System.Collections.Generic; -using umbraco.cms.businesslogic.web; -using umbraco.cms; -using umbraco; - -namespace umbraco.webservices.documents -{ - - /// - /// Service managing documents in umbraco - /// - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class documentService : BaseWebService - { - - override public Services Service - { - get - { - return Services.DocumentService; - } - } - - [WebMethod] - public int create(documentCarrier carrier, string username, string password) - { - Authenticate(username, password); - - // Some validation - if (carrier == null) throw new Exception("No carrier specified"); - if (carrier.ParentID == 0) throw new Exception("Document needs a parent"); - if (carrier.DocumentTypeID == 0) throw new Exception("Documenttype must be specified"); - if (carrier.Id != 0) throw new Exception("ID cannot be specifed when creating. Must be 0"); - if (carrier.Name == null || carrier.Name.Length == 0) carrier.Name = "unnamed"; - - umbraco.BusinessLogic.User user = GetUser(username, password); - - // We get the documenttype - umbraco.cms.businesslogic.web.DocumentType docType = new umbraco.cms.businesslogic.web.DocumentType(carrier.DocumentTypeID); - if (docType == null) throw new Exception("DocumenttypeID " + carrier.DocumentTypeID + " not found"); - - // We create the document - Document newDoc = Document.MakeNew(carrier.Name, docType, user, carrier.ParentID); - newDoc.ReleaseDate = carrier.ReleaseDate; - newDoc.ExpireDate = carrier.ExpireDate; - - // We iterate the properties in the carrier - if (carrier.DocumentProperties != null) - { - foreach (documentProperty updatedproperty in carrier.DocumentProperties) - { - umbraco.cms.businesslogic.property.Property property = newDoc.getProperty(updatedproperty.Key); - if (property == null) throw new Exception("property " + updatedproperty.Key + " was not found"); - property.Value = updatedproperty.PropertyValue; - } - } - - // We check the publishaction and do the appropiate - handlePublishing(newDoc, carrier, user); - - // We return the ID of the document..65 - return newDoc.Id; - } - - [WebMethod] - public documentCarrier read(int id, string username, string password) - { - Authenticate(username, password); - - umbraco.cms.businesslogic.web.Document doc = null; - - try - { - doc = new umbraco.cms.businesslogic.web.Document(id); - } - catch - {} - - if (doc == null) - throw new Exception("Could not load Document with ID: " + id); - - documentCarrier carrier = createCarrier(doc); - return carrier; - } - - - [WebMethod] - public List readList(int parentid, string username, string password) - { - Authenticate(username, password); - - umbraco.cms.businesslogic.web.Document[] docList; - umbraco.cms.businesslogic.web.Document doc = null ; - List carriers = new List(); - - if (parentid == 0) - { - docList = Document.GetRootDocuments(); - } - else - { - try - { - doc = new umbraco.cms.businesslogic.web.Document(parentid); - } - catch - {} - - if (doc == null) - throw new Exception("Parent document with ID " + parentid + " not found"); - - try - { - if (!doc.HasChildren) - return carriers; - - docList = doc.Children; - } - catch (Exception exception) - { - throw new Exception("Could not load children: " + exception.Message); - } - } - - // Loop the nodes in docList - foreach (Document childdoc in docList) - { - carriers.Add(createCarrier(childdoc)); - } - return carriers; - } - - - [WebMethod] - public void update(documentCarrier carrier, string username, string password) - { - Authenticate(username, password); - - if (carrier.Id == 0) throw new Exception("ID must be specifed when updating"); - if (carrier == null) throw new Exception("No carrier specified"); - - umbraco.BusinessLogic.User user = GetUser(username, password); - - Document doc = null; - try - { - doc = new Document(carrier.Id); - } - catch {} - if (doc == null ) - - - - // We assign the new values: - doc.ReleaseDate = carrier.ReleaseDate; - doc.ExpireDate = carrier.ExpireDate; - if (carrier.ParentID != 0) - { - doc.Move(carrier.ParentID); - } - - if (carrier.Name.Length != 0) - { - doc.Text = carrier.Name; - } - - // We iterate the properties in the carrier - if (carrier.DocumentProperties != null) - { - foreach (documentProperty updatedproperty in carrier.DocumentProperties) - { - umbraco.cms.businesslogic.property.Property property = doc.getProperty(updatedproperty.Key); - - if (property == null) - { - } - else - { - property.Value = updatedproperty.PropertyValue; - } - } - } - handlePublishing(doc, carrier, user); - } - - - [WebMethod] - public void delete(int id, string username, string password) - { - Authenticate(username, password); - - // Some validation, to prevent deletion of system-documents.. (nessecary?) - if (id < 0) - { - throw new Exception("Cannot delete documents with id lower than 1"); - } - - // We load the document - Document doc = null; - try - { - doc = new Document(id); - } - catch - {} - - if (doc == null) - throw new Exception("Document not found"); - - try - { - doc.delete(); - } - catch (Exception ex) - { - throw new Exception("Document could not be deleted" + ex.Message); - } - } - - - private void handlePublishing(Document doc, documentCarrier carrier, umbraco.BusinessLogic.User user) - { - switch (carrier.PublishAction) - { - case documentCarrier.EPublishAction.Publish: - doc.Publish(user); - umbraco.library.PublishSingleNode(doc.Id); - break; - case documentCarrier.EPublishAction.Unpublish: - doc.Publish(user); - umbraco.library.UnPublishSingleNode(doc.Id); - break; - case documentCarrier.EPublishAction.Ignore: - if (doc.Published) - { - doc.Publish(user); - umbraco.library.PublishSingleNode(doc.Id); - } - else - { - doc.Publish(user); - umbraco.library.UnPublishSingleNode(doc.Id); - } - break; - } - } - - - private documentCarrier createCarrier(Document doc) - { - documentCarrier carrier = new documentCarrier(); - carrier.ExpireDate = doc.ExpireDate; - carrier.ReleaseDate = doc.ReleaseDate; - carrier.Id = doc.Id; - carrier.Name = doc.Text; - - try - { - carrier.ParentID = doc.Parent.Id; - } - catch - { - } - - carrier.Published = doc.Published; - carrier.HasChildren = doc.HasChildren; - - foreach (umbraco.cms.businesslogic.property.Property prop in doc.getProperties) - { - documentProperty carrierprop = new documentProperty(); - - if (prop.Value == System.DBNull.Value) - { - carrierprop.PropertyValue = null; - } - else - { - carrierprop.PropertyValue = prop.Value; - } - - carrierprop.Key = prop.PropertyType.Alias; - carrier.DocumentProperties.Add(carrierprop); - } - return carrier; - - } - - } - - [Serializable] - [XmlType(Namespace = "http://umbraco.org/webservices/")] - public class documentCarrier - { - - public enum EPublishAction - { - Ignore, - Publish, - Unpublish - }; - - public enum EPublishStatus - { - Published, - NotPublished - }; - - public documentCarrier() - { - DocumentProperties = new List(); - } - - private int id; - private string name; - private List documentProperties; - private int documentTypeID; - private int parentID; - private bool hasChildren; - - private EPublishAction publishAction; - private bool published; - private DateTime releaseDate; - private DateTime expireDate; - - public int Id - { - get { return id; } - set { id = value; } - } - - public string Name - { - get { return name; } - set { name = value; } - } - - public List DocumentProperties - { - get { return documentProperties; } - set { documentProperties = value; } - } - - public int DocumentTypeID - { - get { return documentTypeID; } - set { documentTypeID = value; } - } - - public int ParentID - { - get { return parentID; } - set { parentID = value; } - } - - public bool HasChildren - { - get { return hasChildren; } - set { hasChildren = value; } - } - - public EPublishAction PublishAction - { - get { return publishAction; } - set { publishAction = value; } - } - - public bool Published - { - get { return published; } - set { published = value; } - } - - public DateTime ReleaseDate - { - get { return releaseDate; } - set { releaseDate = value; } - } - - public DateTime ExpireDate - { - get { return expireDate; } - set { expireDate = value; } - } - - - - } - - [Serializable] - [XmlType(Namespace = "http://umbraco.org/webservices/")] - public class documentProperty - { - private string key; - private object propertyValue; - - public documentProperty() - { - } - - public object PropertyValue - { - get { return propertyValue; } - set { propertyValue = value; } - } - - public string Key - { - get { return key; } - set { key = value; } - } - } - -} - - diff --git a/OLD/umbraco.webservices/FileService.asmx b/OLD/umbraco.webservices/FileService.asmx deleted file mode 100644 index e8a68ff354..0000000000 --- a/OLD/umbraco.webservices/FileService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="FileService.asmx.cs" Class="umbraco.webservices.files.fileService" %> diff --git a/OLD/umbraco.webservices/FileService.asmx.cs b/OLD/umbraco.webservices/FileService.asmx.cs deleted file mode 100644 index d4bc139e68..0000000000 --- a/OLD/umbraco.webservices/FileService.asmx.cs +++ /dev/null @@ -1,196 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; -using System.Collections.Generic; -using umbraco.cms.businesslogic.web; -using umbraco.cms; -using System.IO; - -namespace umbraco.webservices.files -{ - /// - /// Summary description for FileService - /// - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class fileService : BaseWebService - { - - override public Services Service - { - get - { - return Services.FileService; - } - } - - [WebMethod] - public void DeleteFile(String folderName, string fileName, string username, string password) - { - - Authenticate(username, password); - - // Check if folder is accessible - if (FileIO.FolderAccess(folderName)) - { - // Check if the filename is valid - if (!FileIO.ValidFileName(fileName)) - throw new ArgumentException(String.Format("Filename {0} not valid", fileName)); - - // Check if the file exists. If it does, we delete it - if (System.IO.File.Exists(FileIO.GetFilePath(folderName, fileName))) - { - System.IO.File.Delete(FileIO.GetFilePath(folderName, fileName)); - } - else - { - throw new FileNotFoundException(); - } - } - else - { - throw new ArgumentException("no access to specified folder"); - } - } - [WebMethod] - public Byte[] DownloadFile(String folderName, string fileName, string username, string password) - { - - Authenticate(username, password); - - // Check if folder is accessible - if (FileIO.FolderAccess(folderName)) - { - // Check if the filename is valid - if (!FileIO.ValidFileName(fileName)) - throw new ArgumentException(String.Format("Filename {0} not valid", fileName)); - - // Check if the file even exists - if (!System.IO.File.Exists(FileIO.GetFilePath(folderName, fileName))) - { - throw new FileNotFoundException("Could not find file to delete"); - } - - // Create a stream, and send it to the client - FileStream objfilestream = new FileStream(FileIO.GetFilePath(folderName, fileName), FileMode.Open, FileAccess.Read); - int len = (int)objfilestream.Length; - Byte[] documentcontents = new Byte[len]; - objfilestream.Read(documentcontents, 0, len); - objfilestream.Close(); - return documentcontents; - } - else - { - throw new ArgumentException("no access to specified folder"); - } - } - - [WebMethod] - public void UploadFile(Byte[] docbinaryarray, String folderName, string fileName, string username, string password, bool deleteOld) - { - Authenticate( username, password); - - // Check if folder is accessible - if (FileIO.FolderAccess(folderName)) - { - // Check if the filename is valid - if (FileIO.ValidFileName(fileName)) - throw new ArgumentException(String.Format("Filename {0} not valid", fileName)); - - // Check if the file exists. If it does, we delete it first .. - // TODO: Maybe we should have "deleted files, folder for this? - if (System.IO.File.Exists(FileIO.GetFilePath(folderName, fileName))) - { - if (deleteOld) - { - System.IO.File.Delete(FileIO.GetFilePath(folderName, fileName)); - } - else - { - throw new ArgumentException("Cannot save. File allready exist"); - } - } - - // Open a filestream, and write the data from the client to it - FileStream objfilestream = new FileStream(FileIO.GetFilePath(folderName, fileName), FileMode.Create, FileAccess.ReadWrite); - objfilestream.Write(docbinaryarray, 0, docbinaryarray.Length); - objfilestream.Close(); - } - else - { - throw new ArgumentException("no access to specified folder"); - } - } - - - /// - /// To download a file, we need to know how big its going to be - /// - [WebMethod] - public int GetFileSize(String folderName, string fileName, string username, string password) - { - Authenticate(username, password); - - // Check if folder is accessible - if (FileIO.FolderAccess(folderName)) - { - - // Check if the filename is valid - if (!FileIO.ValidFileName(fileName)) - throw new ArgumentException(String.Format("Filename {0} not valid", fileName)); - - string strdocPath; - strdocPath = FileIO.GetFilePath(folderName, fileName); - - // Load file into stream - FileStream objfilestream = new FileStream(strdocPath, FileMode.Open, FileAccess.Read); - - // Find and return the lenght of the stream - int len = (int)objfilestream.Length; - objfilestream.Close(); - return len; - } - else - { - throw new ArgumentException("no access to specified folder"); - } - } - - - /// - /// Get all files in a specific folder - /// - /// - [WebMethod] - public string[] GetFilesList(String folderName, string username, string password) - { - Authenticate(username, password); - - if (FileIO.FolderAccess(folderName)) - { - string fullPath = FileIO.GetFolderPath(folderName); - - DirectoryInfo folder = new DirectoryInfo(fullPath); - FileInfo[] files = folder.GetFiles(); - List shortNames = new List ( ); - - foreach (FileInfo file in files) - { - shortNames.Add(file.Name); - } - return shortNames.ToArray(); - - } - else - { - throw new ArgumentException("no access to specified folder"); - } - } - - } -} diff --git a/OLD/umbraco.webservices/MaintanceService.asmx b/OLD/umbraco.webservices/MaintanceService.asmx deleted file mode 100644 index fc9f8aba21..0000000000 --- a/OLD/umbraco.webservices/MaintanceService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="MaintanceService.asmx.cs" Class="umbraco.webservices.maintenance.maintenanceService" %> diff --git a/OLD/umbraco.webservices/MaintanceService.asmx.cs b/OLD/umbraco.webservices/MaintanceService.asmx.cs deleted file mode 100644 index 7ac03c8894..0000000000 --- a/OLD/umbraco.webservices/MaintanceService.asmx.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; - -namespace umbraco.webservices.maintenance -{ - - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class maintenanceService : BaseWebService - { - - override public Services Service - { - get - { - return Services.MaintenanceService; - } - } - - [WebMethod] - public string getWebservicesVersion(string username, string password) - { - // We check if services are enabled and user has access - Authenticate(username, password); - - Version thisVersion = new Version(0, 9); - return Convert.ToString(thisVersion); - } - - [WebMethod] - public void restartApplication(string username, string password) - { - // We check if services are enabled and user has access - Authenticate(username, password); - - System.Web.HttpRuntime.UnloadAppDomain(); - } - - } -} diff --git a/OLD/umbraco.webservices/MediaService.asmx b/OLD/umbraco.webservices/MediaService.asmx deleted file mode 100644 index cfaded1cb1..0000000000 --- a/OLD/umbraco.webservices/MediaService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="MediaService.asmx.cs" Class="umbraco.webservices.media.mediaService" %> diff --git a/OLD/umbraco.webservices/MediaService.asmx.cs b/OLD/umbraco.webservices/MediaService.asmx.cs deleted file mode 100644 index 46f023a2a2..0000000000 --- a/OLD/umbraco.webservices/MediaService.asmx.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; -using System.Collections.Generic; -using System.Xml.Serialization; -using System.Xml; -using umbraco.cms.businesslogic.web; -using umbraco.cms; -using umbraco.cms.businesslogic.member; - -namespace umbraco.webservices.media -{ - - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class mediaService : BaseWebService - { - - override public Services Service - { - get - { - return Services.MediaService; - } - } - - } -} diff --git a/OLD/umbraco.webservices/MemberService.asmx b/OLD/umbraco.webservices/MemberService.asmx deleted file mode 100644 index f65beb00c6..0000000000 --- a/OLD/umbraco.webservices/MemberService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="MemberService.asmx.cs" Class="umbraco.webservices.members.memberService" %> diff --git a/OLD/umbraco.webservices/MemberService.asmx.cs b/OLD/umbraco.webservices/MemberService.asmx.cs deleted file mode 100644 index f0441f0588..0000000000 --- a/OLD/umbraco.webservices/MemberService.asmx.cs +++ /dev/null @@ -1,389 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; -using System.Collections.Generic; -using umbraco.cms.businesslogic.web; -using umbraco.cms; -using System.Xml.Serialization; -using System.Xml; -using umbraco.cms.businesslogic.member; - - -namespace umbraco.webservices.members -{ - - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class memberService : BaseWebService - { - - override public Services Service - { - get - { - return Services.StylesheetService; - } - } - - - /// - /// Reads the user with the specified memberId - /// - /// - [WebMethod] - public memberCarrier readByLogin(string memberLoginName, string memberPassword, string username, string password) - { - Authenticate (username, password); - - umbraco.cms.businesslogic.member.Member foundMember = umbraco.cms.businesslogic.member.Member.GetMemberFromLoginNameAndPassword(memberLoginName, memberPassword); - if (foundMember == null) - return null; - - return CreateMemberCarrier(foundMember); - } - - /// - /// Reads the user with the specified memberId - /// - /// - [WebMethod] - public memberCarrier readById(int memberId, string username, string password) - { - Authenticate(username, password); - - umbraco.cms.businesslogic.member.Member foundMember = new umbraco.cms.businesslogic.member.Member(memberId); - if (foundMember == null) - return null; - - return CreateMemberCarrier(foundMember); - } - - /// - /// Reads the full list of members - /// - /// - [WebMethod] - public List readList(string username, string password) - { - Authenticate(username, password); - - Member[] members = Member.GetAll; - List Members = new List(); - - foreach (umbraco.cms.businesslogic.member.Member member in members) - { - Members.Add(CreateMemberCarrier(member)); - } - - return Members; - } - - - [WebMethod] - public void update(memberCarrier carrier, string username, string password) - { - Authenticate(username, password); - - // Some validation - if (carrier.Id == 0) throw new Exception("ID must be specifed when updating"); - if (carrier == null) throw new Exception("No carrier specified"); - - // Get the user - umbraco.BusinessLogic.User user = GetUser(username, password); - - // We load the member - Member member = new Member(carrier.Id); - - // We assign the new values: - member.LoginName = carrier.LoginName; - member.Text = carrier.DisplayedName; - member.Email = carrier.Email; - member.Password = carrier.Password; - - // We iterate the properties in the carrier - if (carrier.MemberProperties != null) - { - foreach (memberProperty updatedproperty in carrier.MemberProperties) - { - umbraco.cms.businesslogic.property.Property property = member.getProperty(updatedproperty.Key); - if (property != null) - { - property.Value = updatedproperty.PropertyValue; - } - } - } - } - - - [WebMethod] - public int create(memberCarrier carrier, int memberTypeId, string username, string password) - { - Authenticate(username, password); - - // Some validation - if (carrier == null) throw new Exception("No carrier specified"); - if (carrier.Id != 0) throw new Exception("ID cannot be specifed when creating. Must be 0"); - if (string.IsNullOrEmpty(carrier.DisplayedName)) carrier.DisplayedName = "unnamed"; - - // we fetch the membertype - umbraco.cms.businesslogic.member.MemberType mtype = new umbraco.cms.businesslogic.member.MemberType(memberTypeId); - - // Check if the membertype exists - if (mtype == null) throw new Exception("Membertype " + memberTypeId + " not found"); - - // Get the user that creates - umbraco.BusinessLogic.User user = GetUser(username, password); - - // Create the new member - umbraco.cms.businesslogic.member.Member newMember = umbraco.cms.businesslogic.member.Member.MakeNew(carrier.DisplayedName, mtype, user); - - // We iterate the properties in the carrier - if (carrier.MemberProperties != null) - { - foreach (memberProperty updatedproperty in carrier.MemberProperties) - { - umbraco.cms.businesslogic.property.Property property = newMember.getProperty(updatedproperty.Key); - if (property != null) - { - property.Value = updatedproperty.PropertyValue; - } - } - } - return newMember.Id; - } - - - - - /// - /// Deletes the document with the specified ID - /// - /// - /// - /// - [WebMethod] - public void delete(int id, string username, string password) - { - - Authenticate(username, password); - - // We load the member - umbraco.cms.businesslogic.member.Member deleteMember; - try - { - deleteMember = new umbraco.cms.businesslogic.member.Member(id); - } - catch (Exception ex) - { - throw new Exception("Member not found" + ex.Message); - } - - // We delete him (cruel world) - try - { - deleteMember.delete(); - } - catch (Exception ex) - { - throw new Exception("Member could not be deleted" + ex.Message); - } - } - - - - /// - /// Creates container-object for member - /// - /// - /// - private memberCarrier CreateMemberCarrier(umbraco.cms.businesslogic.member.Member member) - { - memberCarrier carrier = new memberCarrier(); - - carrier.Id = member.Id; - - carrier.LoginName = member.LoginName; - carrier.DisplayedName = member.Text; - carrier.Email = member.Email; - carrier.Password = member.Password; - - carrier.MembertypeId = member.ContentType.Id; - carrier.MembertypeName = member.ContentType.Text; - - // Adding groups to member-carrier - IDictionaryEnumerator Enumerator; - Enumerator = member.Groups.GetEnumerator(); - while (Enumerator.MoveNext()) - { - memberGroup group = new memberGroup(Convert.ToInt32(Enumerator.Key), ((umbraco.cms.businesslogic.member.MemberGroup)Enumerator.Value).Text); - carrier.Groups.Add(group); - } - - // Loading properties to carrier - foreach (umbraco.cms.businesslogic.property.Property prop in member.getProperties) - { - memberProperty carrierprop = new memberProperty(); - - if (prop.Value == System.DBNull.Value) - { - carrierprop.PropertyValue = null; - } - else - { - carrierprop.PropertyValue = prop.Value; - } - - carrierprop.Key = prop.PropertyType.Alias; - carrier.MemberProperties.Add(carrierprop); - } - return carrier; - } - - } - - [Serializable] - public class memberGroup - { - int groupID; - string groupName; - - public memberGroup() - { - } - - public memberGroup(int groupID, string groupName) - { - GroupID = groupID; - GroupName = groupName; - } - - public int GroupID - { - get { return groupID; } - set { groupID = value; } - } - - public string GroupName - { - get { return groupName; } - set { groupName = value; } - } - - } - - [Serializable] - [XmlType(Namespace = "http://umbraco.org/webservices/")] - public class memberCarrier - { - - public memberCarrier() - { - memberProperties = new List(); - groups = new List(); - } - - #region Fields - private int id; - - private string password; - private string email; - private string displayedName; - private string loginName; - - private int membertypeId; - private string membertypeName; - - private List groups; - private List memberProperties; - #endregion - - #region Properties - - public int Id - { - get { return id; } - set { id = value; } - } - - public string DisplayedName - { - get { return displayedName; } - set { displayedName = value; } - } - - public string Password - { - get { return password; } - set { password = value; } - } - - public string Email - { - get { return email; } - set { email = value; } - } - - public string LoginName - { - get { return loginName; } - set { loginName = value; } - } - - public int MembertypeId - { - get { return membertypeId; } - set { membertypeId = value; } - } - - - public string MembertypeName - { - get { return membertypeName; } - set { membertypeName = value; } - } - - public List Groups - { - get { return groups; } - set { groups = value; } - } - - public List MemberProperties - { - get { return memberProperties; } - set { memberProperties = value; } - } - - #endregion - } - - [Serializable] - [XmlType(Namespace = "http://umbraco.org/webservices/")] - public class memberProperty - { - private string key; - private object propertyValue; - - public memberProperty() - { - } - - public object PropertyValue - { - get { return propertyValue; } - set { propertyValue = value; } - } - - public string Key - { - get { return key; } - set { key = value; } - } - } - -} diff --git a/OLD/umbraco.webservices/Properties/AssemblyInfo.cs b/OLD/umbraco.webservices/Properties/AssemblyInfo.cs deleted file mode 100644 index 1af6da0868..0000000000 --- a/OLD/umbraco.webservices/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("umbraco.webservices")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("umbraco.webservices")] -[assembly: AssemblyCopyright("Copyright © 2008")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("d2811c25-7894-43d4-867e-5f8b042077b4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OLD/umbraco.webservices/StylesheetService.asmx b/OLD/umbraco.webservices/StylesheetService.asmx deleted file mode 100644 index 4d98082f6c..0000000000 --- a/OLD/umbraco.webservices/StylesheetService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="StylesheetService.asmx.cs" Class="umbraco.webservices.stylesheets.stylesheetService" %> diff --git a/OLD/umbraco.webservices/StylesheetService.asmx.cs b/OLD/umbraco.webservices/StylesheetService.asmx.cs deleted file mode 100644 index c0f3af9c8f..0000000000 --- a/OLD/umbraco.webservices/StylesheetService.asmx.cs +++ /dev/null @@ -1,143 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; -using umbraco.cms.businesslogic.web; -using umbraco.cms; -using umbraco; -using System.Collections.Generic; - -namespace umbraco.webservices.stylesheets -{ - /// - /// Summary description for StylesheetService - /// - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class stylesheetService : BaseWebService - { - - override public Services Service - { - get - { - return Services.StylesheetService; - } - } - - - [WebMethod] - public int create(stylesheetCarrier carrier, string username, string password) - { - Authenticate(username, password); - umbraco.BusinessLogic.User user = GetUser(username, password); - - StyleSheet stylesheet = StyleSheet.MakeNew(user, carrier.Name, (carrier.Name + ".css"), carrier.Content ); - stylesheet.saveCssToFile(); - - return stylesheet.Id; - } - - - [WebMethod] - public stylesheetCarrier read(int id, string username, string password) - { - Authenticate(username, password); - - StyleSheet stylesheet; - try - { - stylesheet = new StyleSheet(id); - } - catch (Exception) - { - throw new Exception("Could not load stylesheet with id: " + id + ", not found"); - } - - if (stylesheet == null) - throw new Exception("Could not load stylesheet with id: " + id + ", not found"); - - return createCarrier(stylesheet); - } - - - [WebMethod] - public List readList(string username, string password) - { - Authenticate(username, password); - - List stylesheets = new List(); - - StyleSheet[] foundstylesheets = StyleSheet.GetAll(); - - foreach (StyleSheet stylesheet in foundstylesheets) - { - stylesheets.Add(createCarrier(stylesheet)); - } - - return stylesheets; - } - - - [WebMethod] - public void update(stylesheetCarrier carrier, string username, string password) - { - Authenticate(username, password); - - StyleSheet stylesheet = null; - try - { - stylesheet = new StyleSheet(carrier.Id); - } - catch - {} - - if (stylesheet == null) - throw new Exception("Could not load stylesheet with id: " + carrier.Id ); - - stylesheet.Content = carrier.Content; - stylesheet.saveCssToFile(); - } - - - private stylesheetCarrier createCarrier(StyleSheet stylesheet) - { - stylesheetCarrier carrier = new stylesheetCarrier(); - carrier.Id = stylesheet.Id; - carrier.Name = stylesheet.Text; - carrier.Content = stylesheet.Content; - return carrier; - } - - - - public class stylesheetCarrier - { - private int id; - private string name; - private string content; - - public int Id - { - get { return id; } - set { id = value; } - } - - public string Name - { - get { return name; } - set { name = value; } - } - - public string Content - { - get { return content; } - set { content = value; } - } - } - } -} diff --git a/OLD/umbraco.webservices/TemplateService.asmx b/OLD/umbraco.webservices/TemplateService.asmx deleted file mode 100644 index 8af78e62dd..0000000000 --- a/OLD/umbraco.webservices/TemplateService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="TemplateService.asmx.cs" Class="umbraco.webservices.templates.templateService" %> diff --git a/OLD/umbraco.webservices/TemplateService.asmx.cs b/OLD/umbraco.webservices/TemplateService.asmx.cs deleted file mode 100644 index 0d31948e33..0000000000 --- a/OLD/umbraco.webservices/TemplateService.asmx.cs +++ /dev/null @@ -1,218 +0,0 @@ -using System; -using System.Data; -using System.Web; -using System.Collections; -using System.Web.Services; -using System.Web.Services.Protocols; -using System.ComponentModel; -using System.Collections.Generic; -using umbraco.cms.businesslogic.web; -using umbraco.cms; -using umbraco; - - -namespace umbraco.webservices.templates -{ - /// - /// Summary description for TemplateService - /// - [WebService(Namespace = "http://umbraco.org/webservices/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [ToolboxItem(false)] - public class templateService : BaseWebService - { - - override public Services Service - { - get - { - return Services.TemplateService; - } - } - - [WebMethod] - public int readIdFromAlias(string alias ,string username, string password) - { - Authenticate(username, password); - - cms.businesslogic.template.Template template ; - - try - { - template = cms.businesslogic.template.Template.GetByAlias(alias); - } - catch ( Exception ) - { - throw new Exception( "Could not load template from alias: " + alias); - } - if (template == null) - { - throw new Exception( "Could not load template from alias: " + alias); - } - - return template.Id; - } - - - [WebMethod] - public List readList(string username, string password) - { - List templateCarriers = new List(); - - Authenticate(username, password); - - foreach (cms.businesslogic.template.Template template in cms.businesslogic.template.Template.getAll()) - { - templateCarriers.Add(createTemplateCarrier(template)); - } - return templateCarriers; - } - - - - [WebMethod] - public void delete(int id, string username, string password) - { - Authenticate(username, password); - - if (id == 0) throw new Exception("ID must be specifed when updating"); - - cms.businesslogic.template.Template template = new cms.businesslogic.template.Template(id); - template.delete(); - } - - [WebMethod] - public int create(templateCarrier carrier, string username, string password) - { - Authenticate(username, password); - - if (carrier.Id != 0) throw new Exception("ID may not be specified when creating"); - if (carrier == null) throw new Exception("No carrier specified"); - - // Get the user - umbraco.BusinessLogic.User user = GetUser(username, password); - - // Create template - cms.businesslogic.template.Template template = cms.businesslogic.template.Template.MakeNew(carrier.Name, user); - - template.MasterTemplate = carrier.MastertemplateId; - template.Alias = carrier.Alias; - template.Text = carrier.Name; - template.Design = carrier.Design; - template.Save(); - clearCachedTemplate(template); - return template.Id; - } - - [WebMethod] - public void update(templateCarrier carrier, string username, string password) - { - - - if (carrier.Id == 0) throw new Exception("ID must be specifed when updating"); - if (carrier == null) throw new Exception("No carrier specified"); - - cms.businesslogic.template.Template template; - try - { - template = new cms.businesslogic.template.Template(carrier.Id); - } - catch (Exception) - { - throw new Exception("Template with ID " + carrier.Id + " not found"); - } - - template.MasterTemplate = carrier.MastertemplateId; - template.Alias = carrier.Alias; - template.Text = carrier.Name ; - template.Design = carrier.Design; - template.Save(); - clearCachedTemplate(template); - } - - [WebMethod] - public templateCarrier read(int id, string username, string password) - { - Authenticate(username, password); - - cms.businesslogic.template.Template template; - try - { - template = new cms.businesslogic.template.Template(id); - } - catch (Exception) - { - throw new Exception("Template with ID " + id + " not found"); - } - if (template == null) - { - throw new Exception("Template with ID " + id + " not found"); - } - - return createTemplateCarrier(template); - } - - public templateCarrier createTemplateCarrier(cms.businesslogic.template.Template template) - { - templateCarrier carrier = new templateCarrier(); - carrier.Id = template.Id; - carrier.MastertemplateId = template.MasterTemplate; - carrier.Alias = template.Alias; - carrier.Name = template.Text; - carrier.Design = template.Design; - return carrier; - } - - - public class templateCarrier - { - private int id; - private int mastertemplateId; - private string name; - private string alias; - private string design; - - public int Id - { - get { return id; } - set { id = value; } - } - - public int MastertemplateId - { - get { return mastertemplateId; } - set { mastertemplateId = value; } - } - - public string Name - { - get { return name; } - set { name = value; } - } - - public string Alias - { - get { return alias; } - set { alias = value; } - } - - public string Design - { - get { return design; } - set { design = value; } - } - } - - private void clearCachedTemplate(cms.businesslogic.template.Template cachedTemplate) - { - // Clear cache in rutime - if (UmbracoSettings.UseDistributedCalls) - umbraco.presentation.cache.dispatcher.Refresh( - new Guid("dd12b6a0-14b9-46e8-8800-c154f74047c8"), - cachedTemplate.Id); - else - umbraco.template.ClearCachedTemplate(cachedTemplate.Id); - } - - } -} diff --git a/OLD/umbraco.webservices/umbraco.webservices.csproj b/OLD/umbraco.webservices/umbraco.webservices.csproj deleted file mode 100644 index 94f7ae4199..0000000000 --- a/OLD/umbraco.webservices/umbraco.webservices.csproj +++ /dev/null @@ -1,111 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {F66213DE-4DA6-4CC5-BFA5-9EA27B155A55} - Library - Properties - umbraco.webservices - umbraco.webservices - SAK - SAK - SAK - SAK - - - true - full - false - ..\presentation\bin\ - DEBUG;TRACE - prompt - 4 - ..\presentation\bin\umbraco.webservices.XML - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - Component - - - - DocumentService.asmx - Component - - - FileService.asmx - Component - - - MaintanceService.asmx - Component - - - MediaService.asmx - Component - - - MemberService.asmx - Component - - - - StylesheetService.asmx - Component - - - TemplateService.asmx - Component - - - - - - - - - - - - - - {E469A9CE-1BEC-423F-AC44-713CD72457EA} - umbraco.businesslogic - - - {CCD75EC3-63DB-4184-B49D-51C1DD337230} - umbraco.cms - - - {651E1350-91B6-44B7-BD60-7207006D7003} - umbraco.presentation - - - - - - xcopy "$(ProjectDir)*.asmx" "$(ProjectDir)..\presentation\umbraco\webservices\api\*.asmx" /Y - - \ No newline at end of file