Issue #3315✓ SolvedOpened March 5, 2021by devtechk3 reactions

Mm or cm Units are converted to px

Quick answerby Ju99ernaut2

Did you add mm, cm etc, as units to the style manager inputs, these are not built in

Read full answer below ↓

Question

I realized that mm or cm units are converted to px. How can i solve this problem? Thank you image

Answers (4)

👍 Most helpfulJu99ernautMarch 12, 2021

Did you add mm, cm etc, as units to the style manager inputs, these are not built in

Ju99ernautMarch 6, 2021

As stated above it's what the browser engine does, usually this is the fix, but I've never used it with units that aren't built in:

Andrew-Chen-WangMarch 5, 2021

I think that's just what the browser engine does in general. I'm no expert, but I think that output is just the final info interpreted by the engine.

GJSBlockMay 17, 2026

Thanks for reporting this, @devtechk. Great question about mm or cm Units are converted to px. The recommended approach with ProseMirror is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most operations can...

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.