Created
May 10, 2018 06:39
-
-
Save steelydylan/ce0a6c802f3e8558a28c3977ab2bf00a to your computer and use it in GitHub Desktop.
テキストユニット拡張サンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACMS.Ready(function(){ | |
ACMS.Config.mediaLibrary = 'off'; | |
ACMS.Config.LiteEditorUseEmojiPicker = false; | |
ACMS.Config.offcanvas.breakpoint = 1023; | |
ACMS.Config.LiteEditorConf.btnOptions = [ | |
{ | |
label: '<i class="lite-editor-font-back"></i>', | |
action: 'undo', | |
group: 'action' | |
}, | |
{ | |
label: '<i class="lite-editor-font-go"></i>', | |
action: 'redo', | |
group: 'action' | |
}, | |
{ | |
label: '<i class="lite-editor-font-link"></i>', | |
tag: 'a', | |
group: 'mark' | |
}, | |
{ | |
label: '<i class="lite-editor-font-bold"></i>', | |
tag: 'strong', | |
group: 'mark' | |
}, | |
{ | |
label: '<i class="lite-editor-font-italic"></i>', | |
tag: 'i', | |
className: '', | |
group: 'mark', | |
sampleText: ' ' | |
}, | |
{ | |
label: '<i class="lite-editor-font-underline"></i>', | |
tag: 'u', | |
className: '', | |
group: 'mark', | |
sampleText: ' ' | |
}, | |
{ | |
label: '<i class="fa fa-image"></i>', | |
selfClassName: 'js-media_insert', | |
action: 'extra', | |
group: 'extra', | |
onClick: function(self) { | |
self.saveSelection(); | |
} | |
} | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment