You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Vue removes HTML Comments from the templates. It would be nice if we could disable this behavior via a configuration. The specific use case is that we are trying to use Vue with Magnolia CMS and Magnolia uses comments to figure out where to display its contribution interface. When Vue removes the comments Magnolia cannot place its contribution interface anymore, which renders the Page useless.
What does the proposed API look like?
new Vue({
comments: true | false
});
false: would function like the current behavior, true: would not remove the comments and keep them in the DOM.
The text was updated successfully, but these errors were encountered:
Hi jblotus,
thanks for your suggestion, but I am not sure what you mean by appending the "comments" after the component activates. The "comments" are generated by Magnolia on the Server-Side via JSPs, so when the Page loads they are already there as part of the DOM. Or are you saying it is possible to get the "comments" from the DOM when the component activates and before Vue parses the DOM and removes them, so they can be re-added afterwards? I am also fairly new to Vue, so it would be much appreciated if you could provide a small example. Thanks again for your suggestion and for answering my (probably stupid) questions.
Kingwl
pushed a commit
to Kingwl/vue
that referenced
this issue
Jun 22, 2017
What problem does this feature solve?
Currently Vue removes HTML Comments from the templates. It would be nice if we could disable this behavior via a configuration. The specific use case is that we are trying to use Vue with Magnolia CMS and Magnolia uses comments to figure out where to display its contribution interface. When Vue removes the comments Magnolia cannot place its contribution interface anymore, which renders the Page useless.
What does the proposed API look like?
new Vue({
comments: true | false
});
false: would function like the current behavior, true: would not remove the comments and keep them in the DOM.
The text was updated successfully, but these errors were encountered: