Issue #2422💬 AnsweredOpened November 23, 2019by MartinPutz2 reactions

Unable to add 'space' character if zoom is applied on canvas

Quick answerby mattdeigh1

Ahhh, I see it now. Wasn't tracking with the code completely. I'll play around with that and let you know what I come up with.

Read full answer below ↓

Question

Cannot edit text components properly if a zoom value is applied on the canvas. GrapesJS version:0.15.8 The issue can be reproduced in the demo as well: https://jsfiddle.net/1n9ruwa4/ Expected behavior: Zoom is applied on canvas using:editor.Canvas.setZoom() The text components can be still edited and 'space'(Keycode:32) characters added Current behavior: Zoom is applied on canvas using:editor.Canvas.setZoom() Even though other characters can be added/edited, you are not able to add new 'space' characters since the space character is also used for 'repositioning' canvas if zoom is applied. The...

Answers (3)

mattdeighMay 7, 2020

Ahhh, I see it now. Wasn't tracking with the code completely. I'll play around with that and let you know what I come up with.

SphenoxJuly 16, 2021

I'm writing on this issue, since you can't add a 'space', if you are focused on an <a> or a <button>. It is reproducable in the demo, if you add a Link: https://jsfiddle.net/1n9ruwa4/ Reason is because of the notTextable config from the canvas. I don't see the point, why "button" and "a" are in thi...

artfNovember 27, 2019

Thanks @MartinPutz good catch

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.