codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.43k stars 2.07k forks source link

Render to plain text #759

Open johnwood-wff opened 5 years ago

johnwood-wff commented 5 years ago

It would be nice if there was an easy way to just render the whole thing to plain text, especially for text-to-speech, or performing diffs. I know there are ways to strip out tags from the rendered HTML, but given there's more metadata in the clean json it might make sense to provide an API way of retrieving this more accurately.

EDIT: Or how about extending the API so that each plugin can render to different formats, and have HTML, plain text, markdown, or even MediaWiki as render options?

neSpecc commented 5 years ago

The rendering of a data is not at the Editor's area of responsibility. You are free to render JSON as you want.

We are thinking about some API for Tools that will allow to provide any rendering formats. But there are many questions yet.

marvinside commented 4 years ago

Why is this repo tagged with wysiwyg then? As i need the rendering, i'd be willing to contribute to some rendering API.

But there are many questions yet.

Could you specify the Questions and what challenges there are to take?

neSpecc commented 4 years ago

Related #742