Set the default editor in Plone for all existing members.
Project description
Introduction
When you install a new visual editor in your Plone Site, you can set wysiwyg_editor in portal_memberdata to the proper value for this new editor. This only means that new users will get this new editor. To change the editor for all existing users, use this package.
This makes available a browser view @@set-default-editor. Call this to get some simple instructions in plain text about how to edit the url to do something useful (patches for making a simple front-end template for this are welcome).
Call for example <plone_site_url>/@@set-default-editor?editor=TinyMCE&dryrun=1 to run this in dry-run mode and see how many users would be changed. See the instance log for details. Remove the dryrun option (or set it to 0) to really set the editor.
Todo
Create a template so the user can just click instead of having to edit the URL.
Check that the input for the wanted editor is sane: is that editor actually installed?
Also set the editor as new default in portal_memberdata.
Add tests.
Contributors
I (Maurits van Rees) found the main code in an article by Rob Gietema. He apparently got the script from Kelly Craig. And I have seen the same code in a post to the plone-setup list by Reinout van Rees. So I claim it back in defense of our family honour. ;-)
Changelog
1.0 (2010-03-17)
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.setdefaulteditor-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1827eaef77529687b858c10bd6ba9978cc7cbd38ba2196fc580ffb73aa223c3 |
|
MD5 | 09199ca3ffdc8293f7a1e5fbe307ba61 |
|
BLAKE2b-256 | 73942f4f904e0c8520e47edc89b7ebfe739d78fa97dd7b6ff86aeb9dd869a7be |