Issue #1242Opened June 27, 2018by saravanan-palani0 reactions

[FEATURE REQUEST]: JSON to HTML parsing

Question

Is there any support for JSON to HTML rendering, so that we can get control over the content to be published in the newsletter or webpage. Rather than rendering direct HTML in the editor.

Answers (3)

JogaiJune 28, 20180 reactions

You can put all your separate pieces of content in the blockmanager making it ready to be dragged in a template.

artfJune 30, 20180 reactions

Instead of

blockManager.add('new-block', {
  label: 'My label',
  content: '<section data-attr="some-value"><h1>Hello!<h1></section>',
})

You can do this

blockManager.add('new-block', {
  label: 'My label',
  content: {
	tagName: 'section',
	attributes: { 'data-attr': 'some-value' },
	components: [{
		tagName: 'h1',
		content: 'Hello!',
	}]
  },
})
lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.