Issue #2781💬 AnsweredOpened May 16, 2020by adamwpe0 reactions

Unable to Press Space Within Button Componet

Quick answerby Mohsen-Khakbiz

try adding components like this

Read full answer below ↓

Question

Hi Guys,

I have a button component, it lets me edit the text, but doesn't let me type a space ' '. Though you can copy and paste one in.

I have an example here: https://jsfiddle.net/qz2cumo6/2/

Any idea why that would be?

Thanks,

Answers (2)

Mohsen-KhakbizMay 16, 2020

try adding components like this

components: [
	{
		tagName: 'button',
		classes: ['gjs-button'],
		components: [
			{
				selectable: true,
				editable: true,
				tagName: 'span',
				type: 'text',
				content: 'edit me'
			}
		]
	}
],
adamwpeMay 16, 2020

That's a nice simple solution - worked a treat.

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.