수식 편집 플러그인이 추가된 사이냅에디터 2.16.0 버전이 릴리즈 되었습니다.
window.SynapEditor.addPlugin('customShortcut', function (editor) { return { shortcutDef: [{ key: { windows: 'Alt+Shift+X', mac: 'Alt+Shift+X' }, option: { onExecute: function (editor, e) { editor.selectionManager.selectAll(); editor.execCommand('textFill', '#ff0000'); editor.selectionManager.documentStart(); editor.selectionRenderer.renderSelection(editor.selectionManager.selection); } } }] } }); |