I have installed WYSIWYG API and downloaded the jquery version of TinyMCE-3.3.92. I have installed that according to the instructions provided by the WYSIWYG API. I have also setup the text formats in Drupal.

Now, whenever I create content in TinyMCE with either the Full or Filtered HTML setting, it doesn't create WYSIWYG html content.

For example if I insert text and format it as paragraph, then insert a left aligned image what I end up with is :

[img]/sites/default/files/color/bartik-2c2017b9/logo.png[/img]

"Never rez until the wipe is complete" is generally the best plan, but there are very specific, limited occasions when using the Soulstone as a combat rez is an acceptable tactic. When in doubt, wait until combat is over to use the soulstone.

This is exactly the same as I get in the HTML source view (notice, no alignment setting has been added either).

I'm using Firefox 3.6.10.

I'm sure I'm not supposed to have to manually enter HTML tags in the source view, IMHO that would completely invalidate having the modes mentioned.

Thanks In Advance.

P.S. When I try the examples on the TinyMCE web site it works fine. It has to be some manual configuration needs doing for it to work with Drupal.

Comments

Anonymous’s picture

Have you checked your filter settings?: /admin/settings/filters

You may need to re-order, add, or remove some of the filters to get the desired effect.

Eolmornedhel’s picture

Thanks for responding.

I have gone into Administration » Configuration » Content authoring » Text formats » Full HTML

All roles are selected, no filters enabled. To my mind that should mean all html tags are acceptable and TinyMCE should produce fully html compliant WYSIWYG output.

Not sure where to go from here as I can't find anything in the documentation that helps.

Thanks again.

Anonymous’s picture

Sorry, my last comment was for D6. I didn't catch the "Bartik" reference before.

I can confirm that the non-jquery version of tinymce works flawlessly at least as far as the requirements you outlined.

The jquery version worked only once, but it spit back the following error:
Notice: Undefined property: Media::$uri in Media->__construct() (line 284 of /Applications/MAMP/htdocs/seven/sites/all/modules/media/media.types.inc).

Then I tried again but got a blank screen and then on loading the home page got two errors in addition to the previous error:
# Notice: Undefined index: field_name in field_attach_load() (line 656 of /Applications/MAMP/htdocs/seven/modules/field/field.attach.inc).
# Notice: Undefined index: field_id in field_attach_load() (line 657 of /Applications/MAMP/htdocs/seven/modules/field/field.attach.inc).

Also, this issue in the 7.x WYSIWYG API queue is informative: http://drupal.org/node/900220

My hunch is that the jquery version of tinymce hasn't been ported yet. Is there any reason to not use the non-jquery version?

Eolmornedhel’s picture

Thanks for this, I thought I'd tried the non-jquery version also (but maybe I'm confused), there's no reason not to use it, I only used this version for the extra functionality I assumed it would include.

I'll have a look at the post you have mentioned and install the non-jq version of Tinymce and let you know what happens.

Thanks again.

Eolmornedhel’s picture

Can I confirm the version of tinymce you have working is v3.3.92? I have installed/configured this and I still have the same problem. I tried installing the Drupal for Firebug module but then I just got a blank page when adding/editing content.

I've also just noticed the Windows Application event log has recorded a warning each time I use tinymce:

The description for Event ID 3 from source PHP-5.3.2 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

That isn't exactly informative but may point to something missing in my PHP install or perhaps I need a different PHP version?

Have now installed PHP 5.2.14 and still get same result and same warning. Now getting confused, I don't know if it's a missing PHP module or something.

Eolmornedhel’s picture

Now gone back to tinymce v3.2.7 and still same problem. Perhaps I should try a standalone install of tinymce?

Anonymous’s picture

Actually I just switched to a fresh install of D7-beta1 after realizing I was still on Alpha.
WYSIWYG 7.x-2.x-dev
TinyMCE 3.3.9.2

Everything's still working without a hitch.

Also:
PHP 5.2.13
Apache 2.0.63
MySQL 5.1.44

Eolmornedhel’s picture

Thanks for going to all this trouble, it's very much appreciated. I'm really confused now. The differences between my setup and yours are as follows:

PHP 5.2.14
Apache 2.2.15
MySQL 5.1.51
I'm also using imce-7.x-1.0-beta1, imce_wysiwyg-7.x-1.x-dev.

I really hope I've not missed something basic in the configuration of tinymce and filter settings, I don't think so as we've been through that already.

I can't be missing any PHP modules as the drupal install would have flagged those, nor can I be missing any Apache modules for the same reason.

I might try installing the exact PHP and Apache versions you have, I think I can count MySQL out of the equation.

I guess I could try removing all third party modules and start again with just tinymce and WYSIWYG.

Thanks again.

Eolmornedhel’s picture

Since I had significant Apache issues after downgrading I have gone back to the latest Apache2 and PHP releases and installed CKEditor which actually works, but I don't like it.

I don't know if I've already mentioned that I have the same problem on a Ubuntu 10.04 PC, with the same software versions.

Eolmornedhel’s picture

Even if I manually enter code into the html source view, for example <img src="http://office.iris.ac:8080/Drupal/sites/default/files/styles/square_thumbnail/public/Hazard2-1280.jpg"</img> TinyMCE then converts that into [img]http://office.iris.ac:8080/Drupal/sites/default/files/styles/square_thumbnail/public/Hazard2-1280.jpg[/img], which, if I'm not mistaken is BBCode format.

I haven't configured anywhere that it should do this. I'm getting pretty cheesed off by now, TinyMCE is the only WYSIWYG editor I like the look of that is OK for use with Drupal 7 (I'd use YUI Editor if they'd release an update).

I had it installed as a Joomla plugin when I was evaluating that, and it worked fine. I've got to admit I don't know now whether the issue is with TinyMCE, WYSIWYG-API or Drupal itself.

Thanks

Anonymous’s picture

Think of it as exploration, and as building familiarity with a system that will eventually deliver the plug-and-play you seek.

Have you tried a fresh minimalist install with just WYSIWYG, TinyMCE, and D7? If you get that working on some server configuration, you could add in other contrib modules one by one to potentially discover breaking points (which should then be reported).

Eolmornedhel’s picture

Good thinking I'll give that a go over the weekend. I'm convinced it's something to do with a module or 2 I have installed because the problems I'm having (judging by the lack of other similar issues with TinyMCE), can't be down to that module itself.

Will let you know on Monday how I get on.

Thanks again.

Eolmornedhel’s picture

OK, I have done a "standard" install of D7 + WYSIWYG API + TinyMCE + IMCE + IMCE-WYSIWYG Bridge.

And TBH, I think I've been a bit of a block-head. In the WYSIWYG Profile settings under Buttons and Plugins I had enabled BBCode. I think what I've been misunderstanding is this...the entries in black text are buttons and the blue text ones are plugins. Turning off the BBCode plugin now enables TinyMCE to produce properly formatted html.

Thanks for your patience....I can see I've still got a long way to go to learn Drupal ;-)