Skip to content

Commit

Permalink
Changed default config values
Browse files Browse the repository at this point in the history
  • Loading branch information
ablunier committed Jul 17, 2019
1 parent 2a0a096 commit 150b9c4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10,972 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[CKEditor5 Classic editor](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/overview.html#classic-editor) field for Laravel Nova. Use the last version of the popular WYSIWYG editor as a [Laravel Nova](https://nova.laravel.com/) field.

<a href="https://packagist.org/packages/numaxlab/nova-ckeditor5-classic"><img src="https://img.shields.io/packagist/v/numaxlab/nova-ckeditor5-classic.svg?style=flat-square" alt="Latest Version on Packagist"></img></a>
<a href="https://packagist.org/packages/numaxlab/nova-ckeditor5-classic"><img src="https://img.shields.io/packagist/dt/numaxlab/nova-ckeditor5-classic.svg?style=flat-square" alt="Total Downloads"></a>

## Installation

You can install the package into a Laravel application that uses Nova via composer:
Expand Down
37 changes: 20 additions & 17 deletions config/ckeditor5Classic.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
return [

/*
|--------------------------------------------------------------------------------
| CKEditor Options
Expand All @@ -9,28 +10,29 @@
| https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/configuration.html
|
*/

'options' => [
'language' => 'de',
'language' => 'en',
'toolbar' => [
'Heading',
'Bold',
'Italic',
'-',
'Link',
'-',
'NumberedList',
'BulletedList',
'BlockQuote',
'-',
'Heading',
'Bold',
'Italic',
'-',
'Link',
'-',
'NumberedList',
'BulletedList',
'BlockQuote',
'-',
'MediaEmbed',
'imageUpload',
],
'image' => [
'toolbar' => [
'imageTextAlternative', '|',
'imageStyle:alignLeft',
'imageStyle:full',
'imageStyle:alignRight'
'toolbar' => [
'imageTextAlternative', '|',
'imageStyle:alignLeft',
'imageStyle:full',
'imageStyle:alignRight'
],
'styles' => [
// This option is equal to a situation where no style is applied.
Expand All @@ -48,5 +50,6 @@
[ 'model'=> 'heading3', 'view'=> 'h3', 'title'=> 'Heading 3', 'class'=> 'ck-heading_heading3' ]
],
],
],
]

];
Loading

0 comments on commit 150b9c4

Please sign in to comment.