Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToggleToolbarDrawer persist visible even when I close or switch tab and closing of bootstrap modal. #9486

Open
jzabate opened this issue Mar 18, 2024 · 1 comment

Comments

@jzabate
Copy link

jzabate commented Mar 18, 2024

📝 Provide detailed reproduction steps

I use bootstrap 4.3 for opening of modal where tinymce is loaded.

  1. Tinymce is loaded in a limited space in a modal.
  2. Click on the toggle toolbar drawer to reveal remaining toolbar button item
  3. While toggle toolbar drawer is open.
  4. I close the modal and toggle toolbar drawer is still visible
  5. Same goes when tinymce is in a tab content, switching to another tab while toggle toolbar drawer still visible will persist to be visible after switching tab contents.

✔️ Expected result

Toggle toolbar drawer should not be visible.

❌ Actual result

Toggle toolbar drawer is visible and floating in the page.

❓ Possible solution

I tried the code below but no success.

if ( tinymce.activeEditor.queryCommandState('ToggleToolbarDrawer') ) {
  tinymce.activeEditor.execCommand('ToggleToolbarDrawer');
}

I already have this code below for bootstrap modal focusin

$(document).on("focusin", function(e) {
	if ($(e.target).closest(".tox-dialog").length) {
		e.stopImmediatePropagation();
	}
});

📃 Other details

Chrome: 122.0.6261.128
Windows 10
Tinymce: 6.7.0
jQuery: 3.4.1
Bootstrap: 4.3

toggle toolbar drawer 1
toggle toolbar drawer 2

@jzabate
Copy link
Author

jzabate commented Mar 19, 2024

I just found the same issue #6437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant