[Question] Add an additional text box for image upload modal?
Question
Hi Artur,
I'm wondering if that's possible to add some input boxes for image upload modal?
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)
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');
...
})
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.
Issue #1706
[Question]: How to get href from rte?
I have this rte toolbar where you can type and click 'save' and it's going to create a link for the selected text. but the problem is that...
Issue #1837
How to change the label of traits?
I'd like change the labels of triats which are going to be french. Could you give a piece of example code? Thank you Artur
Issue #1835
How to open up 'Settings' all the time?
I'd like make 'Settings' opened at all times by default without having users to open up manually. How'd you do that? Thank you..
Issue #417
Add Setting button to custom component.
Hello, How can I create a setting or you can say edit button for my custom component? LIke 4th option on this image:
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.