Hide Editor on a specific Node Types?

CompShack - May 22, 2008 - 23:58
Project:BUEditor
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is there a way to hide the editor on specific node type? I have a wiki, blog and forum node types. For blog and forum nodes, I just the regular HTML syntax for the editor BUT for wiki type I would like to hide the editor as the syntax is different.

I was able to hid it when creatting a new wiki post but I couldn't find a way to hide it when someone comes in to edit the wiki page.

Is it possible to assign different editor style depending on the node type being edited or created? It will be the same like you assign different editor types for different roles.

Thanks for the module, it is GREAT.

#1

brandnew - May 30, 2008 - 22:28

I had the same problem, so I made some changes.
I don't know how to make patches, so I made a .zip with the files I changed; put these on top of your current bueditor files.

What changes:
-A list of checkboxes was added to the "Visibility settings" section.
-The editor will only be shown in node types marked on this list.
-This applies to creating and editing nodes.
-You don't have to edit the "Show on the following pages:" textbox.

How to re-install (since i changed the bueditor.install):
-Disable BuEditor module
-Go to admin/build/modules/uninstall and uninstall BuEditor
-Upload the new files
-Enable it
-Enjoy :D

AttachmentSize
bueditor.zip 8.02 KB

#2

CompShack - May 31, 2008 - 14:26

Thank you -- I will give it a try later this weekend and report back.

This applies to creating and editing nodes.

I was able to hide it when creating a new node but editing is a different story. Thanks again!

#3

VM - May 31, 2008 - 14:45

creating patches = http://drupal.org/search/node/patches
doing so, helps your changes get into the module as it makes it easier for the dev to check what you've changed and he/she can then apply the patches to the module in CVS

#4

brandnew - May 31, 2008 - 15:34

I just found a bug... since there is a configuration of "one editor per role", if you activate 2 diferent editors, one for wiki and one for blog, only the one activated for the role will actually be shown ... so I'm making some changes to be able to ignore these role settings.
Posting the patch soon.

#5

brandnew - May 31, 2008 - 16:39
Status:active» needs review

So here is the patch with the new feature. Please post any bugs. (because i use this funcionality as well)

Cheers

PS. I uploaded the zipped files for those who don't know how to patch.

AttachmentSize
bueditor.patch 2.88 KB
bueditor.zip 8.23 KB

#6

ufku - July 8, 2009 - 20:18
Version:5.x-1.1» 6.x-1.x-dev

You can achieve it using path visibility settings.
The path "node/add/type" also covers "node/NID/edit" for that type.

#7

ufku - July 19, 2009 - 21:57
Status:needs review» fixed

#8

System Message - August 2, 2009 - 22:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.