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

Define API method for handling legacy content data #590

Closed
mtias opened this issue May 1, 2017 · 4 comments
Closed

Define API method for handling legacy content data #590

mtias opened this issue May 1, 2017 · 4 comments
Labels
[Feature] Block API API that allows to express the block paradigm. Framework Issues related to broader framework topics, especially as it relates to javascript

Comments

@mtias
Copy link
Member

mtias commented May 1, 2017

A block should have a way to optionally define what legacy structures to match. This may be a private API we use for core blocks only.

Examples: text without p tags, captioned images with shortcodes.

This issue is not involved with whether these will be enabled by default (i.e: reading shortcode captioned images and overwriting on save with the new markup).

@mtias mtias added [Feature] Block API API that allows to express the block paradigm. Framework Issues related to broader framework topics, especially as it relates to javascript [Priority] High Used to indicate top priority items that need quick attention labels May 1, 2017
@nylen
Copy link
Member

nylen commented May 1, 2017

Ideally this would not need to be a separate method: we just define a data/markup structure that a block can accept, and look inside the post content for valid instances of these structures. See #391 (comment) for an example of how this could be achieved.

@mtias
Copy link
Member Author

mtias commented May 1, 2017

Another thought I discussed at some point with @aduth was that this layer could also function for pasting content from other places (word, google docs, etc).

@jasmussen jasmussen modified the milestone: Beta Jun 5, 2017
@ellatrix
Copy link
Member

See also #589 for text. Potentially text could be handled automatically if it's just the p tag or text without delimiters.

@mtias mtias modified the milestones: Beta 2, Beta Jun 15, 2017
@mtias mtias removed the [Priority] High Used to indicate top priority items that need quick attention label Jun 22, 2017
@mtias mtias removed this from the Beta 2 milestone Jun 22, 2017
@mtias
Copy link
Member Author

mtias commented Aug 18, 2017

Closing this as things have evolved and we are looking at handling specific cases individually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block API API that allows to express the block paradigm. Framework Issues related to broader framework topics, especially as it relates to javascript
Projects
None yet
Development

No branches or pull requests

4 participants