Skip to content
This repository
Browse code

Updated to version 0.0.19

  • Loading branch information...
commit afcf5c9f9d3fa30c6617b969689f3116c661e0bb 1 parent bd2b37c
Michael Robinson authored August 16, 2012
2  build.properties
... ...
@@ -1,6 +1,6 @@
1 1
 # Default includes nothing.
2 2
 strip.blocks=debug|strict|docs
3  
-version=0.0.18
  3
+version=0.0.19
4 4
 filename=raptor
5 5
 dir.build=build/default
6 6
 dir.package=packages
203  packages/raptor.0deps.js
... ...
@@ -1,5 +1,5 @@
1 1
 /*! 
2  
-VERSION: 0.0.17 
  2
+VERSION: 0.0.19 
3 3
 For license information, see http://www.raptor-editor.com/license
4 4
 */
5 5
 /**
@@ -27656,7 +27656,7 @@ $.extend($.ui.editor,
27656 27656
     /**
27657 27657
      * @property {Object} templates
27658 27658
      */
27659  
-    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'color-picker-basic.menu': "<div name=\"color-picker-basic\" class=\"ui-editor-color-picker-basic-select ui-editor-selectmenu\">\n    <div class=\"ui-editor-selectmenu-option\" value=\"automatic\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"display: none\"><\/div> <span>Clear<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"white\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #ffffff\"><\/div> <span>White<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"black\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #000000\"><\/div> <span>Black<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"grey\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #999\"><\/div> <span>Grey<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"blue\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #4f81bd\"><\/div> <span>Blue<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"red\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #c0504d\"><\/div> <span>Red<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"green\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #9bbb59\"><\/div> <span>Green<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"purple\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #8064a2\"><\/div> <span>Purple<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"orange\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #f79646\"><\/div> <span>Orange<\/span><\/div>\n<\/div>\n",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
  27659
+    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
27660 27660
 
27661 27661
     /**
27662 27662
      * @param {String} name
@@ -28481,7 +28481,7 @@ $.ui.editor.registerPlugin({
28481 28481
                 .find(this.options.stripEmptyTags[i])
28482 28482
                 .filter(function() {
28483 28483
                     // Do not remove ignored elements. Inserter is responsible for these.
28484  
-                    if ($(this).hasClass(plugin.options.supplementaryClass)) {
  28484
+                    if ($(this).hasClass(editor.options.supplementaryClass)) {
28485 28485
                         return false;
28486 28486
                     }
28487 28487
                     // Do not clear selection markers if the editor has it in use
@@ -28810,64 +28810,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
28810 28810
     }
28811 28811
 });
28812 28812
 /**
28813  
- * @fileOverview UI component basic color selection
28814  
- * @author David Neilsen david@panmedia.co.nz
28815  
- */
28816  
-$.ui.editor.registerUi('colorPickerBasic', {
28817  
-    /**
28818  
-     * @see $.ui.editor.defaultUi#init
28819  
-     */
28820  
-    init: function(editor) {
28821  
-        editor.bind('selectionChange', this.change, this);
28822  
-        editor.bind('show', this.change, this);
28823  
-
28824  
-        var ui = this;
28825  
-
28826  
-        return editor.uiSelectMenu({
28827  
-            name: 'colorPickerBasic',
28828  
-            title: _('Change the color of the selected text.'),
28829  
-            select: $(editor.getTemplate('color-picker-basic.menu')),
28830  
-            change: function(value) {
28831  
-                if (value === 'automatic') {
28832  
-                    selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
28833  
-                        var element = $(this),
28834  
-                            classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
28835  
-                        $.each(classes, function(i, color) {
28836  
-                            color = $.trim(color);
28837  
-                            element.removeClass(color);
28838  
-                        });
28839  
-                    });
28840  
-                } else {
28841  
-                    selectionToggleWrapper('span', {
28842  
-                        classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
28843  
-                    });
28844  
-                }
28845  
-            }
28846  
-        });
28847  
-    },
28848  
-
28849  
-    change: function() {
28850  
-        this.ui.val('automatic');
28851  
-        var tag = selectionGetElements()[0];
28852  
-        if (!tag) {
28853  
-            return;
28854  
-        }
28855  
-        tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
28856  
-        if (!tag) {
28857  
-            return;
28858  
-        }
28859  
-
28860  
-        var classes = tag.attr('class');
28861  
-        if (classes) {
28862  
-            classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
28863  
-            var color = classes.match(/cms-(.*?)( |$)/i)[1];
28864  
-            if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
28865  
-                this.ui.val(color);
28866  
-            }
28867  
-        }
28868  
-    }
28869  
-});
28870  
-/**
28871 28813
  * @fileOverview Dock plugin
28872 28814
  * @author David Neilsen david@panmedia.co.nz
28873 28815
  * @author Michael Robinson michael@panmedia.co.nz
@@ -29417,138 +29359,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
29417 29359
 
29418 29360
 });
29419 29361
 /**
29420  
- * @fileOverview File Manager ui component
29421  
- * @author David Neilsen david@panmedia.co.nz
29422  
- * @author Michael Robinson michael@panmedia.co.nz
29423  
- */
29424  
-$(function() {
29425  
-
29426  
-     $.ui.editor.registerUi({
29427  
-
29428  
-       /**
29429  
-        * @name $.editor.ui.insertFile
29430  
-        * @augments $.ui.editor.defaultUi
29431  
-        */
29432  
-        insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
29433  
-
29434  
-            fileManager: null,
29435  
-
29436  
-            imageTypes: [
29437  
-                'jpg',
29438  
-                'jpeg',
29439  
-                'png',
29440  
-                'gif'
29441  
-            ],
29442  
-
29443  
-            /**
29444  
-             * @see $.ui.editor.defaultUi#init
29445  
-             */
29446  
-            init: function(editor, options) {
29447  
-                return editor.uiButton({
29448  
-                    title: 'Insert image or uploaded file',
29449  
-                    icon: 'ui-icon-image',
29450  
-                    click: function() {
29451  
-
29452  
-                        var ui = this;
29453  
-                        selectionSave();
29454  
-
29455  
-                        if (this.fileManager === null) {
29456  
-                            this.fileManager = $.ui.filemanager.create({
29457  
-                                enablePlugins: false,
29458  
-                                // ajaxSource: '/filemanager/admin',
29459  
-                                plugins: {
29460  
-                                    datatables: !XMod.FileManager.Permissions.insert ? false : {
29461  
-                                        ajaxSource: '/filemanager/admin/datatables',
29462  
-                                        insertionCallback: function(files) {
29463  
-
29464  
-                                            selectionRestore();
29465  
-
29466  
-                                            if (!files.length) {
29467  
-                                                return true;
29468  
-                                            }
29469  
-
29470  
-                                            var completeInsertion = function() {
29471  
-                                                ui.editor.fire('change');
29472  
-                                                return true;
29473  
-                                            };
29474  
-
29475  
-                                            var anchorClassNames = function(file, options) {
29476  
-                                                return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
29477  
-                                            };
29478  
-
29479  
-                                            if (files.length === 1) {
29480  
-                                                var file = files[0];
29481  
-
29482  
-                                                if (ui.isImage(file)) {
29483  
-                                                    selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
29484  
-                                                    return completeInsertion();
29485  
-                                                }
29486  
-
29487  
-                                                if (ui.editor.selectionExists()) {
29488  
-                                                    selectionWrapTagWithAttribute('a', {
29489  
-                                                        href: file.url,
29490  
-                                                        className: anchorClassNames(file, ui.options)
29491  
-                                                    });
29492  
-                                                    return completeInsertion();
29493  
-                                                }
29494  
-                                                selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
29495  
-                                                return completeInsertion();
29496  
-
29497  
-                                            }
29498  
-
29499  
-                                            var elements = [];
29500  
-                                            var file;
29501  
-                                            for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
29502  
-                                                file = files[filesIndex];
29503  
-                                                if (ui.isImage(file)) {
29504  
-                                                    elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
29505  
-                                                } else {
29506  
-                                                    elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
29507  
-                                                }
29508  
-                                            }
29509  
-                                            selectionReplace(elements.join(', '));
29510  
-                                            return completeInsertion();
29511  
-                                        }
29512  
-                                    },
29513  
-                                    plupload: !XMod.FileManager.Permissions.upload ? false : {
29514  
-                                        url: '/filemanager/admin/plupload'
29515  
-                                    }
29516  
-                                }
29517  
-                            });
29518  
-                        }
29519  
-
29520  
-                        $(this.fileManager).filemanager('show');
29521  
-                    }
29522  
-                });
29523  
-            },
29524  
-
29525  
-            isImage: function(file) {
29526  
-                if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
29527  
-                    return true;
29528  
-                }
29529  
-                return false;
29530  
-            },
29531  
-
29532  
-            createImage: function(file, classNames) {
29533  
-                return $('<img/>').attr({
29534  
-                    src: file.url,
29535  
-                    title: file.name,
29536  
-                    'class': classNames
29537  
-                });
29538  
-            },
29539  
-
29540  
-            createAnchor: function(file, classNames) {
29541  
-                return $('<a/>').attr({
29542  
-                    href: file.url,
29543  
-                    title: file.name,
29544  
-                    'class': classNames
29545  
-                }).html(file.name);
29546  
-            }
29547  
-
29548  
-        }
29549  
-    });
29550  
-});
29551  
-/**
29552 29362
  * @fileOverview Float ui components
29553 29363
  * @author David Neilsen david@panmedia.co.nz
29554 29364
  * @author Michael Robinson michael@panmedia.co.nz
@@ -30812,7 +30622,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
30812 30622
 
30813 30623
         var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
30814 30624
             .appendTo('body')
30815  
-            .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
  30625
+            .addClass(this.options.resizeButtonClass)
30816 30626
             .button({
30817 30627
                 text: false,
30818 30628
                 icons: {
@@ -30828,6 +30638,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
30828 30638
             .attr('contenteditable', false)
30829 30639
             .click($.proxy(this.manuallyResizeImage, this));
30830 30640
 
  30641
+        resizeButton.addClass(this.editor.options.supplementaryClass)
  30642
+            .find('span').addClass(this.editor.options.supplementaryClass);
  30643
+
30831 30644
         $(image).before(resizeButton);
30832 30645
     },
30833 30646
 
@@ -32115,7 +31928,7 @@ $.ui.editor.registerUi({
32115 31928
                     }
32116 31929
 
32117 31930
                     this.ui.button.find('.ui-button-icon-primary').css({
32118  
-                        'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
  31931
+                        'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
32119 31932
                     });
32120 31933
                 }
32121 31934
             });
882  packages/raptor.0deps.min.js
438 additions, 444 deletions not shown
BIN  packages/raptor.0deps.min.js.gz
Binary file not shown
203  packages/raptor.0deps.nc.js
... ...
@@ -1,5 +1,5 @@
1 1
 /*! 
2  
-VERSION: 0.0.17 
  2
+VERSION: 0.0.19 
3 3
 For license information, see http://www.raptor-editor.com/license
4 4
 */
5 5
 /**
@@ -27662,7 +27662,7 @@ $.extend($.ui.editor,
27662 27662
     /**
27663 27663
      * @property {Object} templates
27664 27664
      */
27665  
-    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'color-picker-basic.menu': "<div name=\"color-picker-basic\" class=\"ui-editor-color-picker-basic-select ui-editor-selectmenu\">\n    <div class=\"ui-editor-selectmenu-option\" value=\"automatic\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"display: none\"><\/div> <span>Clear<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"white\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #ffffff\"><\/div> <span>White<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"black\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #000000\"><\/div> <span>Black<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"grey\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #999\"><\/div> <span>Grey<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"blue\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #4f81bd\"><\/div> <span>Blue<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"red\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #c0504d\"><\/div> <span>Red<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"green\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #9bbb59\"><\/div> <span>Green<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"purple\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #8064a2\"><\/div> <span>Purple<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"orange\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #f79646\"><\/div> <span>Orange<\/span><\/div>\n<\/div>\n",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
  27665
+    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
27666 27666
 
27667 27667
     /**
27668 27668
      * @param {String} name
@@ -28487,7 +28487,7 @@ $.ui.editor.registerPlugin({
28487 28487
                 .find(this.options.stripEmptyTags[i])
28488 28488
                 .filter(function() {
28489 28489
                     // Do not remove ignored elements. Inserter is responsible for these.
28490  
-                    if ($(this).hasClass(plugin.options.supplementaryClass)) {
  28490
+                    if ($(this).hasClass(editor.options.supplementaryClass)) {
28491 28491
                         return false;
28492 28492
                     }
28493 28493
                     // Do not clear selection markers if the editor has it in use
@@ -28816,64 +28816,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
28816 28816
     }
28817 28817
 });
28818 28818
 /**
28819  
- * @fileOverview UI component basic color selection
28820  
- * @author David Neilsen david@panmedia.co.nz
28821  
- */
28822  
-$.ui.editor.registerUi('colorPickerBasic', {
28823  
-    /**
28824  
-     * @see $.ui.editor.defaultUi#init
28825  
-     */
28826  
-    init: function(editor) {
28827  
-        editor.bind('selectionChange', this.change, this);
28828  
-        editor.bind('show', this.change, this);
28829  
-
28830  
-        var ui = this;
28831  
-
28832  
-        return editor.uiSelectMenu({
28833  
-            name: 'colorPickerBasic',
28834  
-            title: _('Change the color of the selected text.'),
28835  
-            select: $(editor.getTemplate('color-picker-basic.menu')),
28836  
-            change: function(value) {
28837  
-                if (value === 'automatic') {
28838  
-                    selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
28839  
-                        var element = $(this),
28840  
-                            classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
28841  
-                        $.each(classes, function(i, color) {
28842  
-                            color = $.trim(color);
28843  
-                            element.removeClass(color);
28844  
-                        });
28845  
-                    });
28846  
-                } else {
28847  
-                    selectionToggleWrapper('span', {
28848  
-                        classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
28849  
-                    });
28850  
-                }
28851  
-            }
28852  
-        });
28853  
-    },
28854  
-
28855  
-    change: function() {
28856  
-        this.ui.val('automatic');
28857  
-        var tag = selectionGetElements()[0];
28858  
-        if (!tag) {
28859  
-            return;
28860  
-        }
28861  
-        tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
28862  
-        if (!tag) {
28863  
-            return;
28864  
-        }
28865  
-
28866  
-        var classes = tag.attr('class');
28867  
-        if (classes) {
28868  
-            classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
28869  
-            var color = classes.match(/cms-(.*?)( |$)/i)[1];
28870  
-            if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
28871  
-                this.ui.val(color);
28872  
-            }
28873  
-        }
28874  
-    }
28875  
-});
28876  
-/**
28877 28819
  * @fileOverview Dock plugin
28878 28820
  * @author David Neilsen david@panmedia.co.nz
28879 28821
  * @author Michael Robinson michael@panmedia.co.nz
@@ -29423,138 +29365,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
29423 29365
 
29424 29366
 });
29425 29367
 /**
29426  
- * @fileOverview File Manager ui component
29427  
- * @author David Neilsen david@panmedia.co.nz
29428  
- * @author Michael Robinson michael@panmedia.co.nz
29429  
- */
29430  
-$(function() {
29431  
-
29432  
-     $.ui.editor.registerUi({
29433  
-
29434  
-       /**
29435  
-        * @name $.editor.ui.insertFile
29436  
-        * @augments $.ui.editor.defaultUi
29437  
-        */
29438  
-        insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
29439  
-
29440  
-            fileManager: null,
29441  
-
29442  
-            imageTypes: [
29443  
-                'jpg',
29444  
-                'jpeg',
29445  
-                'png',
29446  
-                'gif'
29447  
-            ],
29448  
-
29449  
-            /**
29450  
-             * @see $.ui.editor.defaultUi#init
29451  
-             */
29452  
-            init: function(editor, options) {
29453  
-                return editor.uiButton({
29454  
-                    title: 'Insert image or uploaded file',
29455  
-                    icon: 'ui-icon-image',
29456  
-                    click: function() {
29457  
-
29458  
-                        var ui = this;
29459  
-                        selectionSave();
29460  
-
29461  
-                        if (this.fileManager === null) {
29462  
-                            this.fileManager = $.ui.filemanager.create({
29463  
-                                enablePlugins: false,
29464  
-                                // ajaxSource: '/filemanager/admin',
29465  
-                                plugins: {
29466  
-                                    datatables: !XMod.FileManager.Permissions.insert ? false : {
29467  
-                                        ajaxSource: '/filemanager/admin/datatables',
29468  
-                                        insertionCallback: function(files) {
29469  
-
29470  
-                                            selectionRestore();
29471  
-
29472  
-                                            if (!files.length) {
29473  
-                                                return true;
29474  
-                                            }
29475  
-
29476  
-                                            var completeInsertion = function() {
29477  
-                                                ui.editor.fire('change');
29478  
-                                                return true;
29479  
-                                            };
29480  
-
29481  
-                                            var anchorClassNames = function(file, options) {
29482  
-                                                return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
29483  
-                                            };
29484  
-
29485  
-                                            if (files.length === 1) {
29486  
-                                                var file = files[0];
29487  
-
29488  
-                                                if (ui.isImage(file)) {
29489  
-                                                    selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
29490  
-                                                    return completeInsertion();
29491  
-                                                }
29492  
-
29493  
-                                                if (ui.editor.selectionExists()) {
29494  
-                                                    selectionWrapTagWithAttribute('a', {
29495  
-                                                        href: file.url,
29496  
-                                                        className: anchorClassNames(file, ui.options)
29497  
-                                                    });
29498  
-                                                    return completeInsertion();
29499  
-                                                }
29500  
-                                                selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
29501  
-                                                return completeInsertion();
29502  
-
29503  
-                                            }
29504  
-
29505  
-                                            var elements = [];
29506  
-                                            var file;
29507  
-                                            for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
29508  
-                                                file = files[filesIndex];
29509  
-                                                if (ui.isImage(file)) {
29510  
-                                                    elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
29511  
-                                                } else {
29512  
-                                                    elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
29513  
-                                                }
29514  
-                                            }
29515  
-                                            selectionReplace(elements.join(', '));
29516  
-                                            return completeInsertion();
29517  
-                                        }
29518  
-                                    },
29519  
-                                    plupload: !XMod.FileManager.Permissions.upload ? false : {
29520  
-                                        url: '/filemanager/admin/plupload'
29521  
-                                    }
29522  
-                                }
29523  
-                            });
29524  
-                        }
29525  
-
29526  
-                        $(this.fileManager).filemanager('show');
29527  
-                    }
29528  
-                });
29529  
-            },
29530  
-
29531  
-            isImage: function(file) {
29532  
-                if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
29533  
-                    return true;
29534  
-                }
29535  
-                return false;
29536  
-            },
29537  
-
29538  
-            createImage: function(file, classNames) {
29539  
-                return $('<img/>').attr({
29540  
-                    src: file.url,
29541  
-                    title: file.name,
29542  
-                    'class': classNames
29543  
-                });
29544  
-            },
29545  
-
29546  
-            createAnchor: function(file, classNames) {
29547  
-                return $('<a/>').attr({
29548  
-                    href: file.url,
29549  
-                    title: file.name,
29550  
-                    'class': classNames
29551  
-                }).html(file.name);
29552  
-            }
29553  
-
29554  
-        }
29555  
-    });
29556  
-});
29557  
-/**
29558 29368
  * @fileOverview Float ui components
29559 29369
  * @author David Neilsen david@panmedia.co.nz
29560 29370
  * @author Michael Robinson michael@panmedia.co.nz
@@ -30818,7 +30628,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
30818 30628
 
30819 30629
         var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
30820 30630
             .appendTo('body')
30821  
-            .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
  30631
+            .addClass(this.options.resizeButtonClass)
30822 30632
             .button({
30823 30633
                 text: false,
30824 30634
                 icons: {
@@ -30834,6 +30644,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
30834 30644
             .attr('contenteditable', false)
30835 30645
             .click($.proxy(this.manuallyResizeImage, this));
30836 30646
 
  30647
+        resizeButton.addClass(this.editor.options.supplementaryClass)
  30648
+            .find('span').addClass(this.editor.options.supplementaryClass);
  30649
+
30837 30650
         $(image).before(resizeButton);
30838 30651
     },
30839 30652
 
@@ -32121,7 +31934,7 @@ $.ui.editor.registerUi({
32121 31934
                     }
32122 31935
 
32123 31936
                     this.ui.button.find('.ui-button-icon-primary').css({
32124  
-                        'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
  31937
+                        'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
32125 31938
                     });
32126 31939
                 }
32127 31940
             });
462  packages/raptor.0deps.nc.min.js
228 additions, 234 deletions not shown
BIN  packages/raptor.0deps.nc.min.js.gz
Binary file not shown
203  packages/raptor.debug.js
... ...
@@ -1,5 +1,5 @@
1 1
 /*! 
2  
-VERSION: 0.0.17 
  2
+VERSION: 0.0.19 
3 3
 For license information, see http://www.raptor-editor.com/license
4 4
 */
5 5
 /**
@@ -27849,7 +27849,7 @@ $.extend($.ui.editor,
27849 27849
     /**
27850 27850
      * @property {Object} templates
27851 27851
      */
27852  
-    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'color-picker-basic.menu': "<div name=\"color-picker-basic\" class=\"ui-editor-color-picker-basic-select ui-editor-selectmenu\">\n    <div class=\"ui-editor-selectmenu-option\" value=\"automatic\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"display: none\"><\/div> <span>Clear<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"white\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #ffffff\"><\/div> <span>White<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"black\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #000000\"><\/div> <span>Black<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"grey\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #999\"><\/div> <span>Grey<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"blue\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #4f81bd\"><\/div> <span>Blue<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"red\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #c0504d\"><\/div> <span>Red<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"green\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #9bbb59\"><\/div> <span>Green<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"purple\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #8064a2\"><\/div> <span>Purple<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"orange\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #f79646\"><\/div> <span>Orange<\/span><\/div>\n<\/div>\n",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
  27852
+    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
27853 27853
 
27854 27854
     /**
27855 27855
      * @param {String} name
@@ -28688,7 +28688,7 @@ $.ui.editor.registerPlugin({
28688 28688
                 .find(this.options.stripEmptyTags[i])
28689 28689
                 .filter(function() {
28690 28690
                     // Do not remove ignored elements. Inserter is responsible for these.
28691  
-                    if ($(this).hasClass(plugin.options.supplementaryClass)) {
  28691
+                    if ($(this).hasClass(editor.options.supplementaryClass)) {
28692 28692
                         return false;
28693 28693
                     }
28694 28694
                     // Do not clear selection markers if the editor has it in use
@@ -29017,64 +29017,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
29017 29017
     }
29018 29018
 });
29019 29019
 /**
29020  
- * @fileOverview UI component basic color selection
29021  
- * @author David Neilsen david@panmedia.co.nz
29022  
- */
29023  
-$.ui.editor.registerUi('colorPickerBasic', {
29024  
-    /**
29025  
-     * @see $.ui.editor.defaultUi#init
29026  
-     */
29027  
-    init: function(editor) {
29028  
-        editor.bind('selectionChange', this.change, this);
29029  
-        editor.bind('show', this.change, this);
29030  
-
29031  
-        var ui = this;
29032  
-
29033  
-        return editor.uiSelectMenu({
29034  
-            name: 'colorPickerBasic',
29035  
-            title: _('Change the color of the selected text.'),
29036  
-            select: $(editor.getTemplate('color-picker-basic.menu')),
29037  
-            change: function(value) {
29038  
-                if (value === 'automatic') {
29039  
-                    selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
29040  
-                        var element = $(this),
29041  
-                            classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
29042  
-                        $.each(classes, function(i, color) {
29043  
-                            color = $.trim(color);
29044  
-                            element.removeClass(color);
29045  
-                        });
29046  
-                    });
29047  
-                } else {
29048  
-                    selectionToggleWrapper('span', {
29049  
-                        classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
29050  
-                    });
29051  
-                }
29052  
-            }
29053  
-        });
29054  
-    },
29055  
-
29056  
-    change: function() {
29057  
-        this.ui.val('automatic');
29058  
-        var tag = selectionGetElements()[0];
29059  
-        if (!tag) {
29060  
-            return;
29061  
-        }
29062  
-        tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
29063  
-        if (!tag) {
29064  
-            return;
29065  
-        }
29066  
-
29067  
-        var classes = tag.attr('class');
29068  
-        if (classes) {
29069  
-            classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
29070  
-            var color = classes.match(/cms-(.*?)( |$)/i)[1];
29071  
-            if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
29072  
-                this.ui.val(color);
29073  
-            }
29074  
-        }
29075  
-    }
29076  
-});
29077  
-/**
29078 29020
  * @fileOverview Dock plugin
29079 29021
  * @author David Neilsen david@panmedia.co.nz
29080 29022
  * @author Michael Robinson michael@panmedia.co.nz
@@ -29632,138 +29574,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
29632 29574
 
29633 29575
 });
29634 29576
 /**
29635  
- * @fileOverview File Manager ui component
29636  
- * @author David Neilsen david@panmedia.co.nz
29637  
- * @author Michael Robinson michael@panmedia.co.nz
29638  
- */
29639  
-$(function() {
29640  
-
29641  
-     $.ui.editor.registerUi({
29642  
-
29643  
-       /**
29644  
-        * @name $.editor.ui.insertFile
29645  
-        * @augments $.ui.editor.defaultUi
29646  
-        */
29647  
-        insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
29648  
-
29649  
-            fileManager: null,
29650  
-
29651  
-            imageTypes: [
29652  
-                'jpg',
29653  
-                'jpeg',
29654  
-                'png',
29655  
-                'gif'
29656  
-            ],
29657  
-
29658  
-            /**
29659  
-             * @see $.ui.editor.defaultUi#init
29660  
-             */
29661  
-            init: function(editor, options) {
29662  
-                return editor.uiButton({
29663  
-                    title: 'Insert image or uploaded file',
29664  
-                    icon: 'ui-icon-image',
29665  
-                    click: function() {
29666  
-
29667  
-                        var ui = this;
29668  
-                        selectionSave();
29669  
-
29670  
-                        if (this.fileManager === null) {
29671  
-                            this.fileManager = $.ui.filemanager.create({
29672  
-                                enablePlugins: false,
29673  
-                                // ajaxSource: '/filemanager/admin',
29674  
-                                plugins: {
29675  
-                                    datatables: !XMod.FileManager.Permissions.insert ? false : {
29676  
-                                        ajaxSource: '/filemanager/admin/datatables',
29677  
-                                        insertionCallback: function(files) {
29678  
-
29679  
-                                            selectionRestore();
29680  
-
29681  
-                                            if (!files.length) {
29682  
-                                                return true;
29683  
-                                            }
29684  
-
29685  
-                                            var completeInsertion = function() {
29686  
-                                                ui.editor.fire('change');
29687  
-                                                return true;
29688  
-                                            };
29689  
-
29690  
-                                            var anchorClassNames = function(file, options) {
29691  
-                                                return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
29692  
-                                            };
29693  
-
29694  
-                                            if (files.length === 1) {
29695  
-                                                var file = files[0];
29696  
-
29697  
-                                                if (ui.isImage(file)) {
29698  
-                                                    selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
29699  
-                                                    return completeInsertion();
29700  
-                                                }
29701  
-
29702  
-                                                if (ui.editor.selectionExists()) {
29703  
-                                                    selectionWrapTagWithAttribute('a', {
29704  
-                                                        href: file.url,
29705  
-                                                        className: anchorClassNames(file, ui.options)
29706  
-                                                    });
29707  
-                                                    return completeInsertion();
29708  
-                                                }
29709  
-                                                selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
29710  
-                                                return completeInsertion();
29711  
-
29712  
-                                            }
29713  
-
29714  
-                                            var elements = [];
29715  
-                                            var file;
29716  
-                                            for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
29717  
-                                                file = files[filesIndex];
29718  
-                                                if (ui.isImage(file)) {
29719  
-                                                    elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
29720  
-                                                } else {
29721  
-                                                    elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
29722  
-                                                }
29723  
-                                            }
29724  
-                                            selectionReplace(elements.join(', '));
29725  
-                                            return completeInsertion();
29726  
-                                        }
29727  
-                                    },
29728  
-                                    plupload: !XMod.FileManager.Permissions.upload ? false : {
29729  
-                                        url: '/filemanager/admin/plupload'
29730  
-                                    }
29731  
-                                }
29732  
-                            });
29733  
-                        }
29734  
-
29735  
-                        $(this.fileManager).filemanager('show');
29736  
-                    }
29737  
-                });
29738  
-            },
29739  
-
29740  
-            isImage: function(file) {
29741  
-                if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
29742  
-                    return true;
29743  
-                }
29744  
-                return false;
29745  
-            },
29746  
-
29747  
-            createImage: function(file, classNames) {
29748  
-                return $('<img/>').attr({
29749  
-                    src: file.url,
29750  
-                    title: file.name,
29751  
-                    'class': classNames
29752  
-                });
29753  
-            },
29754  
-
29755  
-            createAnchor: function(file, classNames) {
29756  
-                return $('<a/>').attr({
29757  
-                    href: file.url,
29758  
-                    title: file.name,
29759  
-                    'class': classNames
29760  
-                }).html(file.name);
29761  
-            }
29762  
-
29763  
-        }
29764  
-    });
29765  
-});
29766  
-/**
29767 29577
  * @fileOverview Float ui components
29768 29578
  * @author David Neilsen david@panmedia.co.nz
29769 29579
  * @author Michael Robinson michael@panmedia.co.nz
@@ -31027,7 +30837,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
31027 30837
 
31028 30838
         var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
31029 30839
             .appendTo('body')
31030  
-            .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
  30840
+            .addClass(this.options.resizeButtonClass)
31031 30841
             .button({
31032 30842
                 text: false,
31033 30843
                 icons: {
@@ -31043,6 +30853,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
31043 30853
             .attr('contenteditable', false)
31044 30854
             .click($.proxy(this.manuallyResizeImage, this));
31045 30855
 
  30856
+        resizeButton.addClass(this.editor.options.supplementaryClass)
  30857
+            .find('span').addClass(this.editor.options.supplementaryClass);
  30858
+
31046 30859
         $(image).before(resizeButton);
31047 30860
     },
31048 30861
 
@@ -32332,7 +32145,7 @@ $.ui.editor.registerUi({
32332 32145
                     }
32333 32146
 
32334 32147
                     this.ui.button.find('.ui-button-icon-primary').css({
32335  
-                        'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
  32148
+                        'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
32336 32149
                     });
32337 32150
                 }
32338 32151
             });
203  packages/raptor.debug.min.js
... ...
@@ -1,5 +1,5 @@
1 1
 /*! 
2  
-VERSION: 0.0.17 
  2
+VERSION: 0.0.19 
3 3
 For license information, see http://www.raptor-editor.com/license
4 4
 */
5 5
 /**
@@ -27849,7 +27849,7 @@ $.extend($.ui.editor,
27849 27849
     /**
27850 27850
      * @property {Object} templates
27851 27851
      */
27852  
-    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'color-picker-basic.menu': "<div name=\"color-picker-basic\" class=\"ui-editor-color-picker-basic-select ui-editor-selectmenu\">\n    <div class=\"ui-editor-selectmenu-option\" value=\"automatic\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"display: none\"><\/div> <span>Clear<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"white\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #ffffff\"><\/div> <span>White<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"black\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #000000\"><\/div> <span>Black<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"grey\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #999\"><\/div> <span>Grey<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"blue\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #4f81bd\"><\/div> <span>Blue<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"red\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #c0504d\"><\/div> <span>Red<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"green\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #9bbb59\"><\/div> <span>Green<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"purple\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #8064a2\"><\/div> <span>Purple<\/span><\/div>\n    <div class=\"ui-editor-selectmenu-option\" value=\"orange\"><div class=\"ui-editor-color-picker-basic-swatch\" style=\"background-color: #f79646\"><\/div> <span>Orange<\/span><\/div>\n<\/div>\n",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
  27852
+    templates: { 'paste.dialog': "<div class=\"ui-editor-paste-panel ui-dialog-content ui-widget-content\">\n    <div class=\"ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Plain Text')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted &amp; Cleaned')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Formatted Unclean')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Source Code')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-paste-plain-tab\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-plain\">{{plain}}<\/textarea>\n        <\/div>\n        <div class=\"ui-editor-paste-markup-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-markup\">{{markup}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-rich-tab\" style=\"display: none\">\n            <div contenteditable=\"true\" class=\"ui-editor-paste-area ui-editor-paste-rich\">{{html}}<\/div>\n        <\/div>\n        <div class=\"ui-editor-paste-source-tab\" style=\"display: none\">\n            <textarea class=\"ui-editor-paste-area ui-editor-paste-source\">{{html}}<\/textarea>\n        <\/div>\n    <\/div>\n<\/div>\n",'imageresize.manually-resize-image': "<div>\n    <fieldset>\n        <label for=\"{{baseClass}}-width\">_('Image width')<\/label>\n        <input id=\"{{baseClass}}-width\" name=\"width\" type=\"text\" value=\"{{width}}\" placeholder=\"_('Image width')\"\/>\n    <\/fieldset>\n    <fieldset>\n        <label for=\"{{baseClass}}-height\">_('Image height')<\/label>\n        <input id=\"{{baseClass}}-height\" name=\"height\" type=\"text\" value=\"{{height}}\" placeholder=\"_('Image height')\"\/>\n    <\/fieldset>\n<\/div>",'viewsource.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"{{baseClass}}-plain-text\">\n        <textarea>{{source}}<\/textarea>\n    <\/div>\n<\/div>\n",'length.dialog': "<div>\n    <ul>\n        <li>{{characters}}<\/li>\n        <li>{{words}}<\/li>\n        <li>{{sentences}}<\/li>\n        <li>{{truncation}}<\/li>\n    <\/ul>\n<\/div>\n",'i18n.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n    <option value=\"div\">_('Divider')<\/option>\n<\/select>\n",'link.label': "<label>\n    <input class=\"{{classes}}\" type=\"radio\" value=\"{{type}}\" name=\"link-type\" autocomplete=\"off\"\/>\n    <span>{{title}}<\/span>\n<\/label>\n",'link.email': "<h2>_('Link to an email address')<\/h2>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email\">_('Email')<\/label>\n    <input id=\"{{baseClass}}-email\" name=\"email\" type=\"text\" placeholder=\"_('Enter email address')\"\/>\n<\/fieldset>\n<fieldset class=\"{{baseClass}}-email\">\n    <label for=\"{{baseClass}}-email-subject\">_('Subject (optional)')<\/label>\n    <input id=\"{{baseClass}}-email-subject\" name=\"subject\" type=\"text\" placeholder=\"_('Enter subject')\"\/>\n<\/fieldset>\n",'link.error': "<div style=\"display:none\" class=\"ui-widget {{baseClass}}-error-message {{messageClass}}\">\n    <div class=\"ui-state-error ui-corner-all\"> \n        <p>\n            <span class=\"ui-icon ui-icon-alert\"><\/span> \n            {{message}}\n        <\/p>\n    <\/div>\n<\/div>",'link.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-panel\">\n    <div class=\"{{baseClass}}-menu\">\n        <p>_('Choose a link type:')<\/p>\n        <fieldset><\/fieldset>\n    <\/div>\n    <div class=\"{{baseClass}}-wrap\">\n        <div class=\"{{baseClass}}-content\"><\/div>\n    <\/div>\n<\/div>\n",'link.file-url': "<h2>_('Link to a document or other file')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the file open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Ensure the file has been uploaded to your website')<\/li>\n    <li>_('Open the uploaded file in your browser')<\/li>\n    <li>_(\"Copy the file's URL from your browser's address bar and paste it into the box above\")<\/li>\n<\/ol>\n",'link.external': "<h2>_('Link to a page on this or another website')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-href\">_('Location')<\/label>\n    <input id=\"{{baseClass}}-external-href\" value=\"http:\/\/\" name=\"location\" class=\"{{baseClass}}-external-href\" type=\"text\" placeholder=\"_('Enter your URL')\" \/>\n<\/fieldset>\n<h2>_('New window')<\/h2>\n<fieldset>\n    <label for=\"{{baseClass}}-external-target\">\n        <input id=\"{{baseClass}}-external-target\" name=\"blank\" type=\"checkbox\" \/>\n        <span>_('Check this box to have the link open in a new browser window')<\/span>\n    <\/label>\n<\/fieldset>\n<h2>_('Not sure what to put in the box above?')<\/h2>\n<ol>\n    <li>_('Find the page on the web you want to link to')<\/li>\n    <li>_('Copy the web address from your browser\'s address bar and paste it into the box above')<\/li>\n<\/ol>\n",'clickbuttontoedit.edit-button': "<button class=\"{{baseClass}}-button\">_('Click to begin editing')<\/button>\n",'embed.dialog': "<div style=\"display:none\" class=\"{{baseClass}}-dialog\">\n    <div class=\"ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all\">\n        <ul class=\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\">\n            <li class=\"ui-state-default ui-corner-top ui-tabs-selected ui-state-active\"><a>_('Embed Code')<\/a><\/li>\n            <li class=\"ui-state-default ui-corner-top\"><a>_('Preview')<\/a><\/li>\n        <\/ul>\n        <div class=\"ui-editor-embed-code-tab\">\n            <p>_('Paste your embed code into the text area below.')<\/p>\n            <textarea><\/textarea>\n        <\/div>\n        <div class=\"ui-editor-preview-tab\" style=\"display: none\">\n            <p>_('A preview of your embedded object is displayed below.')<\/p>\n            <div class=\"ui-editor-embed-preview\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n",'cancel.dialog': "<div>\n    _('Are you sure you want to stop editing?')\n    <br\/><br\/>\n    _('All changes will be lost!')\n<\/div>\n",'tagmenu.menu': "<select autocomplete=\"off\" name=\"tag\" class=\"ui-editor-tag-select\">\n    <option value=\"na\">_('N\/A')<\/option>\n    <option value=\"p\">_('Paragraph')<\/option>\n    <option value=\"h1\">_('Heading&nbsp;1')<\/option>\n    <option value=\"h2\">_('Heading&nbsp;2')<\/option>\n    <option value=\"h3\">_('Heading&nbsp;3')<\/option>\n<\/select>\n",'unsavededitwarning.warning': "<div title=\"_('This block contains unsaved changes')\" class=\"{{baseClass}}\">\n    <span class=\"ui-icon ui-icon-alert\"><\/span>\n    <span>There are unsaved edits on this page<\/span>\n<\/div>",'root': "<a href=\"javascript: \/\/ _('Select all editable content')\" \n   class=\"{{baseClass}}-select-element\"\n   title=\"_('Click to select all editable content')\">_('root')<\/a> \n",'message': "<div class=\"{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}\">\n    <div class=\"ui-icon ui-icon-{{type}}\" \/>\n    <div class=\"{{baseClass}}-message\">{{message}}<\/div>\n    <div class=\"{{baseClass}}-message-close ui-icon ui-icon-circle-close\"><\/div>\n<\/div>\n",'tag': " &gt; <a href=\"javascript: \/\/ _('Select {{element}} element')\" \n         class=\"{{baseClass}}-select-element\"\n         title=\"_('Click to select the contents of the '{{element}}' element')\"\n         data-ui-editor-selection=\"{{data}}\">{{element}}<\/a> \n",'unsupported': "<div class=\"{{baseClass}}-unsupported-overlay\"><\/div>\n<div class=\"{{baseClass}}-unsupported-content\">\n    It has been detected that you a using a browser that is not supported by Raptor, please\n    use one of the following browsers:\n\n    <ul>\n        <li><a href=\"http:\/\/www.google.com\/chrome\">Google Chrome<\/a><\/li>\n        <li><a href=\"http:\/\/www.firefox.com\">Mozilla Firefox<\/a><\/li>\n        <li><a href=\"http:\/\/www.google.com\/chromeframe\">Internet Explorer with Chrome Frame<\/a><\/li>\n    <\/ul>\n\n    <div class=\"{{baseClass}}-unsupported-input\">\n        <button class=\"{{baseClass}}-unsupported-close\">Close<\/button>\n        <input name=\"{{baseClass}}-unsupported-show\" type=\"checkbox\" \/>\n        <label>Don't show this message again<\/label>\n    <\/div>\n<div>",'messages': "<div class=\"{{baseClass}}-messages\" \/>\n" },
27853 27853
 
27854 27854
     /**
27855 27855
      * @param {String} name
@@ -28688,7 +28688,7 @@ $.ui.editor.registerPlugin({
28688 28688
                 .find(this.options.stripEmptyTags[i])
28689 28689
                 .filter(function() {
28690 28690
                     // Do not remove ignored elements. Inserter is responsible for these.
28691  
-                    if ($(this).hasClass(plugin.options.supplementaryClass)) {
  28691
+                    if ($(this).hasClass(editor.options.supplementaryClass)) {
28692 28692
                         return false;
28693 28693
                     }
28694 28694
                     // Do not clear selection markers if the editor has it in use
@@ -29017,64 +29017,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
29017 29017
     }
29018 29018
 });
29019 29019
 /**
29020  
- * @fileOverview UI component basic color selection
29021  
- * @author David Neilsen david@panmedia.co.nz
29022  
- */
29023  
-$.ui.editor.registerUi('colorPickerBasic', {
29024  
-    /**
29025  
-     * @see $.ui.editor.defaultUi#init
29026  
-     */
29027  
-    init: function(editor) {
29028  
-        editor.bind('selectionChange', this.change, this);
29029  
-        editor.bind('show', this.change, this);
29030  
-
29031  
-        var ui = this;
29032  
-
29033  
-        return editor.uiSelectMenu({
29034  
-            name: 'colorPickerBasic',
29035  
-            title: _('Change the color of the selected text.'),
29036  
-            select: $(editor.getTemplate('color-picker-basic.menu')),
29037  
-            change: function(value) {
29038  
-                if (value === 'automatic') {
29039  
-                    selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
29040  
-                        var element = $(this),
29041  
-                            classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
29042  
-                        $.each(classes, function(i, color) {
29043  
-                            color = $.trim(color);
29044  
-                            element.removeClass(color);
29045  
-                        });
29046  
-                    });
29047  
-                } else {
29048  
-                    selectionToggleWrapper('span', {
29049  
-                        classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
29050  
-                    });
29051  
-                }
29052  
-            }
29053  
-        });
29054  
-    },
29055  
-
29056  
-    change: function() {
29057  
-        this.ui.val('automatic');
29058  
-        var tag = selectionGetElements()[0];
29059  
-        if (!tag) {
29060  
-            return;
29061  
-        }
29062  
-        tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
29063  
-        if (!tag) {
29064  
-            return;
29065  
-        }
29066  
-
29067  
-        var classes = tag.attr('class');
29068  
-        if (classes) {
29069  
-            classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
29070  
-            var color = classes.match(/cms-(.*?)( |$)/i)[1];
29071  
-            if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
29072  
-                this.ui.val(color);
29073  
-            }
29074  
-        }
29075  
-    }
29076  
-});
29077  
-/**
29078 29020
  * @fileOverview Dock plugin
29079 29021
  * @author David Neilsen david@panmedia.co.nz
29080 29022
  * @author Michael Robinson michael@panmedia.co.nz
@@ -29632,138 +29574,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
29632 29574
 
29633 29575
 });
29634 29576
 /**
29635  
- * @fileOverview File Manager ui component
29636  
- * @author David Neilsen david@panmedia.co.nz
29637  
- * @author Michael Robinson michael@panmedia.co.nz
29638  
- */
29639  
-$(function() {
29640  
-
29641  
-     $.ui.editor.registerUi({
29642  
-
29643  
-       /**
29644  
-        * @name $.editor.ui.insertFile
29645  
-        * @augments $.ui.editor.defaultUi
29646  
-        */
29647  
-        insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
29648  
-
29649  
-            fileManager: null,
29650  
-
29651  
-            imageTypes: [
29652  
-                'jpg',
29653  
-                'jpeg',
29654  
-                'png',
29655  
-                'gif'
29656  
-            ],
29657  
-
29658  
-            /**
29659  
-             * @see $.ui.editor.defaultUi#init
29660  
-             */
29661  
-            init: function(editor, options) {
29662  
-                return editor.uiButton({
29663  
-                    title: 'Insert image or uploaded file',
29664  
-                    icon: 'ui-icon-image',
29665  
-                    click: function() {
29666  
-
29667  
-                        var ui = this;
29668  
-                        selectionSave();
29669  
-
29670  
-                        if (this.fileManager === null) {
29671  
-                            this.fileManager = $.ui.filemanager.create({
29672  
-                                enablePlugins: false,
29673  
-                                // ajaxSource: '/filemanager/admin',
29674  
-                                plugins: {
29675  
-                                    datatables: !XMod.FileManager.Permissions.insert ? false : {
29676  
-                                        ajaxSource: '/filemanager/admin/datatables',
29677  
-                                        insertionCallback: function(files) {
29678  
-
29679  
-                                            selectionRestore();
29680  
-
29681  
-                                            if (!files.length) {
29682  
-                                                return true;
29683  
-                                            }
29684  
-
29685  
-                                            var completeInsertion = function() {
29686  
-                                                ui.editor.fire('change');
29687  
-                                                return true;
29688  
-                                            };
29689  
-
29690  
-                                            var anchorClassNames = function(file, options) {
29691  
-                                                return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
29692  
-                                            };
29693  
-
29694  
-                                            if (files.length === 1) {
29695  
-                                                var file = files[0];
29696  
-
29697  
-                                                if (ui.isImage(file)) {
29698  
-                                                    selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
29699  
-                                                    return completeInsertion();
29700  
-                                                }
29701  
-
29702  
-                                                if (ui.editor.selectionExists()) {
29703  
-                                                    selectionWrapTagWithAttribute('a', {
29704  
-                                                        href: file.url,
29705  
-                                                        className: anchorClassNames(file, ui.options)
29706  
-                                                    });
29707  
-                                                    return completeInsertion();
29708  
-                                                }
29709  
-                                                selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
29710  
-                                                return completeInsertion();
29711  
-
29712  
-                                            }
29713  
-
29714  
-                                            var elements = [];
29715  
-                                            var file;
29716  
-                                            for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
29717  
-                                                file = files[filesIndex];
29718  
-                                                if (ui.isImage(file)) {
29719  
-                                                    elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
29720  
-                                                } else {
29721  
-                                                    elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
29722  
-                                                }
29723  
-                                            }
29724  
-                                            selectionReplace(elements.join(', '));
29725  
-                                            return completeInsertion();
29726  
-                                        }
29727  
-                                    },
29728  
-                                    plupload: !XMod.FileManager.Permissions.upload ? false : {
29729  
-                                        url: '/filemanager/admin/plupload'
29730  
-                                    }
29731  
-                                }
29732  
-                            });
29733  
-                        }
29734  
-
29735  
-                        $(this.fileManager).filemanager('show');
29736  
-                    }
29737  
-                });
29738  
-            },
29739  
-
29740  
-            isImage: function(file) {
29741  
-                if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
29742  
-                    return true;
29743  
-                }
29744  
-                return false;
29745  
-            },
29746  
-
29747  
-            createImage: function(file, classNames) {
29748  
-                return $('<img/>').attr({
29749  
-                    src: file.url,
29750