@blowstack/ckeditor-nuxt

中文文档
0.6.0发布于 2021/04/03MITCommonJS近 30 天下载 1911

CKEditor 5 editor for nuxt apps. The component includes all free available plugins (except CKFinder, instead simple upload adapter used)

原始使用文档
文档目录5 节
  1. Requirements
  2. Component integration
  3. List of included plugins
  4. Usage
  5. Customization

ckeditor-nuxt

CKEditor 5 editor for nuxt apps. The component includes all free available plugins (except CKFinder, instead simple upload adapter used)

Requirements

yarn add nuxt
npm i nuxt

Component integration

yarn add @blowstack/ckeditor-nuxt
npm install --save @blowstack/ckeditor-nuxt

List of included plugins

  • Alignment,
  • AutoImage,
  • Autoformat,
  • Autolink,
  • BlockQuote,
  • Bold,
  • CloudServices,
  • Code,
  • CodeBlock,
  • Essentials,
  • FontBackgroundColor,
  • FontColor,
  • FontFamily,
  • FontSize,
  • Heading,
  • Highlight,
  • HorizontalLine,
  • Image,
  • ImageCaption,
  • ImageInsert,
  • ImageResize,
  • ImageStyle,
  • ImageToolbar,
  • ImageUpload,
  • Indent,
  • IndentBlock,
  • Italic,
  • Link,
  • LinkImage,
  • List,
  • ListStyle,
  • MathType,
  • MediaEmbed,
  • MediaEmbedToolbar,
  • PageBreak,
  • Paragraph,
  • PasteFromOffice,
  • RemoveFormat,
  • SimpleUploadAdapter,
  • SpecialCharacters,
  • SpecialCharactersArrows,
  • SpecialCharactersCurrency,
  • SpecialCharactersEssentials,
  • SpecialCharactersLatin,
  • SpecialCharactersMathematical,
  • SpecialCharactersText,
  • Strikethrough,
  • Subscript,
  • Superscript,
  • Table,
  • TableCellProperties,
  • TableProperties,
  • TableToolbar,
  • TextTransformation,
  • Title,
  • TodoList,
  • Underline,
  • WordCount

Usage

<template>
  <client-only placeholder="loading...">
    <ckeditor-nuxt v-model="contentHolder" :config="editorConfig"  />
  </client-only>
</template>

<script>
export default {
  components: {
    'ckeditor-nuxt': () => { if (process.client) { return import('@blowstack/ckeditor-nuxt') } },
  },
  data() {
    return {
      editorConfig: {
        simpleUpload: {
          uploadUrl: 'path_to_image_controller',
          headers: {
            'Authorization': 'optional_token'
          }
        }
      },
      contentHolder: ""
    }
  }
}
</script>

Customization

To make customization use editorConfig object. It works the same way as the default ckeditor 5. More info at https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorconfig-EditorConfig.html

For example if you want to disable Title plugin:


editorConfig: {
    removePlugins: ['Title'],
}

You can also change the behaviour of any plugin. For the Title plugin you can change for example the placeholder:


editorConfig: {
    title: {
        placeholder: 'h1'
    }
}

版本与发布记录

@blowstack/ckeditor-nuxt 共发布 13 个版本,首次发布于 2020/05/13;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.6.0latest2021/04/035 年前
0.5.22021/02/035 年前
0.5.12021/01/205 年前
0.5.02021/01/205 年前
0.4.02020/12/035 年前
0.3.42020/10/296 年前

关于 @blowstack/ckeditor-nuxt 的常见问题

@blowstack/ckeditor-nuxt 是什么?

CKEditor 5 editor for nuxt apps. The component includes all free available plugins (except CKFinder, instead simple upload adapter used)

如何安装 @blowstack/ckeditor-nuxt?

在项目目录运行 npm install @blowstack/ckeditor-nuxt,或使用 pnpm add / yarn add / bun add。

@blowstack/ckeditor-nuxt 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/blowstack__ckeditor-nuxt 是否存在。

@blowstack/ckeditor-nuxt 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@blowstack/ckeditor-nuxt 可以商用吗?

@blowstack/ckeditor-nuxt 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@blowstack/ckeditor-nuxt 的下载量有多少?

根据 npm 官方下载统计,@blowstack/ckeditor-nuxt 在 2026/10/09 – 2026/11/07 这 30 天内被下载 1,911 次,日均约 64 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@blowstack/ckeditor-nuxt 还在维护吗?

最新版本 0.6.0 发布于 2021/04/03(5 年前);至今共发布 13 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/05/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。