This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
60 lines (51 loc) · 2.22 KB
/
index.php
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
53
54
55
56
57
58
59
60
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<title>MCE</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="jq.js"></script>
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
function myCustomOnChangeHandler(inst) {
$('#testArea').html(inst.getBody().innerHTML);
}
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
language:'en',
plugins : "imgmanager",
//DEBUG
cleanup_on_startup : true,
cleanup: true,
debug : true,
convert_urls : false,
// Theme options
theme_advanced_buttons1 : "bold,imgmanager",
theme_advanced_buttons2 :"",
theme_advanced_buttons3 :"",
theme_advanced_buttons4 :"",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
onchange_callback : "myCustomOnChangeHandler",
valid_elements: "iframe[src|title|width|height|allowfullscreen|frameborder|class|id],object[classid|width|height|codebase|*],param[name|value|_value|*],embed[type|width|height|src|*]"
});
</script>
<!-- /TinyMCE -->
</head>
<body>
<div class="body-container">
<div class="text-container">
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%"></textarea>
</div>
<div class="text-container" style="border: 1px solid #DDD;">
<div id="testArea"></div>
</div>
<div class="footer">
© <?= date("Y") ?> Darius Matulionis
</div>
</body>
</html>