posted 11 months ago
In the CMS system, users create pages in the content of which there are inserts with video players in addition to the text.
The structure is as follows:
For an untrained user who does not understand the layout, replacing the codes in the right places of the HTML code is difficult and not understandable.
Task: simplify the work by bringing the content to this form:
that is, in the visual editor, he sees the headline texts that he understands and the place where the video should be located:
Can you tell me which way to dig for the implementation of the plan in javascript?
Perhaps there are already some libraries, templating tools or solutions for this kind of tasks.
I.e., in fact, you need to replace the DOM content of the page from the editor with your own code when viewing such a page.