Annotation of kupu/common/kupumacros.html, revision 1.1

1.1     ! dwinter     1: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:tal="http://xml.zope.org/namespaces/tal">
        !             2: 
        !             3:       
        !             4:     <head>
        !             5:       <metal:macro xmlns:metal="http://xml.zope.org/namespaces/metal" define-macro="head" tal:define="kupu_url here/kupuEditor/absolute_url;">
        !             6:                           
        !             7:       
        !             8:       
        !             9:     <link rel="stylesheet" type="text/css" href="kupustyles.css" tal:attributes="href string:${kupu_url}/kupustyles.css"/>
        !            10:   
        !            11:       
        !            12:     <script type="text/javascript" src="sarissa.js" tal:attributes="src string:${kupu_url}/sarissa.js"> </script>
        !            13:     <script type="text/javascript" src="kupuhelpers.js" tal:attributes="src string:${kupu_url}/kupuhelpers.js"> </script>
        !            14:     <script type="text/javascript" src="kupueditor.js" tal:attributes="src string:${kupu_url}/kupueditor.js"> </script>
        !            15:     <script type="text/javascript" src="kupubasetools.js" tal:attributes="src string:${kupu_url}/kupubasetools.js"> </script>
        !            16:     <script type="text/javascript" src="kupuloggers.js" tal:attributes="src string:${kupu_url}/kupuloggers.js"> </script>
        !            17:     <script type="text/javascript" src="kupunoi18n.js" tal:attributes="src string:${kupu_url}/kupunoi18n.js"> </script>
        !            18:     <script type="text/javascript" src="kupucontentfilters.js" tal:attributes="src string:${kupu_url}/kupucontentfilters.js"> </script>
        !            19:   
        !            20:       <metal:slot define-slot="saveonpart">
        !            21:         
        !            22:     <script type="text/javascript" src="kupusaveonpart.js" tal:attributes="src string:${kupu_url}/kupusaveonpart.js"> </script>
        !            23:   
        !            24:       </metal:slot>
        !            25:       <metal:slot define-slot="sourceedit">
        !            26:         
        !            27:     <script type="text/javascript" src="kupusourceedit.js" tal:attributes="src string:${kupu_url}/kupusourceedit.js"> </script>
        !            28:   
        !            29:       </metal:slot>
        !            30:       <metal:slot define-slot="contextmenu">
        !            31:         
        !            32:     <script type="text/javascript" src="kupucontextmenu.js" tal:attributes="src string:${kupu_url}/kupucontextmenu.js"> </script>
        !            33:   
        !            34:       </metal:slot>
        !            35:       <metal:slot define-slot="drawers">
        !            36:         
        !            37:     <link rel="stylesheet" type="text/css" href="kupudrawerstyles.css" tal:attributes="href string:${kupu_url}/kupudrawerstyles.css"/>
        !            38:   
        !            39:         
        !            40:     <script type="text/javascript" src="kupudrawers.js" tal:attributes="src string:${kupu_url}/kupudrawers.js"> </script>
        !            41:   
        !            42:       </metal:slot>
        !            43:       <metal:slot define-slot="bootstrap-editor">
        !            44:         
        !            45:     <script type="text/javascript" src="kupuinit.js" tal:attributes="src string:${kupu_url}/kupuinit.js"> </script>
        !            46:     <script type="text/javascript" src="kupustart.js" tal:attributes="src string:${kupu_url}/kupustart.js"> </script>
        !            47:   
        !            48:       </metal:slot>
        !            49:     </metal:macro>
        !            50:     </head>
        !            51:   
        !            52:     <body onload="kupu = startKupu()">
        !            53:       <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Kupu Editor Test Page</h1>
        !            54:       <metal:macro xmlns:metal="http://xml.zope.org/namespaces/metal" define-macro="xmlconfig">
        !            55:       
        !            56:     <div style="display: none;">
        !            57:       <xml id="kupuconfig" class="kupuconfig">
        !            58:         <kupuconfig>
        !            59:           <metal:slot define-slot="config_default">
        !            60:       
        !            61:     <dst><metal:block define-slot="dst"/></dst>
        !            62:     <use_css>1</use_css>
        !            63:     <reload_after_save>0</reload_after_save>
        !            64:     <strict_output>1</strict_output>
        !            65:     <content_type>application/xhtml+xml</content_type>
        !            66:     <compatible_singletons>1</compatible_singletons>
        !            67:   
        !            68:     </metal:slot><metal:slot define-slot="config_drawers">
        !            69:       
        !            70:     <image_xsl_uri>http://localhost:8080/kupudrawers/drawer.xsl</image_xsl_uri>
        !            71:     <link_xsl_uri>http://localhost:8080/kupudrawers/drawer.xsl</link_xsl_uri>
        !            72:     <image_libraries_uri>kupudrawers/imagelibrary.xml</image_libraries_uri>
        !            73:     <link_libraries_uri>kupudrawers/linklibrary.xml</link_libraries_uri>
        !            74:     <search_images_uri> </search_images_uri>
        !            75:     <search_links_uri> </search_links_uri>
        !            76:   
        !            77:     </metal:slot><metal:slot define-slot="config_extra"/>
        !            78:         </kupuconfig>
        !            79:       </xml>
        !            80:     </div>
        !            81:   
        !            82:     </metal:macro><metal:macro xmlns:metal="http://xml.zope.org/namespaces/metal" define-macro="fulleditor">
        !            83:       
        !            84:     <div class="kupu-fulleditor">
        !            85:       <metal:slot define-slot="toolbar">
        !            86:       
        !            87:     <div class="kupu-tb" id="toolbar">
        !            88:       
        !            89:     <span id="kupu-tb-buttons" class="kupu-tb-buttons">
        !            90:       <metal:slot define-slot="buttongroup_logo">
        !            91:       
        !            92:     <span class="kupu-tb-buttongroup kupu-logo" style="float: right" id="kupu-logo">
        !            93:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-logo" title="Kupu 1.3 rc2" i18n:attributes="title" accesskey="k" onclick="window.open('http://kupu.oscom.org');">&#160;</button>
        !            94:     </span>
        !            95:   
        !            96:     </metal:slot><metal:slot define-slot="tb_select_styles">
        !            97:       
        !            98:     <select id="kupu-tb-styles">
        !            99:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="P" i18n:translate="">
        !           100:         Normal
        !           101:       </option>
        !           102:       <option value="H1">
        !           103:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading 1</span>
        !           104:       </option>
        !           105:       <option value="H2">
        !           106:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading 2</span>
        !           107:       </option>
        !           108:       <option value="H3">
        !           109:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading 3</span>
        !           110:       </option>
        !           111:       <option value="H4">
        !           112:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading 4</span>
        !           113:       </option>
        !           114:       <option value="H5">
        !           115:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading 5</span>
        !           116:       </option>
        !           117:       <option value="H6">
        !           118:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading 6</span>
        !           119:       </option>
        !           120:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="PRE" i18n:translate="">
        !           121:         Formatted
        !           122:       </option>
        !           123:     </select>
        !           124:   
        !           125:     </metal:slot><metal:slot define-slot="buttongroup_save">
        !           126:       
        !           127:   
        !           128:     </metal:slot><metal:slot define-slot="buttongroup_basicmarkup">
        !           129:       
        !           130:     <span class="kupu-tb-buttongroup" id="kupu-bg-basicmarkup">
        !           131:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-bold" id="kupu-bold-button" title="bold: alt-b" i18n:attributes="title" accesskey="b">&#160;</button>
        !           132:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-italic" id="kupu-italic-button" title="italic: alt-i" i18n:attributes="title" accesskey="i">&#160;</button>
        !           133:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-underline" id="kupu-underline-button" title="underline: alt-u" i18n:attributes="title" accesskey="u">&#160;</button>
        !           134:     </span>
        !           135:   
        !           136:     </metal:slot><metal:slot define-slot="buttongroup_subsuper">
        !           137:       
        !           138:     <span class="kupu-tb-buttongroup" id="kupu-bg-subsuper">
        !           139:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-subscript" id="kupu-subscript-button" title="subscript: alt--" i18n:attributes="title" accesskey="-">&#160;</button>
        !           140:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-superscript" id="kupu-superscript-button" title="superscript: alt-+" i18n:attributes="title" accesskey="+">&#160;</button>
        !           141:     </span>
        !           142:   
        !           143:     </metal:slot><metal:slot define-slot="buttongroup_color">
        !           144: <!--      
        !           145: <span class="kupu-tb-buttongroup">
        !           146:       
        !           147:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-forecolor" id="kupu-forecolor-button" title="text color: alt-f" i18n:attributes="title" accesskey="f">&#160;</button>
        !           148:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-hilitecolor" id="kupu-hilitecolor-button" title="background color: alt-h" i18n:attributes="title" accesskey="h">&#160;</button>
        !           149:     </span>
        !           150: -->
        !           151:     </metal:slot><metal:slot define-slot="buttongroup_justify">
        !           152:       
        !           153:     <span class="kupu-tb-buttongroup" id="kupu-bg-justify">
        !           154:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-justifyleft" id="kupu-justifyleft-button" title="left justify: alt-l" i18n:attributes="title" accesskey="l">&#160;</button>
        !           155:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-justifycenter" id="kupu-justifycenter-button" title="center justify: alt-c" i18n:attributes="title" accesskey="c">&#160;</button>
        !           156:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-justifyright" id="kupu-justifyright-button" title="right justify: alt-r" i18n:attributes="title" accesskey="r">&#160;</button>
        !           157:     </span>
        !           158:   
        !           159:     </metal:slot><metal:slot define-slot="buttongroup_list">
        !           160:       
        !           161:               <span class="kupu-tb-buttongroup" id="kupu-bg-list">
        !           162:       
        !           163:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-insertorderedlist" title="numbered list: alt-#" id="kupu-list-ol-addbutton" i18n:attributes="title" accesskey="#">&#160;</button>
        !           164:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-insertunorderedlist" title="unordered list: alt-*" id="kupu-list-ul-addbutton" i18n:attributes="title" accesskey="*">&#160;</button>
        !           165:               </span>
        !           166:   
        !           167:     </metal:slot><metal:slot define-slot="buttongroup_definitionlist">
        !           168:       
        !           169:     <span class="kupu-tb-buttongroup" id="kupu-bg-definitionlist">
        !           170:       
        !           171:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-insertdefinitionlist" title="definition list: alt-=" id="kupu-list-dl-addbutton" i18n:attributes="title" accesskey="=">&#160;</button>
        !           172:     </span>
        !           173:   
        !           174:     </metal:slot><metal:slot define-slot="buttongroup_indent">
        !           175:       
        !           176:     <span class="kupu-tb-buttongroup" id="kupu-bg-indent">
        !           177:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-outdent" id="kupu-outdent-button" title="outdent: alt-&lt;" i18n:attributes="title" accesskey="&lt;">&#160;</button>
        !           178:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-indent" id="kupu-indent-button" title="indent: alt-&gt;" i18n:attributes="title" accesskey="&gt;">&#160;</button>
        !           179:     </span>
        !           180:   
        !           181:     </metal:slot><metal:slot define-slot="buttongroup_drawers">
        !           182:       
        !           183:     <span class="kupu-tb-buttongroup">
        !           184:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-image" id="kupu-imagelibdrawer-button" title="image" i18n:attributes="title">&#160;</button>
        !           185:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-inthyperlink" id="kupu-linklibdrawer-button" title="internal link" i18n:attributes="title">&#160;</button>
        !           186:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-exthyperlink" id="kupu-linkdrawer-button" title="external link" i18n:attributes="title">&#160;</button>
        !           187: <!--
        !           188:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-table" id="kupu-tabledrawer-button" title="table" i18n:attributes="title">&#160;</button>
        !           189: -->
        !           190:     </span>
        !           191:   
        !           192:     </metal:slot><metal:slot define-slot="buttongroup_remove">
        !           193:       
        !           194:     <span class="kupu-tb-buttongroup" id="kupu-bg-remove">
        !           195:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-removeimage invisible" id="kupu-removeimage-button" title="Remove image" i18n:attributes="title">&#160;</button>
        !           196:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-removelink invisible" id="kupu-removelink-button" title="Remove link" i18n:attributes="title">&#160;</button>
        !           197:     </span>
        !           198:   
        !           199:     </metal:slot><metal:slot define-slot="buttongroup_undo">
        !           200:       
        !           201:     <span class="kupu-tb-buttongroup" id="kupu-bg-undo">
        !           202:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-undo" id="kupu-undo-button" title="undo: alt-z" i18n:attributes="title" accesskey="z">&#160;</button>
        !           203:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-redo" id="kupu-redo-button" title="redo: alt-y" i18n:attributes="title" accesskey="y">&#160;</button>
        !           204:     </span>
        !           205:   
        !           206:     </metal:slot><metal:slot define-slot="buttongroup_source">
        !           207:       
        !           208:     <span class="kupu-tb-buttongroup kupu-source-span" id="kupu-source">
        !           209:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" class="kupu-source" id="kupu-source-button" title="edit HTML code" i18n:attributes="title">&#160;</button>
        !           210:     </span>
        !           211:   
        !           212:     </metal:slot><metal:slot define-slot="buttongroup_extra"/>
        !           213:     </span>
        !           214:   <metal:slot define-slot="tb_select_liststyle">
        !           215:       
        !           216:     <select id="kupu-ulstyles" class="kupu-ulstyles">
        !           217:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="disc" i18n:translate="list-disc">&#9679;</option>
        !           218:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="square" i18n:translate="list-square">&#9632;</option>
        !           219:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="circle" i18n:translate="list-circle">&#9675;</option>
        !           220:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="none" i18n:translate="list-nobullet">no bullet</option>
        !           221:     </select>
        !           222:     <select id="kupu-olstyles" class="kupu-olstyles">
        !           223:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="decimal" i18n:translate="list-decimal">1</option>
        !           224:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="upper-roman" i18n:translate="list-upperroman">I</option>
        !           225:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="lower-roman" i18n:translate="list-lowerroman">i</option>
        !           226:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="upper-alpha" i18n:translate="list-upperalpha">A</option>
        !           227:       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="lower-alpha" i18n:translate="list-loweralpha">a</option>
        !           228:     </select>
        !           229:   
        !           230:     </metal:slot><metal:slot define-slot="drawers">
        !           231:       
        !           232:     <metal:slot define-slot="librarydrawer">
        !           233:       
        !           234:     <div style="display:block;" class="kupu-librarydrawer-parent">
        !           235: 
        !           236:     </div>
        !           237:   
        !           238:     </metal:slot><metal:slot define-slot="linkdrawer">
        !           239:       
        !           240:     <div id="kupu-linkdrawer" class="kupu-drawer kupu-linkdrawer">
        !           241:       <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">External Link</h1>
        !           242: 
        !           243:       <div id="kupu-linkdrawer-addlink" class="kupu-panels kupu-linkdrawer-addlink">
        !           244:         <table cellspacing="0">
        !           245:         <tr><td><div class="kupu-toolbox-label">
        !           246:           
        !           247:           <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">
        !           248:             Link the highlighted text to this URL:
        !           249:           </span>
        !           250:         </div>
        !           251: 
        !           252:         <input class="kupu-toolbox-st kupu-linkdrawer-input" type="text" onkeypress="return HandleDrawerEnter(event, 'linkdrawer-preview');"/>
        !           253:         </td>
        !           254:         <td class="kupu-preview-button">
        !           255:           <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" id="linkdrawer-preview" onclick="drawertool.current_drawer.preview()" i18n:translate="">Preview</button>
        !           256:         </td></tr>
        !           257:         <tr><td colspan="2" align="center">
        !           258:         <iframe frameborder="1" scrolling="auto" width="440" height="198" class="kupu-linkdrawer-preview" src="kupublank.html">
        !           259:         </iframe>
        !           260:         </td></tr>
        !           261:         </table>
        !           262: 
        !           263:         <div class="kupu-dialogbuttons">
        !           264:           <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" onclick="drawertool.current_drawer.save()" i18n:translate="">Ok</button>
        !           265:           <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" onclick="drawertool.closeDrawer()" i18n:translate="">Cancel</button>
        !           266:         </div>
        !           267: 
        !           268:       </div>
        !           269:     </div>
        !           270:   
        !           271:     </metal:slot><metal:slot define-slot="tabledrawer">
        !           272:       
        !           273:     <div id="kupu-tabledrawer" class="kupu-drawer kupu-tabledrawer">
        !           274:     <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_title">Table</h1>
        !           275:     <div class="kupu-panels">
        !           276:       <table width="300">
        !           277:         <tr class="kupu-panelsrow">
        !           278:           <td class="kupu-panel">
        !           279:             
        !           280:             <div class="kupu-tabledrawer-addtable">
        !           281:               <table>
        !           282:                 <tr>
        !           283:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_class_label" class="kupu-toolbox-label">Table Class</th>
        !           284:                   <td>
        !           285:                     <select class="kupu-tabledrawer-classchooser">
        !           286:                       <option value="plain">Plain</option>
        !           287:                       <option value="listing">Listing</option>
        !           288:                       <option value="grid">Grid</option>
        !           289:                       <option value="data">Data</option>
        !           290:                     </select>
        !           291:                   </td>
        !           292:                 </tr>
        !           293:                 <tr>
        !           294:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_rows_label" class="kupu-toolbox-label">Rows</th>
        !           295:                   <td><input type="text" class="kupu-tabledrawer-newrows" onkeypress="return HandleDrawerEnter(event);"/></td>
        !           296:                 </tr>
        !           297:                 <tr>
        !           298:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_columns_label" class="kupu-toolbox-label">Columns</th>
        !           299:                   <td><input type="text" class="kupu-tabledrawer-newcols" onkeypress="return HandleDrawerEnter(event);"/></td>
        !           300:                 </tr>
        !           301:                 <tr>
        !           302:                   <th class="kupu-toolbox-label"> </th>
        !           303:                   <td>
        !           304:                     <label><input class="kupu-tabledrawer-makeheader" type="checkbox" onkeypress="return HandleDrawerEnter(event);"/>
        !           305:                     <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_headings_label">Create Headings</span></label>
        !           306:                   </td>
        !           307:                 </tr>
        !           308:                 <tr>
        !           309:                   <th class="kupu-toolbox-label"> </th>
        !           310:                   <td>
        !           311:                       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_add_table_button" onclick="drawertool.current_drawer.createTable()">Add Table</button>
        !           312:                       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_fix_tables_button" onclick="drawertool.current_drawer.fixAllTables()">Fix All Tables</button>
        !           313:                   </td>
        !           314:                 </tr>
        !           315:               </table>
        !           316:             </div>
        !           317: 
        !           318:             
        !           319:             <div class="kupu-tabledrawer-edittable">
        !           320:               <table>
        !           321:                 <tr>
        !           322:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="tabledrawer_class_label">Table Class</th>
        !           323:                   <td>
        !           324:                     <select class="kupu-tabledrawer-classchooser" onchange="drawertool.current_drawer.setTableClass(this.options[this.selectedIndex].value)">
        !           325:                       <option value="plain">Plain</option>
        !           326:                       <option value="listing">Listing</option>
        !           327:                       <option value="grid">Grid</option>
        !           328:                       <option value="data">Data</option>
        !           329:                     </select>
        !           330:                   </td>
        !           331:                 </tr>
        !           332:                 <tr>
        !           333:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="tabledrawer_alignment_label">Current column alignment</th>
        !           334:                   <td>
        !           335:                     <select id="kupu-tabledrawer-alignchooser" class="kupu-tabledrawer-alignchooser" onchange="drawertool.current_drawer.tool.setColumnAlign(this.options[this.selectedIndex].value)">
        !           336:                       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_left_option" value="left">Left</option>
        !           337:                       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_center_option" value="center">Center</option>
        !           338:                       <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="tabledrawer_right_option" value="right">Right</option>
        !           339:                       </select>
        !           340:                   </td>
        !           341:                 </tr>
        !           342:                 <tr>
        !           343:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="tabledrawer_column_label">Column</th>
        !           344:                   <td>
        !           345:                     <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_add_button" onclick="drawertool.current_drawer.addTableColumn()">Add</button>
        !           346:                     <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_remove_button" onclick="drawertool.current_drawer.delTableColumn()">Remove</button>
        !           347:                   </td>
        !           348:                 </tr>
        !           349:                 <tr>
        !           350:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="tabledrawer_row_label">Row</th>
        !           351:                   <td>
        !           352:                     <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_add_button" onclick="drawertool.current_drawer.addTableRow()">Add</button> 
        !           353:                     <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_remove_button" onclick="drawertool.current_drawer.delTableRow()">Remove</button>
        !           354:                   </td>
        !           355:                 </tr>
        !           356:                 <tr>
        !           357:                   <th xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="tabledrawer_fix_table_label">Fix Table</th>
        !           358:                   <td>
        !           359:                     <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" i18n:translate="tabledrawer_fix_button" onclick="drawertool.current_drawer.fixTable()">Fix</button> 
        !           360:                   </td>
        !           361:                 </tr>
        !           362:               </table>
        !           363:             </div>
        !           364:           </td>
        !           365:         </tr>
        !           366:       </table>
        !           367:       <div class="kupu-dialogbuttons">
        !           368:         <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-dialog-button" type="button" onfocus="window.status='focus';" onmousedown="window.status ='onmousedown';" i18n:translate="tabledrawer_close_button" onclick="drawertool.closeDrawer(this)">Close</button>
        !           369:       </div>
        !           370:     </div>
        !           371:     </div>
        !           372: 
        !           373:   
        !           374:     </metal:slot><metal:slot define-slot="extradrawer"/>
        !           375:   
        !           376:     </metal:slot>
        !           377:     </div>
        !           378:   
        !           379:     </metal:slot><metal:slot define-slot="toolboxes">
        !           380:       
        !           381:     <div class="kupu-toolboxes">
        !           382:       <metal:slot define-slot="toolbox_properties">
        !           383:       
        !           384:     <div class="kupu-toolbox" id="kupu-toolbox-properties">
        !           385:       <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Properties</h1>
        !           386: 
        !           387:       <div xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="">Title:</div>
        !           388:       <input class="wide" id="kupu-properties-title"/>
        !           389:       <div xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="">Description:</div>
        !           390:       <textarea class="wide" id="kupu-properties-description"> </textarea>
        !           391:     </div>
        !           392:   
        !           393:     </metal:slot><metal:slot define-slot="toolbox_links">
        !           394:       
        !           395:     <div class="kupu-toolbox" id="kupu-toolbox-links">
        !           396:       <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Links</h1>
        !           397: 
        !           398:       <div id="kupu-toolbox-addlink">
        !           399:         <div class="kupu-toolbox-label">
        !           400:           
        !           401:           <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">
        !           402:             Link the highlighted text to this URL:
        !           403:           </span>
        !           404:         </div>
        !           405: 
        !           406:         <input id="kupu-link-input" class="wide" type="text"/>
        !           407:         <div class="kupu-toolbox-buttons">
        !           408:           <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-link-button" class="kupu-toolbox-action" i18n:translate="">Make Link</button>
        !           409:         </div>
        !           410: 
        !           411:       </div>
        !           412:     </div>
        !           413:   
        !           414:     </metal:slot><metal:slot define-slot="toolbox_images">
        !           415:       
        !           416:     <div class="kupu-toolbox" id="kupu-toolbox-images">
        !           417:             <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Images</h1>
        !           418: 
        !           419:             <div class="kupu-toolbox-label">
        !           420:               <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Image class:</span>
        !           421:             </div>
        !           422:             <select class="wide" id="kupu-image-float-select">
        !           423:               <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="image-inline" i18n:translate="">Inline</option>
        !           424:               <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="image-left" i18n:translate="">Left</option>
        !           425:               <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="image-right" i18n:translate="">Right</option>
        !           426:             </select>
        !           427: 
        !           428:             <div class="kupu-toolbox-label">
        !           429:               <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Insert image at the following URL:</span>
        !           430:             </div>
        !           431:             <input id="kupu-image-input" value="kupuimages/kupu_icon.gif" class="wide" type="text"/>
        !           432: 
        !           433:             <div class="kupu-toolbox-buttons">
        !           434:               <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-image-addbutton" class="kupu-toolbox-action" i18n:translate="">Insert Image</button>
        !           435:             </div>
        !           436:     </div>
        !           437:   
        !           438:     </metal:slot><metal:slot define-slot="toolbox_tables">
        !           439:       
        !           440:     <div class="kupu-toolbox" id="kupu-toolbox-tables">
        !           441:       <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Tables</h1>
        !           442: 
        !           443:       <div class="kupu-toolbox-label">
        !           444:         <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Table Class:</span>
        !           445:         <select class="wide" id="kupu-table-classchooser"> </select>
        !           446:       </div>
        !           447: 
        !           448:       <div id="kupu-toolbox-addtable" class="kupu-toolbox-addtable">
        !           449:         <div xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="">Rows:</div>
        !           450:         <input class="wide" type="text" id="kupu-table-newrows"/>
        !           451: 
        !           452:         <div xmlns:i18n="http://xml.zope.org/namespaces/i18n" class="kupu-toolbox-label" i18n:translate="">Columns:</div>
        !           453:         <input class="wide" type="text" id="kupu-table-newcols"/>
        !           454: 
        !           455:         <div class="kupu-toolbox-label">
        !           456:           <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Headings:</span>
        !           457:           <input name="kupu-table-makeheader" id="kupu-table-makeheader" type="checkbox"/>
        !           458:           <label xmlns:i18n="http://xml.zope.org/namespaces/i18n" for="kupu-table-makeheader" i18n:translate="">Create</label>
        !           459:         </div>
        !           460: 
        !           461:         <div class="kupu-toolbox-buttons">
        !           462:           <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-fixall-button" i18n:translate="">Fix Table</button> 
        !           463:           <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-addtable-button" i18n:translate="">Add Table</button> 
        !           464:         </div>
        !           465: 
        !           466:       </div>
        !           467: 
        !           468:       <div id="kupu-toolbox-edittable" class="kupu-toolbox-edittable">
        !           469:       
        !           470:           <div class="kupu-toolbox-label">
        !           471:             <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Col Align:</span>
        !           472:             <select class="wide" id="kupu-table-alignchooser">
        !           473:               <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="left" i18n:translate="">Left</option>
        !           474:               <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="center" i18n:translate="">Center</option>
        !           475:               <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="right" i18n:translate="">Right</option>
        !           476:             </select>
        !           477:           </div>
        !           478:       
        !           479:           <div class="kupu-toolbox-buttons">
        !           480:             <br/>
        !           481:             <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-addcolumn-button" i18n:translate="">Add Column</button>
        !           482:             <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-delcolumn-button" i18n:translate="">Remove Column</button>
        !           483:             
        !           484:             <br/>
        !           485:             <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-addrow-button" i18n:translate="">Add Row</button>
        !           486:             <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-delrow-button" i18n:translate="">Remove Row</button>
        !           487:           
        !           488:             <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-table-fix-button" i18n:translate="">Fix</button>
        !           489:           </div>
        !           490:           
        !           491:       </div>
        !           492: 
        !           493:     </div>
        !           494:   
        !           495:     </metal:slot><metal:slot define-slot="toolbox_extra"/><metal:slot define-slot="toolbox_debug">
        !           496:     <div style="visibility:hidden;" class="kupu-toolbox" id="kupu-toolbox-debug" style="visibility:invisible;">
        !           497:       <h1 xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Debug Log</h1>
        !           498:       <div id="kupu-toolbox-debuglog" class="kupu-toolbox-label">
        !           499:       </div>
        !           500:     </div>
        !           501: 
        !           502:     </metal:slot>
        !           503:     </div>
        !           504:   
        !           505:     </metal:slot><metal:slot define-slot="colorchooser">
        !           506:       
        !           507:     <table id="kupu-colorchooser" cellpadding="0" cellspacing="0" style="position: fixed; border-style: solid; border-color: black; border-width: 1px;">
        !           508:     </table>
        !           509:   
        !           510:     </metal:slot>
        !           511:     <div class="kupu-editorframe">
        !           512:       <form>
        !           513:         
        !           514:         <iframe metal:define-slot="editorframe" class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" tal:attributes="src document_url">
        !           515:         </iframe>
        !           516:         <textarea class="kupu-editor-textarea" id="kupu-editor-textarea"> </textarea>
        !           517:       </form>
        !           518:     </div>
        !           519:   
        !           520:     </div>
        !           521:   
        !           522:     </metal:macro>
        !           523:     </body>
        !           524:   
        !           525: 
        !           526:     </html>
        !           527:   

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>