emilianotisato / nova-tinymce

Laravel Nova TinyMCE editor (with images upload capabilities!)
MIT License
116 stars 38 forks source link

Link button on the toolbar doesn't show #42

Closed abishekrsrikaanth closed 3 years ago

abishekrsrikaanth commented 3 years ago

@emilianotisato I have the following code as mentioned in the example

NovaTinyMCE::make('body')->options([
                'plugins' => [
                    'lists preview hr anchor pagebreak image wordcount fullscreen directionality paste textpattern'
                ],
                'toolbar' => 'undo redo | styleselect | bold italic forecolor backcolor | alignleft aligncenter alignright alignjustify | image | bullist numlist outdent indent | link'
            ]),
CleanShot 2020-09-15 at 18 57 08@2x CleanShot 2020-09-15 at 18 57 43@2x

but for some reason, the button to add a link doesn't show on the toolbar or the menu. The link on the toolbar is supposed to add the button if I am right. Any idea what may be the issue?

emilianotisato commented 3 years ago

Hello @abishekrsrikaanth , We are wrapping the tinymce javascript sdk directly, so any use case you can find it on the official website as instructed in the readme.

I think in your case the problem is you need to include the link also in the plugins array. Toolbar is a "presentation layer" but if the plugin is not present it has nothing to present...

Let me know if that works...