editor-js / document-model

❗️WIP❗️
Apache License 2.0
11 stars 2 forks source link

Create an EventBus class #22

Closed gohabereg closed 11 months ago

gohabereg commented 1 year ago
  1. Create an EventBus class
  2. Create class or method which would create an event
  3. Find a way to pass EventBus to Model nodes (DI?)
gohabereg commented 1 year ago

updated

  index: `${DocumentId}:${BlockId}:data@${DataKey}|tune@${TuneName}:${StartIndex}`
  event: ‘added’ | ‘removed’ | ‘modified’,  
  data: 
    text (added, removed) -> new text value
    text (modified) -> end index, new formatting name + value, isInverted
    value (modified) -> new value
    tune (modified) -> new tune value
    block -> BlockSerialized
    document (modified) -> prop name , prop value
}
gohabereg commented 11 months ago

Closed by #43