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

LWS-261: Codemirror extension for preventing newlines #1164

Merged
merged 17 commits into from
Nov 14, 2024

Conversation

johanbissemattsson
Copy link
Contributor

@johanbissemattsson johanbissemattsson commented Nov 14, 2024

Description

Duplicate of #1156 which accidentally was merged with another branch instead of develop.

Tickets involved

LWS-261

Solves

Adds an CodeMirror extension for preventing newlines (e.g. when typing or pasting). The extension has an option for replacing newlines with spaces which can advantageously used together with the submitFormOnEnterKey extension (which should preferably be placed before in the extension list).

Summary of changes

  • Add CodeMirror extension for preventing newlines
  • Add test
  • Add hidden textarea inside component for name and value attributes

@johanbissemattsson johanbissemattsson force-pushed the feature/LWS-261-prevent-newlines-extension branch from aea590f to 90e8ea6 Compare November 14, 2024 14:17
@johanbissemattsson johanbissemattsson merged commit d8ebe00 into develop Nov 14, 2024
3 checks passed
@johanbissemattsson johanbissemattsson deleted the feature/LWS-261-prevent-newlines-extension branch November 14, 2024 14:57
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.

1 participant