Files
SIG/Scripts/AjaxControlToolkit/Debug/HtmlEditor.ToolbarButtons.RemoveAlignment.debug.js
JORGE LUIS CAUDILLO ESPARZA c35cf91883 Commit inicial Ventas Productivo
2019-08-14 16:40:54 -07:00

32 lines
1.2 KiB
JavaScript

Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");
Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment = function(element) {
Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.initializeBase(this, [element]);
}
Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.prototype = {
checkState: function() {
if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.callBaseMethod(this, "checkState"))
return false;
return this._designPanel._textAlignState(null);
},
callMethod: function() {
if(!Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.callBaseMethod(this, "callMethod"))
return false;
var editor = this._designPanel,
editPanel = this._editPanel;
editor._saveContent();
editor.MSIE_justify("left", true);
editor.onContentChanged();
setTimeout(function() {
editPanel.updateToolbar();
}, 0);
}
}
Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.RemoveAlignment", Sys.Extended.UI.HtmlEditor.ToolbarButtons.EditorToggleButton);