Allow to choose between the different fonts in CKEDITOR.

This commit is contained in:
Jan Böhmer 2020-04-25 19:19:12 +02:00
parent 74b1b7acf5
commit 2768eb1745
15 changed files with 128 additions and 5 deletions

View file

@ -87,14 +87,13 @@ CKEDITOR.plugins.add('partdb_label', {
hidpi: true,
icons: 'placeholder',
lang: ['en', 'de'],
onLoad: function() {
// Register styles for placeholder widget frame.
CKEDITOR.addCss( '.cke_placeholder{background-color:#ff0}' );
},
init: function (editor) {
var config = editor.config,
lang = editor.lang.partdb_label;
var pluginDirectory = this.path;
editor.addContentsCss( pluginDirectory + 'styles/style.css' );
// Put ur init code here.
editor.widgets.add( 'placeholder', {
// Widget code.