|
|
@ -150,8 +150,6 @@ module.exports = (alerts, pageEntryPath, socket) => {
|
|
|
|
name: 'code-block',
|
|
|
|
name: 'code-block',
|
|
|
|
action: (editor) => {
|
|
|
|
action: (editor) => {
|
|
|
|
if (!mdeModalOpenState) {
|
|
|
|
if (!mdeModalOpenState) {
|
|
|
|
mdeModalOpenState = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mde.codemirror.doc.somethingSelected()) {
|
|
|
|
if (mde.codemirror.doc.somethingSelected()) {
|
|
|
|
vueCodeBlock.initContent = mde.codemirror.doc.getSelection()
|
|
|
|
vueCodeBlock.initContent = mde.codemirror.doc.getSelection()
|
|
|
|
}
|
|
|
|
}
|
|
|
|