Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in airmode #2

Open
jeekca opened this issue Jan 13, 2018 · 0 comments
Open

Does not work in airmode #2

jeekca opened this issue Jan 13, 2018 · 0 comments

Comments

@jeekca
Copy link

jeekca commented Jan 13, 2018

This plugin does not work in airmode.

To make it work, I had to comment out the following lines in summernote-map-plugin.js :

        var isIncludedInToolbar = false;

        for (var idx in options.toolbar) {
            // toolbar => [groupName, [list of button]]
            var buttons = options.toolbar[idx][1];
            if ($.inArray('map', buttons) > -1) {
                isIncludedInToolbar = true;
                break;
            }
        }

        if (!isIncludedInToolbar) {
            return;
        }

So basically, lines 19 to 32.

It would be best if it worked in airmode, but for now this dirty fix will do.

Thanks for the awesome plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant