'{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/table.js?v={@LAST_UPDATE_TIME}',
{* WoltLab *}
+ '{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/WoltLabAlignment.js?v={@LAST_UPDATE_TIME}',
'{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/WoltLabAttachment.js?v={@LAST_UPDATE_TIME}',
'{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/WoltLabBlock.js?v={@LAST_UPDATE_TIME}',
'{@$__wcf->getPath()}js/3rdParty/redactor2/plugins/WoltLabButton.js?v={@LAST_UPDATE_TIME}',
heading4: '{lang}wcf.editor.format.heading4{/lang}',
paragraph: '{lang}wcf.editor.format.paragraph{/lang}',
+ 'align-center': '{lang}wcf.editor.alignment.center{/lang}',
+ 'align-justify': '{lang}wcf.editor.alignment.justify{/lang}',
+ 'align-left': '{lang}wcf.editor.alignment.left{/lang}',
+ 'align-right': '{lang}wcf.editor.alignment.right{/lang}',
+
// table plugin
'add-head': '{lang}wcf.editor.table.addHead{/lang}',
'delete-column': '{lang}wcf.editor.table.deleteColumn{/lang}',
'alignment',
'source',
'table',
+ 'WoltLabAlignment',
'WoltLabAttachment',
'WoltLabBlock',
'WoltLabCode',
--- /dev/null
+$.Redactor.prototype.WoltLabAlignment = function() {
+ "use strict";
+
+ return {
+ init: function() {
+ var mpRemoveAlign = this.alignment.removeAlign;
+ this.alignment.removeAlign = (function() {
+ mpRemoveAlign.call(this);
+
+ this.block.removeClass('text-justify');
+ }).bind(this);
+
+ var listItem = this.dropdown.buildItem('justify', {
+ title: this.lang.get('align-justify'),
+ func: (function () {
+ this.buffer.set();
+ this.alignment.removeAlign();
+ this.block.addClass('text-justify');
+ }).bind(this)
+ });
+
+ listItem.appendTo(this.button.get('alignment').data('dropdown'));
+ }
+ }
+};
text-align: right;
}
+/* alignment plugin / custom value */
+.text-justify {
+ text-align: justify;
+
+ -webkit-hyphens: auto;
+ -moz-hyphens: auto;
+ -ms-hyphens: auto;
+ hyphens: auto;
+}
+
/* text color */
.woltlab-color-000000 { color: #000000 !important; }
.woltlab-color-000080 { color: #000080 !important; }
</category>
<category name="wcf.editor">
+ <item name="wcf.editor.alignment.center"><![CDATA[Zentrieren]]></item>
+ <item name="wcf.editor.alignment.justify"><![CDATA[Blocksatz]]></item>
+ <item name="wcf.editor.alignment.left"><![CDATA[Linksbündig ausrichten]]></item>
+ <item name="wcf.editor.alignment.right"><![CDATA[Rechtsbündig ausrichten]]></item>
+
<item name="wcf.editor.button.alignment"><![CDATA[Ausrichtung]]></item>
<item name="wcf.editor.button.bold"><![CDATA[Fett]]></item>
<item name="wcf.editor.button.code"><![CDATA[Code]]></item>
</category>
<category name="wcf.editor">
+ <item name="wcf.editor.alignment.center"><![CDATA[Align center]]></item>
+ <item name="wcf.editor.alignment.justify"><![CDATA[Align justify]]></item>
+ <item name="wcf.editor.alignment.left"><![CDATA[Align left]]></item>
+ <item name="wcf.editor.alignment.right"><![CDATA[Align right]]></item>
+
<item name="wcf.editor.button.alignment"><![CDATA[Alignment]]></item>
<item name="wcf.editor.button.bold"><![CDATA[Bold]]></item>
<item name="wcf.editor.button.code"><![CDATA[Code]]></item>