dotcms-ema-elements

DotCMS Edit Mode Anywhere Web Components Library

Usage no npm install needed!

<script type="module">
  import dotcmsEmaElements from 'https://cdn.skypack.dev/dotcms-ema-elements';
</script>

README

DotCMS Edit Mode Anywhere Elements

In order to make DotCMS Edit Mode works we need to pass some data-attr in the HTML for containers and contentlets.

In this repo we provide two Web Components that will help you to pass those attributes very easy.

Elements

We have two:

<dotcms-ema-container container={}>
  <dotcms-ema-contentlet contenlet={container={}}>
    <!--HERE GOES YOUR CONTENTLET-->
  </dotcms-ema-contentlet>
</dotcms-ema-container>

Full documentation:

  1. dotcms-ema-container
  2. dotcms-ema-contentlet

StencilJS

This project was built with StencilJS for more information on how to run it check this readme.