alfonsobries / nova-froala-editor

Froala editor input for laravel nova
MIT License
17 stars 1 forks source link

Cann't enable embedly button #1

Closed slavarazum closed 1 month ago

slavarazum commented 6 years ago

Trying to enable ability to paste embed content Embedly button

Field options:

$TextEditor->options([
            'toolbarButtons' => [
                'bold',
                'italic',
                'underline',
                'strikeThrough',
                '|',
                'formatOL',
                'formatUL',
                '|',
                'insertFile',
                'insertImage',
                'insertLink',
                'insertVideo',
                '|',
                'emoticons',
                'embedly', // Here
                'inlineStyle',
                'paragraphFormat',
                'paragraphStyle',
                'quote',
                'specialCharacters',
                '|',
                'html',
                'fullscreen'
            ]
        ]);

Button doesn't appear, no console or network errors.

slavarazum commented 6 years ago

@alfonsobries Your thoughts, how we can fix it? I have tried to include

<script src="https://cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>

according with Froala Documentation, by

\Laravel\Nova\Nova::remoteScript('https://cdn.embedly.com/widgets/platform.js');

it was appear in scripts, but button still hasn't appears Screenshot

alfonsobries commented 6 years ago

@ModernArtisan I tried to add the scripts also with no luck I think that the issue is related with the vue-froala-wysiwyg package that this depends on, I will try to fix that package and make a PR or maybe I think that I probably need to make my custom Vue component.

slavarazum commented 6 years ago

Have created issue on froala repository - https://github.com/froala/wysiwyg-editor/issues/3040 Looks like problem not related to vue-froala-wysiwyg, have the same behavior with jQuery plugin.