We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3348d2 commit 0a28d62Copy full SHA for 0a28d62
src/index.vue
@@ -42,11 +42,11 @@ export default {
42
mounted() {
43
if (this.autoinit) this.initialize();
44
},
45
- activated() {
+ deactivated() {
46
const editor = this.simplemde;
47
if (!editor) return;
48
- const isActive = editor.isSideBySideActive() || editor.isPreviewActive();
49
- if (isActive) editor.toggleFullScreen();
+ const isFullScreen = editor.codemirror.getOption('fullScreen');
+ if (isFullScreen) editor.toggleFullScreen();
50
51
methods: {
52
initialize() {
0 commit comments