I can't find how to activate the spellchecker and/or the line break features in TinyMCE. I have TinyMCE version 3.2.1.1 installed. What folder should the plugin files be in? And how are they activated? I don't see a checkbox. Thanks in advance.

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Are those internal plugins that ship with the TinyMCE default package?

spiffyd’s picture

Status: Postponed (maintainer needs more info) » Fixed

Didn't see this thread but I have the solution. Looks like all my experimentation with the deprecated TinyMCE module paid off! I simply ported all my tweaks to the plugins there to this module and they all worked like a charm. Check this thread out for the code and working plugins...

http://drupal.org/node/350480#comment-1177241

spiffyd’s picture

Assigned: Unassigned » spiffyd
Category: support » task
Priority: Minor » Critical

I'll be happy to follow up on this issue as I use these break, spellcheck, (and media) plugins ALL THE TIME.

sun’s picture

Assigned: spiffyd » Unassigned
Category: task » support
Priority: Critical » Normal
Status: Fixed » Closed (duplicate)

Your monologue indicates that those plugins/buttons are internal ones, so this is effectively a duplicate of #328252: Handle compatibility of internal plugins via plugin API.

Please do not follow-up further on this issue. Thanks.

brisath’s picture

Title: How to add Line Break and Spellcheck in TinyMCE ? » Plugin directory

Regarding #1, the Spellcheck and Line Break plugins appear to be in place from the downloaded package at tinymce/jscripts/tiny_mce/plugins/

spiffyd’s picture

Yes those plugins ship with the internal package, but for some reason, they may not work with this module. I've had the same problem when using the TinyMCE module as well. The solution to the problem requires modifications of the plugins script. These two plugins I've attached in the link in #2 are actually plugins I've dug up from deprecated TinyMCE project threads awhile back and are modified from the internal version.

So in short - internal spellcheck and drupal break plugins didn't work for me. These modified ones did work.

This issue is NOT necessarily a duplicate of the #328252 thread.

brisath’s picture

Thanks. I'll try out those 2 plugin directories you provided. Can you verify how the drupalbreak directory is installed and activated in WYSIWYG.

spiffyd’s picture

How to install drupalbreak...

1. Overwrite the internal drupalbreak plugin directory with my "working" version.
2. Open tinymce.inc and add this array to the code:

'drupalbreak' => array(
  'path' => $editor['library path'] .'/plugins/drupalbreak',
  'buttons' => array('drupalbreak' => t('Drupal teaser break'), 'drupalpagebreak' => t('Drupal page break')),
  'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/drupalbreak',
  'internal' => TRUE,
  'load' => TRUE,
),

3. Open TinyMCE settings in WYSIWYG, two Drupalbreak options should show - one for page break, one for teaser break. Select one or both.

4. The plugin should now show up on the toolbar!

brisath’s picture

Thanks for all the help. Works great now.

Just in case anyone else wants to see it here, the code I used for spellcheck in tinymce.inc was:

'spellchecker' => array(
'path' => $editor['library path'] .'/plugins/spellchecker',
'buttons' => array('spellchecker' => t('spellchecker')),
'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker',
'internal' => TRUE,
'load' => TRUE,
),
iva2k’s picture

Just to let people know - I've created Wysiwyg SpellCheck module that enables TinyMCE spellchecker plugin. It may be just what you need.