@fabwcie/ckeditor5-preview
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@fabwcie/ckeditor5-preview

Add button for preview ckeditor content.

This package was created by the ckeditor5-package-generator package.

Table of contents

Install

npm install @fabwcie/ckeditor5-preview

Available options

option type default description
injectCkeCSS boolean true Inject the ckeditor css for preview
contentCSS string undefined Inject custom css for preview
srcCSS string undefined Inject custom css file for preview

Use

Using module import

import { Preview } from '@fabwcie/ckeditor5-preview';

ClassicEditor
  .create( document.querySelector( '#editor' ), {
    plugins: [
      Preview,
      // ... other plugins
    ]
  })
  .catch( error => {
      console.error( error );
  } );

You can also use as simple script

Download js file here

<script src="path/to/preview.js"></script>

<!-- Or with CDN -->
<script src="https://cdn/@fabwcie/ckeditor5-preview/preview.js"></script>

and that all, preview button appear automaticaly !

Package Sidebar

Install

npm i @fabwcie/ckeditor5-preview

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

40.9 kB

Total Files

16

Last publish

Collaborators

  • fabwinkler