Partial parse
#3711
Replies: 2 comments 2 replies
-
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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