laravel-admin-extensions / summernote Goto Github PK
View Code? Open in Web Editor NEWSummernote extension for laravel-admin
License: MIT License
Summernote extension for laravel-admin
License: MIT License
Hello, how i can implement here upload the image inside content?
is possible?
thanks.
Problem 1
$ 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 ?
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 ......"]],
],
]
Thanks for beautiful extension.
$form->hasMany('cevaplar', function (Form\NestedForm $form) {
$form->summernote('cevap', 'Cevap')->rules('required');
});
您好,由于summernote的语言js文件没有加载,配置lang参数无效,请修复此bug谢谢
Uncaught Error: Syntax error, unrecognized expression: input[name=salesforcesync[newsletter_texts]]
35 $('input[name=$name]').val(html);
Name attribute have to be in double quotes.
possible resolve - #6
圖片上傳 如何去除浮水印 或者 改到上傳到 自己的主機?
使用圖片插入 要怎麼修改上傳路徑?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.