Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Support multiple cell types #33

Open
maxmax1992 opened this issue Jul 13, 2017 · 2 comments
Open

Support multiple cell types #33

maxmax1992 opened this issue Jul 13, 2017 · 2 comments

Comments

@maxmax1992
Copy link

maxmax1992 commented Jul 13, 2017

I have plugin set up like this:

const tablePlugin = PluginEditTable({
  typeTable: ['table'],
  typeRow: ['table_row'],
  //<th> and <td> elements
  typeCell: ['table_cell', 'table_heading']
});

adding this parameter object for PluginEditTable like above breaks the functionality of the isSelectionInTable function, with this breaking most of the plugin functionality as it can't recognize the table. However removing that object parameter from PluginEditTable fixes it:

const tablePlugin = PluginEditTable();

This problem is encountered when I want to deserialize table with multiple cell types like and ...
so I need to define multiple typeCell types.
Anyone has ideas how to fix this?

@Soreine
Copy link
Contributor

Soreine commented Sep 20, 2017

The plugin currently only supports a single type of cells (not an array of types).
I rename this issue to be a feature request for this.

@Soreine Soreine changed the title Issues with Html serializer and multiple cell elements Support multiple cell types Sep 20, 2017
@Soreine
Copy link
Contributor

Soreine commented Sep 20, 2017

Have you tried, as a workaround, to set custom data to your cells ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants