Issue #1763💬 AnsweredOpened January 29, 2019by poeeain0 reactions

Add <Style> tag in block content objects (not a string)

Quick answerby artf

BTW, I think, for your case, a custom component is more appropriate

Read full answer below ↓

Question

Browser = ChromeGrapesJS = Latest version ( 0.14.52 ) I am trying to create a block includes nesting content object with script, style, type properties. It works fine except adding <style> tag in the content. Issue If I create block content as a String like option (A) as below, CSS goes to CSS editor. But if I create block content as an object like option (B), CSS remains in HTML editor. ( I am not sure this is a bug or not ) Here, What I want to achieve is I want to create block like option (B), but expect CSS to be in CSS editor. option (A) codepen demo (A) ---- option (B) codepen demo (B)...

Answers (2)

artfFebruary 6, 2019

BTW, I think, for your case, a custom component is more appropriate

lock[bot]February 6, 2020

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.