npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@iimm/ckeditor5-plugins

v1.1.1

Published

custom ckeditor5 plugins (eg: indent first line, custom format, ad so on...)

Downloads

6

Readme

CKEditor5-plugins

基于ckeditor5的,适用于自定义构建的插件包。要使用此插件包,则不建议直接使用官方的classicdecoupledinlineballoon等构建,建议自定义构建

NPM version NPM downloads

fork from https://github.com/letsbug/ckeditor5-plugins,修改了depends和目录结构,修改了部分插件的名称、图标、tooltip、默认配置项等

features 包含功能

├── src
│   ├── clear-empty-paragraph   清除空行
│   ├── clear-space-character   清除多余空格和空行(开头、结尾的空格,中间连续的空格只保留1个)
│   ├── convert-full-half       全角、半角标点符号相互转换
│   ├── figure-attributes       为figure包裹的元素添加自定义属性
│   ├── format-painter          格式刷(将选择的区块的样式应用于其他区块)
│   ├── indent-first-line       首行缩进
│   ├── outline                 文本轮廓线框
│   ├── paragraph-style
│       ├── line-height         行高(行距)控制
│       ├── paragraph-spacing   段落间距(实际为段前距)
│   ├── quick-style             快速排版
│   ├── simple-adapter          重写官方的SimpleUploadAdapter,支持文件字段自定义
│   ├── soft-break-to-enter     软换行转硬换行

Preview 呈现结果

ckeditor5-plugins build screenshot

Usage 食用方法

installation

# 最新的内容:
npm i -S https://github.com/liudichen/ckeditor5-plugins.git

# 发布到npmjs.com版本:
npm i @iimm/ckeditor5-plugins

custom build

// The editor creator to use.
import DecoupledEditorBase from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor.js';

// Official plugin packages from Ckeditor
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
import Indent from '@ckeditor/ckeditor5-indent/src/indent';
// ...

// Custom plug-in packages
import IndentFirstLine from '@iimm/ckeditor5-plugins/src/indent-first-line';
import ParagraphSpacing from '@iimm/ckeditor5-plugins/src/paragraph-style/paragraph-spacing';
import LineHeight from '@iimm/ckeditor5-plugins/src/paragraph-style/line-height';
import ClearEmptyParagraph from '@iimm/ckeditor5-plugins/src/clear-empty-paragraph';
import ClearSpaceCharacter from '@iimm/ckeditor5-plugins/src/clear-space-character';
import SoftBreakToEnter from '@iimm/ckeditor5-plugins/src/soft-break-to-enter';
import QuickStyle from '@iimm/ckeditor5-plugins/src/quick-style';
import ConvertFullHalf from '@iimm/ckeditor5-plugins/src/convert-full-half';
import SimpleAdapter from '@iimm/ckeditor5-plugins/src/simple-adapter';
import Outline from '@iimm/ckeditor5-plugins/src/outline';
import FormatPainter from '@iimm/ckeditor5-plugins/src/format-painter';

export default class DecoupledEditor extends DecoupledEditorBase {}

// Plugins to include in the build.
DecoupledEditor.builtinPlugins = [
  // ...

  IndentFirstLine,
  ParagraphSpacing,
  LineHeight,
  ClearEmptyParagraph,
  ClearSpaceCharacter,
  SoftBreakToEnter,
  QuickStyle,
  ConvertFullHalf,
  SimpleAdapter,
  Outline,
  FormatPainter,
];

DecoupledEditor.defaultConfig = {
  toolbar: {
    items: [
      // ...

      '|',
      'indentFirstLine', 'lineHeight', 'paragraphSpacing', '|',
      'outline', 'formatPainter', '|',
      'removeFormat', 'convertFullHalf', 'clearEmptyParagraph', 'clearSpaceCharacter', 'softBreakToEnter', '|',
      'quickStyle'
    ]
  }
}

更多文档资料请移步CKEditor5官方文档 https://ckeditor.com/docs/ckeditor5/latest/