getkirby / kirby

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

Pasting text into the writer field doesn't remove unsupported html tags #3169

Closed moevbiz closed 2 years ago

moevbiz commented 3 years ago

Pasting text into the writer field doesn't remove unsupported html.

To Reproduce
Steps to reproduce the behavior:

  1. in a starterkit, go to i.e "panel/pages/photography+trees" and paste some formatted text into the text field. for example, just copy the headline "Welcome to Kirby's Starterkit" from the landing page.

Expected behavior
The writer field should strip all unsupported tags.

Screenshots

Screenshot 2021-02-22 at 14 19 40

Kirby Version
3.5.3

Desktop (please complete the following information):

related feature request: https://kirby.nolt.io/249

distantnative commented 3 years ago

I tried, but the ProseMirror in the writer field is too much black magic for me - @bastianallgeier will be needed.

afbora commented 3 years ago

We can close the issue and keeping as feature/idea in Nolt.

distantnative commented 3 years ago

I think the idea in Nolt is about a dedicated button for clearing supported formatting. While this issue is about that on paste unsupported tags aren't removed - I think this can indeed be considered as bug.

bastianallgeier commented 3 years ago

The tags should be properly removed when the node is not available. I think it's a problem that the headline nodes are still slumbering in our write field by default.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.