object/editor.js

  1. import { Observable } from "domodel"
  2. /**
  3. * @global
  4. */
  5. class Editor extends Observable {
  6. constructor() {
  7. super()
  8. this._toolbar = null
  9. }
  10. /**
  11. * @type {Toolbar}
  12. */
  13. get toolbar() {
  14. return this._toolbar
  15. }
  16. set toolbar(toolbar) {
  17. this._toolbar = toolbar
  18. }
  19. }
  20. export default Editor