getkirby / kirby

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

Table block: writer field output in preview not correct #3324

Closed silllli closed 3 years ago

silllli commented 3 years ago

Describe the bug

In the preview of the table block (blocks/table) the output of the writer field is not correct. The HTML tags are visible and not applied.

To Reproduce
Steps to reproduce the behavior:

  1. Create a block that extends blocks/table
  2. Add a writer field to the fields
  3. Use the block, add an entry and enter something in the writer field
  4. Look at the preview

Sample code:

name: Tabelle
extends: blocks/table
fields:
  rows:
    type: structure
    columns:
      entry:
        width: 1/3
      description:
        width: 2/3
    fields:
      entry:
        type: text
        counter: false
        label: Eintrag
        width: 1/3
      description:
        type: writer
        label: Erläuterung
        marks:
          - bold
          - link
        width: 2/3
    label: Einträge

Expected behavior

The content of the writer field being rendered correctly.

Screenshots

Bildschirmfoto 2021-05-12 um 17 08 37

Kirby Version

3.5.5

Console output

No console output.

Desktop (please complete the following information):

bastianallgeier commented 3 years ago