Closed koolamusic closed 2 years ago
For the reference, here is an example how to do that for text
element with the current API
https://codesandbox.io/s/blissful-ardinghelli-42zs6?file=/src/index.js
Thanks a lot, this works well and I am going to close this issue.
Currently we have the
locked
API that enables locking an element, however this only supports locking both the position and attributes of an element.We need a way to prevent modifications to the element
types
Example atype TEXT
can be readonly if modifications to thetext
are not allowedIn the above type TEXT,
text
will not be editable when readonly is setIn the above element type for IMAGE, we can ensure that
clipSrc
andsrc
are not editable.