Formatting carry over to the next line #1039
-
I'm using the createExitBreakPlugin
The query filtering working fine. But if I press enter while the bold format is active the next line carrying the format as well. How can I control this behaviour and reset to default when I press enter. And another one thing I noted I pass only
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We can add a rule option |
Beta Was this translation helpful? Give feedback.
-
I hope it's not needed. I dig into the code a bit and found the function is using insert method instead of the native slate way. The format was resetting for the heading types since I added it in allow field. Now I added ELEMENT_DEFAULT as well. Thanks @zbeyens |
Beta Was this translation helpful? Give feedback.
I hope it's not needed. I dig into the code a bit and found the function is using insert method instead of the native slate way. The format was resetting for the heading types since I added it in allow field. Now I added ELEMENT_DEFAULT as well. Thanks @zbeyens