Update TinyMCE for 6.x and clean up any code that is not to the Drupal specification

Beau Gunderson - October 3, 2007 - 06:51
Project:TinyMCE WYSIWYG Editor
Version:6.x-1.1-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I wanted to use TinyMCE in a 6.x installation and so started creating a patch to do so.

The patch is attached and gets us almost all of the way there--the module installs and you can add and edit profiles. You may have to 'touch tinymce.schema' in your modules/tinymce directory to get the patch to apply cleanly as this file did not exist in the previous version. This is a patch against 5.x-1.9.

It does not, however, currently show up on textareas on the node/user/etc. edit pages yet. I may have time in the next week to investigate further.

I used the "Coder" module to ensure that the code was in compliance with the Drupal spec.

AttachmentSize
tinymce.10.2.patch15.27 KB

#1

Murz - December 3, 2007 - 12:10

subscribed

#2

rkendall - December 18, 2007 - 15:49

subscribe

#3

kreynen - December 18, 2007 - 17:01

With Drupal 6 RC1 coming this week, getting TinyMCE updated for 6 is a top priority... unfortunately one of many. I'm starting a thread about this at http://groups.drupal.org/tinymce-development

#4

bohemicus - December 21, 2007 - 01:21

subscribe

#5

IcyAndy - January 8, 2008 - 19:40

subscribe

#6

domasj - January 13, 2008 - 10:15

I also tried to do some porting. The results:

  • The admnistration interface seems to be working well and it is separated from the rest of the module.
  • E_ALL errors are handled the ugliest way, but it works.

However, there are some problems.

  • The first one is that the actual textarea transformation doesn't work but it is at least initiated.
  • The second issue is about new menu system in Drupal 6 which should be used throught the module to reduce overall complexity.
AttachmentSize
tinymce.tar_.gz12.93 KB

#7

intoxination - January 17, 2008 - 01:41

subscribe

#8

charles_elwood - February 10, 2008 - 01:44

subscribe

#9

kpaul - February 16, 2008 - 03:42

bumping with the recent release of D6...

I have a little time and could do testing...

#10

Steve Dondley - February 17, 2008 - 05:32

So we have two patches. Do we apply the first one and then the second? Someone needs to coordinate these efforts.

#11

Steve Dondley - February 17, 2008 - 06:04

Also, I just found a bug in the tarball that was uploaded. So where is the best way to submit this patch?

I think whoever is in charge of this module needs to start a drupal6 branch and post it here so it can be worked on collaboratively.

#12

modoq - February 17, 2008 - 22:21

subscribe

#13

kckern - February 18, 2008 - 17:26

How do I apply the patch without command line access?

#14

kees@qrios - February 19, 2008 - 16:10

subscribing

#15

forschi - February 21, 2008 - 10:38
Priority:normal» critical

#16

simontol - February 22, 2008 - 16:45

That's the reason stopping me from upgrade to 6.x

#17

ekendra - February 23, 2008 - 09:36

subscribing

#18

fm - February 26, 2008 - 07:20

subscribed.

#19

ilbeppe - February 26, 2008 - 19:13

subscribed

#20

gellpak - February 27, 2008 - 17:48

subscribe

#21

Wutime - February 27, 2008 - 23:34

Subscribed.

#22

Devis - February 28, 2008 - 14:01

subscribe

#23

sdub - February 28, 2008 - 15:19

subscribe

#24

jerrevds - February 29, 2008 - 16:13

is there already a view about the date that the module will be ported to drupal 6.1?

#25

Boris Mann - March 2, 2008 - 15:17
Priority:critical» normal

Aaargh on all the subscribes :P

Please do no set to critical -- this is not a bug, it's a feature. We have a couple of patches, please test and provide feedback.

I see multiple maintainers listed but looks like folks are out of time. I will have my team do some testing and see if we have resources to work on a port.

#26

wildtang3nt - March 6, 2008 - 04:33

subscribe

#27

dropcube - March 6, 2008 - 22:12

subscribing

#28

anuradha - March 8, 2008 - 16:31

subscribe

Thanks Boris for looking into the further development of the patches.

#29

mikeryan - March 8, 2008 - 23:06

Subscribe

#30

-hgn- - March 12, 2008 - 13:43

Very important update

bump

#31

piero.giobbi - March 12, 2008 - 14:27

Hi.

how do you apply the patch?

thx

#32

dropcube - March 12, 2008 - 17:06

how do you apply the patch?

Read about on the handbook pages http://drupal.org/patch/apply

#33

janeri - March 13, 2008 - 13:29

Subscribe

#34

akie - March 16, 2008 - 14:22

Hi. I've ported TinyMCE to Drupal 6. It took me over two days to fix it, but it does work now.

You can download it at http://akie.nl/2008/03/16/tinymce-for-drupal-6/

Basic functionality works for both TinyMCE 2 and TinyMCE 3. TinyMCE 2 is preferred though, since the DrupalBreak-button doesn't work on TinyMCE 3. Can someone please take a look at that? If we fix that, we'll finally have a decent editor for Drupal 6.

Anyway, good luck with this. Please leave a comment at the link above if you like it or dislike it.

Hope this helps,
Akie

#35

ekendra - March 18, 2008 - 06:53

bump-a-luff-a-gus-!!

#36

klamping - March 19, 2008 - 17:48

Here are my results after a quick test of Akie's code (I tested this in Drupal 6.1 using TinyMCE 2.1.3):

- Getting this warning message on the TinyMCE error page when creating a new profile (doesn't occur when editing a profile).
warning: Invalid argument supplied for foreach() in /var/www/local.sandbox.com/htdocs/drupal-6.1/includes/form.inc on line 1181.

- The default state option doesn't seem to have any weight on whether TinyMCE is run. Everytime I create a new page, TinyMCE is shown without an option to disable it.

- Other than those two issues, everything I was able to test in the matter of 15 minutes has worked fine and I will most likely use this for one of my clients (they won't need to disable the WYSIWYG).

Thanks for putting this together and hope those issues can get figured out soon!

#37

Grugnog2 - March 21, 2008 - 01:19

Subscribe

#38

Ognyan Kulev - March 21, 2008 - 14:21

subscribe

#39

pht3k - March 25, 2008 - 02:08

subscribing

#40

alaa - March 26, 2008 - 16:41

here is another patch this one works fine but requires some cleanup to split code into multiple files and either remove or work with drupal's teaser splitter.

IMO it needs a rewrite, the code is a mess.

AttachmentSize
tinymce.patch9.72 KB

#41

xcorex - March 28, 2008 - 06:58

subscribing

#42

izmeez - March 30, 2008 - 06:47

I have installed TinyMCE for Drupal 6.x as described by Akie.

After enabling the module and going to Administer>Site configuration>TinyMCE>Add new profile, I get the message:

warning: Invalid argument supplied for foreach() in \drupal\includes\form.inc on line 1181.

which has been described before by klamping.

Is this new patch file from alaa for that release or is this another patch file?

Should I apply this patch or just go ahead and use the release as it is?

Thanks for the help.

Izzy

#43

alaa - March 30, 2008 - 10:00

izmeez the patch I posted on #40 is a separate patch and has nothing to do with Akie's module.

#44

yogi_sydbma - March 31, 2008 - 07:12
Status:patch (code needs work)» won't fix

it wont work for me.

Including the project notes etc...

its there under profiles but it wont show.. it tells me that the tiectory is missing.. but its there.

#45

John_0 - March 31, 2008 - 17:07
Assigned to:Anonymous» John_0

subscribe

#46

kreynen - March 31, 2008 - 19:55
Version:HEAD» 6.x-1.1-dev
Assigned to:John_0» Anonymous
Status:won't fix» closed

I've created a release from Akie's updates and installed the release as a demo at http://tinymce-dev.sidewalktheory.com/. Please submit new issues and patches for the 6.x version. Closing this thread.

#47

izmeez - April 1, 2008 - 17:33

alaa thanks for the clarification. I came to that realization my self as I saw the link for the akie release also has discussion further down on that web page.

Izzy

 
 

Drupal is a registered trademark of Dries Buytaert.