[QUESTION] How can I mark a class name as protected or private in a component.
Question
Hi team,
First let me thank you all for creating this wonderful library. You guys are awesome.
I want to disable editing a specific class name in a component. like row and col. How can i do it. I saw private and protected option in selector_manager code. But I am not sure how to implement it. Can you guys please help me on this.
Answers (3)
Hi @ajumell checkout #1979 comment Cheers!
Hi @ajumell checkout #1979 comment Cheers!
Thanks for the response.
I have a doubt, this is generalised right, Do we have an option per component.
@ajumell you can check the name of your selector before making it private
editor.on('selector:add', slc =>
slc.get('name') === 'my-private-cls' && slc.set({ private: true })
);
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1464
Customizing the Component Position
First of all thank you guys for this awesome library, And I have one Clarification that is how do i customize the drop position example if...
Issue #906
[Question]How to change custom component content (html) from ajax?
Hi @artf, First of all thanks for this awesome plugin. Can you please let me know how i can update/change block content? I created custom b...
Issue #3421
[QUESTION] How to remove class selector css rule
I'm using componentFirst set to true to let my users apply needed style to component they selected. Selecting a component which is applied...
Issue #3409
[QUESTION] Custom component property that is not a trait
I would like to create a custom component with a property that will be updated by specific code, but I don't want this property to be visib...
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.