[kupu-checkins] r42489 - kupu/trunk/kupu/plone/kupu_plone_layer

duncan at codespeak.net duncan at codespeak.net
Mon Apr 30 16:45:49 CEST 2007


Author: duncan
Date: Mon Apr 30 16:45:48 2007
New Revision: 42489

Modified:
   kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html
Log:
Built kupu template

Modified: kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html
==============================================================================
--- kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html	(original)
+++ kupu/trunk/kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html	Mon Apr 30 16:45:48 2007
@@ -16,18 +16,18 @@
     <!--$Id: toolboxes.kupu 37754 2007-02-01 17:24:29Z yuppie $-->
     <!--$Id: colorchooser.kupu 35491 2006-12-08 15:41:49Z duncan $-->
     <!--$Id: save.kupu 9520 2005-02-26 16:30:23Z duncan $-->
-    <!--$Id: drawers.kupu 37754 2007-02-01 17:24:29Z yuppie $-->
-    <!--$Id: include.kupu 35491 2006-12-08 15:41:49Z duncan $-->
+    <!--$Id: drawers.kupu 41836 2007-04-03 08:36:10Z duncan $-->
+    <!--$Id: include.kupu 39202 2007-02-19 12:06:45Z duncan $-->
     <!--$Id: wire.kupu 25247 2006-04-03 11:23:02Z fschulze $-->
     <!--$Id: head.kupu 34332 2006-11-07 14:50:40Z duncan $-->
     <!--$Id: xmlconfig.kupu 35367 2006-12-06 09:06:21Z duncan $-->
-    <!--$Id: body.kupu 39156 2007-02-18 14:13:16Z duncan $-->
+    <!--$Id: body.kupu 42388 2007-04-28 10:29:22Z limi $-->
     <!--$Id: toolbar.kupu 35491 2006-12-08 15:41:49Z duncan $-->
     <!--$Id save.kupu (not yet in svn) $-->
     <!--$Id: drawers.kupu 35477 2006-12-08 13:20:38Z duncan $-->
     <!--$Id: beforeunload.kupu 14546 2005-07-12 14:35:55Z duncan $-->
     <!--$Id: sourceedit.kupu 35477 2006-12-08 13:20:38Z duncan $-->
-    <!--$Id: wysiwyg_support.kupu 39157 2007-02-18 14:29:58Z duncan $-->
+    <!--$Id: wysiwyg_support.kupu 42388 2007-04-28 10:29:22Z limi $-->
     
 
     <div xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" metal:define-macro="wysiwygEditorBox" id="kupu-editor" tal:define="name fieldName|inputname;                 editorid string:kupu-editor-${name}" tal:attributes="id editorid">
@@ -436,70 +436,18 @@
     </table>
   <script type="text/javascript">var focuscount = 0;</script>
     <div>
-    <iframe class="kupu-editor-iframe" 
-            frameborder="0" 
-            src="emptypage" 
-            onfocus="this.contentWindow.focus();" 
-            tal:define="base python:here.kupu_library_tool.getBaseUrl(here, True);
-                        base kupu_base_override|base;" 
-            tal:attributes="src string:${base}/emptypage;
-                            id string:kupu-editor-iframe-${fname};
-                            name string:kupu-editor-iframe-${fname};">
+    <iframe class="kupu-editor-iframe" frameborder="0" src="emptypage" onfocus="this.contentWindow.focus();" tal:define="base python:here.kupu_library_tool.getBaseUrl(here, True);                     base kupu_base_override|base;" tal:attributes="src string:${base}/emptypage;                         id string:kupu-editor-iframe-${fname};                         name string:kupu-editor-iframe-${fname};">
     </iframe>
-     <input type="hidden" 
-            name="text_format:default" 
-            value="text/html" 
-            tal:define="fieldName fieldName|inputname|nothing;
-                        val python:fieldName and 'text/html' or 'html';
-                        fieldName python:test(fieldName, fieldName+'_', '') + 'text_format:default';" 
-            tal:attributes="name fieldName;value val;" 
-            />
+     <input type="hidden" name="text_format:default" value="text/html" tal:define="fieldName fieldName|inputname|nothing;                 val python:fieldName and 'text/html' or 'html';                 fieldName python:test(fieldName, fieldName+'_', '') + 'text_format:default';" tal:attributes="name fieldName;value val;"/>
 <tal:test condition="fieldName|nothing">
-    <textarea cols="80" 
-              rows="25" 
-              class="kupu-editor-textarea" 
-              name="description" 
-              tal:condition="fieldName|nothing" 
-              tal:define="global kupu_content python:here.convertContentForKupu(fieldName, inputvalue);"
-              tal:content="kupu_content"
-              tal:attributes="name inputname;
-                              onfocus onfocus|nothing;
-                              onblur onblur|nothing;
-                              rows rows|default;
-                              cols cols|default;">
+    <textarea cols="80" rows="25" class="kupu-editor-textarea" name="description" tal:condition="fieldName|nothing" tal:define="global kupu_content python:here.convertContentForKupu(fieldName, inputvalue);" tal:content="kupu_content" tal:attributes="name inputname;                         onfocus onfocus|nothing;                         onblur onblur|nothing;                         rows rows|default;                         cols cols|default;">
     </textarea>
 </tal:test>
-    <textarea cols="80" 
-              rows="25" 
-              class="kupu-editor-textarea" 
-              name="description" 
-              id="kupu-editor-textarea" 
-              tal:define="pss modules/Products/PythonScripts/standard;
-                          text_format text_format | python: getattr(here,'text_format','html');
-                          is_stx python:text_format=='structured-text';
-                          is_ptx python:text_format=='plain';"
-              tal:condition="not:fieldName|nothing" 
-              tal:content="python:(is_stx and pss.structured_text(inputvalue))
-                                           or (is_ptx and pss.newline_to_br(inputvalue))
-                                           or inputvalue" 
-              tal:attributes="name inputname;
-                                   onfocus onfocus|nothing;
-                                   onblur onblur|nothing;
-                                   rows rows|default;
-                                   cols cols|default;">
+    <textarea cols="80" rows="25" class="kupu-editor-textarea" name="description" id="kupu-editor-textarea" tal:define="pss modules/Products/PythonScripts/standard;                 text_format text_format | python: getattr(here,'text_format','html');                 is_stx python:text_format=='structured-text';                 is_ptx python:text_format=='plain';" tal:condition="not:fieldName|nothing" tal:content="python:(is_stx and pss.structured_text(inputvalue))                                     or (is_ptx and pss.newline_to_br(inputvalue))                                     or inputvalue" tal:attributes="name inputname;                         onfocus onfocus|nothing;                         onblur onblur|nothing;                         rows rows|default;                         cols cols|default;">
     </textarea>
     </div>
   
-    <div class="kupuoverride" 
-         tal:condition="python:exists('kupu_content') and len(kupu_content)==0" 
-         tal:define="floated widget/allow_file_upload | python:1;" 
-         tal:attributes="style python:test(floated, 'float:left;;', '');">
-         <span class="discreet">
-             <a class="forcekupu" 
-                href="#" 
-                i18n:translate="suppress-kupu" 
-                tal:attributes="href string:${request/URL0}?kupu.suppress=${fieldName};" 
-                title="Reload current page without visual editor">
+    <div class="kupuoverride" tal:condition="python:exists('kupu_content') and len(kupu_content)==0" tal:define="floated widget/allow_file_upload | python:1;" tal:attributes="style python:test(floated, 'float:left;;', '');"><span class="discreet"><a class="forcekupu" href="#" i18n:translate="suppress-kupu" tal:attributes="href string:${request/URL0}?kupu.suppress=${fieldName};" title="reload current page without kupu">
          Edit without visual editor
       </a></span>
     </div>
@@ -518,16 +466,7 @@
     <link href="kupudrawerstyles.css" rel="stylesheet" type="text/css" tal:attributes="href string:${portal_url}/kupudrawerstyles.css"/>
    </tal:test>
   
-    <textarea cols="80" 
-              rows="25" 
-              name="fieldName" 
-              tal:content="inputvalue" 
-              tal:attributes="name fieldName|inputname;
-                              id fieldName|inputname;
-                              onfocus onfocus|nothing;
-                              onblur onblur|nothing;
-                              rows rows|default;
-                              cols cols|default;">
+    <textarea cols="80" rows="25" name="fieldName" tal:content="inputvalue" tal:attributes="name fieldName|inputname;                         id fieldName|inputname;                         onfocus onfocus|nothing;                         onblur onblur|nothing;                         rows rows|default;                         cols cols|default;">
     </textarea>
   
     <tal:archetypes tal:condition="fieldName|nothing">
@@ -562,31 +501,13 @@
        Text and type the document as you usually do.
      </div>
 
-     <input class="noborder" 
-            type="radio" 
-            name="text_format" 
-            value="structured-text" 
-            id="cb_structuredtext" 
-            tal:attributes="checked python:test(text_format=='structured-text', 1, None);"
-            />
+     <input class="noborder" type="radio" name="text_format" value="structured-text" id="cb_structuredtext" tal:attributes="checked python:test(text_format=='structured-text', 1, None);"/>
      <label for="cb_structuredtext" i18n:translate="structured_text">Structured Text</label> <br/>
 
-     <input class="noborder" 
-            type="radio" 
-            name="text_format" 
-            value="html" 
-            id="cb_html" 
-            tal:attributes="checked python:test(text_format=='html', 1, None);"
-            />
+     <input class="noborder" type="radio" name="text_format" value="html" id="cb_html" tal:attributes="checked python:test(text_format=='html', 1, None);"/>
      <label for="cb_html" i18n:translate="html">HTML</label> <br/>
 
-     <input class="noborder" 
-            type="radio" 
-            name="text_format" 
-            value="plain" 
-            id="cb_plain" 
-            tal:attributes="checked python:test(text_format=='plain', 1, None);"
-            />
+     <input class="noborder" type="radio" name="text_format" value="plain" id="cb_plain" tal:attributes="checked python:test(text_format=='plain', 1, None);"/>
      <label for="cb_plain" i18n:translate="plain_text">Plain Text</label>
     </tal:nonat>
   </tal:noeditor>


More information about the kupu-checkins mailing list