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

Unable to fire and respond to editor events #210

Open
AlmogCohen opened this issue May 14, 2019 · 3 comments
Open

Unable to fire and respond to editor events #210

AlmogCohen opened this issue May 14, 2019 · 3 comments

Comments

@AlmogCohen
Copy link

Hi, I've seen a few of these issues already open before but couldn't quite figure out where the issue is or how to solve this. Your help would be much appreciated!

When I set the editor settings in the scope, they all work fine and look as expected (see for example the inlineStyles, buttons and inline toolbar which all work), but no matter what I do I couldn't make the events work... The editor looks fine as you can see here but the events never fire. Do you have any recommendation? Is there anything I'm doing wrong?

No alerts are popping, no console errors...
I'm using version 2.6.6 both for angular-froala and froala-wysiwyg-editor.

$ctrl.froalaOptions = {
      toolbarInline: true,
      placeholderText: 'Write your text here...',
      direction: 'auto',
      toolbarButtons: ['inlineStyle'],
      inlineStyles: {
        'Big Red': 'font-size: 20px; color: red;',
        'Small Blue': 'font-size: 14px; color: blue;'
      },
      events: {
        'froalaEditor.initialized': function () {
          alert('on initialized event!')
        },
        'froalaEditor.focus': function (e, editor) {
          alert('on focus event!')
        },
        'froalaEditor.keypress': function (e, editor, keypressEvent) {
          alert('on keypress event!')
        }
      }
    };
@AlmogCohen
Copy link
Author

Anyone monitoring this repo?

@stefanneculai
Copy link
Contributor

@AlmogCohen do you think you could make a plunker for it? Thanks in advance.

@navneetnagpal
Copy link
Contributor

@AlmogCohen remove the prefix "froalaEditor.". Let me know if this works.

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