• Resolved yepecece

    (@yepecece)


    Hi,

    For some reason the soft return setting does not work.
    I have checked ‘allowBreakInSingleLineInput’ and uncheck ‘disableReturn’.

    I tried changing to the default theme and deactivated all plugins but it still acts like a normal break.

    It used to work fine and on another site which I use it works fine.
    I believe the problem started when I was adding some custom buttons via php (which I deleted).

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Huebner

    (@hube2)

    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?

    Thread Starter yepecece

    (@yepecece)

    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.

    Plugin Author John Huebner

    (@hube2)

    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.

    Thread Starter yepecece

    (@yepecece)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with soft return’ is closed to new replies.