drupalbreak

fred0 - May 17, 2008 - 22:29
Project:Tiny Tiny MCE
Version:6.x-1.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Steve Lockwood
Status:closed
Description

It would be great to get a teaser break function al la the drupalbreak plugin that inserts the tag for blog entries. The existing drupalbreak plugin (from the other TinyMCE module) does not seem to work with TinyTinyMCE.

In the meantime, I edited my pagebreak plugin to do it (by changing to in the 2 .js files for the plugin).

#1

fred0 - May 17, 2008 - 22:31

Duh.. I'd used the tags in my last post's parenthetical and the site interpreted them. So, what I changed was:

--pagebreak-- to --break-- in the 2 .js files (I've left off the < and > to avoid the interpretation).

#2

fred0 - May 17, 2008 - 23:17

Eh, nevermind, that doesn't work either. See bug report here http://drupal.org/node/259737

#3

Steve Lockwood - May 19, 2008 - 10:26

Hi fred0,

I can certainly see the problem (which seems to also be a problem for the tinymce module), namely that the clever javascript in Drupal 6 does not take account of tinymce.

My proposal is to do 2 things:
- Disable Drupal6's javascript which creates the "Split summary at cursor" button and also splits a page when you load it. (I've no idea how to do this so that will be tricky.)
- Bundle a complete implementation of TinyMCE in with my module. This makes it a bigger download but should simplify setup. The reason for doing this is that I can modify the TinyMCE code so that the pagebreak button inserts a Drupal break (<--break-->) in the same way that you have done.

This should give the user a really neat way of specifying where the teaser break goes - just click on the button in the editor.

Do you think this would be a good solution? I'm interested in your views.

Steve

#4

Jkello - May 22, 2008 - 17:35

What about option 2 but instead of bundling a complete implementation of TinyMce, is it possible to just include the code which allows the entering of <--break-->?

#5

Steve Lockwood - May 22, 2008 - 20:52

Hi jk,

I've done just that - the latest development snapshop will contain:
- modified portions of TinyMCE
- code to disable Drupal's teaser break feature

Steve

#6

Jkello - May 23, 2008 - 06:17

Thanks!

#7

Steve Lockwood - May 23, 2008 - 07:02
Assigned to:Anonymous» Steve Lockwood
Status:active» fixed

#8

Jkello - May 25, 2008 - 04:17

Just checked by installing it, it replaces some of the files in the moxie tinymce package is that right? Is it supposed to be like that?

If possible, also help to release it as an official version if it is ready. Thanks!

#9

Steve Lockwood - May 27, 2008 - 10:10

Hi JK

Yes - the installation is meant to override part of Moxiecode's package. I don't particularly like this approach as it makes the installation more complicated (the very thing I was trying to avoid). That's why I hesitated to make an official release.

I still think my preference is to bundle tinytinymce together with a modified version of Moxiecode's software. That would make it a very simple installation package (just copy all the files in one go, set the permissions and it's working!)

Steve

#10

Jkello - May 27, 2008 - 19:06

Hmm... Think it is a good idea to bundle tinytinymce together with Moxiecode software because it would save the user the hassle of downloading it.

#11

Steve Lockwood - May 28, 2008 - 18:56

The latest release of the module now includes a full version of tinymce, with a small patch to handle Drupal breaks

#12

Steve Lockwood - June 1, 2008 - 14:44
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.