Skip to content

santi/ckeditor-plugin-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CKEditor Spotify Plugin

Plugin for adding a Spotify Embed to the CKEditor.

Supports both Spotify URIs (spotify:album:1DFixLWuPkv3KT3TnV35m3) and Spotify URLs (http://open.spotify.com/track/6rqhFgbbKwnb9MLmUQDhG6).

Requires CKEditor 4.3+ with the widget plugin . The editor instance must allow div and iframe tags.

The plugin uses a few custom styles. These are automatically included in the classic editor instance, but must be copied for inline editors and for the final target webpage. To include the custom styles into your editor/webpage, include the following in the <head> of your document:

<head>
  <link
    rel="stylesheet"
    href="<PATH_TO_CKEDITOR>/plugins/spotify/styles/spotify.css"
  />
</head>

Published in the official CKEditor plugin repository.

Translations

Currently supports English (en), Norwegian Bokmål (nb) and Ukrainian (uk). Want to provide translations for your own language? Please fork the project and open a pull request.

Screenshots

Dialog screenshot

Small widget screenshot

Large widget screenshot

Multiple widgets screenshot

Credits

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Development

Run npx live-server . in root folder and open http://localhost:8080/demo to test out the plugin in an editor instance.