From b7ac194949b3541a47ba93c96c42bc0cbdf295db Mon Sep 17 00:00:00 2001 From: Ross Gammon Date: Wed, 13 Apr 2016 07:48:20 +1000 Subject: [PATCH] 7763: Remove unused jhtmlarea Files --- data/jhtmlarea/AutoPostTest.aspx | 36 - data/jhtmlarea/AutoPostTest.aspx.vb | 9 - data/jhtmlarea/ColorPickerMenu.htm | 89 - data/jhtmlarea/Default.htm | 128 - data/jhtmlarea/Readme.txt | 117 - data/jhtmlarea/images/disk.png | Bin 620 -> 0 bytes .../scripts/jHtmlArea-0.7.0-vsdoc.js | 365 - data/jhtmlarea/scripts/jHtmlArea-0.7.0.js | 403 -- .../scripts/jHtmlArea-0.7.0.min-vsdoc.js | 357 - data/jhtmlarea/scripts/jHtmlArea-0.7.0.min.js | 8 - .../jHtmlArea.ColorPickerMenu-0.7.0.js | 189 - .../jHtmlArea.ColorPickerMenu-0.7.0.min.js | 8 - data/jhtmlarea/scripts/jquery-1.3.2-vsdoc.js | 6255 ----------------- .../scripts/jquery-1.3.2.min-vsdoc.js | 6255 ----------------- .../style/jHtmlArea.ColorPickerMenu.css | 6 - data/jhtmlarea/style/jHtmlArea.Editor.css | 6 - data/jhtmlarea/style/jHtmlArea.css | 48 - data/jhtmlarea/style/jHtmlArea.png | Bin 8395 -> 0 bytes .../style/jHtmlArea_Toolbar_Group_BG.png | Bin 964 -> 0 bytes ...jHtmlArea_Toolbar_Group__Btn_Select_BG.png | Bin 942 -> 0 bytes .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 260 -> 0 bytes .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 251 -> 0 bytes .../images/ui-bg_flat_10_000000_40x100.png | Bin 178 -> 0 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 104 -> 0 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 125 -> 0 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 105 -> 0 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 3762 -> 0 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 90 -> 0 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 129 -> 0 bytes .../images/ui-icons_222222_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_228ef1_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_ef8c08_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_ffd27a_256x240.png | Bin 4369 -> 0 bytes .../images/ui-icons_ffffff_256x240.png | Bin 4369 -> 0 bytes .../ui-lightness/jquery-ui-1.7.2.custom.css | 406 -- 35 files changed, 14685 deletions(-) delete mode 100644 data/jhtmlarea/AutoPostTest.aspx delete mode 100644 data/jhtmlarea/AutoPostTest.aspx.vb delete mode 100644 data/jhtmlarea/ColorPickerMenu.htm delete mode 100644 data/jhtmlarea/Default.htm delete mode 100644 data/jhtmlarea/Readme.txt delete mode 100644 data/jhtmlarea/images/disk.png delete mode 100644 data/jhtmlarea/scripts/jHtmlArea-0.7.0-vsdoc.js delete mode 100644 data/jhtmlarea/scripts/jHtmlArea-0.7.0.js delete mode 100644 data/jhtmlarea/scripts/jHtmlArea-0.7.0.min-vsdoc.js delete mode 100644 data/jhtmlarea/scripts/jHtmlArea-0.7.0.min.js delete mode 100644 data/jhtmlarea/scripts/jHtmlArea.ColorPickerMenu-0.7.0.js delete mode 100644 data/jhtmlarea/scripts/jHtmlArea.ColorPickerMenu-0.7.0.min.js delete mode 100644 data/jhtmlarea/scripts/jquery-1.3.2-vsdoc.js delete mode 100644 data/jhtmlarea/scripts/jquery-1.3.2.min-vsdoc.js delete mode 100644 data/jhtmlarea/style/jHtmlArea.ColorPickerMenu.css delete mode 100644 data/jhtmlarea/style/jHtmlArea.Editor.css delete mode 100644 data/jhtmlarea/style/jHtmlArea.css delete mode 100644 data/jhtmlarea/style/jHtmlArea.png delete mode 100644 data/jhtmlarea/style/jHtmlArea_Toolbar_Group_BG.png delete mode 100644 data/jhtmlarea/style/jHtmlArea_Toolbar_Group__Btn_Select_BG.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-icons_222222_256x240.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-icons_228ef1_256x240.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-icons_ef8c08_256x240.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-icons_ffd27a_256x240.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/images/ui-icons_ffffff_256x240.png delete mode 100644 data/jhtmlarea/style/jqueryui/ui-lightness/jquery-ui-1.7.2.custom.css diff --git a/data/jhtmlarea/AutoPostTest.aspx b/data/jhtmlarea/AutoPostTest.aspx deleted file mode 100644 index 650a3edb7..000000000 --- a/data/jhtmlarea/AutoPostTest.aspx +++ /dev/null @@ -1,36 +0,0 @@ -<%@ Page Language="VB" ValidateRequest="false" AutoEventWireup="false" CodeFile="AutoPostTest.aspx.vb" Inherits="PostTest" %> - - - - - - - - - - - - - -
-
- - -
- - - -
- - - -
-
- - diff --git a/data/jhtmlarea/AutoPostTest.aspx.vb b/data/jhtmlarea/AutoPostTest.aspx.vb deleted file mode 100644 index dc6babd2c..000000000 --- a/data/jhtmlarea/AutoPostTest.aspx.vb +++ /dev/null @@ -1,9 +0,0 @@ - -Partial Class PostTest - Inherits System.Web.UI.Page - - Public Sub PostTest_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load - txtText.Value = Request("txtText") - litText.Text = txtText.Value - End Sub -End Class diff --git a/data/jhtmlarea/ColorPickerMenu.htm b/data/jhtmlarea/ColorPickerMenu.htm deleted file mode 100644 index 3b91b85b2..000000000 --- a/data/jhtmlarea/ColorPickerMenu.htm +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - -

jHtmlArea Live Demo - jHtmlAreaColorPickerMenu Example

-

The jHtmlAreaColorPickerMenu plugin/extension allows you to show a simple Color Picker Menu when the user clicks on the "forecolor" Toolbar Button.

- -

-jHtmlArea Project Homepage - |  -Downloads - |  -Discussions - |  -Issue Tracker -

- - - - - - - -
- - - - The jHtmlAreaColorPickerMenu object can also be reused for other purposes. For example clicking on the button below will allow you to change the background color of the page. -
- - - -




-
-
-

Editor within a "position: relative" DIV element.

- - -
- - diff --git a/data/jhtmlarea/Default.htm b/data/jhtmlarea/Default.htm deleted file mode 100644 index c7ade129c..000000000 --- a/data/jhtmlarea/Default.htm +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -


- - - - - - - - - - -


- -

Use jHtmlArea within jQuery UI Dialog

- - - - - - - - - -

To see a "proper" example of the "Font Color" button, you'll want to see the "jHtmlAreaColorPickerMenu" in action here: ColorPickerMenu.htm

- - diff --git a/data/jhtmlarea/Readme.txt b/data/jhtmlarea/Readme.txt deleted file mode 100644 index fcefdc67c..000000000 --- a/data/jhtmlarea/Readme.txt +++ /dev/null @@ -1,117 +0,0 @@ -/* jHtmlArea - WYSIWYG Html Editor jQuery Plugin - * Copyright (c) 2009 Chris Pietschmann - * http://jhtmlarea.codeplex.com - * Licensed under the Microsoft Reciprocal License (Ms-RL) - * http://jhtmlarea.codeplex.com/license -*/ - -EXAMPLE USAGE: ------------------------ -See "Default.htm" for example usages. -Or, check out http://jhtmlarea.codeplex.com - - -CHANGE LOG ------------------------ -v0.7.0 -- Fixed ColorPickerMenu positioning when placed within a "position: relative" -div element. - -- Fixed ColorPickerMenu to auto-hide after a short delay (1 second) once the -user moves the mouse off the menu. - -- Fixed Form Submit issue that caused the text to not be posted. Also fixed a -related issue with ASP.NET Postbacks. - -- Added jHtmlArea.p method and "paragraph" functionality + toolbar button -This allows the user to change the formatting from

,

, etc. to

- -- Added an "Automatic" color option to the ColorPickerMenu. - - -v0.6.0 -- Hide All Toolbar buttons except the "html" button when entering -HTML Source view (via clicking "html" button or executing -jHtmlArea.showHTMLView). When toggling view back to the WYSIWYG editor -all other buttons will then be shown again. - -- Added jHtmlArea.dispose method - Allows you to remove the WYSIWYG -editor, and go back to having a plain TextArea. Beware, there is a -memory leak when using this method; it's not too bad, but you want -to call this as few a number of times if you can. The memory leak -is due to the way the browsers handle removing DOM Elements. - -- Added Indent and Outdent functionality - This includes toolbar buttons -and jHtmlArea.indent and jHtmlArea.outdent buttons. - -- Added justifyLeft, justifyCenter, justifyRight functionality and toolbar -buttons. - -- Added insertHorizontalRule functionality and toolbar button. This adds a -


tag to the currently selected area. - -- Added an "alias" method for jHtmlArea.execCommand named "ec" to help reduce the -file size of the script. - -- Added increaseFontSize and decreaseFontSize functionality and toolbar buttons. -The increaseFontSize and decreaseFontSize doesn't currently work in Safari. - -- Added forecolor functionality - Changes a font color for the selection or at the -insertion point. Requires a color value string to be passed in as a value argument. - -- Fixed bug in jHtmlArea.toString method - -- Added jHtmlArea.queryCommandValue method and it's alias "jHtmlArea.qc" - -- Added the jHtmlAreaColorPickerMenu plugin/extension that resides within the -"jHtmlAreaColorPickerMenu.js" file. This file includes a somewhat generic color -picker menu that can be used for any purpose, plus it includes the code to wire -up and override the "stock" jHtmlColor.forecolor functionality and inject the new -Color Picker Menu functionality in it's place when you click on the "forecolor" -toolbar button. - -- Changed the "execCommand" and "ec" second parameter to default to "false" if not -specified, and third parameter to default to "null" if not specified. This helps to -reduce the overall file size of the script. - -- Added support for Toolbar Button Grouping, now with the additional buttons included -in this release, or even when any custom buttons are used, they will be able to display -nicely by "auto-wrapping" to the next line. - -- Added a gradient background to the Toolbar Button Groups, with a slight reverse -gradient on the Buttons when the mouse is hovered over. - - -v0.5.0 - Initial Release - - - - -ICONS / IMAGES: ------------------------ - -Some of the Icons within the jHtmlArea.png file are from the -Silk icon set at www.famfamfam.com. -They are licensed under the following license: - -Silk icon set 1.3 -_________________________________________ -Mark James -http://www.famfamfam.com/lab/icons/silk/ -_________________________________________ - -This work is licensed under a -Creative Commons Attribution 2.5 License. -[ http://creativecommons.org/licenses/by/2.5/ ] - -This means you may use it for any purpose, -and make any changes you like. -All I ask is that you include a link back -to this page in your credits. - -Are you using this icon set? Send me an email -(including a link or picture if available) to -mjames@gmail.com - -Any other questions about this icon set please -contact mjames@gmail.com \ No newline at end of file diff --git a/data/jhtmlarea/images/disk.png b/data/jhtmlarea/images/disk.png deleted file mode 100644 index 99d532e8b1750115952f97302a92d713c0486f97..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 620 zcmV-y0+aoTP)~H+MJzd|s z^YP1Hc07G_>)Lgir!F1{Qn4GcTg%?koHo<=1qRN{}nPDolOeI^o4N5I>! zU$N=L=sg~ zDx#dOA*B0N~cqPsWI(^rbbkh)DS0_H_UN0C4l_kvWIm2#Kyy6%BCh z(yIUf003&1xdx>t$*eR2ZvXxT0001Z_R$y3Iju92q*wg58};}zm(OaAH=p|y0002M zh5O5#fxp|~jc?yi@+7$`d4Q6Hl%z;WiWG??NXR{Hx%)pMd~SE0000OQI diff --git a/data/jhtmlarea/scripts/jHtmlArea-0.7.0-vsdoc.js b/data/jhtmlarea/scripts/jHtmlArea-0.7.0-vsdoc.js deleted file mode 100644 index 2bc84d0fa..000000000 --- a/data/jhtmlarea/scripts/jHtmlArea-0.7.0-vsdoc.js +++ /dev/null @@ -1,365 +0,0 @@ -/* - * This file has been commented to support Visual Studio Intellisense. - * You should not use this file at runtime inside the browser--it is only - * intended to be used only for design-time IntelliSense. Please use the - * standard jHtmlArea library for all production use. - */ - -/* -* jHtmlArea 0.7.0 - WYSIWYG Html Editor jQuery Plugin -* Copyright (c) 2009 Chris Pietschmann -* http://jhtmlarea.codeplex.com -* Licensed under the Microsoft Reciprocal License (Ms-RL) -* http://jhtmlarea.codeplex.com/license -*/ -(function($) { - $.fn.htmlarea = function(options) { - /// - /// 1: (options) - Convert all TextArea DOM Elements to be displayed as jHtmlArea WYSIWYG Editors. - /// 2: (string, arguments) - This function accepts a string containing the method name that you want to execute against the jHtmlArea object. - /// - /// - /// 1: options - The custom options you want applied to the jHtmlArea's that are created. - /// 2: string - The name of the jHtmlArea object method to be executed. The results of the method call are then returned instead of the jQuery object. - /// - }; - var jHtmlArea = window.jHtmlArea = function(elem, options) { - /// - /// Converts the passed in TextArea DOM Element to a jHtmlArea WYSIWYG Editor. - /// - /// - /// The TextArea DOM Element to be converted to a jHtmlArea WYSIWYG Editor. Required. - /// - /// - /// The custom options you want applied to the jHtmlArea that is created. Optional. - /// - /// - /// The Default Options that are used for configuring the jHtmlArea WYSIWYG Editor upon creation. - /// - /// - }; - jHtmlArea.fn = jHtmlArea.prototype = { - - // The current version of jHtmlArea being used - jhtmlarea: "0.7.0", - - init: function(elem, options) { - /// - /// Converts the passed in TextArea DOM Element to a jHtmlArea WYSIWYG Editor. - /// - /// - /// Required. The TextArea DOM Element to be converted to a jHtmlArea WYSIWYG Editor. - /// - /// - /// Optional. The custom options you want applied to the jHtmlArea that is created. - /// - /// - }, - execCommand: function(a, b, c) { - /// - /// Executes a command on the current document, current selection, or the given range. - /// - /// - /// Required. String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. - /// - /// - /// Optional. Boolean that specifies one of the following values: - /// "false" = Default. Do not display a user interface. Must be combined with vValue, if the command requires a value. - /// "true" = Display a user interface if the command supports one. - /// - /// - /// Optional. Variant that specifies the string, number, or other value to assign. Possible values depend on the command. - /// - }, - ec: function(a, b, c) { - /// - /// Executes a command on the current document, current selection, or the given range. An alias for the "execCommand" method. - /// - /// - /// Required. String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. - /// - /// - /// Optional. Boolean that specifies one of the following values: - /// "false" = Default. Do not display a user interface. Must be combined with vValue, if the command requires a value. - /// "true" = Display a user interface if the command supports one. - /// - /// - /// Optional. Variant that specifies the string, number, or other value to assign. Possible values depend on the command. - /// - }, - queryCommandValue: function(a) { - /// - /// Returns the current value of the document, range, or current selection for the given command. - /// - /// - /// Required. String that specifies a command identifier. - /// - /// - }, - qc: function(a) { - /// - /// Returns the current value of the document, range, or current selection for the given command. An alias for the "queryCommandValue" method. - /// - /// - /// Required. String that specifies a command identifier. - /// - /// - }, - getSelectedHTML: function() { - /// - /// Returns the HTML that is currently selected within the editor. - /// - /// - }, - getSelection: function() { - /// - /// Returns the Browser Selection object that represents the currently selected region of the editor. - /// - /// - }, - getRange: function() { - /// - /// Returns the Browser Range object that represents the currently selected region of the editor. (This uses the "getSelection" method internally.) - /// - /// - }, - html: function(v) { - /// - /// 1: () Returns the HTML text value contained within the editor. 2: (v) Sets the editors value to the HTML text passed in. - /// - /// - /// The HTML text to set the editors value to. - /// - }, - pasteHTML: function(html) { - /// - /// Pastes HTML text into the editor, replacing any currently selected text and HTML elements. - /// - /// - /// The HTML text to paste/insert. - /// - }, - cut: function() { - /// - /// Copies the current selection to the clipboard and then deletes it. - /// - }, - copy: function() { - /// - /// Copies the current selection to the clipboard. - /// - }, - paste: function() { - /// - /// Overwrites the contents of the clipboard on the current selection. - /// - }, - bold: function() { - /// - /// Toggles the current selection between bold and nonbold. - /// - }, - italic: function() { - /// - /// Toggles the current selection between italic and nonitalic. - /// - }, - underline: function() { - /// - /// Toggles the current selection between underlined and not underlined. - /// - }, - strikeThrough: function() { - /// - /// If there is a selection and all of the characters are already striked, the strikethrough will be removed. Otherwise, all selected characters will have a line drawn through them. - /// - }, - image: function(url) { - /// - /// This command will insert an image (referenced by url) at the insertion point. - /// If no URL is specified, a prompt will be displayed to the user. - /// - /// - /// The URL to the Image to be inserted. If no URL is specified, a prompt will be shown. - /// - }, - removeFormat: function() { - /// - /// Removes the formatting tags from the current selection. - /// - }, - link: function() { - /// - /// Inserts a hyperlink on the current selection, or displays a dialog box enabling the user to specify a URL to insert as a hyperlink on the current selection. - /// - }, - unlink: function() { - /// - /// Removes any hyperlink from the current selection. - /// - }, - orderedList: function() { - /// - /// Converts the text selection into an ordered list. - /// - }, - unorderedList: function() { - /// - /// Converts the text selection into an unordered list. - /// - }, - superscript: function() { - /// - /// If there is a selection and all of the characters are already superscripted, the superscript will be removed. Otherwise, all selected characters will be drawn slightly higher than normal text. - /// - }, - subscript: function() { - /// - /// If there is a selection and all of the characters are already subscripted, the subscript will be removed. Otherwise, all selected characters will be drawn slightly lower than normal text. - /// - }, - - p: function() { - /// - /// Sets the current block format tag to

. - ///

- }, - h1: function() { - /// - /// Sets the current block format tag to

. - ///

- }, - h2: function() { - /// - /// Sets the current block format tag to

. - ///

- }, - h3: function() { - /// - /// Sets the current block format tag to

. - ///

- }, - h4: function() { - /// - /// Sets the current block format tag to

. - ///

- }, - h5: function() { - /// - /// Sets the current block format tag to
. - ///
- }, - h6: function() { - /// - /// Sets the current block format tag to
. - ///
- }, - heading: function(h) { - /// - /// Sets the current block format tag to tag. - /// Example: Calling jHtmlArea.heading(2) will be the same as calling jHtmlArea.h2() - /// - /// - /// The Number of Header () tag to format the current block with. - /// For Example: Passing a 2 or "2" will cause the current block to be formatted with a

tag. - /// - }, - - indent: function() { - /// - /// Indents the selection or insertion point. - /// - }, - outdent: function() { - /// - /// Outdents the selection or insertion point. - /// - }, - - insertHorizontalRule: function() { - /// - /// Inserts a horizontal rule at the insertion point (deletes selection). - /// - }, - - justifyLeft: function() { - /// - /// Justifies the selection or insertion point to the left. - /// - }, - justifyCenter: function() { - /// - /// Centers the selection or insertion point. - /// - }, - justifyRight: function() { - /// - /// Right-justifies the selection or the insertion point. - /// - }, - - increaseFontSize: function() { - /// - /// Increases the Font Size around the selection or at the insertion point. - /// - }, - decreaseFontSize: function() { - /// - /// Decreases the Font Size around the selection or at the insertion point. - /// - }, - - forecolor: function(c) { - /// - /// Changes a font color for the selection or at the insertion point. Requires a color value string to be passed in as a value argument. - /// - }, - - formatBlock: function(v) { - /// - /// Sets the current block format tag. - /// - }, - - showHTMLView: function() { - /// - /// Shows the HTML/Source View (TextArea DOM Element) within the Editor and hides the WYSIWYG interface. - /// - }, - hideHTMLView: function() { - /// - /// Hides the HTML/Source View (TextArea DOM Element) within the Editor and displays the WYSIWYG interface. - /// - }, - toggleHTMLView: function() { - /// - /// Toggles between HTML/Source View (TextArea DOM Element) and the WYSIWYG interface within the Editor. - /// - }, - - toHtmlString: function() { - /// - /// Returns the HTML text contained within the editor. - /// - /// - }, - toString: function() { - /// - /// Return the Text contained within the editor, with all HTML tags removed. - /// - /// - }, - - updateTextArea: function() { - /// - /// Forces the TextArea DOM Element to by sync'd with the contents of the HTML WYSIWYG Editor. - /// - }, - updateHtmlArea: function() { - /// - /// Forces the HTML WYSIWYG Editor to be sync'd with the contents of the TextArea DOM Element. - /// - } - }; - jHtmlArea.fn.init.prototype = jHtmlArea.fn; -})(jQuery); \ No newline at end of file diff --git a/data/jhtmlarea/scripts/jHtmlArea-0.7.0.js b/data/jhtmlarea/scripts/jHtmlArea-0.7.0.js deleted file mode 100644 index 4e0ca1ec6..000000000 --- a/data/jhtmlarea/scripts/jHtmlArea-0.7.0.js +++ /dev/null @@ -1,403 +0,0 @@ -/* -* jHtmlArea 0.7.0 - WYSIWYG Html Editor jQuery Plugin -* Copyright (c) 2009 Chris Pietschmann -* http://jhtmlarea.codeplex.com -* Licensed under the Microsoft Reciprocal License (Ms-RL) -* http://jhtmlarea.codeplex.com/license -*/ -(function($) { - $.fn.htmlarea = function(opts) { - if (opts && typeof (opts) === "string") { - var args = []; - for (var i = 1; i < arguments.length; i++) { args.push(arguments[i]); } - var htmlarea = jHtmlArea(this[0]); - var f = htmlarea[opts]; - if (f) { return f.apply(htmlarea, args); } - } - return this.each(function() { jHtmlArea(this, opts); }); - }; - var jHtmlArea = window.jHtmlArea = function(elem, options) { - if (elem.jquery) { - return jHtmlArea(elem[0]); - } - if (elem.jhtmlareaObject) { - return elem.jhtmlareaObject; - } else { - return new jHtmlArea.fn.init(elem, options); - } - }; - jHtmlArea.fn = jHtmlArea.prototype = { - - // The current version of jHtmlArea being used - jhtmlarea: "0.7.0", - - init: function(elem, options) { - if (elem.nodeName.toLowerCase() === "textarea") { - var opts = $.extend({}, jHtmlArea.defaultOptions, options); - elem.jhtmlareaObject = this; - - var textarea = this.textarea = $(elem); - var container = this.container = $("
").addClass("jHtmlArea").width(textarea.width()).insertAfter(textarea); - - var toolbar = this.toolbar = $("
").addClass("ToolBar").appendTo(container); - priv.initToolBar.call(this, opts); - - var iframe = this.iframe = $("