Partial parse
#3711
Replies: 2 comments 1 reply
-
Yeah, unfortunately, if there is no way to recognize the legacy HTML via editor.Components.addType('doNotEditMe', {
model: {...},
view: {...},
isComponent: el => el.classList?.contains('old-el-class'),
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you succeed ? Could you give more information because I tried and unfortunately could not define a specifice editable zone in an already existing html code |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi everyone,
I'm wondering how to address this kind of scenario:
I realized a custom component that fetches the legacy HTML from the server and "inject" it in the canvas with a model.components(data) statement.
I was thinking about creating a new component type (something like doNotEditMe) with property "editable" set to false and then assigning data-gjs-type="doNotEditMe" to all the elements of the original HTML that has to be not-editable.
Do you think I'm crazy?
Beta Was this translation helpful? Give feedback.
All reactions