Closed CodeWithOz closed 3 years ago
Hello @CodeWithOz,
Thank you for reporting your use case.
I've already implemented in the coming version v10.2
a solution for such use cases.
Cheers, and have a nice day! :)
Awesome work, thanks! When can we expect v10.2
to be released?
Thanks! v10.2
will be released early next week.
@TarekRaafat hey it seems the problem isn't fully fixed, now I can only create one newline at a time. If the line I'm on doesn't contain any text, I can't create another new line. Is that expected? If so, can I disable it? Previously I used to be able to create as many newlines as I wanted even if they were all empty.
Hello @CodeWithOz,
Are you using v10.2.6
with the submit
API?
No I'm not using it. I don't specify it in my config and from the docs the default is false
, so that should mean it's disabled.
No I'm not using it. I don't specify it in my config and from the docs the default is
false
, so that should mean it's disabled.
You need to set submit
to true
to enable the default enter
button behavior, which is disabled by default.
Would you please try it and let me know how it goes?
@TarekRaafat yep that was the fix, thank you!
[x] System Information
[x] Describe the bug
Using this library for a contenteditable div, pressing the "Enter" key doesn't cause the cursor to move to the next line. Essentially I can't create a new line using the "Enter" key. The correct behavior is that I should be able to create as many new lines as I want without this library preventing that behavior.
[x] To Reproduce Steps to reproduce the behavior: <!-- Example below-!>
[x] Expected behavior Pressing the "Enter" key should always create a new line
[x] Screenshots or GIF's (optional, but HIGHLY RECOMMENDED) Not applicable
[x] Additional context (optional) This is for a cordova app as described earlier.