Ticket #16825: bug_focusManager.html

File bug_focusManager.html, 555 bytes (added by Denis, 3 years ago)

Illustrate focusManager trying to blur a destroyed editor

Line 
1<!DOCTYPE html>
2<html>
3<head>
4  <meta charset="utf-8">
5  <title>Blur in focusManager bug</title>
6  <script src="ckeditor/ckeditor.js"></script>
7</head>
8<body>
9  <textarea id="editor1"></textarea>
10  <a href="#" id="delete">delete</a>
11  <script>
12    CKEDITOR.replace('editor1', {
13      startupFocus : true
14    });
15
16    const a = document.getElementById('delete')
17    a.addEventListener('click', () => {
18      const editor = CKEDITOR.instances.editor1;
19   
20      //editor.focusManager.blur(true);
21
22      editor.destroy();
23    });
24  </script>
25</body>
26</html>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy