Issue #1490Opened October 9, 2018by kalislami0 reactions

How to send value from the layout section

Question

@artf I need your help to solve my issue with grapesjs

i have this code in the template: screenshot from 2018-10-09 19-18-53

I want to pass that value in this way screenshot from 2018-10-09 19-19-49

but when I edit that part into "Blogger Campaign", it doesn't send the updated values, sent still "Campaign Title"

do you have a solution for this?

thanks before

Answers (2)

artfOctober 11, 20180 reactions

Use events

editor.on('storage:start:store', data => {
	const compH1 = editor.DomComponents.getWrapper().find('#campaign_title')[0];
	data.title = compH1 && compH1.getEl().innerText;
})
lock[bot]October 11, 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.