Changeset 49235
- Timestamp:
- 09/27/06 18:38:56 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPS3/products/CPSSchemas/trunk/ExtendedWidgets.py
r49008 r49235 73 73 {'id': 'file_uploader', 'type': 'boolean', 'mode': 'w', 74 74 'label': 'Add a file uploader to the widget UI'}, 75 {'id': 'html_editor_embedded', 'type': 'boolean', 'mode': 'w', 76 'label': 'Embed HTML editor in page, otherwise popup'}, 75 {'id': 'html_editor_position', 'type': 'selection', 'mode': 'w', 76 'select_variable': 'all_rte_positions', 77 'label': 'HTML rich text editor position'}, 77 78 {'id': 'render_format', 'type': 'selection', 'mode': 'w', 78 79 'select_variable': 'all_render_formats', … … 88 89 all_render_positions = ['normal', 'col_left', 'col_right'] 89 90 all_render_formats = ['text', 'html', 'rst'] 91 all_rte_positions = ['popup', 'embedded'] 90 92 91 93 width = 40 … … 93 95 size_max = 2*1024*1024 94 96 file_uploader = False 95 html_editor_embedded = False 97 96 98 render_position = all_render_positions[0] 97 99 render_format = all_render_formats[0] 100 html_editor_position = all_rte_positions[0] 98 101 configurable = 'nothing' 99 102 input_encoding = 'iso-8859-15' … … 205 208 file_uploader=self.file_uploader, 206 209 render_position=rposition, render_format=rformat, 210 html_editor_position=self.html_editor_position, 207 211 configurable=str(self.configurable)) 208 212 CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_text_render.pt
r49008 r49235 4 4 value options/value; 5 5 file_uploader here/file_uploader; 6 html_editor_ embedded here/html_editor_embedded;6 html_editor_position options/html_editor_position; 7 7 rposition options/render_position; 8 8 rformat options/render_format; … … 31 31 tal:content="value" 32 32 /> 33 <tal:block condition="python:rformat == 'html' and html_editor_ embedded">33 <tal:block condition="python:rformat == 'html' and html_editor_position == 'embedded'"> 34 34 <script type="text/javascript" src="" 35 35 tal:attributes="src string:${base_url}fckeditor.js"> … … 77 77 </select> 78 78 </tal:block> 79 <tal:block condition=" not:html_editor_embedded">79 <tal:block condition="python:html_editor_position == 'popup'"> 80 80 <button type="button" 81 81 i18n:translate="button_text_editor_popup"
