8000 easy linebreaks in group creation description field [1] · Issue #592 · affinityworks/main · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
easy linebreaks in group creation description field [1] #592
Open
@aguestuser

Description

@aguestuser

[stub]

Context

Right now, a user enters some text with linebreaks, but they disappear. this is confusing. also, users will likely not enter HTML (which they can). so... just use css to let them enter linebreaks and ditch the HTML support until we circle back and add a rich-text editor (if we do.)

Implementation notes:

from @jlgoldman :

You can also put CSS on the rendered element with white-space: pre-line or white-space: pre-wrap to preserve rendered newlines but leave the field as plain text. That's definitely preferable to introducing html or markdown when only newlines are desired.

Longer term you could use an in-browser rich-text editor as you do for one of the other fields, which generates html that the user doesn't need to know about. But for a simple description plain text plus the white-space css property is probably sufficient.
Show less

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0