Issue #617Opened December 7, 2017by michaellwatson0 reactions

No Wrapper

Question

Is it possible to add elements to the canvas that don't have the automatic wrapper added?

There is always a parent div added to the "content" is there anyway to have only the content added to the canvas without the wrapper?

editor.BlockManager.add('test',
    {
        category:'Containers', 
        label: 'Full Width',
        content: '<div>abc</div>',
    });

When this gets dragged to the canvas, it will become

<div class="generated_class">
<div>abc</div>
</div>

Is there anyway to keep it just <div>abc</div>

Thanks

Answers (2)

artfDecember 8, 20170 reactions

@michaellwatson blocks shouldn't be wrapped (just tested it in the demo), indeed if you drop an image block you just get an img

lock[bot]September 18, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.