[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simpeg
/
zapatec
/
zpeditor
/
zpeditor
/
demo
/
[
Home
]
File: save.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <meta name="description" content=""> <meta name="keywords" content="dhtml tools,javascript,DHTML Tools,Javascript,ajax,AJAX,Ajax,ajax tools,AJAX Tools,tools controls,simple javascript tools"> <title>Zapatec DHTML Editor Widget - Editor Save/Load Demo</title> <!-- Common JS files --> <script type='text/javascript' src='../../utils/zapatec.js'></script> <!-- Custom includes --> <!-- ALL demos need these css --> <link href="../../website/css/zpcal.css" rel="stylesheet" type="text/css"> <link href="../../website/css/template.css" rel="stylesheet" type="text/css"> <style type="text/css"> body { width: 778px; } </style> <link rel="SHORTCUT ICON" href="http://www.zapatec.com/website/main/favicon.ico"> <script type="text/javascript" src="../../zptooltip/src/zptooltip.js"></script> <script type="text/javascript" src="../../utils/colorpicker.js"></script> <script type="text/javascript" src="../../utils/maximizable.js"></script> <script type="text/javascript" src="../src/zpeditor.js"></script> </head> <body> <div class='zpCalSubHeader' style='text-align:center;'>Editor Save/Load Demo</div> <div class='zpCalDemoText'> <ul> </ul> </div> To replace any TEXTAREA element with the Zapatec visual editor.<br /><br /> Insert anywhere on your page: <pre> <script type="text/javascript"> new Zapatec.MinimalEditor({ field: "target", toolbarElements: [...] }); </script> </pre> The following configuration options are available: <ul> <li>field - reference to target textarea element. Could be the value of the ID attribute or a reference to a DOM element</li> <li>toolbarElements - array of button names that will be added to toolbar<br /> The following values are available: fontName, fontSize, bold, italic, underline, foreColor, backColor, insertLink, insertImage, insertTable, justifyLeft, justifyCenter, justifyRight, insertOrderedList, insertUnorderedList, copy, cut, paste, outdent, indent, undo, redo, maximize, insertHorizontalRule, selectall </li> <li>theme - theme name</li> <li>themePath - path to directory where theme files are located</li> </ul> Useful tips: <ul> <li>Save button posts the html content to a remote server that saves it.</li> <li>Load button gets previously saves html content from a remote server.</li> <li>The persistance key field specifies the bank under which html content is stored in server.</li> </ul> Demo:<br /> <textarea id="target" rows="10" cols="80"><b>Some</b> <i>predefined</i> content</textarea> <br> <br>Persistance key: <input id="persistKey" type="text" value="1"/> <script type="text/javascript"> /* * Check external components */ if (typeof Zapatec.Tooltip == 'undefined') { alert('This demo shows interaction between different Zapatec components. It works only if Zapatec Tooltip component was purchased.'); } // Check if demo loaded from server var strLocation = document.location.toString(); if (strLocation.indexOf('http') != 0) { alert('Since this example demonstrates interaction between server and javascript application, it must be loaded from server. This example does not work if opened from local hard drive.'); } new Zapatec.MinimalEditor({ field: "target", theme: "default", themePath: '../themes/', enableTooltips: true, toolbarElements: [ 'maximize', 'newPanel', 'fontName', 'fontSize', 'newPanel', 'bold', 'italic', 'underline', 'newPanel', 'foreColor', 'backColor', 'insertLink', 'insertImage', 'insertTable', 'insertHorizontalRule', 'newRow', 'justifyLeft', 'justifyCenter', 'justifyRight', 'newPanel', 'insertOrderedList', 'insertUnorderedList', 'newPanel', 'selectAll', 'copy', 'cut', 'paste', 'newPanel', 'outdent', 'indent', 'newPanel', 'undo', 'redo', 'newPanel', 'switcher', 'newPanel', 'about', 'newPanel', 'fetch', 'save' ], persistPath: "processKey.php" }); </script> <noscript> <br/> This page uses an <a href='http://www.zapatec.com/website/main/products/suite/'> AJAX Component</a> - Zapatec DHTML Editor Widget, but your browser does not support Javascript. <br/> <br/> </noscript> <br/><br/><br/> <div class="footer" style='width: 778px; text-align:center; margin-top:2em'> © 2004-2007 <strong> <a href='http://www.zapatec.com/'>Zapatec, Inc.</a> </strong> </div> </body> </html>