It looks to be an issue on plugin.js, in order to disable the embed buttons on source view.
It is missing the modes on the "addButton".
modes: { wysiwyg : 1, source : 0 },
Fixed version:
editor.ui.addButton(button.id, {
label: button.label,
data: button,
allowedContent: 'drupal-entity[!data-entity-type,!data-entity-uuid,!data-entity-embed-display,!data-entity-embed-display-settings,!data-align,!data-caption,!data-embed-button]',
click: function(editor) {
editor.execCommand('editdrupalentity', this.data);
},
icon: button.image,
modes: { wysiwyg : 1, source : 0 },
How can I send a PR to fix this?
Thanks,
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2847116-7.patch | 478 bytes | marcoscano |
| #3 | Bottons don't gray out on source mode-2847116-1.patch | 482 bytes | juanl |
Comments
Comment #2
juanl commentedComment #3
juanl commentedComment #4
juanl commentedFix attached, please can someone apply it? Thanks! :)
Comment #5
marcoscanoComment #7
marcoscanoRe-roll of #3
Comment #8
juanl commentedComment #9
wim leersThanks! 👌
Comment #11
wim leers