ArticleEditor.add('block', 'block.bs-carousel', { mixins: ['block'], type: 'bs-carousel', draggable: false, parser: { tag: 'div', parse: function($el) { return ($el.hasClass('carousel')) ? 'bs-carousel' : false; } }, toolbar: { add: { command: 'addbar.popup', title: '## buttons.add ##' }, edit: { command: 'carousel.edit', title: '## buttons.edit ##', icon: '' } }, control: ['trash', 'duplicate'], translations: { 'en': { "blocks": { "bs-carousel": "Carousel" } } }, create: function() { var id = this.app.utils.getRandomId(); var $block = this.dom('