Wysiwyg-editor: froalaEditor.initialized is not fired

Created on 13 Oct 2015  路  4Comments  路  Source: froala/wysiwyg-editor

jQuery('textarea.news-editable').froalaEditor(
{
    // ...
}).on('froalaEditor.initialized', function (objEvent, objEditor)
{
    alert(1);
});

The event initialized is not fired :(

Edit: V2 RC3

Most helpful comment

The initialized event should be bind before initializing the editor.

$(selector).on('froalaEditor.initialized', function (e, editor) {
}).froalaEditor();

All 4 comments

@benjaminfunk what was the problem?

The initialized event should be bind before initializing the editor.

$(selector).on('froalaEditor.initialized', function (e, editor) {
}).froalaEditor();

Just had this problem - might be nice to make this clear in the docs. Sorry for the bump @stefanneculai

I'd be interested in making a PR with a small few updates, been using Froala heavily at my org and hit some gotchas. Do you accept docs PRs?

@lmiller1990 we'll definitely make that clear in the docs. We don't accept PR to docs, however, if you could send any suggestions you have on https://www.froala.com/wysiwyg-editor/contact we can definitely add them. Thanks in advance.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

horatiua picture horatiua  路  4Comments

DerekJDev picture DerekJDev  路  3Comments

george-norris-salesforce picture george-norris-salesforce  路  4Comments

Fandangi picture Fandangi  路  3Comments

cksachdev picture cksachdev  路  4Comments