# Fields management ## Remove field The built-in `map` and `editor` fields requires the front-end files via cdn, and if there are problems with the network, they can be removed in the following ways Locate the file `app/Admin/bootstrap.php`. If the file does not exist, update `laravel-admin` and create this file. ```php script = <<id}"), { lineNumbers: true, mode: "text/x-php", extraKeys: { "Tab": function(cm){ cm.replaceSelection(" " , "end"); } } }); EOT; return parent::render(); } } ``` >Static resources in the class can also be imported from outside, see [Editor.php](https://github.com/z-song/laravel-admin/blob/1.3/src/Form/Field/Editor.php) Create a view file `resources/views/admin/php-editor.blade.php`: ```php
@include('admin::form.error')
``` Finally, find the file `app/Admin/bootstrap.php`, if the file does not exist, update `laravel-admin`, and then create this file, add the following code: ``` php('code'); ``` In this way, you can add any form fields you want to add. ## Integrate CKEditor Here is another example to show you how to integrate ckeditor. At first download [CKEditor](http://ckeditor.com/download), unzip to public directory, for example `public/packages/ckeditor/`. Then Write Extension class `app/Admin/Extensions/Form/CKEditor.php`: ```php script = "$('textarea.{$this->getElementClass()}').ckeditor();"; return parent::render(); } } ``` Add blade file `resources/views/admin/ckeditor.blade.php` for view `admin.ckeditor` : ```php
@include('admin::form.error') @include('admin::form.help-block')
``` Register this extension in `app/Admin/bootstrap.php`: ```php use Encore\Admin\Form; use App\Admin\Extensions\Form\CKEditor; Form::extend('ckeditor', CKEditor::class); ``` After this you can use ckeditor in your form: ```php $form->ckeditor('content'); ```