Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home Web Plone Snippets and Examples Making TinyMCE the default editor for new users

Making TinyMCE the default editor for new users

Add memberdata_properties.xml to your generic setup profile, with the following content:

<?xml version="1.0"?>
<object name="portal_memberdata" meta_type="Plone Memberdata Tool" purge="False">
 <property name="wysiwyg_editor" type="string">TinyMCE</property>
</object>

 and for the test-infected:

def test_new_user_gets_tinymce(self):
    new_user = self.portal_registration.addMember('plonestar', 'topsecret')
    self.assertEqual('TinyMCE', new_user.getProperty("wysiwyg_editor"))
    
Document Actions

Comments (0)

« May 2012 »
May
MoTuWeThFrSaSu
123456
78910111213
14151617181920
21222324252627
28293031