Skip to content

Commit

Permalink
Merge pull request #34 from parttio/fix-mode-change-on-detach
Browse files Browse the repository at this point in the history
Fix update of change mode on detach
  • Loading branch information
mukherjeesudebi authored Jun 18, 2024
2 parents c67b0a3 + 5113790 commit 7201837
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ window.Vaadin.Flow.tinymceConnector = {
// Check whether the connector was already initialized for the editor
var readonlyTimeout;
var currentValue = ta.innerHTML;
var changeMode = 'change';
var changeMode;

var readonlyTimeout;
if (c.$connector) {
// If connector was already set, this is re-attach, remove editor
// and re-init
c.$connector.editor.remove();
} else {
changeMode = 'change';
// Init connector at first visit
c.$connector = {

Expand Down

0 comments on commit 7201837

Please sign in to comment.