The following patch adds a "Content type" field to the profile settings. Adding one or more content types to that field will add a check for a matching content type on node/add/* and node/*/edit pages.

To apply:

cd $DRUPAL_SITE_ROOT/sites/all/modules
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--1 -d yui_editor contributions/modules/yui_editor
wget -O - http://drupal.org/files/issues/yui_editor_fixes_2.diff | patch -p0 -d yui_editor
CommentFileSizeAuthor
yui_editor_fixes_2.diff3.65 KBpillarsdotnet

Comments

v8powerage’s picture

that would be easier, if You'd post whole module, and because I don't know which version it is… Is it 6X for sure?

pillarsdotnet’s picture

I posted a "cvs diff" type patch as per Drupal patch guidelines. If you have access to a Unix machine (or the ability to install a unix-like environment, such as Cygwin), you can literally cut-and-paste my instructions into your terminal window to reproduce the patched module. See the Drupal patch guidelines at http://drupal.org/patch for details.

I'm hoping the module author will review the patch and either incorporate it into his module or suggest further changes. If he does not respond in a reasonable amount of time, I'll come back and post a regular tarball/zip package. But to do so without giving the original author some time to review is considered poor form.

v8powerage’s picture

whatever :P

jeffcd’s picture

Status: Needs review » Fixed

Ok this patch has been applied and added to CVS. My testing with it seems to work well. Thanks.

jeffcd’s picture

Status: Fixed » Closed (fixed)