0.1.1 • Published 5 years ago

parse-page v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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);