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)
|
||||
jsCall = 'dojo.require("dijit._editor.plugins.LinkDialog");'
|
||||
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):
|
||||
self.registerDojo()
|
||||
|
|
|
@ -286,15 +286,15 @@
|
|||
|
||||
<metal:html define-macro="input_html">
|
||||
<p>HTML</p>
|
||||
<div name="field" rows="3" style="width: 550px"
|
||||
<div name="field" rows="3" style="width: 600px"
|
||||
dojoType="dijit.Editor"
|
||||
extraPlugins="['insertHorizontalRule','createLink']"
|
||||
extraPlugins="['insertHorizontalRule','createLink', 'viewsource']"
|
||||
tal:define="width field/width|nothing;
|
||||
height field/height|python:3"
|
||||
tal:attributes="name name; id name;
|
||||
rows python: height or 3;
|
||||
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:">
|
||||
</div>
|
||||
</metal:html>
|
||||
|
|
Loading…
Add table
Reference in a new issue