-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
52 lines (43 loc) · 1.09 KB
/
editor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<html>
<head>
<title>Editor</title>
<meta charset="utf-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="Bootstrap/css\bootstrap.min.css">
<script src="Bootstrap/js/jquary.min.js"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
function sub()
{
var data = CKEDITOR.instances.editor1.getData();
document.getElementById("view").innerHTML = data;
}
</script>
</head>
<style type="text/css">
</style>
<body>
<div class="container">
<div>
<textarea rows="10" cols="100" name="edito"> cool </textarea>
<script type="text/javascript">
CKEDITOR.replace('edito');
</script>
</div>
<div>
<button class="btn btn-default try" onclick="sub()" type="submit">Submit</button>
</div>
<div>
<p id="view">
</p>
<script type="text/javascript">
document.getElementById("view").innerHTML = "Hello World!";
</script>
<div>
</div>
</div>
</div>
</body>
</html>