Issue #1490💬 AnsweredOpened October 9, 2018by kalislami0 reactions

How to send value from the layout section

Quick answerby artf

Use events

Read full answer below ↓

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, 2018

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, 2019

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.