Skip to content

Commit

Permalink
New header image
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobFitzp committed Jun 10, 2024
1 parent 3bfc0f6 commit 22ac7ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 45 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://banners.beyondco.de/Nova%20TinyMCE%20Field.png?theme=light&packageManager=composer+require&packageName=jacobfitzp%2Fnova-tinymce&pattern=architect&style=style_1&description=TinyMCE+field+for+Laravel+Nova&md=1&showWatermark=0&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg">
<img src="./images/header.png">

![Packagist Version](https://img.shields.io/packagist/v/jacobfitzp/nova-tinymce)
![Packagist Downloads](https://img.shields.io/packagist/dm/jacobfitzp/nova-tinymce)
Expand Down
Binary file added images/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 1 addition & 44 deletions src/Tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,54 +30,11 @@ public function __construct($name, $attribute = null, callable $resolveCallback
parent::__construct($name, $attribute, $resolveCallback);

$this->withMeta([
// Make configuration options available to the component.
'options' => config('nova-tinymce'),
// Need to make the CSRF token available to the component.
// This will allow us to use CSRF protection for the storage endpoint.
'token' => csrf_token(),
]);
}

/**
* Set API key to use.
*
* @param string $key
* @return self
*/
public function apiKey(string $key): self
{
return $this->withMeta(['api_key' => $key]);
}

/**
* Set plugins to use.
*
* @param array<string> $plugins
* @return self
*/
public function plugins(array $plugins): self
{
return $this->withMeta(['plugins' => $plugins]);
}

/**
* Set toolbar configuration to use.
*
* @param string|null $toolbar
* @return self
*/
public function toolbar(?string $toolbar): self
{
return $this->withMeta(['toolbar' => $toolbar]);
}

/**
* Set editor init options to use.
*
* @param array<string, mixed> $params
* @return self
*/
public function init(array $params): self
{
return $this->withMeta(['init' => $params]);
}
}

0 comments on commit 22ac7ac

Please sign in to comment.