1.0.1 • Published 8 months ago

@fabwcie/ckeditor5-print v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

@fabwcie/ckeditor5-print

Add button for print ckeditor content.

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

Table of contents

Install

npm install @fabwcie/ckeditor5-print

Available options

optiontypedefaultdescription
injectCkeCSSbooleantrueInject the ckeditor css for print
contentCSSstringundefinedInject custom css for print
srcCSSstringundefinedInject custom css file for print

Use

Using module import

import { Print } from '@fabwcie/ckeditor5-print';

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

You can also use as simple script

Download js file here

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

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

and that all, print button appear automaticaly !