Skip to content

How i can implement plugin? #11

@BSDevCode

Description

@BSDevCode

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions