getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Multiline placeholder in writer field renders as single line #3470

Closed plagasul closed 3 years ago

plagasul commented 3 years ago

Describe the bug

Multiline placeholder string in the writer field declaration, renders as single line placeholder string.

To Reproduce

  1. Include a writer field in you yaml file as such (other fields for comparison only)
writer:
  type: writer
  placeholder: |
    blah
    blah
    blah
text:
  type: text
  placeholder: |
    blah 
    blah
    bleh          
textarea:
  type: textarea
  placeholder: |
    blah 
    blah
    bleh
  1. Open panel page, and see that writer's placeholder is single line, like text field (which is single-line by default), unline textarea field.

Expected behavior
A multiline yaml string placeholder should show as multiline when rendering the field in the panel.

Screenshots
image

Kirby Version
Version 3.5.6

Additional context
As explained in this forum post.

bastianallgeier commented 3 years ago