承接 floor12/yii2-summernote 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

floor12/yii2-summernote

最新稳定版本:1.0.1

Composer 安装命令:

composer require floor12/yii2-summernote

包简介

This Yii2 component helps to organize page title, meta tags and `og` and `twitter` open graph tags in with a fiew lines of code.

README 文档

README

The Summernote WYSIWYG-editor Yii-widget, with all included assets.

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Widget example

Installation

Install the widget via composer: Execute the command

$ composer require floor12/yii2-summernote

Usage

The simplest example:

use floor12\summernote\Summernote;

echo Summernote::widget(['name' => 'some_field'])

TheActiveForm and ActiveRecord model example:

$form = ActiveForm::begin();

echo $form->field($model, 'content_ru')
    ->widget(Summernote::class);
             
ActiveForm::end();

An example of integrating with my files module to intercept editors uploads, save them separately and then use in the editor.

$form = ActiveForm::begin();

echo $form->field($model, 'content_ru')
    ->widget(Summernote::class, [
        'fileField' => 'imagesDesktop',
        'fileModelClass' => $model::class
    ]);

echo $form->field($model, 'imagesDesktop')
    ->widget(FileInputWidget::class);

ActiveForm::end();

Working example

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 4
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-19