editor icon indicating copy to clipboard operation
editor copied to clipboard

Multiline Kirbytext not working

Open movingwater opened this issue 5 years ago • 3 comments

If I have multiple lines for a KirbyText block it doesn't work as expected. I can add (link: test) which works. Also (link: test) (link: test2) But if I put a linebreak in between, it's not working anymore.

(link: test)
(link: test2)

outputs:

[{"attrs":[],"content":"domain.com/test
domain.com/test2","id":"_y4z0a2epf","type":"kirbytext"}]

For this example I could use two separated blocks but If I wan't to use the columns plugin in a block, that's not possible.

(columns...)

Column 1

++++

Column 2

(...columns)

It looks like this:

[{"attrs":[],"content":"

Column 1

Column 2

","id":"_y4z0a2epf","type":"kirbytext"}]

movingwater avatar Dec 11 '19 15:12 movingwater

@movingwater Are you using this within a Structure field?

I'm running into this issue as well, but only when the editor field is used within a structure field.

neildaniels avatar Jan 29 '20 23:01 neildaniels

This is also an issue for Code blocks, not just Kirbytext.

neildaniels avatar Jan 29 '20 23:01 neildaniels

Yes its, but not structure field but builder field (i use the builder plugin). Sorry for not mentioning this.

movingwater avatar Jan 30 '20 07:01 movingwater