mstahv / tinymcewrapper

Vaadin wrapper for TinyMCE
1 stars 8 forks source link

The valueChangeListener is not being fired if there is a value change #7

Open FollowSteph opened 7 years ago

FollowSteph commented 7 years ago

The valueChangeListener is not being fired if there is a value change.

ado2000 commented 6 years ago

I have the same problem if i add config like this:

setup: function (editor) {
    editor.addButton('mybutton', {
      type: 'listbox',
      text: 'My listbox',
      icon: false,
      onselect: function (e) {
        editor.insertContent(this.value());
      },
      values: [
        { text: 'Menu item 1', value: '&nbsp;<strong>Some bold text!</strong>' }

      ]
    });

it seems that the setup overwrite the one used to initialise the events listeners into the class TinyMCEService.

setup: function(ed) {

Instead you can use this to initialise the event listeners:

init_instance_callback: function(ed)

Bye