JSPM

tinymce-placeholder

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 54
  • Score
    100M100P100Q36691F
  • License MIT

Placeholder plugin for TinyMCE

Package Exports

  • tinymce-placeholder

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tinymce-placeholder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tinymce-placeholder

Placeholder plugin for TinyMCE

Use

Add "placeholder" to plugin option for tinymce and either have placeholder attribute on the element or set the option placeholder when initating tinymce.

tinymce.init({
  placeholder: "Placeholder from settings",
  plugins: ['placeholder'],
});

Based on https://github.com/angular-ui/ui-tinymce/issues/197 @human-a