1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title>#10662: Foo</title> |
---|
5 | <script src="../ckeditor.js"></script> |
---|
6 | <style> |
---|
7 | .marker { |
---|
8 | background: yellow; |
---|
9 | } |
---|
10 | </style> |
---|
11 | </head> |
---|
12 | |
---|
13 | <body> |
---|
14 | EDITOR 1 - STANDARD TOOLBAR |
---|
15 | <br> |
---|
16 | <textarea name="standard" id="standard"> |
---|
17 | <span class="marker">This is text meant to be highlighted</span> |
---|
18 | </textarea> |
---|
19 | |
---|
20 | <br /> |
---|
21 | <br /> |
---|
22 | <br /> |
---|
23 | |
---|
24 | EDITOR 2 - SHARED INLINE TOOLBAR |
---|
25 | <br> |
---|
26 | <div contenteditable="true" id="shared1"> |
---|
27 | <span class="marker">This is text meant to be highlighted</span> |
---|
28 | </div> |
---|
29 | |
---|
30 | <br /> |
---|
31 | <br /> |
---|
32 | <br /> |
---|
33 | |
---|
34 | EDITOR 3 - SHARED FRAMED TOOLBAR |
---|
35 | <br /> |
---|
36 | <textarea name="shared2" id="shared2"> |
---|
37 | <span class="marker">This is text meant to be highlighted</span> |
---|
38 | </textarea> |
---|
39 | |
---|
40 | <br /> |
---|
41 | <br /> |
---|
42 | <br /> |
---|
43 | |
---|
44 | TOOLBARS |
---|
45 | <div id="top"></div> |
---|
46 | |
---|
47 | <script> |
---|
48 | // Turn off automatic editor creation first. |
---|
49 | CKEDITOR.disableAutoInline = true; |
---|
50 | |
---|
51 | CKEDITOR.replace( 'standard' ); |
---|
52 | |
---|
53 | CKEDITOR.inline( 'shared1', { |
---|
54 | extraPlugins: 'sharedspace', |
---|
55 | removePlugins: 'floatingspace,resize', |
---|
56 | sharedSpaces: { |
---|
57 | top: 'top' |
---|
58 | } |
---|
59 | } ); |
---|
60 | |
---|
61 | CKEDITOR.replace( 'shared2', { |
---|
62 | extraPlugins: 'sharedspace', |
---|
63 | sharedSpaces: { |
---|
64 | top: 'top' |
---|
65 | } |
---|
66 | } ); |
---|
67 | </script> |
---|
68 | </body> |
---|
69 | </html> |
---|
70 | |
---|