Convert HTML To Elevate Editor Content
yarn add html-to-elevate-editor
const { LoadStructure } = require('html-to-elevate-editor');
const structure = await LoadStructure({
url,
target: ".rl-custompage",
customJsCommands: [
'$("#rls1a > div.modal-backdrop.fade.in, .rl-apology").remove()',
'$("body").removeClass("modal-open")'
]
});
const { Convert } = require('html-to-elevate-editor');
const editorConfig = Convert(structure);