File: Resources/public/js/alloyeditor/buttons/blocktextalignjustify.js
/*
* Copyright (C) eZ Systems AS. All rights reserved.
* For full copyright and license information view LICENSE file distributed with this source code.
*/
// **NOTICE:**
// THIS IS AN AUTO-GENERATED FILE
// DO YOUR MODIFICATIONS IN THE CORRESPONDING .jsx FILE
// AND REGENERATE IT WITH: grunt jsx
// END OF NOTICE
YUI.add('ez-alloyeditor-button-blocktextalignjustify', function (Y) {
"use strict";
/**
* Provides the block text align justify button
*
* @module ez-alloyeditor-button-blocktextalignjustify
*/
Y.namespace('eZ.AlloyEditorButton');
var AlloyEditor = Y.eZ.AlloyEditor,
React = Y.eZ.React,
ButtonBlockTextAlignJustify;
/**
* The ButtonBlockTextAlignJustify class provides functionality for
* justifying the text inside a block element.
*
* @uses eZ.AlloyEditorButton.ButtonBlockTextAlign
*
* @class ButtonBlockTextAlignJustify
* @namespace eZ.AlloyEditorButton
*/
ButtonBlockTextAlignJustify = React.createClass({displayName: "ButtonBlockTextAlignJustify",
mixins: [Y.eZ.AlloyEditorButton.ButtonBlockTextAlign],
statics: {
key: 'ezblocktextalignjustify'
},
getDefaultProps: function() {
return {
textAlign: 'justify',
classIcon: 'justified',
label: 'Justify',
};
},
/**
* Returns the translated label for the button
*
* @method _getLabel
* @return {String}
*/
_getLabel: function () {
return Y.eZ.trans('justify', {}, 'onlineeditor');
},
});
AlloyEditor.Buttons[ButtonBlockTextAlignJustify.key] = ButtonBlockTextAlignJustify;
Y.eZ.AlloyEditorButton.ButtonBlockTextAlignJustify = ButtonBlockTextAlignJustify;
});