Filter by Node Type module breaks WYSIWYG API

joostvdl - January 29, 2009 - 08:36
Project:Filter by node type
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

See also #359727: Breaks WYSIWYG/TinyMCE module

When I installed the 'Filter by Node Type' module and enabled the module it broke my WYSIWYG.module with the tinymce addon. When going to a /node/add page it simply dissapeared. if i disabled this module it reappeared. enabled it, wysiwyg in the body field again dissapeared. Looking in my log entries the notices are:

page not found error:

http://videoloket.dev.trisum.nl/sites/all/modules/wysiwyg/tinymce/jscripts/tiny_mce/langs/nl.js?2

notice:

Parsed JavaScript file sites/all/modules/wysiwyg/wysiwyg.js.

#1

sun - January 29, 2009 - 13:46
Category:bug report» support request

a) Did you install the Dutch language pack for TinyMCE? It does not seem so.

b) I suggest using Better Formats module instead of FilterByNodeType.

#2

joostvdl - January 29, 2009 - 16:02
Status:active» fixed

Thanks

Both probles are solved now.

#3

System Message - February 12, 2009 - 16:10
Status:fixed» closed

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

#4

Tannerjf - April 20, 2009 - 06:44
Version:6.x-0.5» 5.x-1.1
Status:closed» active

Awesome to hear this issue is resolved for Drupal 6, however I am unfortunately stuck with Drupal 5 for the project I'm working on, and I'm encountering this issue. I have tried Filter by node type and it will not work with the filter I created for WYSIWYG (using tinymce if that helps any). I can't use the Better Formats module, as it is a Drupal 6 -only module. What can I do to set the default filter for a nodetype? The WYSIWYG module works great aside from this, but it's really clumsy for the end user when they have to select the input format for tinymce and reload the page.

Worst case scenario, I'm only using WYSIWYG for 2 content types, with the same configuration for both. Is there something in the WYSIWYG API code I can change to force these content types to use the WYSIWYG input format?

Thanks,
Tanner

#5

sun - April 20, 2009 - 08:28
Title:Filter by Node Type module breaks WYSIWYG/TinyMCE module» Filter by Node Type module breaks WYSIWYG API
Project:Wysiwyg» Filter by node type
Version:5.x-1.1» 5.x-1.0
Component:Miscellaneous» Code
Category:support request» bug report

Moving to proper project/queue.

#6

Tannerjf - April 22, 2009 - 07:05
Status:active» closed

I got this working with the help of the filter default module, which allows you to set the default filter per role basis. My use involves Organic Groups and OG User Roles, so it's a bit different then what most people may use. Nevertheless, here's what I did:

-Set my TinyMCE filter as the default filter
-Enabled only TinyMCE in FBNT for the content type I need, Disabled TinyMCE for all other content types
-The content type I need it on is only usable from within OG, and OG User Roles adds a role to the user's account only when viewing a group. I have a role setup specifically for this purpose
-Set default filter in the filter default module, 0 weight set for the OG role and the TinyMCE filter
-Set default filter in the filter default module, 1 weight set for authenticated user and Filtered HTMl

It's a rather convoluted way to go about it, but since I was using OG User Roles and I only need TinyMCE in a content type that is only accessible from within a group, this method works for me. For anyone not using such a setup, there still needs to be a solution.

 
 

Drupal is a registered trademark of Dries Buytaert.