mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 20:28:54 +02:00
Allow to choose between the different fonts in CKEDITOR.
This commit is contained in:
parent
74b1b7acf5
commit
2768eb1745
15 changed files with 128 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue