From 3e481104cb1f6a7bf20299a6fc7b19e5fe5c859a Mon Sep 17 00:00:00 2001 From: helmutm Date: Fri, 25 Jul 2008 22:11:28 +0000 Subject: [PATCH] minor adjustments... git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2770 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/common.py | 6 ++++-- browser/form_macros.pt | 1 + browser/skin/body.pt | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/browser/common.py b/browser/common.py index 5a750b8..de975f9 100644 --- a/browser/common.py +++ b/browser/common.py @@ -276,8 +276,8 @@ class BaseView(GenericView, I18NView): typeKey = util.renderingFactories.get(contentType, None) if typeKey is None: if contentType == u'text/html': - return text - return u'
%s
' % util.html_quote(text) + return util.toUnicode(text) + return u'
%s
' % util.html_quote(util.toUnicode(text)) source = component.createObject(typeKey, text) view = component.getMultiAdapter((removeAllProxies(source), self.request)) return view.render() @@ -499,6 +499,8 @@ class BaseView(GenericView, I18NView): self.registerDojo() jsCall = 'dojo.require("dijit.Editor");' 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) # vocabulary stuff diff --git a/browser/form_macros.pt b/browser/form_macros.pt index 45943ac..6750736 100644 --- a/browser/form_macros.pt +++ b/browser/form_macros.pt @@ -262,6 +262,7 @@