Kraftbit / nova-tinymce5-editor

Nova TinyMCE 5 Editor is Laravel Nova field that integrates TinyMCE5 WYSIWYG editor.
https://kraftbit.com
5 stars 8 forks source link

How to editor set height? #13

Closed serkanboztepe closed 2 years ago

serkanboztepe commented 2 years ago

hi, how to editor set height? It is auto generated based on text height.

Apatrid commented 2 years ago

In your config file (nova-tinymce5-editor.php) add height and desired value to 'init' array, something like this:

'init' => [
            ...,
            'height' => 300,
        ],
serkanboztepe commented 2 years ago

In your config file (nova-tinymce5-editor.php) add height and desired value to 'init' array, something like this:

'init' => [
            ...,
            'height' => 300,
        ],

browser editor-init

I cleared browser and Laravel cache and config settings. Sorry it doesn't work for me. The height increases when I add text. I want to display with scroll.

Apatrid commented 2 years ago

Remove 'autoresize' from loaded plugins.

And you should really read TinyMCE documentation to learn how to adjust editor the way you want.

serkanboztepe commented 2 years ago

Remove 'autoresize' from loaded plugins.

And you should really read TinyMCE documentation to learn how to adjust editor the way you want.

It's done now. You are right OK. I didn't see it because I was focusing on height. Thank you so much. You have made a very nice plugin.