Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent enter key submitting the form in windows #22

Merged
merged 1 commit into from
Apr 19, 2014

Conversation

Mark-H
Copy link
Contributor

@Mark-H Mark-H commented Jan 24, 2014

When using a RTE such as Redactor, the window has a tendency to submit the form when hitting enter. This breaks the ability to add line breaks in the editor.

This might actually be Redactor-specific as it defaults to an inline editor, while TinyMCE and others default to an iframe and the enter might not trigger in the form.

When using a RTE such as Redactor, the window has a tendency to submit the form when hitting enter. This breaks the ability to add line breaks in the editor.

This might actually be Redactor-specific as it defaults to an inline editor, while TinyMCE and others default to an iframe and the enter might not trigger in the form.
@josht josht merged commit cff0ca0 into josht:master Apr 19, 2014
@blue148
Copy link

blue148 commented Apr 30, 2014

so, has this been fixed, because in items.grid.js the addition just removes the buttons. Enter still submits the form instead of giving a return in Redactor.

@Mark-H
Copy link
Contributor Author

Mark-H commented Apr 30, 2014

Ah crap, I totally goofed up this PR. Inserted of setting buttons:[] it should have been keys:[]

I must've fixed this in my MODX install and send a PR without actually testing the committed change.

@josht
Copy link
Owner

josht commented Apr 30, 2014

Hmmm.. guess I shouldn't merge things in the middle of the night.

This change hasn't been uploaded to the MODX package manager yet was waiting for some time to include a couple other things. Should be in the next few days.

See issue #25 for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants