Update of /cvsroot/php-blog/serendipity/htmlarea/examples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12393/htmlarea/examples
Modified Files:
full-page.html fully-loaded.html index.html
Log Message:
* Upgraded htmlarea WYSIWYG editor to latest version. Entering links now properly works, as finally does Copy+Paste from Mozilla! (garvinhicking)
Index: full-page.html
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/examples/full-page.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- full-page.html 23 Mar 2004 15:41:05 -0000 1.1
+++ full-page.html 11 Jan 2005 15:00:35 -0000 1.2
@@ -18,11 +18,13 @@
editor.registerPlugin(FullPage);
editor.generate();
}
+
+ HTMLArea.onload = initDocument;
</script>
</head>
- <body onload="initDocument()">
+ <body onload="HTMLArea.init()">
<h1>Test of FullPage plugin</h1>
<textarea id="editor" style="height: 30em; width: 100%;">
@@ -69,7 +71,7 @@
<hr />
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Wed Oct 1 19:55:37 EEST 2003 -->
-<!-- hhmts start --> Last modified: Wed Jan 28 11:10:07 EET 2004 <!-- hhmts end -->
+<!-- hhmts start --> Last modified: Wed Aug 11 13:59:07 CEST 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>
Index: fully-loaded.html
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/examples/fully-loaded.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fully-loaded.html 23 Mar 2004 15:41:05 -0000 1.1
+++ fully-loaded.html 11 Jan 2005 15:00:37 -0000 1.2
@@ -28,13 +28,17 @@
// in our case "lang/en.js" loaded above).
// If this lang file is not found the plugin will fail to
- // load correctly and nothing will work.
+ // load correctly and NOTHING WILL WORK.
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("SpellChecker");
HTMLArea.loadPlugin("FullPage");
HTMLArea.loadPlugin("CSS");
HTMLArea.loadPlugin("ContextMenu");
+ //HTMLArea.loadPlugin("HtmlTidy");
+ HTMLArea.loadPlugin("ListType");
+ HTMLArea.loadPlugin("CharacterMap");
+HTMLArea.loadPlugin("DynamicCSS");
</script>
<style type="text/css">
@@ -52,6 +56,7 @@
<script type="text/javascript">
var editor = null;
+
function initEditor() {
// create an editor for the "ta" textbox
@@ -65,6 +70,15 @@
// register the SpellChecker plugin
editor.registerPlugin(SpellChecker);
+
+ // register the HtmlTidy plugin
+ //editor.registerPlugin(HtmlTidy);
+
+ // register the ListType plugin
+ editor.registerPlugin(ListType);
+
+ editor.registerPlugin(CharacterMap);
+editor.registerPlugin(DynamicCSS);
// register the CSS plugin
editor.registerPlugin(CSS, {
@@ -104,12 +118,12 @@
// load the stylesheet used by our CSS plugin configuration
editor.config.pageStyle = "@import url(custom.css);";
- setTimeout(function() {
- editor.generate();
- }, 500);
+ editor.generate();
return false;
}
+HTMLArea.onload = initEditor;
+
function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
@@ -125,7 +139,7 @@
<!-- use <body onload="HTMLArea.replaceAll()" if you don't care about
customizing the editor. It's the easiest way! :) -->
-<body onload="initEditor()">
+<body onload="HTMLArea.init();">
<h1>HTMLArea 3.0</h1>
Index: index.html
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/examples/index.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- index.html 23 Mar 2004 15:41:05 -0000 1.1
+++ index.html 11 Jan 2005 15:00:37 -0000 1.2
@@ -7,34 +7,23 @@
<h1>HTMLArea: auto-generated examples index</h1>
<ul>
+% while (<*.html>) {
+% next if /^index.html$/;
<li>
- <a href="2-areas.html">2-areas.html</a>
- </li>
- <li>
- <a href="context-menu.html">context-menu.html</a>
- </li>
- <li>
- <a href="core.html">core.html</a>
- </li>
- <li>
- <a href="css.html">css.html</a>
- </li>
- <li>
- <a href="full-page.html">full-page.html</a>
- </li>
- <li>
- <a href="fully-loaded.html">fully-loaded.html</a>
- </li>
- <li>
- <a href="spell-checker.html">spell-checker.html</a>
- </li>
- <li>
- <a href="table-operations.html">table-operations.html</a>
+ <a href="<% $_ %>"><% $_ %></a>
</li>
+% }
</ul>
<hr />
-<address>mi...@in...</address>
+<address>mih...@ya...</address>
<!-- hhmts start --> Last modified: Sun Feb 1 13:30:39 EET 2004 <!-- hhmts end -->
</body> </html>
+<%INIT>
+my $dir = $m->interp->comp_root;
+$dir =~ s{/+$}{}g;
+#$dir =~ s{/[^/]+$}{}g;
+$dir .= $m->current_comp->dir_path;
+chdir $dir;
+</%INIT>
|