{jsphrase name='wcf.editor.button.group.block'}
{jsphrase name='wcf.editor.button.group.format'}
{jsphrase name='wcf.editor.button.group.list'}
+ {jsphrase name='wcf.editor.button.spoiler'}
{jsphrase name='wcf.editor.restoreDraft'}
const element = document.getElementById('{$wysiwygSelector|encodeJS}');
toConfig(): EditorConfig {
const language = Object.keys(window.CKEDITOR_TRANSLATIONS).find((language) => language !== "en");
+ const key = language ? language : "en";
+ window.CKEDITOR_TRANSLATIONS[key].dictionary["Spoiler"] = getPhrase("wcf.editor.button.spoiler");
+
// TODO: The typings are both incompleted and outdated.
return {
alignment: {
{jsphrase name='wcf.editor.button.group.block'}
{jsphrase name='wcf.editor.button.group.format'}
{jsphrase name='wcf.editor.button.group.list'}
+ {jsphrase name='wcf.editor.button.spoiler'}
{jsphrase name='wcf.editor.restoreDraft'}
const element = document.getElementById('{$wysiwygSelector|encodeJS}');
}
toConfig() {
const language = Object.keys(window.CKEDITOR_TRANSLATIONS).find((language) => language !== "en");
+ const key = language ? language : "en";
+ window.CKEDITOR_TRANSLATIONS[key].dictionary["Spoiler"] = (0, Language_1.getPhrase)("wcf.editor.button.spoiler");
// TODO: The typings are both incompleted and outdated.
return {
alignment: {