Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NovaTinyMCE field not show #82

Open
fh32000 opened this issue Sep 5, 2022 · 4 comments
Open

NovaTinyMCE field not show #82

fh32000 opened this issue Sep 5, 2022 · 4 comments

Comments

@fh32000
Copy link

fh32000 commented Sep 5, 2022

laravel 9,
novav 3.32.0,
php 8.1
+++++++++

  • in Resource
    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function fields(Request $request)
    {
        return [
            ID::make(__('ID'), 'id')->sortable(),
            Number::make(__('priority'), 'priority')->sortable(),
            Boolean::make(__('active'), 'active'),
            NovaTinyMCE::make(__('description'),'description'),

        ];
    }

  • in composer
        "emilianotisato/nova-tinymce": "^1.2",
  • in nova config
 'tinymce_api_key' => env('TINYMCE_API_KEY'),
  • in .env
TINYMCE_API_KEY=myfreekey
  • in nova Create Model

ksnip

@fh32000
Copy link
Author

fh32000 commented Sep 5, 2022

@fh32000
Copy link
Author

fh32000 commented Sep 5, 2022

@paosch12
Copy link

I hope this will be helpful for you. In my case I have laravel V8 and nova v3, and bc of nova version, I need to install tinyMCE version 1, but if you just followed the steps posted, I notice you that is for version 2. So i solved this issue using tinyMC version 1.2.
Here the steps to fix the issue that you bold in red:

  1. Run at your command line:
    composer remove emilianotisato/nova-tinymce

  2. edit file composer.json and add "emilianotisato/nova-tinymce": "^1.2", (under "require section")

  3. Run at your command line:
    composer require emilianotisato/nova-tinymce ^1.2

  4. Run at your command line:
    php artisan vendor:publish --provider="Emilianotisato\NovaTinyMCE\FieldServiceProvider"

  5. Finally Run at your command line:
    composer update

Go to your nova page and .... "voila!!" :-)

@duckzland
Copy link
Contributor

The error as in the screenshot complain about missing Vue global javascript variables, which it should be loaded via Nova automatically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants