1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
5 | <title>Test</title> |
---|
6 | |
---|
7 | <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> |
---|
8 | |
---|
9 | <script src="//www.weboom.com/ckeditor4/ckeditor/ckeditor.js"></script> |
---|
10 | |
---|
11 | |
---|
12 | <script type="text/javascript" language="JavaScript"> |
---|
13 | |
---|
14 | $( document ).ready(function() { |
---|
15 | |
---|
16 | function wedClick(e) { |
---|
17 | |
---|
18 | target_element = $(this); |
---|
19 | |
---|
20 | $(target_element).off('click', wedClick); |
---|
21 | |
---|
22 | // Instantiate editor by passing it native dom element |
---|
23 | editor = CKEDITOR.inline(target_element.get(0)); |
---|
24 | |
---|
25 | } |
---|
26 | |
---|
27 | |
---|
28 | CKEDITOR.disableAutoInline = true; |
---|
29 | |
---|
30 | $('[data-editorRID]').on('click', wedClick); |
---|
31 | |
---|
32 | }); |
---|
33 | |
---|
34 | </script> |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | </head> |
---|
39 | |
---|
40 | <body> |
---|
41 | |
---|
42 | <div class="content"> |
---|
43 | |
---|
44 | <div data-editorRID='test_welcome_copy' contenteditable='true'> |
---|
45 | <p>Here is the information you need. Here is the information you need. Here is the information you need. Here is the information you need. </p> |
---|
46 | <p>Here is the information you need. Here is the information you need. Here is the information you need. Here is the information you need. </p> |
---|
47 | <p>Here is the information you need. Here is the information you need. Here is the information you need. Here is the information you need. </p> |
---|
48 | <p>Here is the information you need. Here is the information you need. Here is the information you need. Here is the information you need. </p> |
---|
49 | </div> |
---|
50 | |
---|
51 | </div> |
---|
52 | |
---|
53 | </body> |
---|
54 | </html> |
---|