Skip to content

Using Mention Causes TinyMCE to not fire Change events #12

Description

@homerlex

If I have "mention" in the list of plugins (as shown in the code below) I stop getting onChange and onKeyUp events from TinyMCE.

Using cdn.tinymce.com/4/tinymce.min.js

Any idea why this would be? Are there any full working code examples somewhere using this plugin?

             <Mention
                    dataSource={[
                        'hello',
                        'helloooo',
                        'hello0',
                        'howdy']}
                    delimiter={'@'}
                />
                
                <TinyMCE
                    content={this.props.document.editorState}
                    config={{
                        plugins: 'autolink link image lists print preview mention',
                        toolbar: 'undo redo | bold italic | alignleft aligncenter alignright'
                    }}
                    onChange={this.handleEditorChange}
                    onKeyup={this.handleEditorChange} // ... because onChange isn't enough :-/
                />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions