Browse Source
Merge pull request #1067 from tinymce/fix-bootstrap-integration
Fixed the bootstrap intergration docs using an incorrect selector
pull/1069/head
Lee Newson
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
integrations/bootstrap.md
|
@ -15,7 +15,7 @@ Bootstrap blocks all focus events on contents within the dialog. Add this script |
|
|
```js |
|
|
```js |
|
|
// Prevent Bootstrap dialog from blocking focusin |
|
|
// Prevent Bootstrap dialog from blocking focusin |
|
|
$(document).on('focusin', function(e) { |
|
|
$(document).on('focusin', function(e) { |
|
|
if ($(e.target).closest(".mce-window").length) { |
|
|
|
|
|
|
|
|
if ($(e.target).closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root").length) { |
|
|
e.stopImmediatePropagation(); |
|
|
e.stopImmediatePropagation(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|