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

WYSIWYG Widget System Refactor #565

Open
toastercup opened this issue Aug 21, 2018 · 0 comments
Open

WYSIWYG Widget System Refactor #565

toastercup opened this issue Aug 21, 2018 · 0 comments
Labels

Comments

@toastercup
Copy link
Member

toastercup commented Aug 21, 2018

While our current WYSIWYG Widget system isn't terrible, it also:

  • is in need of many new features
  • is difficult to manipulate and ensure data integrity for (its structure can be broken easily by a content creator)
  • is not based on any standard
  • may be difficult to render differently based on device or application

I'd suggest we move toward a standard such as Mobiledoc, which stores the rich text from the WYSIWYG as structured JSON data, rather than HTML, Markdown, etc. This allows us to deliver just the raw data to the client without any assumptions about how they'll be rendering it, with what framework they'll be using, etc. They're free to make their own rendering decisions, and they (and Cortex itself - i.e. for data integrity purposes) can easily manipulate anything within the structure of the Mobiledoc. This will also allow us to index and search/filter on this data, as it will play nicely with JSONB and ElasticSearch.

Additionally, Mobiledoc has its own concept of Widgets called 'Cards' (a less ambiguous name, frankly), which gives us a wonderful platform to start from, and a large community of pre-existing Card content to integrate with Cortex.

Ghost 2.0 utilizes Mobiledoc/Cards to great effect: https://blog.ghost.org/2-0/

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

No branches or pull requests

1 participant