We want to make our editor a single input (not multiline) and have an "onEnter" call that saves rather than inserts a newline. Is this possible?
Hey @sontek passing handleReturn as prop to the editor should do it. Plz let me know know if you see any issues in doing that.
@jpuri Thanks! I tried that but it wasn't preventing changes. For example:
handleReturn={() => {
console.log("HANDLE RETURN");
return false;
}}
I would get the log of "handle return" but the content would also get a newline.
Hah, it needs to be return true
Thanks!
Most helpful comment
@jpuri Thanks! I tried that but it wasn't preventing changes. For example:
I would get the log of "handle return" but the content would also get a newline.