Issue #786Opened January 22, 2018by perfect-coders0 reactions

How to get the next and previous models/elements of selected element

Question

I am cloning an element. I want to get the next element or previous element. By this I mean to say that How can I get the model or How should I give some custom attribute to the cloned element.

Thanks in Advance.

Answers (3)

JulyanoFJanuary 22, 20180 reactions

When you say "element", you are talking about blocks? Like button, text, section...?

perfect-codersJanuary 22, 20180 reactions

yes

JulyanoFJanuary 22, 20180 reactions

You can get all blocks like this: var blocks = editor.BlockManager.getAll().models;

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.