mirror of
https://github.com/heyman/heynote.git
synced 2025-08-18 10:29:51 +02:00
WIP: Implement support for multiple notes
Refactor Vue <-> Editor <-> CodeMirror code. Introduce Pinia store to keep global state, in order to get rid of a lot of event juggling between Editor class/child components and the root App component.
This commit is contained in:
@@ -28,6 +28,7 @@ onmessage = (event) => {
|
||||
},
|
||||
content: content,
|
||||
idx: event.data.idx,
|
||||
path: event.data.path,
|
||||
})
|
||||
return
|
||||
}
|
||||
@@ -53,6 +54,7 @@ onmessage = (event) => {
|
||||
},
|
||||
content: content,
|
||||
idx: event.data.idx,
|
||||
path: event.data.path,
|
||||
})
|
||||
return
|
||||
}
|
||||
@@ -66,6 +68,7 @@ onmessage = (event) => {
|
||||
},
|
||||
content: content,
|
||||
idx: event.data.idx,
|
||||
path: event.data.path,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user