Issue #958💬 AnsweredOpened March 16, 2018by rajatkumcom1 reactions

Unable to create a popup by using bootbox or any other way.

Quick answerby rajatkumcom1

Got my answer- I have used parent keyword. parent.bootbox.alert('Hi');

Read full answer below ↓

Question

Unable to create bootbox popup. Below is my code:- var blockManager = editor.BlockManager; blockManager.add('design', { label: 'Design', content: { script: "bootbox.alert('Hi'); console.log('the element', this)", // script: function () { // bootbox.alert({ // title: 'A custom dialog with buttons and callbacks', // message: "<p>This dialog has buttons. Each button has it's own callback function.</p>", // }); // }, // Add some style just to make the component visible style: { width: '100px', height: '100px', 'background-color': 'red', } }, attributes: {class: 'gjs-fonts gjs-f-image gjs-block gj...

Answers (3)

rajatkumcomMarch 16, 2018

Got my answer- I have used parent keyword. parent.bootbox.alert('Hi');

rajatkumcomMarch 16, 2018

screenshot from 2018-03-16 19-09-36

lock[bot]September 17, 2019

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.