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.

CommentFileSizeAuthor
#5 bueditor.patch2.88 KBbrandnew
#5 bueditor.zip8.23 KBbrandnew
#1 bueditor.zip8.02 KBbrandnew

Comments

brandnew’s picture

StatusFileSize
new8.02 KB

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

CompShack’s picture

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!

vm’s picture

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

brandnew’s picture

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.

brandnew’s picture

Status: Active » Needs review
StatusFileSize
new8.23 KB
new2.88 KB

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.

ufku’s picture

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.

ufku’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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