upgrade tinymce to 1.40
This commit is contained in:
parent
7ceff84e8a
commit
7d9c0268ac
107 changed files with 3717 additions and 492 deletions
27
www/extras/tinymce/examples/dump.php
Normal file
27
www/extras/tinymce/examples/dump.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Displays the output of a TinyMCE</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h2>HTML output from post</h2>
|
||||
|
||||
<table border="1" width="100%">
|
||||
<tr bgcolor="#CCCCCC"><td width="1%" nowrap="nowrap"><strong>Form element</strong></td><td><strong>HTML output</strong></td></tr>
|
||||
<? foreach ($_POST as $name => $value) { ?>
|
||||
<tr><td width="1%" nowrap="nowrap"><?=$name?></td><td><?=stripslashes($value)?></td></tr>
|
||||
<? } ?>
|
||||
</table>
|
||||
|
||||
<h2>Source output from post</h2>
|
||||
|
||||
<table border="1" width="100%">
|
||||
<tr bgcolor="#CCCCCC"><td width="1%" nowrap="nowrap"><strong>Form element</td><td><strong>Source output</strong></td></tr>
|
||||
<? foreach ($_POST as $name => $value) { ?>
|
||||
<tr><td width="1%" nowrap="nowrap"><?=$name?></td><td><?=htmlentities(stripslashes($value))?></td></tr>
|
||||
<? } ?>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ This page shows a more complex usage of TinyMCE. On this page the mode is set to
|
|||
|
||||
<!-- Form with textare element with width: 100% -->
|
||||
<form method="post" action="post.php">
|
||||
<textarea id="elm1" name="elm2" style="width:100%" rows="15">
|
||||
<textarea name="elm1" style="width:100%" rows="15">
|
||||
<span class="header1">Test header 1</span><br />
|
||||
<span class="header2">Test header 2</span><br />
|
||||
<span class="header3">Test header 3</span><br />
|
||||
|
|
@ -100,8 +100,8 @@ This page shows a more complex usage of TinyMCE. On this page the mode is set to
|
|||
Some custom actions:
|
||||
<a href="javascript:tinyMCE.execCommand('Bold');">[Bold]</a> |
|
||||
<a href="javascript:tinyMCE.execCommand('Italic');">[Italic]</a>
|
||||
<a href="javascript:tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert some HTML]</a>
|
||||
<a href="javascript:tinyMCE.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
|
||||
<a href="javascript:void(0);" onclick="tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert some HTML]</a>
|
||||
<a href="javascript:void(0);" onclick="tinyMCE.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
|
||||
|
||||
<br>
|
||||
|
||||
|
|
|
|||
43
www/extras/tinymce/examples/example_full.css
Normal file
43
www/extras/tinymce/examples/example_full.css
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
body {
|
||||
background-color: #FFFFFF;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
scrollbar-3dlight-color: #F0F0EE;
|
||||
scrollbar-arrow-color: #676662;
|
||||
scrollbar-base-color: #F0F0EE;
|
||||
scrollbar-darkshadow-color: #DDDDDD;
|
||||
scrollbar-face-color: #E0E0DD;
|
||||
scrollbar-highlight-color: #F0F0EE;
|
||||
scrollbar-shadow-color: #F0F0EE;
|
||||
scrollbar-track-color: #F5F5F5;
|
||||
}
|
||||
|
||||
td {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Custom class needed by the flash plugin */
|
||||
.mce_plugin_flash {
|
||||
border: 1px dotted #cc0000;
|
||||
background-image: url(../jscripts/tiny_mce/plugins/flash/images/flash.gif);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-color: #ffffcc;
|
||||
}
|
||||
|
||||
.example1 {
|
||||
font-weight: bold;
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.example2 {
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
color: #FF0000
|
||||
}
|
||||
51
www/extras/tinymce/examples/example_full.htm
Normal file
51
www/extras/tinymce/examples/example_full.htm
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<html>
|
||||
<head>
|
||||
<link href="../docs/style.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- tinyMCE -->
|
||||
<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
plugins : "save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print",
|
||||
theme_advanced_buttons1_add_before : "save,separator",
|
||||
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
|
||||
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
|
||||
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
|
||||
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_path_location : "bottom",
|
||||
content_css : "example_full.css",
|
||||
plugin_insertdate_dateFormat : "%Y-%m-%d",
|
||||
plugin_insertdate_timeFormat : "%H:%M:%S",
|
||||
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
|
||||
});
|
||||
</script>
|
||||
<!-- /tinyMCE -->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a href="example_simple.htm">[Simple example]</a> <a href="example_advanced.htm">[Advanced example]</a> <a href="example_mail.htm">[Mail example]</a> [Full featured example]
|
||||
|
||||
<form method="post" action="http://tinymce.moxiecode.com/examples/dump.php">
|
||||
|
||||
<h3>Full featured example</h3>
|
||||
This page shows all available plugins that are included in the TinyMCE distribution. Some of these plugins will only be visible on MSIE due to the lack of some support in FF. For more details on the various options on TinyMCE check the <a href="../docs/index.htm">manual</a> or for more third party plugins check the plugin section.<br><br>
|
||||
|
||||
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 100%">
|
||||
Some <strong>element</strong>, this is to be editor 1.
|
||||
<p>Some paragraph. <a title="Some popup link title" href="#" target="http://tinymce.moxiecode.com" onclick="window.open('http://www.sourceforge.net/','popup','left='+(screen.availWidth/2-320)+',top='+(screen.availHeight/2-240)+',width=640,height=480,resizable=yes');return false;">Some popup link</a></p>
|
||||
<img width="250" height="48" border="0" onmouseover="this.src='logo_over.jpg';" onmouseout="this.src='logo.jpg';" src="logo.jpg" />
|
||||
</textarea>
|
||||
|
||||
<br />
|
||||
|
||||
<input type="submit" name="save" value="Submit" />
|
||||
<input type="reset" name="reset" value="Reset" />
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue