froala / KMSFroalaEditorBundle

Symfony bundle for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
105 stars 33 forks source link

Events don't trigger on popup windows. #56

Closed ghost closed 6 years ago

ghost commented 6 years ago

Symfony 4

Expected behavior.

Popup windows should close when close button is pressed. Image manager should select and load the image when it is selected.

Actual behavior.

The close button and the image manager are not working properly when a component is clicked [the component's event is not triggered]

screen shot 2018-04-25 at 1 29 59 pm

Steps to reproduce the problem.

Install KMSFroalaEditorBundle.

https://github.com/froala/KMSFroalaEditorBundle Steps: 1,2,3,4,5

Configure services.yml

Form type.

kms_froala_editor.form.type:
    class: "KMS\\FroalaEditorBundle\\Form\\Type\\FroalaEditorType"
    arguments: [ "@kernel", "@service_container", "@kms_froala_editor.option_manager", 
    "@kms_froala_editor.plugin_provider" ]
    tags:
        - { name: "form.type", alias: "froala" }

Option provider.

kms_froala_editor.option_manager:
    class: "KMS\\FroalaEditorBundle\\Service\\OptionManager"
    arguments: [ "@router" ]

Plugin provider.

kms_froala_editor.plugin_provider:
    class: "KMS\\FroalaEditorBundle\\Service\\PluginProvider"

Media manager.

kms_froala_editor.media_manager:
    public: true
    class: "KMS\\FroalaEditorBundle\\Service\\MediaManager"

Twig extension.

kms_froala_editor.froala_extension:
    class: "KMS\\FroalaEditorBundle\\Twig\\FroalaExtension"
    arguments: [ "@service_container" ]
    tags:
        - { name: twig.extension }

On a class form write

->add('content', FroalaEditorType::class, array(
       'language' => 'es',
       'label' => false,
       'required' => true,
))

then when the editor is loaded events should not be triggered when a component is clicked on popup windows.

OS.

MacOs Sierra 10.13.4

Browser.

Chrome 66.0.3359.117 (Official Build) (64-bit)

ghost commented 6 years ago

It is fixed, it was because i was using a new version of font awesome .