mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
Add a callback to toggle full screen
When dealing webiste with headers. It could be tricky to hide the headers when simpleMDE is full screen. Adding a callback will largely simplify the case
This commit is contained in:
parent
6abda7ab68
commit
2db7b11222
@ -224,6 +224,9 @@ function toggleFullScreen(editor) {
|
||||
var sidebyside = cm.getWrapperElement().nextSibling;
|
||||
if(/editor-preview-active-side/.test(sidebyside.className))
|
||||
toggleSideBySide(editor);
|
||||
// Add toggle fullscreen callback
|
||||
if ('fullScreenCallback' in editor.options)
|
||||
editor.options.fullScreenCallback(cm.getOption("fullScreen"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user