@@ -101,21 +101,7 @@ export default {
|
|||||||
new Bold(),
|
new Bold(),
|
||||||
new Italic(),
|
new Italic(),
|
||||||
new Strike(),
|
new Strike(),
|
||||||
new Underline(),
|
new Underline()
|
||||||
new class extends Extension {
|
|
||||||
keys () {
|
|
||||||
return {
|
|
||||||
Enter (state, dispatch, view) {
|
|
||||||
const { schema, doc, tr } = view.state
|
|
||||||
|
|
||||||
const hard_break = schema.nodes.hard_break
|
|
||||||
const transaction = tr.replaceSelectionWith(hard_break.create()).scrollIntoView()
|
|
||||||
view.dispatch(transaction)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -376,6 +376,10 @@ export default {
|
|||||||
color: #404246;
|
color: #404246;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
|
||||||
|
p:empty {
|
||||||
|
min-height: 1em;
|
||||||
|
}
|
||||||
// font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen,
|
// font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen,
|
||||||
// Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial,
|
// Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial,
|
||||||
// sans-serif !important;
|
// sans-serif !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user