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-editor-decoupled-base64

v1.0.0

Published

自用的ckeditor5-editor-decoupled的自定义构建

Downloads

12

Readme

@iimm/ckeditor5-editor-decoupled-base64

This repository presents a CKEditor 5 editor build generated by the Online builder tool 一个自用的自定义ckeditor5的editor构架

版本对应

本构建的版本与ckeditor5-xxx版本对应关系

├── 1.x
│   ├── 1.0.0   35.4.0 Base64UploadAdapter

构建内容

Editor.builtinPlugins = [
  Alignment,
  Autoformat,
  AutoImage,
  Base64UploadAdapter,
  Bold,
  Essentials,
  FindAndReplace,
  FontBackgroundColor,
  FontColor,
  FontFamily,
  FontSize,
  GeneralHtmlSupport,
  Heading,
  Highlight,
  Image,
  ImageCaption,
  ImageTextAlternative,
  ImageInsert,
  ImageResize,
  ImageStyle,
  ImageToolbar,
  ImageUpload,
  Indent,
  IndentBlock,
  Italic,
  List,
  ListProperties,
  Paragraph,
  PasteFromOffice,
  RemoveFormat,
  Strikethrough,
  Table,
  TableCaption,
  TableCellProperties,
  TableProperties,
  TableToolbar,
  TextTransformation,
  TodoList,
  Underline,
  WordCount,
  IndentFirstLine,
  LineHeight,
  ParagraphSpacing,
  ClearEmptyParagraph,
  ClearSpaceCharacter,
  SoftBreakToEnter,
  QuickStyle,
  ConvertFullHalf,
  Outline,
  FormatPainter,
];

Editor.defaultConfig = {
  toolbar: {
    items: [
      'fontFamily',
      'fontSize',
      'fontColor',
      '|',
      'bold',
      'italic',
      'underline',
      'strikethrough',
      'outline',
      '|',
      'alignment',
      'indentFirstLine',
      'lineHeight',
      '|',
      'imageUpload',
      '|',
      'formatPainter',
      'findAndReplace',
      'removeFormat',
      'undo',
      'redo',
    ],
  },
  language: 'zh-cn',
  fontFamily: {
    options: [ '宋体', '仿宋', '微软雅黑', '幼圆', '等线', '黑体', '隶书', '楷体', 'Arial', 'Times New Roman' ],
    supportAllValues: true,
  },
  fontSize: {
    options: [
      { title: '小四', model: '12pt' },
      { title: '四号', model: '14pt' },
      { title: '小三', model: '15pt' },
      { title: '三号', model: '16pt' },
      { title: '小二', model: '18pt' },
      { title: '二号', model: '22pt' },
      { title: '小五', model: '9pt' },
      { title: '五号', model: '10.5pt' },
      { title: '小六', model: '6.5pt' },
      { title: '六号', model: '7.5pt' },
      { title: '小一', model: '24pt' },
      { title: '一号', model: '26pt' },
      { title: '小初', model: '36pt' },
      { title: '初号', model: '42pt' },
    ],
    supportAllValues: true,
  },
  indent: {
    supportAllValues: true,
  },
  htmlSupport: {
    allow: [
      {
        name: /^(p|span|img|table|tbody|thead|tfoot|tr|td|th|col|colgroup|b|strong|s|sub|sup|u|i|em|h[1-6]|figure)$/,
        attributes: { width: true, height: true },
        classes: false,
        styles: true,
      },
    ],
  },
  image: {
    resizeUnit: '%',
    resizeOptions: [{
      name: 'resizeImage:original',
      value: null,
      icon: 'original',
    },
    {
      name: 'resizeImage:25',
      value: '25',
      icon: 'small',
    },
    {
      name: 'resizeImage:50',
      value: '50',
      icon: 'medium',
    },
    {
      name: 'resizeImage:75',
      value: '75',
      icon: 'large',
    }],
    toolbar: [
      'imageStyle:inline',
      'imageStyle:block',
      'imageStyle:side',
      '|',
      'resizeImage:25', 'resizeImage:50', 'resizeImage:75', 'resizeImage:original',
    ],
  },
  table: {
    contentToolbar: [
      'tableColumn',
      'tableRow',
      'mergeTableCells',
    ],
  },
};