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:
parent
382449c0bc
commit
efda8d4a21
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user