Commit 661307f5 authored by fa93hws's avatar fa93hws

fixed code block bugs

Please enter the commit message for your changes. Lines starting
parent e0389177
......@@ -50,6 +50,7 @@ module.exports = (mde, mdeModalOpenState) => {
},
methods: {
open: (ev) => {
mdeModalOpenState = true;
$('#modal-editor-codeblock').addClass('is-active')
_.delay(() => {
......
......@@ -150,7 +150,7 @@ module.exports = (alerts, pageEntryPath, socket) => {
name: 'code-block',
action: (editor) => {
if (!mdeModalOpenState) {
mdeModalOpenState = true
// 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