Set Model property.
Question
How can I disable model drag button on this event:
editor.on('component:deselected', (model) => {
if (model...) {
model.set(...)
}
}
Answers (1)
If for model drag button you mean the button on the toolbar, you should update the toolbar property, eg:
model.set('toolbar', [{
attributes: { class: 'fa fa-trash-o' },
command: 'tlb-delete'
}])
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2129
[Question] how to append a button inside default modal and catch it's click event
I want a form inside a modal (using the default modal ), on click of the submit button make an ajax call. I have created a new component wh...
Issue #3626
How to set src of video tag at dynamic?
Hi @artf , Hi I have drag and drop video tag and button from blockmanager, On Clicking the button , I need to change the url to src. But no...
Issue #2046
[QUESTIONS] How to disable Scripts inside the editor?
Hi @artf , I need to disable all the scripts (component scripts and other scripts) inside the editor, and scripts should run only when we c...
Issue #2015
[Question] Is it possible to extract the updated properties in events
Hello, I am wondering if it is possible to react on property updates. I have tried to use the built-in events, but its not clear to me how...
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.