Permalink
Browse files

Updated to version 0.0.19

  • Loading branch information...
1 parent bd2b37c commit afcf5c9f9d3fa30c6617b969689f3116c661e0bb @faceleg faceleg committed Aug 16, 2012
View
2 build.properties
@@ -1,6 +1,6 @@
# Default includes nothing.
strip.blocks=debug|strict|docs
-version=0.0.18
+version=0.0.19
filename=raptor
dir.build=build/default
dir.package=packages
View
203 packages/raptor.0deps.js
@@ -1,5 +1,5 @@
/*!
-VERSION: 0.0.17
+VERSION: 0.0.19
For license information, see http://www.raptor-editor.com/license
*/
/**
@@ -27656,7 +27656,7 @@ $.extend($.ui.editor,
/**
* @property {Object} templates
*/
- 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" },
+ 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" },
/**
* @param {String} name
@@ -28481,7 +28481,7 @@ $.ui.editor.registerPlugin({
.find(this.options.stripEmptyTags[i])
.filter(function() {
// Do not remove ignored elements. Inserter is responsible for these.
- if ($(this).hasClass(plugin.options.supplementaryClass)) {
+ if ($(this).hasClass(editor.options.supplementaryClass)) {
return false;
}
// Do not clear selection markers if the editor has it in use
@@ -28810,64 +28810,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
}
});
/**
- * @fileOverview UI component basic color selection
- * @author David Neilsen david@panmedia.co.nz
- */
-$.ui.editor.registerUi('colorPickerBasic', {
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor) {
- editor.bind('selectionChange', this.change, this);
- editor.bind('show', this.change, this);
-
- var ui = this;
-
- return editor.uiSelectMenu({
- name: 'colorPickerBasic',
- title: _('Change the color of the selected text.'),
- select: $(editor.getTemplate('color-picker-basic.menu')),
- change: function(value) {
- if (value === 'automatic') {
- selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
- var element = $(this),
- classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
- $.each(classes, function(i, color) {
- color = $.trim(color);
- element.removeClass(color);
- });
- });
- } else {
- selectionToggleWrapper('span', {
- classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
- });
- }
- }
- });
- },
-
- change: function() {
- this.ui.val('automatic');
- var tag = selectionGetElements()[0];
- if (!tag) {
- return;
- }
- tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
- if (!tag) {
- return;
- }
-
- var classes = tag.attr('class');
- if (classes) {
- classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
- var color = classes.match(/cms-(.*?)( |$)/i)[1];
- if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
- this.ui.val(color);
- }
- }
- }
-});
-/**
* @fileOverview Dock plugin
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -29417,138 +29359,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
});
/**
- * @fileOverview File Manager ui component
- * @author David Neilsen david@panmedia.co.nz
- * @author Michael Robinson michael@panmedia.co.nz
- */
-$(function() {
-
- $.ui.editor.registerUi({
-
- /**
- * @name $.editor.ui.insertFile
- * @augments $.ui.editor.defaultUi
- */
- insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
-
- fileManager: null,
-
- imageTypes: [
- 'jpg',
- 'jpeg',
- 'png',
- 'gif'
- ],
-
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor, options) {
- return editor.uiButton({
- title: 'Insert image or uploaded file',
- icon: 'ui-icon-image',
- click: function() {
-
- var ui = this;
- selectionSave();
-
- if (this.fileManager === null) {
- this.fileManager = $.ui.filemanager.create({
- enablePlugins: false,
- // ajaxSource: '/filemanager/admin',
- plugins: {
- datatables: !XMod.FileManager.Permissions.insert ? false : {
- ajaxSource: '/filemanager/admin/datatables',
- insertionCallback: function(files) {
-
- selectionRestore();
-
- if (!files.length) {
- return true;
- }
-
- var completeInsertion = function() {
- ui.editor.fire('change');
- return true;
- };
-
- var anchorClassNames = function(file, options) {
- return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
- };
-
- if (files.length === 1) {
- var file = files[0];
-
- if (ui.isImage(file)) {
- selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
- return completeInsertion();
- }
-
- if (ui.editor.selectionExists()) {
- selectionWrapTagWithAttribute('a', {
- href: file.url,
- className: anchorClassNames(file, ui.options)
- });
- return completeInsertion();
- }
- selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
- return completeInsertion();
-
- }
-
- var elements = [];
- var file;
- for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
- file = files[filesIndex];
- if (ui.isImage(file)) {
- elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
- } else {
- elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
- }
- }
- selectionReplace(elements.join(', '));
- return completeInsertion();
- }
- },
- plupload: !XMod.FileManager.Permissions.upload ? false : {
- url: '/filemanager/admin/plupload'
- }
- }
- });
- }
-
- $(this.fileManager).filemanager('show');
- }
- });
- },
-
- isImage: function(file) {
- if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
- return true;
- }
- return false;
- },
-
- createImage: function(file, classNames) {
- return $('<img/>').attr({
- src: file.url,
- title: file.name,
- 'class': classNames
- });
- },
-
- createAnchor: function(file, classNames) {
- return $('<a/>').attr({
- href: file.url,
- title: file.name,
- 'class': classNames
- }).html(file.name);
- }
-
- }
- });
-});
-/**
* @fileOverview Float ui components
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -30812,7 +30622,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
.appendTo('body')
- .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
+ .addClass(this.options.resizeButtonClass)
.button({
text: false,
icons: {
@@ -30828,6 +30638,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
.attr('contenteditable', false)
.click($.proxy(this.manuallyResizeImage, this));
+ resizeButton.addClass(this.editor.options.supplementaryClass)
+ .find('span').addClass(this.editor.options.supplementaryClass);
+
$(image).before(resizeButton);
},
@@ -32115,7 +31928,7 @@ $.ui.editor.registerUi({
}
this.ui.button.find('.ui-button-icon-primary').css({
- 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
+ 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
});
}
});
View
882 packages/raptor.0deps.min.js
438 additions, 444 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN packages/raptor.0deps.min.js.gz
Binary file not shown.
View
203 packages/raptor.0deps.nc.js
@@ -1,5 +1,5 @@
/*!
-VERSION: 0.0.17
+VERSION: 0.0.19
For license information, see http://www.raptor-editor.com/license
*/
/**
@@ -27662,7 +27662,7 @@ $.extend($.ui.editor,
/**
* @property {Object} templates
*/
- 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" },
+ 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" },
/**
* @param {String} name
@@ -28487,7 +28487,7 @@ $.ui.editor.registerPlugin({
.find(this.options.stripEmptyTags[i])
.filter(function() {
// Do not remove ignored elements. Inserter is responsible for these.
- if ($(this).hasClass(plugin.options.supplementaryClass)) {
+ if ($(this).hasClass(editor.options.supplementaryClass)) {
return false;
}
// Do not clear selection markers if the editor has it in use
@@ -28816,64 +28816,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
}
});
/**
- * @fileOverview UI component basic color selection
- * @author David Neilsen david@panmedia.co.nz
- */
-$.ui.editor.registerUi('colorPickerBasic', {
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor) {
- editor.bind('selectionChange', this.change, this);
- editor.bind('show', this.change, this);
-
- var ui = this;
-
- return editor.uiSelectMenu({
- name: 'colorPickerBasic',
- title: _('Change the color of the selected text.'),
- select: $(editor.getTemplate('color-picker-basic.menu')),
- change: function(value) {
- if (value === 'automatic') {
- selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
- var element = $(this),
- classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
- $.each(classes, function(i, color) {
- color = $.trim(color);
- element.removeClass(color);
- });
- });
- } else {
- selectionToggleWrapper('span', {
- classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
- });
- }
- }
- });
- },
-
- change: function() {
- this.ui.val('automatic');
- var tag = selectionGetElements()[0];
- if (!tag) {
- return;
- }
- tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
- if (!tag) {
- return;
- }
-
- var classes = tag.attr('class');
- if (classes) {
- classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
- var color = classes.match(/cms-(.*?)( |$)/i)[1];
- if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
- this.ui.val(color);
- }
- }
- }
-});
-/**
* @fileOverview Dock plugin
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -29423,138 +29365,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
});
/**
- * @fileOverview File Manager ui component
- * @author David Neilsen david@panmedia.co.nz
- * @author Michael Robinson michael@panmedia.co.nz
- */
-$(function() {
-
- $.ui.editor.registerUi({
-
- /**
- * @name $.editor.ui.insertFile
- * @augments $.ui.editor.defaultUi
- */
- insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
-
- fileManager: null,
-
- imageTypes: [
- 'jpg',
- 'jpeg',
- 'png',
- 'gif'
- ],
-
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor, options) {
- return editor.uiButton({
- title: 'Insert image or uploaded file',
- icon: 'ui-icon-image',
- click: function() {
-
- var ui = this;
- selectionSave();
-
- if (this.fileManager === null) {
- this.fileManager = $.ui.filemanager.create({
- enablePlugins: false,
- // ajaxSource: '/filemanager/admin',
- plugins: {
- datatables: !XMod.FileManager.Permissions.insert ? false : {
- ajaxSource: '/filemanager/admin/datatables',
- insertionCallback: function(files) {
-
- selectionRestore();
-
- if (!files.length) {
- return true;
- }
-
- var completeInsertion = function() {
- ui.editor.fire('change');
- return true;
- };
-
- var anchorClassNames = function(file, options) {
- return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
- };
-
- if (files.length === 1) {
- var file = files[0];
-
- if (ui.isImage(file)) {
- selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
- return completeInsertion();
- }
-
- if (ui.editor.selectionExists()) {
- selectionWrapTagWithAttribute('a', {
- href: file.url,
- className: anchorClassNames(file, ui.options)
- });
- return completeInsertion();
- }
- selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
- return completeInsertion();
-
- }
-
- var elements = [];
- var file;
- for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
- file = files[filesIndex];
- if (ui.isImage(file)) {
- elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
- } else {
- elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
- }
- }
- selectionReplace(elements.join(', '));
- return completeInsertion();
- }
- },
- plupload: !XMod.FileManager.Permissions.upload ? false : {
- url: '/filemanager/admin/plupload'
- }
- }
- });
- }
-
- $(this.fileManager).filemanager('show');
- }
- });
- },
-
- isImage: function(file) {
- if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
- return true;
- }
- return false;
- },
-
- createImage: function(file, classNames) {
- return $('<img/>').attr({
- src: file.url,
- title: file.name,
- 'class': classNames
- });
- },
-
- createAnchor: function(file, classNames) {
- return $('<a/>').attr({
- href: file.url,
- title: file.name,
- 'class': classNames
- }).html(file.name);
- }
-
- }
- });
-});
-/**
* @fileOverview Float ui components
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -30818,7 +30628,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
.appendTo('body')
- .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
+ .addClass(this.options.resizeButtonClass)
.button({
text: false,
icons: {
@@ -30834,6 +30644,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
.attr('contenteditable', false)
.click($.proxy(this.manuallyResizeImage, this));
+ resizeButton.addClass(this.editor.options.supplementaryClass)
+ .find('span').addClass(this.editor.options.supplementaryClass);
+
$(image).before(resizeButton);
},
@@ -32121,7 +31934,7 @@ $.ui.editor.registerUi({
}
this.ui.button.find('.ui-button-icon-primary').css({
- 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
+ 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
});
}
});
View
462 packages/raptor.0deps.nc.min.js
228 additions, 234 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN packages/raptor.0deps.nc.min.js.gz
Binary file not shown.
View
203 packages/raptor.debug.js
@@ -1,5 +1,5 @@
/*!
-VERSION: 0.0.17
+VERSION: 0.0.19
For license information, see http://www.raptor-editor.com/license
*/
/**
@@ -27849,7 +27849,7 @@ $.extend($.ui.editor,
/**
* @property {Object} templates
*/
- 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" },
+ 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" },
/**
* @param {String} name
@@ -28688,7 +28688,7 @@ $.ui.editor.registerPlugin({
.find(this.options.stripEmptyTags[i])
.filter(function() {
// Do not remove ignored elements. Inserter is responsible for these.
- if ($(this).hasClass(plugin.options.supplementaryClass)) {
+ if ($(this).hasClass(editor.options.supplementaryClass)) {
return false;
}
// Do not clear selection markers if the editor has it in use
@@ -29017,64 +29017,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
}
});
/**
- * @fileOverview UI component basic color selection
- * @author David Neilsen david@panmedia.co.nz
- */
-$.ui.editor.registerUi('colorPickerBasic', {
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor) {
- editor.bind('selectionChange', this.change, this);
- editor.bind('show', this.change, this);
-
- var ui = this;
-
- return editor.uiSelectMenu({
- name: 'colorPickerBasic',
- title: _('Change the color of the selected text.'),
- select: $(editor.getTemplate('color-picker-basic.menu')),
- change: function(value) {
- if (value === 'automatic') {
- selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
- var element = $(this),
- classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
- $.each(classes, function(i, color) {
- color = $.trim(color);
- element.removeClass(color);
- });
- });
- } else {
- selectionToggleWrapper('span', {
- classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
- });
- }
- }
- });
- },
-
- change: function() {
- this.ui.val('automatic');
- var tag = selectionGetElements()[0];
- if (!tag) {
- return;
- }
- tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
- if (!tag) {
- return;
- }
-
- var classes = tag.attr('class');
- if (classes) {
- classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
- var color = classes.match(/cms-(.*?)( |$)/i)[1];
- if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
- this.ui.val(color);
- }
- }
- }
-});
-/**
* @fileOverview Dock plugin
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -29632,138 +29574,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
});
/**
- * @fileOverview File Manager ui component
- * @author David Neilsen david@panmedia.co.nz
- * @author Michael Robinson michael@panmedia.co.nz
- */
-$(function() {
-
- $.ui.editor.registerUi({
-
- /**
- * @name $.editor.ui.insertFile
- * @augments $.ui.editor.defaultUi
- */
- insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
-
- fileManager: null,
-
- imageTypes: [
- 'jpg',
- 'jpeg',
- 'png',
- 'gif'
- ],
-
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor, options) {
- return editor.uiButton({
- title: 'Insert image or uploaded file',
- icon: 'ui-icon-image',
- click: function() {
-
- var ui = this;
- selectionSave();
-
- if (this.fileManager === null) {
- this.fileManager = $.ui.filemanager.create({
- enablePlugins: false,
- // ajaxSource: '/filemanager/admin',
- plugins: {
- datatables: !XMod.FileManager.Permissions.insert ? false : {
- ajaxSource: '/filemanager/admin/datatables',
- insertionCallback: function(files) {
-
- selectionRestore();
-
- if (!files.length) {
- return true;
- }
-
- var completeInsertion = function() {
- ui.editor.fire('change');
- return true;
- };
-
- var anchorClassNames = function(file, options) {
- return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
- };
-
- if (files.length === 1) {
- var file = files[0];
-
- if (ui.isImage(file)) {
- selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
- return completeInsertion();
- }
-
- if (ui.editor.selectionExists()) {
- selectionWrapTagWithAttribute('a', {
- href: file.url,
- className: anchorClassNames(file, ui.options)
- });
- return completeInsertion();
- }
- selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
- return completeInsertion();
-
- }
-
- var elements = [];
- var file;
- for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
- file = files[filesIndex];
- if (ui.isImage(file)) {
- elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
- } else {
- elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
- }
- }
- selectionReplace(elements.join(', '));
- return completeInsertion();
- }
- },
- plupload: !XMod.FileManager.Permissions.upload ? false : {
- url: '/filemanager/admin/plupload'
- }
- }
- });
- }
-
- $(this.fileManager).filemanager('show');
- }
- });
- },
-
- isImage: function(file) {
- if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
- return true;
- }
- return false;
- },
-
- createImage: function(file, classNames) {
- return $('<img/>').attr({
- src: file.url,
- title: file.name,
- 'class': classNames
- });
- },
-
- createAnchor: function(file, classNames) {
- return $('<a/>').attr({
- href: file.url,
- title: file.name,
- 'class': classNames
- }).html(file.name);
- }
-
- }
- });
-});
-/**
* @fileOverview Float ui components
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -31027,7 +30837,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
.appendTo('body')
- .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
+ .addClass(this.options.resizeButtonClass)
.button({
text: false,
icons: {
@@ -31043,6 +30853,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
.attr('contenteditable', false)
.click($.proxy(this.manuallyResizeImage, this));
+ resizeButton.addClass(this.editor.options.supplementaryClass)
+ .find('span').addClass(this.editor.options.supplementaryClass);
+
$(image).before(resizeButton);
},
@@ -32332,7 +32145,7 @@ $.ui.editor.registerUi({
}
this.ui.button.find('.ui-button-icon-primary').css({
- 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
+ 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
});
}
});
View
203 packages/raptor.debug.min.js
@@ -1,5 +1,5 @@
/*!
-VERSION: 0.0.17
+VERSION: 0.0.19
For license information, see http://www.raptor-editor.com/license
*/
/**
@@ -27849,7 +27849,7 @@ $.extend($.ui.editor,
/**
* @property {Object} templates
*/
- 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" },
+ 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" },
/**
* @param {String} name
@@ -28688,7 +28688,7 @@ $.ui.editor.registerPlugin({
.find(this.options.stripEmptyTags[i])
.filter(function() {
// Do not remove ignored elements. Inserter is responsible for these.
- if ($(this).hasClass(plugin.options.supplementaryClass)) {
+ if ($(this).hasClass(editor.options.supplementaryClass)) {
return false;
}
// Do not clear selection markers if the editor has it in use
@@ -29017,64 +29017,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
}
});
/**
- * @fileOverview UI component basic color selection
- * @author David Neilsen david@panmedia.co.nz
- */
-$.ui.editor.registerUi('colorPickerBasic', {
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor) {
- editor.bind('selectionChange', this.change, this);
- editor.bind('show', this.change, this);
-
- var ui = this;
-
- return editor.uiSelectMenu({
- name: 'colorPickerBasic',
- title: _('Change the color of the selected text.'),
- select: $(editor.getTemplate('color-picker-basic.menu')),
- change: function(value) {
- if (value === 'automatic') {
- selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
- var element = $(this),
- classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
- $.each(classes, function(i, color) {
- color = $.trim(color);
- element.removeClass(color);
- });
- });
- } else {
- selectionToggleWrapper('span', {
- classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
- });
- }
- }
- });
- },
-
- change: function() {
- this.ui.val('automatic');
- var tag = selectionGetElements()[0];
- if (!tag) {
- return;
- }
- tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
- if (!tag) {
- return;
- }
-
- var classes = tag.attr('class');
- if (classes) {
- classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
- var color = classes.match(/cms-(.*?)( |$)/i)[1];
- if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
- this.ui.val(color);
- }
- }
- }
-});
-/**
* @fileOverview Dock plugin
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -29632,138 +29574,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
});
/**
- * @fileOverview File Manager ui component
- * @author David Neilsen david@panmedia.co.nz
- * @author Michael Robinson michael@panmedia.co.nz
- */
-$(function() {
-
- $.ui.editor.registerUi({
-
- /**
- * @name $.editor.ui.insertFile
- * @augments $.ui.editor.defaultUi
- */
- insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
-
- fileManager: null,
-
- imageTypes: [
- 'jpg',
- 'jpeg',
- 'png',
- 'gif'
- ],
-
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor, options) {
- return editor.uiButton({
- title: 'Insert image or uploaded file',
- icon: 'ui-icon-image',
- click: function() {
-
- var ui = this;
- selectionSave();
-
- if (this.fileManager === null) {
- this.fileManager = $.ui.filemanager.create({
- enablePlugins: false,
- // ajaxSource: '/filemanager/admin',
- plugins: {
- datatables: !XMod.FileManager.Permissions.insert ? false : {
- ajaxSource: '/filemanager/admin/datatables',
- insertionCallback: function(files) {
-
- selectionRestore();
-
- if (!files.length) {
- return true;
- }
-
- var completeInsertion = function() {
- ui.editor.fire('change');
- return true;
- };
-
- var anchorClassNames = function(file, options) {
- return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
- };
-
- if (files.length === 1) {
- var file = files[0];
-
- if (ui.isImage(file)) {
- selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
- return completeInsertion();
- }
-
- if (ui.editor.selectionExists()) {
- selectionWrapTagWithAttribute('a', {
- href: file.url,
- className: anchorClassNames(file, ui.options)
- });
- return completeInsertion();
- }
- selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
- return completeInsertion();
-
- }
-
- var elements = [];
- var file;
- for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
- file = files[filesIndex];
- if (ui.isImage(file)) {
- elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
- } else {
- elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
- }
- }
- selectionReplace(elements.join(', '));
- return completeInsertion();
- }
- },
- plupload: !XMod.FileManager.Permissions.upload ? false : {
- url: '/filemanager/admin/plupload'
- }
- }
- });
- }
-
- $(this.fileManager).filemanager('show');
- }
- });
- },
-
- isImage: function(file) {
- if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
- return true;
- }
- return false;
- },
-
- createImage: function(file, classNames) {
- return $('<img/>').attr({
- src: file.url,
- title: file.name,
- 'class': classNames
- });
- },
-
- createAnchor: function(file, classNames) {
- return $('<a/>').attr({
- href: file.url,
- title: file.name,
- 'class': classNames
- }).html(file.name);
- }
-
- }
- });
-});
-/**
* @fileOverview Float ui components
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -31027,7 +30837,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
.appendTo('body')
- .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
+ .addClass(this.options.resizeButtonClass)
.button({
text: false,
icons: {
@@ -31043,6 +30853,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
.attr('contenteditable', false)
.click($.proxy(this.manuallyResizeImage, this));
+ resizeButton.addClass(this.editor.options.supplementaryClass)
+ .find('span').addClass(this.editor.options.supplementaryClass);
+
$(image).before(resizeButton);
},
@@ -32332,7 +32145,7 @@ $.ui.editor.registerUi({
}
this.ui.button.find('.ui-button-icon-primary').css({
- 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
+ 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
});
}
});
View
BIN packages/raptor.debug.min.js.gz
Binary file not shown.
View
309 packages/raptor.js
8 additions, 301 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
203 packages/raptor.light.js
@@ -1,5 +1,5 @@
/*!
-VERSION: 0.0.17
+VERSION: 0.0.19
For license information, see http://www.raptor-editor.com/license
*/
/**
@@ -6682,7 +6682,7 @@ $.extend($.ui.editor,
/**
* @property {Object} templates
*/
- 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" },
+ 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" },
/**
* @param {String} name
@@ -7507,7 +7507,7 @@ $.ui.editor.registerPlugin({
.find(this.options.stripEmptyTags[i])
.filter(function() {
// Do not remove ignored elements. Inserter is responsible for these.
- if ($(this).hasClass(plugin.options.supplementaryClass)) {
+ if ($(this).hasClass(editor.options.supplementaryClass)) {
return false;
}
// Do not clear selection markers if the editor has it in use
@@ -7836,64 +7836,6 @@ $.ui.editor.registerPlugin('clickButtonToEdit', /** @lends $.editor.plugin.click
}
});
/**
- * @fileOverview UI component basic color selection
- * @author David Neilsen david@panmedia.co.nz
- */
-$.ui.editor.registerUi('colorPickerBasic', {
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor) {
- editor.bind('selectionChange', this.change, this);
- editor.bind('show', this.change, this);
-
- var ui = this;
-
- return editor.uiSelectMenu({
- name: 'colorPickerBasic',
- title: _('Change the color of the selected text.'),
- select: $(editor.getTemplate('color-picker-basic.menu')),
- change: function(value) {
- if (value === 'automatic') {
- selectionGetElements().parents('.' + ui.options.cssPrefix + 'color').andSelf().each(function() {
- var element = $(this),
- classes = $(this).attr('class').match(/(cms-(.*?))( |$)/ig);
- $.each(classes, function(i, color) {
- color = $.trim(color);
- element.removeClass(color);
- });
- });
- } else {
- selectionToggleWrapper('span', {
- classes: ui.options.classes || ui.options.cssPrefix + 'color ' + ui.options.cssPrefix + value
- });
- }
- }
- });
- },
-
- change: function() {
- this.ui.val('automatic');
- var tag = selectionGetElements()[0];
- if (!tag) {
- return;
- }
- tag = $(tag).closest('.' + this.options.cssPrefix + 'color');
- if (!tag) {
- return;
- }
-
- var classes = tag.attr('class');
- if (classes) {
- classes = tag.attr('class').replace(new RegExp(this.options.cssPrefix + 'color', 'g'), '');
- var color = classes.match(/cms-(.*?)( |$)/i)[1];
- if (this.ui.select.find('.ui-editor-selectmenu-option[value=' + color + ']').length) {
- this.ui.val(color);
- }
- }
- }
-});
-/**
* @fileOverview Dock plugin
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -8443,138 +8385,6 @@ $.ui.editor.registerPlugin('emptyElement', /** @lends $.editor.plugin.emptyEleme
});
/**
- * @fileOverview File Manager ui component
- * @author David Neilsen david@panmedia.co.nz
- * @author Michael Robinson michael@panmedia.co.nz
- */
-$(function() {
-
- $.ui.editor.registerUi({
-
- /**
- * @name $.editor.ui.insertFile
- * @augments $.ui.editor.defaultUi
- */
- insertFile: /** @lends $.editor.ui.insertFile.prototype */ {
-
- fileManager: null,
-
- imageTypes: [
- 'jpg',
- 'jpeg',
- 'png',
- 'gif'
- ],
-
- /**
- * @see $.ui.editor.defaultUi#init
- */
- init: function(editor, options) {
- return editor.uiButton({
- title: 'Insert image or uploaded file',
- icon: 'ui-icon-image',
- click: function() {
-
- var ui = this;
- selectionSave();
-
- if (this.fileManager === null) {
- this.fileManager = $.ui.filemanager.create({
- enablePlugins: false,
- // ajaxSource: '/filemanager/admin',
- plugins: {
- datatables: !XMod.FileManager.Permissions.insert ? false : {
- ajaxSource: '/filemanager/admin/datatables',
- insertionCallback: function(files) {
-
- selectionRestore();
-
- if (!files.length) {
- return true;
- }
-
- var completeInsertion = function() {
- ui.editor.fire('change');
- return true;
- };
-
- var anchorClassNames = function(file, options) {
- return options.cssPrefix + 'file ' + options.cssPrefix + file.type;
- };
-
- if (files.length === 1) {
- var file = files[0];
-
- if (ui.isImage(file)) {
- selectionReplace(ui.createImage(file, options.cssPrefix + file.type));
- return completeInsertion();
- }
-
- if (ui.editor.selectionExists()) {
- selectionWrapTagWithAttribute('a', {
- href: file.url,
- className: anchorClassNames(file, ui.options)
- });
- return completeInsertion();
- }
- selectionReplace(ui.createAnchor(file, anchorClassNames(file, ui.options)));
- return completeInsertion();
-
- }
-
- var elements = [];
- var file;
- for (var filesIndex = 0; filesIndex < files.length; filesIndex++) {
- file = files[filesIndex];
- if (ui.isImage(file)) {
- elements.push($('<div/>').html(ui.createImage(file, options.cssPrefix + file.type)).html());
- } else {
- elements.push($('<div/>').html(ui.createAnchor(file, anchorClassNames(file, ui.options))).html());
- }
- }
- selectionReplace(elements.join(', '));
- return completeInsertion();
- }
- },
- plupload: !XMod.FileManager.Permissions.upload ? false : {
- url: '/filemanager/admin/plupload'
- }
- }
- });
- }
-
- $(this.fileManager).filemanager('show');
- }
- });
- },
-
- isImage: function(file) {
- if (-1 !== $.inArray(file.type.toLowerCase(), this.imageTypes)) {
- return true;
- }
- return false;
- },
-
- createImage: function(file, classNames) {
- return $('<img/>').attr({
- src: file.url,
- title: file.name,
- 'class': classNames
- });
- },
-
- createAnchor: function(file, classNames) {
- return $('<a/>').attr({
- href: file.url,
- title: file.name,
- 'class': classNames
- }).html(file.name);
- }
-
- }
- });
-});
-/**
* @fileOverview Float ui components
* @author David Neilsen david@panmedia.co.nz
* @author Michael Robinson michael@panmedia.co.nz
@@ -9838,7 +9648,7 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
var resizeButton = $('<button>' + _('Click to edit the image') + '</button>')
.appendTo('body')
- .addClass(this.options.resizeButtonClass + ' ' + this.options.supplementaryClass)
+ .addClass(this.options.resizeButtonClass)
.button({
text: false,
icons: {
@@ -9854,6 +9664,9 @@ $.ui.editor.registerPlugin('imageResize', /** @lends $.editor.plugin.imageResize
.attr('contenteditable', false)
.click($.proxy(this.manuallyResizeImage, this));
+ resizeButton.addClass(this.editor.options.supplementaryClass)
+ .find('span').addClass(this.editor.options.supplementaryClass);
+
$(image).before(resizeButton);
},
@@ -11141,7 +10954,7 @@ $.ui.editor.registerUi({
}
this.ui.button.find('.ui-button-icon-primary').css({
- 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.17?' + query.join('&') + ')'
+ 'background-image': 'url(http://www.jquery-raptor.com/logo/0.0.19?' + query.join('&') + ')'
});
}
});
View
470 packages/raptor.light.min.js
232 additions, 238 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN packages/raptor.light.min.js.gz
Binary file not shown.
View
208 packages/raptor.min.js
99 additions, 109 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN packages/raptor.min.js.gz
Binary file not shown.

0 comments on commit afcf5c9

Please sign in to comment.