Issue #1781💬 AnsweredOpened February 8, 2019by kickbk0 reactions

Add a font-size type prop

Quick answerby artf

Seems to work on my side: https://jsfiddle.net/ewyb2zcu/

Read full answer below ↓

Question

I'm trying to create a font-size type of property that I would like to add to the dimensions sector. Doing this:

styleManager.addProperty('Dimension',{
	name: 'Icon Size',
	property: 'icon-size',
	type: 'integer',
	units: ['px', 'em', 'rem', '%']
});

Getting the value and all, but it's just showing an input box. Not one with the select option between the units. What am I doing wrong?

Answers (3)

no-response[bot]February 18, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we ne...

lock[bot]February 18, 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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.