codex-team / codex-team/editor.js
can we change EnableLineBreaks at runtime❓
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Hi everyone,
I have created a custom block, in that I would like to disable enter event handling of editor.js.
So I come to know that enableLineBreaks will disable enter event of editor
`static get enableLineBreaks() { return true; }
`
but I want to change it at runtime so that it will re-enable enter event,
so I tried like below but not worked for me
`static get enableLineBreaks() { return this.enableEnter; }
`
`this.enableEnter = true; `//at runtime it may change to true/false so that enableLineBreaks will return its value
is there any possible way to implement such behavior?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.