Issue #2979πŸ’¬ AnsweredOpened August 27, 2020by ghost1 reactions

Defaulting Style Manager values to em or %

Quick answerby ghost❀ 1

Here you go, I hope it illustrates what I am trying to do https://codepen.io/ksn-systems/pen/LYNzdje thanks

Read full answer below ↓

Question

Version 16.17 Are you able to reproduce the bug from the demo? [ ] Yes [ ] No What is the expected behavior? I can set up the style manager so that I can present all units, the deafult unit and the value of and parameter that uses a size value (font-size, line height padding etc.) Describe the bug detailed When setting up the style manager to use only em and % for size related settings, whilst the units selector is changed, the value shown appears to me value x 16, so I set a value of 1 and it will result in a value of 16. code: const lineHeight = styleManager.getProperty('typography', 'line-...

Answers (3)

artfβ€’ August 28, 2020

Hi @ksn-systems are you able to create a reproducible demo, please?

yucomdsβ€’ January 8, 2021

Same problem for me. I'm trying set to 20px the default font-size on editor load. Do you have a solution for this issue?

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.