Skip to content

Commit

Permalink
Added README & Improved TinyMCE Documentation (#1)
Browse files Browse the repository at this point in the history
* Added README & Improved TinyMCE Documentation

* Improved Default TinyMCE Configuration (MSWord formatting)

* Added Publish Command to Installation Steps in README
  • Loading branch information
schwindy authored Apr 14, 2021
1 parent 8fe485e commit 2512744
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# nova-tinymce-field
This package is a Nova WYSIWIG Field that uses TinyMCE, which has an extensive set of configuration/plugins.

### Installation
- `composer require bythepixel/nova-tinymce-field`
- `php artisan vendor:publish --provider="Bythepixel\\NovaTinymceField\\FieldServiceProvider"`

### Configuration
See: https://www.tiny.cloud/docs/configure/
14 changes: 11 additions & 3 deletions config/nova-tinymce-field.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
<?php

/**
* Nova TinyMCE Configuration
*
* For more details, see: https://www.tiny.cloud/docs/configure/
*/
return [
'options' => [
'init' => [
'menubar' => false,
'allow_html_in_named_anchor' => false,
'branding' => false,
'extended_valid_elements' => 'a[href]',
'image_caption' => true,
'paste_as_text' => true,
'paste_word_valid_elements' => 'b,strong,i,em,h1,h2',
'menubar' => false,
'paste_as_text' => false,
'paste_retain_style_properties' => false,
'valid_elements' => '*',
],
'plugins' => [
'advlist autolink lists link image imagetools media',
Expand Down

0 comments on commit 2512744

Please sign in to comment.