Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If we want to change the editor for a filter, we have to remove the old configuration first. It's not very useful if user want to switch back to the previous editor. My suggestion is to allow to switch between editor without removing the profile.
Comments
Comment #1
TwoDIt used to be like that, but it caused problems when editor settings became incompatible. When issues like #414496: Allow to select editor theme/skin, #277954: Allow to sort editor buttons and #313497: Allow configuration of advanced editor settings get in, it will be even more important to make sure that the profiles are used with the correct editor, or they will crash.
We have plans for allowing multiple editor profiles per input format for Wysiwyg 3.x, but the profiles will still be incompatible with other editors than the one it was created for.
Comment #2
nquocbao CreditAttribution: nquocbao commentedWhy don't we use format & editor as the primary keys instead of format itself. So there will be two rows in the database:
1,fckeditor,{settings}
1,ckeditor,{settings}
We can use variable table to store which editor is associated for which filter. such as wysiwyg_editor_1 = fckeditor. And later, we can even allow user to choose his editor for his own
Isn't it resolve the conflict problem for editor settings ?
Comment #3
nquocbao CreditAttribution: nquocbao commentedChanging the title for more clarification. I'm willing to support this issue after #277954: Allow to sort editor buttons is resolved
Comment #4
nquocbao CreditAttribution: nquocbao commentedComment #5
TwoDLike I said in #1, multiple profiles per format is planned for Wysiwyg 3.x and yes we'd have to do something like what you suggest to handle the 'active' and 'alternate' profiles for a format. (We might also have to keep track of the active one per-user and format.)
Your original post asked to be able to switch editors without removing the profile, which I assumed meant you wanted to be able to keep the settings you had set for your TinyMCE when switching from it to CKEditor. (as in just changing the editor field in the db table). That is something we can't do even if we support multiple editor (profiles) per format, because the settings structure would not be the same for CKEditor (at least not after #313497: Allow configuration of advanced editor settings).
Basically, in Wysiwyg 3.x you should be able to set up TinyMCE, Whizzywig and CKEditor for the same format, and switch between them when editing a node, but you could not set up TinyMCE, configure it to your liking, then decide it doesn't look good enough (or whatever) and just drop in CKEditor instead and use its equivalent settings without recreating the profile (no matter if you have other profiles for the same format or not). We have no way of "translating" profles between editors.
Comment #6
sunSee also
#585412: Specific permission for WYSIWYG configuration…
#322433: Replace default editor status option(s) with intelligent logic
If we do this properly, then there even can be multiple profiles for the same editor on a single format. User permissions or AI preselects the profile "you want to use".
Comment #7
sunComment #8
TimG1 CreditAttribution: TimG1 commentedHello,
+1 for this feature request. Here's why I would need this.
I would like to use a single input filter for a CCK text field. However I would simply like to restrict the buttons that the user sees depending on their role.
The problem I'm running into is users without the permission to use an input filter cannot EDIT the node after it's been created. I'm using Better Formats which works great on node creation. But if a user with permissions to use input filter A created the node, and another user logs in to edit the node and does not have permission to use input filter A they cannot edit the node. I want them to be able to edit the node, but just use input filter B instead of A.
I cannot find a way to do this today. For example, I would like certain roles to be able to view source and edit a textfield and other roles to only be able to use the wysiwyg buttons.
Basically I'd like to be able to say, something like "Use wysiwyg & ckeditor with buttons a, b, c" for the role editor and "Use wysiwyg & ckeditor with buttons a, b, c, d" for the role staff.
Thanks for reading,
-Tim