How can I render JSON in a legible format?

I’m using a great plugin that uses JSON to create a Rich Text Editor feel, but there is no read-only mode. I can prevent a read-only user from saving their changes, but it’s still strange for them to be able to manipulate the content in an unsaved state.

The output code looks like this (notice the “content editable”):

Can anyone help me figure out how to use something like custom JS to turn “contenteditable=‘false’” for each of those blocks for a particular version of the editor?

Any other possibilities would be great. I’m stuck!

This topic was automatically closed after 70 days. New replies are no longer allowed.