volto icon indicating copy to clipboard operation
volto copied to clipboard

Pasting html table will create table inside slate/text block

Open jackahl opened this issue 3 years ago • 1 comments

Describe the bug Pasting a html table from another website will not a new table block. Instead the block will stay text block with a table inside. This leads to the block not haveing the proper table sidebar It used to work at least in some cases in older plone versions (15..).

To Reproduce Steps to reproduce the behavior:

  1. Go to https://6.demo.plone.org/add?type=Document
  2. Paste the html table from https://en.wikipedia.org/wiki/Plone_(software)
  3. -> It will not create proper table block

Expected behavior It should create a new table block instead of table in slate block

Screenshots Screenshot 2022-09-12 at 16-02-45 Add Document

Software (please complete the following information):

  • OS: Ubuntu 20.04.5 LTS
  • Browser: Firefox, Chrome
  • Volto 16.0.0-alpha.30
  • Plone 6.0.0b1
  • plone.restapi 8.25.1

jackahl avatar Sep 12 '22 14:09 jackahl

Hey, @tiberiuichim @razvanMiu could one of you take a look?

jackahl avatar Sep 12 '22 14:09 jackahl