Hi,
Thanks to colleague of mine I can provide a solution. There is a config file for Inspector, there are defiitions for all shapes - fields which should be displayed in inspecter and theirs properties. There you can set the readonly attribute. In example below is setting for basic.Rect, fields 'font-size', 'text' will be readonly. You need to check in HTML how particular field is rendered and set readonly attr on right element.
'basic.Rect': {
inputs: {
attrs: {
text: {
text: {
type: 'textarea',
label: 'Text',
group: 'text',
index: 1,
attrs: { textarea: { readonly: true } }
},
'font-size': {
type: 'range',
attrs: { input: { readonly: true } },
min: 5,
max: 80,
unit: 'px',
label: 'Font size',
group: 'text',
index: 2
},
Another option which 'disable' wole inspector is set CSS portiner-events: none'
.joint-inspector { pointer-events: none;} Regards,