diff --git a/modules/backend/formwidgets/richeditor/assets/js/build-min.js b/modules/backend/formwidgets/richeditor/assets/js/build-min.js index 138bf87c0..2dcbe2308 100755 --- a/modules/backend/formwidgets/richeditor/assets/js/build-min.js +++ b/modules/backend/formwidgets/richeditor/assets/js/build-min.js @@ -2069,7 +2069,7 @@ if(!this.$textarea.attr('id')){this.$textarea.attr('id','element-'+Math.random() var redactorOptions={imageEditable:true,imageResizable:true,buttonSource:true,removeDataAttr:false,toolbarFixed:false,syncBeforeCallback:this.proxy(this.onSyncBefore),focusCallback:this.proxy(this.onFocus),blurCallback:this.proxy(this.onBlur),keydownCallback:this.proxy(this.onKeydown),enterCallback:this.proxy(this.onEnter),changeCallback:this.proxy(this.onChange),pageLinksHandler:this.options.linksHandler,initCallback:function(){self.build(this)}} if(this.options.fullpage){redactorOptions.fullpage=true} redactorOptions.plugins=['fullscreen','figure','table','pagelinks','mediamanager'] -redactorOptions.buttons=['html','formatting','bold','italic','unorderedlist','orderedlist','link','horizontalrule'],this.$textarea.redactor(redactorOptions) +redactorOptions.buttons=['html','formatting','bold','italic','alignment','unorderedlist','orderedlist','link','horizontalrule'],this.$textarea.redactor(redactorOptions) this.redactor=this.$textarea.redactor('core.getObject') this.$editor=this.redactor.$editor} RichEditor.prototype.dispose=function(){this.unregisterHandlers() @@ -2203,4 +2203,4 @@ data[option].apply(data,methodArgs)}})} $.fn.richEditor.Constructor=RichEditor $.fn.richEditor.noConflict=function(){$.fn.richEditor=old return this} -$(document).render(function(){$('[data-control="richeditor"]').richEditor()})}(window.jQuery); \ No newline at end of file +$(document).render(function(){$('[data-control="richeditor"]').richEditor()})}(window.jQuery); diff --git a/modules/backend/formwidgets/richeditor/assets/js/richeditor.js b/modules/backend/formwidgets/richeditor/assets/js/richeditor.js index 6e5765e3f..69bc66534 100755 --- a/modules/backend/formwidgets/richeditor/assets/js/richeditor.js +++ b/modules/backend/formwidgets/richeditor/assets/js/richeditor.js @@ -43,7 +43,7 @@ fullpage: false } - RichEditor.prototype.init = function (){ + RichEditor.prototype.init = function() { var self = this; this.$el.one('dispose-control', this.proxy(this.dispose)) @@ -88,7 +88,7 @@ } redactorOptions.plugins = ['fullscreen', 'figure', 'table', 'pagelinks', 'mediamanager'] - redactorOptions.buttons = ['html', 'formatting', 'bold', 'italic', 'unorderedlist', 'orderedlist', 'link', 'horizontalrule'], + redactorOptions.buttons = ['html', 'formatting', 'bold', 'italic', 'alignment', 'unorderedlist', 'orderedlist', 'link', 'horizontalrule'], this.$textarea.redactor(redactorOptions) @@ -193,7 +193,7 @@ var $domTree = $('
'+container.html+'
') // This code removes Redactor-specific attributes and tags from the code. - // It seems to be a known problem with Redactor, try googling for + // It seems to be a known problem with Redactor, try googling for // "data-redactor-tag" or "redactor-invisible-space" (with quotes) $('*', $domTree).removeAttr('data-redactor-tag') @@ -217,7 +217,7 @@ } RichEditor.prototype.onShowFigureToolbar = function($figure, $toolbar) { - // Deal with the case when the toolbar top has negative + // Deal with the case when the toolbar top has negative // value var toolbarTop = $figure.position().top - $toolbar.height() - 10