diff --git a/src/js/simplemde.js b/src/js/simplemde.js index 016d693..d2c3bb0 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -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")); } @@ -2025,4 +2028,4 @@ SimpleMDE.prototype.toTextArea = function() { } }; -module.exports = SimpleMDE; \ No newline at end of file +module.exports = SimpleMDE;