Skip to content

Adding a line break by pressing "enter" key resulting in submitting an empty string #svelte #1237

Open
@johnnminh

Description

@johnnminh

Hi all,

I am trying to get the basic text editing to work within CRUD in my Svelte app. Not sure why the content from the text editor is being submitted as "" if I press the "enter" key to create a line break in the editor. If I didn't create a line break, or if I pasted a paragraph from elsewhere with line breaks into the editor and submitted the form, the paragraph is created accordingly in the database. Any suggestion on how to fix this is greatly appreciated. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions