2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-23 01:44:31 -06:00

n-3-0 : Add optional onToggleFullScreen support from options

This commit is contained in:
N-3-0 2018-07-15 03:04:10 -06:00
parent 382449c0bc
commit efda8d4a21

View File

@ -259,6 +259,9 @@ function toggleFullScreen(editor) {
var sidebyside = cm.getWrapperElement().nextSibling;
if (/editor-preview-active-side/.test(sidebyside.className))
toggleSideBySide(editor);
if(editor.options.onToggleFullScreen)
editor.options.onToggleFullScreen(cm.getOption("fullScreen") || false);
}