More Premium Hugo Themes Premium Nuxt Themes

Ckeditor Nuxt

CKEditor5 component for Nuxt.js framework. All free official plugins included.

Ckeditor Nuxt

CKEditor5 component for Nuxt.js framework. All free official plugins included.

Author Avatar Theme by blowstack
Github Stars Github Stars: 33
Last Commit Last Commit: Apr 2, 2021 -
First Commit Created: Dec 18, 2023 -
Ckeditor Nuxt screenshot

Overview:

CKEditor 5 editor for Nuxt apps is a component that includes all free available plugins for CKEditor, except CKFinder which is replaced by a simple upload adapter. This editor provides various features and functionalities to enhance the editing experience in Nuxt applications.

Features:

  • Alignment: Allows you to align text or other elements within the editor.
  • AutoImage: Automatically inserts and handles images in the editor.
  • Autoformat: Automatically formats content based on predefined rules.
  • Autolink: Automatically converts URLs and email addresses into clickable links.
  • BlockQuote: Adds a blockquote-style formatting option.
  • Bold: Applies bold formatting to selected text.
  • CloudServices: Integrates with cloud services for advanced editing features.
  • Code: Inserts code snippets into the editor.
  • CodeBlock: Allows for the insertion and styling of code blocks.
  • Essentials: Provides essential editing features such as undo/redo, copy/paste, etc.
  • FontBackgroundColor: Changes the background color of selected text or elements.
  • FontColor: Changes the font color of selected text or elements.
  • FontFamily: Changes the font family of selected text or elements.
  • FontSize: Changes the font size of selected text or elements.
  • Heading: Creates different levels of headings in the content.
  • Highlight: Adds highlight color to selected text.
  • HorizontalLine: Inserts a horizontal line in the content.
  • Image: Allows for the insertion and manipulation of images in the editor.
  • ImageCaption: Adds captions to images in the content.
  • ImageInsert: Inserts images into the editor.
  • ImageResize: Resizes images within the editor.
  • ImageStyle: Applies different styles to images.
  • ImageToolbar: Provides a toolbar for image-related actions.
  • ImageUpload: Enables image upload functionality.
  • Indent: Indents content or selected elements.
  • IndentBlock: Indents blocks of content.
  • Italic: Applies italic formatting to selected text.
  • Link: Inserts and manages hyperlinks within the content.
  • LinkImage: Allows for linking images within the content.
  • List: Creates bulleted or numbered lists.
  • ListStyle: Changes the style of lists.
  • MathType: Enables the insertion of mathematical equations.
  • MediaEmbed: Embeds media content like videos within the editor.
  • MediaEmbedToolbar: Provides a toolbar for media embedding options.
  • PageBreak: Inserts page break elements in the content.
  • Paragraph: Formats selected text as a paragraph.
  • PasteFromOffice: Allows for pasting content from Microsoft Office applications.
  • RemoveFormat: Removes formatting from selected text.
  • SimpleUploadAdapter: With the use of a simple upload adapter, files can be uploaded.
  • SpecialCharacters: Inserts special characters into the content.
  • SpecialCharactersArrows: Inserts arrow symbols as special characters.
  • SpecialCharactersCurrency: Inserts currency symbols as special characters.
  • SpecialCharactersEssentials: Inserts essential special characters.
  • SpecialCharactersLatin: Inserts Latin special characters.
  • SpecialCharactersMathematical: Inserts mathematical symbols as special characters.
  • SpecialCharactersText: Inserts special text characters.
  • Strikethrough: Applies strikethrough formatting to selected text.
  • Subscript: Formats selected text as subscript.
  • Superscript: Formats selected text as superscript.
  • Table: Inserts and manages tables in the content.
  • TableCellProperties: Allows for customizing table cell properties.
  • TableProperties: Allows for customizing table properties.
  • TableToolbar: Provides a toolbar for table-related actions.
  • TextTransformation: Transforms the case of selected text.
  • Title: Handles title formatting within the editor.
  • TodoList: Creates to-do lists.
  • Underline: Applies underline formatting to selected text.
  • WordCount: Displays a count of words in the content.

Installation:

To install the CKEditor 5 editor for Nuxt apps, follow these steps:

  1. Install the required package using npm or yarn:
npm install ckeditor-nuxt
  1. Import the CKEditor component in your Nuxt application:
import CKEditor from 'ckeditor-nuxt';
  1. Add the CKEditor component to your Nuxt components:
export default {
  components: {
    CKEditor,
  },
}
  1. Use the CKEditor component in your HTML template:
<template>
  <div>
    <h1>CKEditor 5 Editor</h1>
    <CKEditor />
  </div>
</template>
  1. Customize the editor by utilizing the editorConfig object. This object works similarly to the default CKEditor 5 editor configuration. More information can be found at EditorConfig documentation.

For example, if you want to disable the Title plugin, you can use the following configuration:

export default {
  data() {
    return {
      editorConfig: {
        plugins: {
          options: [
            {
              name: 'Title',
              isEnabled: false,
            },
          ],
        },
      },
    }
  },
}

You can also modify the behavior of any plugin. For example, to change the placeholder of the Title plugin, use the following configuration:

export default {
  data() {
    return {
      editorConfig: {
        plugins: {
          options: [
            {
              name: 'Title',
              config: {
                placeholder: 'Enter a title...',
              },
            },
          ],
        },
      },
    }
  },
}

Summary:

The CKEditor 5 editor for Nuxt apps is a powerful component that provides a comprehensive set of features for content editing in Nuxt applications. It offers a wide range of plugins to enhance the editing experience and allows for easy customization using the editorConfig object. By following the installation guide, you can quickly integrate and customize the CKEditor 5 editor in your Nuxt application.