Enable Kupu for anonymous in Ploneboard

enable kupu for anonymous in ploneboard Articles

This article shows how to configure Plone to allow anonymous users use Kupu visual editor in Ploneboard.

About

Lets assume we have a Plone site with Kupu and Ploneboard. There is a forum and its workflow is set to be moderated or visible for all. This means that anybody can post there. But the problem is that now Plone doesn’t have member record and cannot figure out default editor. And when it happens standard text area is visible. Ugly.

So lets make this look nicer in 3 easy steps.

1. Customize wysiwyg_support template

Go to portal_skins/kupu_plone and find wysiwyg_support template. Customize it and find a code snippet:

2. Customize contentUsesKupu script

Go to portal_skins/kupu_plone and find contentUsesKupu Python script. Customize it and find a code snippet:

if not tool. isKupuEnabled(REQUEST=REQUEST,
context=context,
fieldName=fieldname):
return False

if not tool. isKupuEnabled(allowAnonymous= True ,
REQUEST=REQUEST,
context=context,
fieldName=fieldname):
return False

3. Update styles registry

Go to portal_css and edit Condition field for 3 CSS files:

Rate article
Plone and Zope developer
Add a comment