Skip to content

Add config option to customize placeholder brackets

Compare
Choose a tag to compare
@kiruh kiruh released this 20 Dec 11:40
· 9 commits to master since this release

Example

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

Thanks to @baspeeters for contribution!