Giter VIP home page Giter VIP logo

summernote's Issues

Issue when installing summernote

Problem 1

  • Installation request for laravel-admin-ext/summernote ^1.0 -> satisfiable by laravel-admin-ext/summernote[v1.0].
  • laravel-admin-ext/summernote v1.0 requires encore/laravel-admin ~1.6 -> satisfiable by encore/laravel-admin[v1.6.0] but these conflict with your
    requirements or minimum-stability.

How to install summernote in stable version

$ composer require laravel-admin-ext/summernote

  [InvalidArgumentException]
  Could not find a version of package laravel-admin-ext/summernote matching your minimum-stability (dev). Require it
  with an explicit version constraint allowing its desired stability.

How to install summernote in stable version ?

Implement Callbacks using laravel admin lte extension

How do i can implement a callbacks at this extension?

Its my code:

$config = [
"height" => "500",
"maxlength" => "2000",
"toolbar" => [
// [groupName, [list of button]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['table', ['table']],
['insert', ['link', 'picture', 'video']],
['view', ['fullscreen', 'codeview', 'help']],
],
"callbacks" => [
["onKeydown", [".....Executar Algum código ......"]],
],
]

How i can implement plugin?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.