Implement hook_wysiwyg_plugin()

sun - June 10, 2008 - 18:31
Project:Paging
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:sun
Status:reviewed & tested by the community
Description

Sorry for posting an compressed archive, but it's required in this case to ensure the proper placement of files inside of Paging module.

Attached patch along with the archive implements hook_wysiwyg_plugin() in Paging module. For now, this provides a Wysiwyg Editor (TinyMCE) plugin button to insert <--pagebreak--> tags into a content - without needing to copy or alter any files in the filesystem. By enabling Wysiwyg Editor and Paging module, the plugin is automatically loaded.

AttachmentSize
pagebreak.tgz2.79 KB

#1

sun - June 10, 2008 - 18:31

meh... d.o nuked my patch again

AttachmentSize
paging-DRUPAL-5.wysiwyg-plugin.patch 918 bytes

#2

Gurpartap Singh - January 23, 2009 - 21:27
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:needs review» needs work

New features for Drupal 6 only. I would be glad to include this in the next beta if you can update with required changes!

#3

bonobo - June 27, 2009 - 07:46

This, in connection with #503732: Page title compatiblity with WYSIWYG API, would make for a killer combination of features.

Very flexible, and very easy to use for non-technical users.

While this can be approximated by using the <hr /> button with text editors, this approach is cleaner.

#4

jumpfightgo@gro... - July 1, 2009 - 19:34

This is brilliant. Although I don't see a way for the plugin to know which break tag to use. If admin sets the break tag as or or something, then the plugin won't work... right?

#5

ronan - July 7, 2009 - 22:48
Status:needs work» needs review

Here is an rewrite of this patch which works with Paging 6, WYSIWYG 2 and is tested with TinyMCE 3.

The tarball should be expanded into the Paging module directory.

Hope this helps

AttachmentSize
pagebreak.tar_.gz 2.18 KB
paging-DRUPAL-6.wysiwyg-2-plugin.patch 952 bytes

#6

Murz - August 5, 2009 - 08:17
Status:needs review» reviewed & tested by the community

Thank's, works perfectly on Wysiwyg 6.x-2.0 and TinyMCE 3.2.4.1!

#7

maebelater - October 16, 2009 - 07:13

Tested it with FCKEditor 2.6.5, works fine. Thanks.

#8

cyberswat - October 23, 2009 - 22:46

This has been sitting around for a while and is RTBC ... when can we expect to see it committed?

 
 

Drupal is a registered trademark of Dries Buytaert.