Issue #1828💬 AnsweredOpened February 25, 2019by SeongwoonHong0 reactions

Add an additional text box for image upload modal?

Quick answerby artf

You can intercept the asset open command and then manipulate the DOM for your needs

Read full answer below ↓

Question

Hi Artur, I'm wondering if that's possible to add some input boxes for image upload modal? capture I'd like to add some boxes in the red area in the screenshot above. Those boxes is intended for adding href for the image

Answers (2)

artfMarch 3, 2019

You can intercept the asset open command and then manipulate the DOM for your needs

editor.on('run:open-assets', () => {
	const el = editor.Modal.getContent().querySelector('.gjs-am-assets-cont');
	...
})
lock[bot]March 10, 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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.