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

How i can implement plugin? #11

Open
BSDevCode opened this issue Sep 10, 2019 · 0 comments
Open

How i can implement plugin? #11

BSDevCode opened this issue Sep 10, 2019 · 0 comments

Comments

@BSDevCode
Copy link

How i can install the plugin??
i have try to save js plugin, editing the config that include plugin, but not working, im looking to add this plugin https://github.com/creativeprogramming/summernote-addclass
exist a way to implement plugin, and make my own ?
thanks!
@z-song

code preview: config->admin

'summernote' => [

            //Set to false if you want to disable this extension
            'enable' => true,

            // Editor configuration
            'config' => [
                'height' => 300,
                'disableResizeEditor' => true,
                'addclass'=> [
                    'debug' => false,
                    'classTags' => [['title' =>"Button", 'value'=>"btn btn-success"],"jumbotron", "lead","img-rounded","img-circle", "img-responsive","btn", "btn btn-success","btn btn-danger","text-muted", "text-primary", "text-warning", "text-danger", "text-success", "table-bordered", "table-responsive", "alert", "alert alert-success", "alert alert-info", "alert alert-warning", "alert alert-danger", "visible-sm", "hidden-xs", "hidden-md", "hidden-lg", "hidden-print"]],
                'toolbar ' => [
                    // [groupName, [list of button]]
                    ['img', ['picture']],
                    ['style', ['style', 'addclass', 'clear']],
                    ['fontstyle', ['bold', 'italic', 'ul', 'ol', 'link', 'paragraph']],
                    ['fontstyleextra', ['strikethrough', 'underline', 'hr', 'color', 'superscript', 'subscript']],
                    ['extra', ['video', 'table', 'height']],
                    ['misc', ['undo', 'redo', 'codeview', 'help']]
                ]
            ],

and then i add the custom js file
summernote-ext-addclass.js

protected static $js = [
        'vendor/laravel-admin-ext/summernote/dist/summernote.min.js',
        'vendor/laravel-admin-ext/summernote/dist/summernote-ext-addclass.js',
    ];

tested new extension field that increment this js but not working,so i have added it direct into vendor/laravel-admin-ext/..

i have all files in view, config in javascript is right, but not working :\ some help or information how to do?

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