Issue #2832Opened June 15, 2020by mbaird40 reactions

Replace/Override template for CategoryView?

Question

Hi,

Wondering if it's at all possible to use custom HTML to replace the CategoryView's template when adding a new block?

I've tried a couple things, but just based on the source code, I'm not seeing a way.

editor.BlockManager.add(name, {
            category: {
                view: {
                    template: '<div><h1>Layout</h1></div>',
                    render() {
                        this.$el.html(this.template);
                        return this;
                    }
                }
            },
            ...
        });

Answers (1)

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.