We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 797eada commit afa83eaCopy full SHA for afa83ea
src/components/EditorEasyMDE.vue
@@ -57,10 +57,18 @@ export default {
57
58
this.mde = new EasyMDE(config)
59
60
+ // keys Home/End should apply to the visual line
61
+ this.mde.codemirror.addKeyMap({
62
+ 'Home': 'goLineLeft',
63
+ 'End': 'goLineRight',
64
+ })
65
+
66
+ // pass event for changes
67
this.mde.codemirror.on('change', () => {
68
this.$emit('input', this.mde.value())
69
})
70
71
+ // listen for click/touch events in order to toggle checkboxes
72
document.querySelectorAll('.CodeMirror-code').forEach((codeElement) => {
73
codeElement.addEventListener('mousedown', this.onClickCodeElement)
74
codeElement.addEventListener('touchstart', this.onClickCodeElement)
0 commit comments