From c5d3bba9f5d12d66baf2fa7d1bccc4270bb9c0f4 Mon Sep 17 00:00:00 2001 From: Chris Pelzer Date: Mon, 14 Jan 2019 13:47:48 -0500 Subject: [PATCH 1/2] Update to use the full instead of standard due to the default toolbar buttons including Subscript and Superscript which are only within full --- config/ckeditor-field.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ckeditor-field.php b/config/ckeditor-field.php index 2810488..cd8fb4f 100644 --- a/config/ckeditor-field.php +++ b/config/ckeditor-field.php @@ -6,14 +6,14 @@ |-------------------------------------------------------------------------------- | | This is the URL used to load the CKEditor instance. - | ex: https://cdn.ckeditor.com/4.10.1/standard-all/ckeditor.js + | ex: https://cdn.ckeditor.com/4.11.2/full-all/ckeditor.js | | Note: The URL must begin with "http://" or "https://" | | CKEditor 4 is only supported. This will not work with CKEditor 5 | */ - 'ckeditor_url' => 'https://cdn.ckeditor.com/4.10.1/standard-all/ckeditor.js', + 'ckeditor_url' => 'https://cdn.ckeditor.com/4.11.2/full-all/ckeditor.js', /* |-------------------------------------------------------------------------------- From a9497ef5c33bc1981ceb26dad262298b1dc92e2c Mon Sep 17 00:00:00 2001 From: Chris Pelzer Date: Mon, 14 Jan 2019 14:13:13 -0500 Subject: [PATCH 2/2] add more details about different ways to set up a CKEditor instance --- README.md | 6 ++++++ config/ckeditor-field.php | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 9d41902..0fb4a16 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ php artisan vendor:publish --tag=config --provider=Waynestate\\Nova\\CKEditorFie ## Customization +### Configuration options You can change the [configuration options](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html) of the CKEditor instance by either editing the published config file at `nova.ckeditor-field.options` ```php @@ -99,6 +100,11 @@ public function fields(Request $request) } ``` +### Custom CKEditor Instance +If you wish to not use the CKEditor from the CKEditor CDN, you can change the `ckeditor_url` under `config/nova/ckeditor-field.php` to point to the URL of the CKEditor you wish to use. + +If you wish to go the route of a Custom CKEditor Instance using Composer then follow the steps at [Using Composer for Custom CKEditor Instance](https://github.com/waynestate/nova-ckeditor4-field/wiki/Using-Composer-for-Custom-CKEditor-Instance) + ## Contributing Please see [CONTRIBUTING](CONTRIBUTING.md) for details. diff --git a/config/ckeditor-field.php b/config/ckeditor-field.php index cd8fb4f..04a25fa 100644 --- a/config/ckeditor-field.php +++ b/config/ckeditor-field.php @@ -10,6 +10,18 @@ | | Note: The URL must begin with "http://" or "https://" | + | If you wish to use a different CKEditor 4 preset you can use a + | CKEditor 4 preset from https://cdn.ckeditor.com/ + | + | or + | + | you could use use composer to install your CKEditor from + | https://github.com/ckeditor/ckeditor-releases/ and symbolic link the + | "vendor/ckeditor/ckeditor" to "public/js/ckeditor". + | then replace the "ckeditor_url" to be + | + | 'ckeditor_url' => config('app.url').'/js/ckeditor/ckeditor.js', + | | CKEditor 4 is only supported. This will not work with CKEditor 5 | */