定制 helios-ag/fm-summernote-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

helios-ag/fm-summernote-bundle

最新稳定版本:1.0

Composer 安装命令:

composer require helios-ag/fm-summernote-bundle

包简介

Summernote bundle, adds Summernote WYSIWYG editor to your Symfony project

README 文档

README

FMSummernoteBundle integrates the Summernote WYSIWYG editor with Symfony applications.

Tests

Total Downloads Latest Stable Version License Codacy Badge Codacy Badge

Requirements

  • PHP 8.0 or higher
  • Symfony 6.0 or higher
  • jQuery (can be included automatically)

Installation

Step 1: Install the bundle

composer require helios-ag/fm-summernote-bundle

Step 2: Enable the bundle

If you're using Symfony Flex, the bundle will be enabled automatically. Otherwise, enable it in your config/bundles.php file:

// config/bundles.php

return [
    // ...
    FM\SummernoteBundle\FMSummernoteBundle::class => ['all' => true],
];

Configuration

You can configure the bundle as follows, but note that the plugins "elfinder" and "video" are not supported in Jquery2.x.

fm_summernote:
    plugins:
        - video
        - elfinder # by default plugins not set, bundle comes with elfinder plugin / provides integration with FMElfinderBundle
    selector: .summernote #defines summernote selector for apply to
    toolbar: # define toolbars, if no toolbar configured, default toolbars defined
        style: [style]
        bold: [bold]
    extra_toolbar: # extra toolbar can be used for plugins toolbar and as additional toolbar setings, when 'toolbar' option is omitted
        elfinder: [elfinder]
    width: 600
    height: 400
    language: '' # define language (with language culture code like de-DE, fr-FR, etc.) by default, it is in english
    include_jquery: true #include js libraries, if your template already have them, set to false
    include_bootstrap: true
    include_fontawesome: true

Usage

Twig template example

    {{ summernote_init() }}
    <textarea class="summernote"></textarea>  

统计信息

  • 总下载量: 29.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 7

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-23