html-to-elevate-editor

0.3.0 • Public • Published

Convert HTML To Elevate Editor Content

💾 Install

yarn add html-to-elevate-editor

🔨 Usage

Convert HTML To JSON Structure

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")'
  ]
});

Structure TO Editor Config

const { Convert } = require('html-to-elevate-editor');

const editorConfig = Convert(structure);

Readme

Keywords

none

Package Sidebar

Install

npm i html-to-elevate-editor

Weekly Downloads

3

Version

0.3.0

License

MIT

Unpacked Size

5.22 MB

Total Files

53

Last publish

Collaborators

  • elmsttim