Ticket #7534: sample.html

File sample.html, 770 bytes (added by IBM_RQM, 10 years ago)
Line 
1<html>
2<head>
3<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
4<script type="text/javascript" src="ckeditor/skins/lotus21/skin.js"></script>
5<link href="ckeditor/skins/lotus21/editor.css" type="text/css" rel="stylesheet">
6</head>
7<body>
8<div id="divContainer">
9
10<textarea id="mytextA"></textarea>
11</div>
12<script type="text/javascript">
13
14                                CKEDITOR.replace( 'mytextA',
15                                        {
16                                                fullPage : true
17                                        });
18
19function showEditor(){
20document.getElementById("divContainer").style.display = "block";
21}
22
23function hideEditor(){
24document.getElementById("divContainer").style.display = "none";
25}
26</script>
27<button onclick="showEditor()"> show Editor</button>
28<button onclick="hideEditor()"> hide Editor</button>
29
30</body>
31</html>
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy