add 'viewsource' plugin to rich text editor; set default input field width to 600px
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3946 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									bd6edb0ad7
								
							
						
					
					
						commit
						bd95543460
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -658,6 +658,8 @@ class BaseView(GenericView, I18NView): | ||||||
|         self.controller.macros.register('js-execute', jsCall, jsCall=jsCall) |         self.controller.macros.register('js-execute', jsCall, jsCall=jsCall) | ||||||
|         jsCall = 'dojo.require("dijit._editor.plugins.LinkDialog");' |         jsCall = 'dojo.require("dijit._editor.plugins.LinkDialog");' | ||||||
|         self.controller.macros.register('js-execute', jsCall, jsCall=jsCall) |         self.controller.macros.register('js-execute', jsCall, jsCall=jsCall) | ||||||
|  |         jsCall = 'dojo.require("dijit._editor.plugins.ViewSource")' | ||||||
|  |         self.controller.macros.register('js-execute', jsCall, jsCall=jsCall) | ||||||
| 
 | 
 | ||||||
|     def registerDojoLightbox(self): |     def registerDojoLightbox(self): | ||||||
|         self.registerDojo() |         self.registerDojo() | ||||||
|  |  | ||||||
|  | @ -286,15 +286,15 @@ | ||||||
| 
 | 
 | ||||||
| <metal:html define-macro="input_html"> | <metal:html define-macro="input_html"> | ||||||
|     <p>HTML</p> |     <p>HTML</p> | ||||||
|     <div name="field" rows="3" style="width: 550px" |     <div name="field" rows="3" style="width: 600px" | ||||||
|            dojoType="dijit.Editor" |            dojoType="dijit.Editor" | ||||||
|            extraPlugins="['insertHorizontalRule','createLink']" |            extraPlugins="['insertHorizontalRule','createLink', 'viewsource']" | ||||||
|            tal:define="width field/width|nothing; |            tal:define="width field/width|nothing; | ||||||
|                        height field/height|python:3" |                        height field/height|python:3" | ||||||
|            tal:attributes="name name; id name; |            tal:attributes="name name; id name; | ||||||
|                            rows python: height or 3; |                            rows python: height or 3; | ||||||
|                            style python: |                            style python: | ||||||
|                                 'width: %s' % (width and str(width)+'px' or '550px');" |                                 'width: %s' % (width and str(width)+'px' or '600px');" | ||||||
|            tal:content="structure data/?name|string:"> |            tal:content="structure data/?name|string:"> | ||||||
|     </div> |     </div> | ||||||
| </metal:html> | </metal:html> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm