redactor
This commit is contained in:
parent
e15b671787
commit
7a3f493b0e
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
if (!RedactorPlugins) var RedactorPlugins = {};
|
(function($)
|
||||||
|
|
||||||
RedactorPlugins.fontcolor = function()
|
|
||||||
{
|
{
|
||||||
|
$.Redactor.prototype.fontcolor = function()
|
||||||
|
{
|
||||||
return {
|
return {
|
||||||
init: function()
|
init: function()
|
||||||
{
|
{
|
||||||
@ -70,4 +70,5 @@ RedactorPlugins.fontcolor = function()
|
|||||||
this.inline.removeStyleRule(rule);
|
this.inline.removeStyleRule(rule);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
})(jQuery);
|
@ -1,11 +1,11 @@
|
|||||||
if (!RedactorPlugins) var RedactorPlugins = {};
|
(function($)
|
||||||
|
|
||||||
RedactorPlugins.fontfamily = function()
|
|
||||||
{
|
{
|
||||||
|
$.Redactor.prototype.fontfamily = function()
|
||||||
|
{
|
||||||
return {
|
return {
|
||||||
init: function ()
|
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 that = this;
|
||||||
var dropdown = {};
|
var dropdown = {};
|
||||||
|
|
||||||
@ -29,4 +29,5 @@ RedactorPlugins.fontfamily = function()
|
|||||||
this.inline.removeStyleRule('font-family');
|
this.inline.removeStyleRule('font-family');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
})(jQuery);
|
@ -1,7 +1,7 @@
|
|||||||
if (!RedactorPlugins) var RedactorPlugins = {};
|
(function($)
|
||||||
|
|
||||||
RedactorPlugins.fontsize = function()
|
|
||||||
{
|
{
|
||||||
|
$.Redactor.prototype.fontsize = function()
|
||||||
|
{
|
||||||
return {
|
return {
|
||||||
init: function()
|
init: function()
|
||||||
{
|
{
|
||||||
@ -28,48 +28,5 @@ RedactorPlugins.fontsize = function()
|
|||||||
this.inline.removeStyleRule('font-size');
|
this.inline.removeStyleRule('font-size');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
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');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
};
|
})(jQuery);
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user