Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit top node of the document to be a table>tbody and only allow children to be tr>td #39

Closed
viktor-evdokimov opened this issue Nov 3, 2017 · 3 comments

Comments

@viktor-evdokimov
Copy link

Hello,
I am trying to figure out how to force ScrollBlot to be a table>tbody and only allow first level children to be Blots represented by tr and td tag ( e.g. smallest block level Blot is single cell table row).

I understand I need to define my block blot with tag tr and override some methods on the blot class.
How do I approach ScrollBlot ?

@viktor-evdokimov viktor-evdokimov changed the title Limit top node of the document to be a table and only allow children to be tr>td Limit top node of the document to be a table>tbody and only allow children to be tr>td Nov 3, 2017
@jhchen
Copy link
Member

jhchen commented Nov 5, 2017

What have you tried so far?

@viktor-evdokimov
Copy link
Author

I have block blot for tr defined, and that's it right now.

@jhchen
Copy link
Member

jhchen commented Nov 5, 2017

Okay then try out the allowedChildren option and see how far that takes you for your use case.

@jhchen jhchen closed this as completed Nov 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants