TinyMCE for Drupal 6
Hi there,
I’ve managed to port TinyMCE to Drupal 6. You can download it here: TinyMCE for Drupal 6.![]()
Installation
- 1. Place the entire tinymce directory into your the ‘sites/all/modules/tinymce‘ directory.
- 2. Download TinyMCE 2.1 and remember to uncompress the file and make sure the folder is named ‘tinymce‘.
- 3. Place the entire ‘tinymce’ engine folder inside your ‘sites/all/modules/tinymce/‘ directory. So the TinyMCE engine will live in ‘sites/all/modules/tinymce/tinymce/‘
- 4. Copy the folder ‘sites/all/modules/tinymce/plugins/drupalbreak‘ to ‘sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalbreak‘. This installs a TinyMCE-plugin that can edit Drupal (page)breaks.
- 5. Visit the Drupal ‘modules’ page via Administer > Site building > Modules and enable the TinyMCE-module.
- 6. Visit the Drupal ‘permissions’ page via Administer > User management > Permissions and choose who gets to use TinyMCE
- 7. Visit TinyMCE-settings page, and create a profile. Make sure to expand and fill out the complete form (!!!). The TinyMCE-settings page is found via Administer > Site configuration > TinyMCE
- 8. Done! Now you can edit and create content with the TinyMCE editor.
Possibly related posts
- advertising: Vintage "Internet-age" posters - August 6th, 2010
- art: Vintage "Internet-age" posters - August 6th, 2010
- atheism: 281 tricks to irritate an atheist - October 29th, 2009
- business: Not being an employee... - July 11th, 2010
- cartoon: This is why I'll never be an adult - June 20th, 2010
- code: Flexible grid & flexible images - June 24th, 2010
- computer graphics: Amazing image - September 21st, 2009
- computers: Pixels - April 8th, 2010
- culture: Television is a drug - July 8th, 2010
- design: Flexible grid & flexible images - June 24th, 2010
46 Responses so far
March 17th, 2008
6:10 am
I am trying to install your ported version of TinyMCE in drupal 6, but when I go to the module administration section to install the module it says “This version is incompatible with the 6.0 version of Drupal core.” Any ideas?
March 17th, 2008
10:23 am
Hi Jeff,
I developed and tested this with Drupal 6.1 - but I guess should have tested it with Drupal 6.0 as well.
Anyway, I think I may have made a last minute error with the “tinymce.info” file. I uploaded a new version of the module, so please re-download and test it. Since I’m not around a Drupal installation at the moment, I can’t test it myself. Please let me know if it works for you now. If it doesn’t, I will look into it this evening and fix it for sure. For now, just re-download and test
akie
— edit: I tested this, and confirmed that this plugin works with both Drupal 6.0rc4 and Drupal 6.1
March 17th, 2008
5:07 pm
Hi jeff,
it works great on my site (D6.1). Is there any solution to cooperate your module with IMCE-HEAD (compatible with D6)? Sorry fot my English :\
March 17th, 2008
7:10 pm
An error occurred. http://localhost/drupal/update.php?id=2&op=do Fatal error: Call to undefined function _system_update_utf8() in C:\Development\Drupal\sites\all\modules\tinymce\tinymce.install on line 24
Any idea what I’m doing wrong here? Running Drupal 6.1 core.
March 17th, 2008
8:45 pm
Hi fmarvez,
I fixed the fatal error you describe. Just re-download the module, and it should be fixed.
akie
March 17th, 2008
9:54 pm
Hi akie and thanks for the module. It gives me this error on install:
warning: Invalid argument supplied for foreach() in /var/www/medigo-kartano/includes/form.inc on line 1181.
Install seems to succeed in any case. However, I can’t get the editor to appear. I created a profile, gave user permissions and revised visibility settings. Still nothing. Any ideas?
March 17th, 2008
9:57 pm
Oopsie, it seems like the editor does work. I don’t know if my desparate refreshes came from cache…
March 18th, 2008
1:14 am
Hi Akie,
Thanks so much for the quick response. It works great now!
March 18th, 2008
2:32 am
Thank you for the instructions! On drupal 6.1, I received the same “invalid argument” error as Karri, but it seems to work just fine anyway. I installed TinyMCE 2.1.3 per your instructions.
March 18th, 2008
7:32 am
Hmm seems to sort of work, however when I submit the page I get a warning that says
“are you sure you want to navigate away from this page? The changes you made will be lost if you navigate away from this page. Press OK to continue or press cancel to stay on current page.”
I press okay to continue and it seems to make the edits in spite of warning dialog…
BTW, I added a input type w/o filters I called RTF, and that was not the issue…
March 18th, 2008
8:37 am
Hi Jeff,
you’re welcome! Glad it works now.
Ben & Karri,
I did notice the “invalid argument” warning, but I don’t know what causes it. Since it didn’t seem to interfere with the editor, I didn’t bother to fix it
ppruett,
I think this is a TinyMCE-issue. Which version of Drupal and TinyMCE are you using?
March 18th, 2008
5:38 pm
nice job!
March 18th, 2008
6:12 pm
Thanks for your help on this! I was toying around with this for a long time - then found this… Thank you!
One question, have you been able to incorporate IMCE?
March 18th, 2008
6:51 pm
Installation per your instructions went well.
I then got to the;
admin => site configuration => tinymce
and had the following warning.
warning: Invalid argument supplied for foreach() in /var/www/drupal/includes/form.inc on line 1181.
I hope this helps you debug.
Thanks for all of your efforts.
March 18th, 2008
7:07 pm
Hmm, a couple of test tables have the columns go vertically as in
row1
col1
col2
col3
row2
col1
col2
col3
March 18th, 2008
7:22 pm
Hey,
Why are you publishing your version over here and not at drupal.org? Uploading it there would be appreciated far more than keeping it on your own website. You’d do the community a great favour.
Bart
March 18th, 2008
7:36 pm
Hi Bart,
I publish it here because it’s much simpler. If anyone feels the need to publish it to drupal.org directly, then please do so! Keep the credits intact though
akie
March 18th, 2008
7:39 pm
Henry,
thank you! I’ll take your comments into consideration for a next version.
akie
March 18th, 2008
8:34 pm
Well, it’s easy to post your code on drupal.org. If you want want to make the effort of registering (which I doubt since you’re a Drupal user) or committing the code to CVS (understandable) the easiest way is to post your code in TineMCE issue so others can take a look at it. That will only require you to make a tarball from your code and attach it to the issue.
March 19th, 2008
4:54 pm
Hi,
the editor works but i don’t get my IMCE browse button…
(IMCE HEAD)
March 19th, 2008
6:31 pm
I’m having the same issue as Henry with the following error:
warning: Invalid argument supplied for foreach() in /var/www/local.sandbox.com/htdocs/drupal-6.1/includes/form.inc on line 1181.
March 19th, 2008
6:35 pm
Sorry, I commented too soon. I wanted to let you know that besides that warning message everything is working beautifully from my quick test. Thanks so much for putting this together, my client with be very happy to have their WYSIWYG.
March 20th, 2008
2:48 am
Hi,
I am also receiving the error message
warning: Invalid argument supplied for foreach() in …../drupal-6.1/includes/form.inc on line 1181.
However, part of TinyMCE works. In other words, I see some buttons and those work, but others such as font select do not show up. I’ve checked to see if they are configured in the admin>tinymce and they are.
I have refreshed, too — no change.
anyhow, I’m at least glad that it is mostly working!
Do you think I should upgrade tinymce to the newest version ? 3.0.5 instead of 2.1.3?
just wondering.
robin
March 20th, 2008
2:56 am
okay, I re-loaded the module and it is now working properly. Sorry, I overlooked that suggestion in the comments.
;-(
Robin
March 20th, 2008
9:07 am
Hi Robin,
Glad to hear it’s working now. Does your fontselect-button work?
I’ll try to fix the warning-message you and others received after installation. If I have time that is, because the site I built this module for has to get finished too
akie
March 20th, 2008
9:09 am
krt,
I did notice that IMCE doesn’t work, but I don’t know what causes it. Perhaps someone can look into it
akie
March 21st, 2008
6:37 am
Hi akie,
thanks for the module. Quick question, If I enable multiple buttons (for advanced users) the buttons push my layout wider rather than break into more rows. Is this something I can fix in the module or I have to look in tinyMCE itself?
Thanks again
March 22nd, 2008
7:58 pm
Hi bastian,
You can fix this in the module. There’s some code in there that rearranges the buttons to a specific order. For example, it makes sure that the B, I and U buttons are next to each other on the first row. Also, it moves buttons to another row if there are too many on one row.
Hope this helps,
akie
March 23rd, 2008
12:20 am
Thank it work for me
Dean
March 23rd, 2008
2:17 pm
hey akie,
love the fact you have released this to everyone for their enjoyment.
i do have a problem and am confident have followed your guide to the letter. To assist with troubleshooting what info should I post here.
Drupal is ver 6.1
Tiny files installed again from your links with folder structure as per guide
thanks again
Paul
March 23rd, 2008
9:04 pm
[…] Il y a un lien vers cette page en anglais. […]
March 25th, 2008
11:35 am
I have sorted my issue with Tinymce not showing up in drupal. Had t odo a 2nd install as 1st install I added multiple modules at the one time and thought that may have been the issue.
Not so, 2nd install using drupal 6 and the supplied tinymce files from this site, I was able to see the tinymce module working in create content.
I started making adjustments to try and make tinymce break and eventually suceeded.
the issue I have noted is in the performance settings of the drupal 6.
If Optimize JavaScript files: is to to enabled, your tinymce module will disappear in create content pages. Once you disable it, it comes back again all good.
Hope this saves someone else time in the future.
kudos again to akie, for his work and efforts in porting this module.
Tama
March 25th, 2008
2:47 pm
Hey!
Thanks! your tutorial saved me a lot of research and test time!
Pedro.
March 26th, 2008
1:35 pm
Ey, ty much for great work, still, would be possible to ask u for IMCE integration?
will be great Ty.
March 28th, 2008
12:29 am
HI,
I just created a new 6.1 site and I’ve installed Tiny MCE as per the directions ( I believe ). I’ve tried it a few times but still I don’t see the text editor when I create content.
I have the same problem with fckeditor.
Any ideas anyone?
Paul G
Toronto
March 28th, 2008
12:34 am
OK, I just got it working. I’m ok now. The problem I believe was that the ‘allow user to enable’ settings was set to true. When I changed it to false I was good to go.
Paul G
April 29th, 2008
7:15 pm
I can not but I can not get it to work either but I can not find this ‘allow user to enable’ settings part please point me in the right direction so that I can see if its set to true or false to see if that makes it work and I can do some whizzewiging
May 3rd, 2008
7:04 pm
I got it to work but the admin pages are showing:
“TinyMCE WYSIWYG Editor Unknown Not supported!”
Recommended version: 6.x-1.1-dev (2008-Apr-01)
Do i download this and update? Thanks!
May 15th, 2008
5:27 pm
I’m getting the same error:
vanilla tinymce “are you sure you want to navigate away from this page? The changes you made will be lost”
but its a TinyMCE problem. I’m using the latest TinyMCE 2.
May 21st, 2008
6:08 pm
[…] After my investigations I believe I have found something which will be the best option for you. akie.nl ? TinyMCE for Drupal 6 Hope that helps . __________________ David Smith DPS Computing http://www.dpscomputing.com […]
July 17th, 2008
7:24 pm
Hi,
I am using drupal 5.7 and I am getting that ‘are you sure you want to navigate…” issue. Is there any fix for this, if it is actually a TinyMCE problem? Any info/help will be appreciated.
Thanks
Shyam
August 27th, 2008
12:11 am
Wow. Thank you. I finally figured out what was wrong with my settings… Optimize JavaScript files was set to enabled. Big thanks to Tama for figuring that one out. Drupal 6.4, TinyMCE 3.1.1.
December 1st, 2008
11:47 pm
Has anyone had any success with drupal 6.6 tinymce 3.2.1.1. All the admin features work but nothing displays in the add content field?
December 6th, 2008
1:34 am
Thx very much.
June 28th, 2010
11:33 am
Hi,
I have problem with this editor.
I have installed it but I have problems with editors, not appears in the creation of the article. :((
Thanks
Floyd
June 28th, 2010
11:41 am
Hi Floyd,
I’m sorry, I no longer maintain this software, and I don’t use Drupal anymore. So I can’t help you out, unfortunately! Good luck! I hope you can figure out what’s wrong.
Best,
Akie
Leave a comment