kiruh / ckeditor5-placeholder

Widget that allows using of placeholders like "First Name", "Date" etc. in ckeditor5

Home Page:https://ckeditor5-placeholder.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CKEditor 5 placeholder feature

Documentation

This package is a final product of Implementing an inline widget tutorial describing how to create a “Placeholder” feature which allow the user to insert a predefined placeholders, like a date or a surname, into the document.

Install

npm install --save ckeditor5-placeholder

Config

import ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
import Placeholder from "ckeditor5-placeholder";

ClassicEditor.create(document.querySelector("#editor"), {
  plugins: [
    // ...
    Placeholder,
  ],
  toolbar: [
    // ...
    "placeholder",
  ],
  placeholderProps: {
    types: ["First Name", "Date"],
  },
  placeholderBrackets: {
    open: "{",
    close: "}",
  }
});

About

Widget that allows using of placeholders like "First Name", "Date" etc. in ckeditor5

https://ckeditor5-placeholder.netlify.com/

License:ISC License


Languages

Language:JavaScript 98.0%Language:CSS 2.0%