Commit f5cce0e1 authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub

Merge pull request #106 from fa93hws/fa93hws

fixed code block bugs
parents 60cb01fc 0cbc2bc4
......@@ -50,6 +50,7 @@ module.exports = (mde, mdeModalOpenState) => {
},
methods: {
open: (ev) => {
mdeModalOpenState = true;
$('#modal-editor-codeblock').addClass('is-active')
_.delay(() => {
......
......@@ -150,8 +150,6 @@ module.exports = (alerts, pageEntryPath, socket) => {
name: 'code-block',
action: (editor) => {
if (!mdeModalOpenState) {
mdeModalOpenState = true
if (mde.codemirror.doc.somethingSelected()) {
vueCodeBlock.initContent = mde.codemirror.doc.getSelection()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment