This commit is contained in:
Nicolas Bally 2017-08-31 18:09:22 +02:00
parent e15b671787
commit 7a3f493b0e
5 changed files with 7219 additions and 5385 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.fontcolor = function()
(function($)
{
$.Redactor.prototype.fontcolor = function()
{
return {
init: function()
@ -71,3 +71,4 @@ RedactorPlugins.fontcolor = function()
}
};
};
})(jQuery);

View File

@ -1,11 +1,11 @@
if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.fontfamily = function()
(function($)
{
$.Redactor.prototype.fontfamily = function()
{
return {
init: function ()
{
var fonts = [ 'Lato', 'Stylograph','Arial', 'Helvetica', 'Georgia', 'Times New Roman', 'Monospace' ];
var fonts = [ 'Arial', 'Helvetica', 'Georgia', 'Times New Roman', 'Monospace' ];
var that = this;
var dropdown = {};
@ -30,3 +30,4 @@ RedactorPlugins.fontfamily = function()
}
};
};
})(jQuery);

View File

@ -1,6 +1,6 @@
if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.fontsize = function()
(function($)
{
$.Redactor.prototype.fontsize = function()
{
return {
init: function()
@ -29,47 +29,4 @@ RedactorPlugins.fontsize = function()
}
};
};
if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.scriptbuttons = function()
{
return {
init: function()
{
var sup = this.button.add('superscript', 'Superscript');
var sub = this.button.add('subscript', 'Subscript');
// make your added buttons as Font Awesome's icon
this.button.setAwesome('superscript', 'fa-superscript');
this.button.setAwesome('subscript', 'fa-subscript');
this.button.addCallback(sup, this.scriptbuttons.formatSup);
this.button.addCallback(sub, this.scriptbuttons.formatSub);
},
formatSup: function()
{
this.inline.format('sup');
},
formatSub: function()
{
this.inline.format('sub');
}
};
};
if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.bufferbuttons = function()
{
return {
init: function()
{
var undo = this.button.addFirst('undo', 'Undo');
var redo = this.button.addAfter('undo', 'redo', 'Redo');
this.button.addCallback(undo, this.buffer.undo);
this.button.addCallback(redo, this.buffer.redo);
}
};
};
})(jQuery);

File diff suppressed because one or more lines are too long