'wcf.editor.link.url': '{lang}wcf.editor.link.url{/lang}',
'wcf.editor.link.text': '{lang}wcf.editor.link.text{/lang}',
+ 'wcf.editor.list.indent': '{lang}wcf.editor.list.indent{/lang}',
+ 'wcf.editor.list.outdent': '{lang}wcf.editor.list.outdent{/lang}',
+
'wcf.editor.quote.author': '{lang}wcf.editor.quote.author{/lang}',
'wcf.editor.quote.edit': '{lang}wcf.editor.quote.edit{/lang}',
'wcf.editor.quote.title': '{lang __literal=true}wcf.editor.quote.title{/lang}',
'wcf.editor.link.url': '{lang}wcf.editor.link.url{/lang}',
'wcf.editor.link.text': '{lang}wcf.editor.link.text{/lang}',
+ 'wcf.editor.list.indent': '{lang}wcf.editor.list.indent{/lang}',
+ 'wcf.editor.list.outdent': '{lang}wcf.editor.list.outdent{/lang}',
+
'wcf.editor.quote.author': '{lang}wcf.editor.quote.author{/lang}',
'wcf.editor.quote.edit': '{lang}wcf.editor.quote.edit{/lang}',
'wcf.editor.quote.title': '{lang __literal=true}wcf.editor.quote.title{/lang}',
if (!button[0]) {
throw new Error("Missing button element for '" + buttonName + "'.");
}
+
// set title
//noinspection JSUnresolvedVariable
elAttr(button[0], 'title', buttonData.title);
button[0].classList.add('jsTooltip');
+
+ // update dropdown label for list
+ if (buttonName == 'lists') {
+ var dropdown = button.data('dropdown');
+ elBySel('.redactor-dropdown-outdent span', dropdown[0]).textContent = WCF.Language.get('wcf.editor.list.outdent');
+ elBySel('.redactor-dropdown-indent span', dropdown[0]).textContent = WCF.Language.get('wcf.editor.list.indent');
+ }
}
// enforce button order as provided with `opts.buttons`
cursor: default;
opacity: .6;
- &:hover {
- background-color: transparent !important;
+ > a:hover {
+ background-color: $wcfDropdownBackground !important;
color: $wcfDropdownText !important;
+ cursor: default !important;
}
}
}
<item name="wcf.editor.link.url"><![CDATA[Link]]></item>
<item name="wcf.editor.link.text"><![CDATA[Text]]></item>
+ <item name="wcf.editor.list.indent"><![CDATA[Einrücken]]></item>
+ <item name="wcf.editor.list.outdent"><![CDATA[Ausrücken]]></item>
+
<item name="wcf.editor.quote.author"><![CDATA[Quelle]]></item>
<item name="wcf.editor.quote.edit"><![CDATA[Zitat bearbeiten]]></item>
<item name="wcf.editor.quote.title"><![CDATA[{if $author}Zitat von {$author}{else}Zitat{/if}]]></item>
<item name="wcf.editor.link.url"><![CDATA[Link]]></item>
<item name="wcf.editor.link.text"><![CDATA[Text]]></item>
+ <item name="wcf.editor.list.indent"><![CDATA[Indent]]></item>
+ <item name="wcf.editor.list.outdent"><![CDATA[Outdent]]></item>
+
<item name="wcf.editor.quote.author"><![CDATA[Source]]></item>
<item name="wcf.editor.quote.edit"><![CDATA[Edit Quote]]></item>
<item name="wcf.editor.quote.title"><![CDATA[{if $author}Quote from {$author}{else}Quote{/if}]]></item>