fixed code block bugs

Please enter the commit message for your changes. Lines starting
pull/106/head
fa93hws 8 years ago
parent e0389177e3
commit 661307f5db

@ -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()

Loading…
Cancel
Save