Skip to content

maveio/ckeditor4-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckeditor4-plugin

1. Install plugin

Copy the contents from plugins/mave to your project plugins folder.

2. Configure mave within your project:

<script type="module">
  import { Player, Upload } from "https://cdn.mave.io/npm/@maveio/components/+esm";

  window.MAVE_CONFIG = {
    token: '{{your token here}}', // token (JWT): should include `sub` (space), `collection` and `exp`,
    color: 'red',
    font: 'Verdana, system-ui, sans-serif',
    radius: '20px',
    locale: 'nl', // default: 'en', can be: 'nl', 'de', 'fr']
    previewInlineTag: 'img' // optional, defaults to iframe
  }
</script>

3. Add token to config

Replace the YOUR_TOKEN_HERE from the above code snippet by generating your own token. Go to https://jwt.io and fill in the appropiate info like shown below: jwt.io

4. Server configuration (optional when using previewInlineTag 'img')

When you are using an image placeholder (see MAVE_CONFIG.previewInlineTag), you will need to transform the image tag to an <mave-player> element when rendering on page. You can find the elements as img[data-type="mave_preview"]. Within each img tag you will find img[data-type="embed"], which is the value use to render the player as <mave-player embed="{embed}"></mave-player>.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published