Skip to content

Commit

Permalink
Update package for new version of platform
Browse files Browse the repository at this point in the history
  • Loading branch information
serdashenko committed Jul 21, 2022
1 parent 879f5e4 commit d57b46e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/TinyMCE.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ public function __construct()
*/
public static function make(string $name = null):Field
{
Dashboard::registerResource('scripts', route('platform.resource', ['tinymce/tinymce', 'tinymce.min.js']));
Dashboard::registerResource('scripts', route('platform.resource', ['tinymce','tinymce.js']));

$editor = new static();
$editor->language($editor->get('language') ?? app()->getLocale());
$editor->name($name);
Expand Down
4 changes: 3 additions & 1 deletion src/TinyMCEServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public function boot(): void
{
$this->loadViewsFrom(__DIR__ . '/../views', 'tinymce');

\Orchid\Support\Facades\Dashboard::addPublicDirectory('tinymce', __DIR__ . '/../public');
$this->publishes([
__DIR__ . '/../public' => public_path('admin/resources/tinymce')
], ['laravel-assets']);

parent::boot();
}
Expand Down

0 comments on commit d57b46e

Please sign in to comment.