commit
f5cce0e1f4
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user