strapi-plugin-layout-editor

This is the description of the plugin.

Usage no npm install needed!

<script type="module">
  import strapiPluginLayoutEditor from 'https://cdn.skypack.dev/strapi-plugin-layout-editor';
</script>

README

Strapi plugin layout-editor

Exposes another endpoint to get layout data

Note: this plugin is for the strapi backend only, it requires a seperate ui to work correctly.

http://localhost:1337/layout-editor/:model/:modelId/layouts

It will return with an object of

const model = {
    id: string;
    model: string;
    modelId: string;
    layoutJson: LayoutJson;
}

where your LayoutJson interface, at a minimum, has these fields,

interface LayoutJson {
  i: string;
  x: number;
  y: number;
  w: number;
  h: number;
}