I don’t think I completely understand the issue.
When you uncheck ‘disableReturn’, this allows the field to be a multiline input like a textarea. This results in the setting for ‘allowBreakInSingleLineInput’ to have no effect.
Checking ‘disableReturn’ and ‘allowBreakInSingleLineInput’ turns the field into a single line input field and allows you to manually enter breaks by typing <br> into the field.
Can you clarify your issue?
Hi and thanks for your answer.
I guess I did not formulate my question correctly.
I wanted to know if you could enable the soft return shortcut (command + return key). This is the normal behavior in the tinyMCE editor as well as in other apps (Word, inDesign, etc…).
So basically return is a new paragraph and command return is a break (<br>).
Thanks
PS
You could maybe add a conditional logic to the ‘allowBreakInSingleLineInput’ to hide it if ‘disableReturn’ is unchecked.
I cannot disable the return adding a new paragraph and enable the CRTR/Command return adding a line break. These options are part of the medium editor script that I’m using in this plugin https://github.com/yabwe/medium-editor. I believe there has been some discussion on this topic. It would require implementation in medium editor and them supplying a new option to make it work.
This is the main reason why I created the allowBreakInSingleLineInput feature. It’s really just a hack that leaves <br> tags when the values is updated.
As far as hiding this option when the others are not checked, I will try to remember this the next time I work on this plugin.
After searching the GitHub it seems it is a bug with safari:
https://github.com/yabwe/medium-editor/issues/1119
So I guess they need to fix it.
Thanks for your help.