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.
| Attachment | Size |
|---|---|
| pagebreak.tgz | 2.79 KB |

#1
meh... d.o nuked my patch again
#2
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
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
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
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
#6
Thank's, works perfectly on Wysiwyg 6.x-2.0 and TinyMCE 3.2.4.1!
#7
Tested it with FCKEditor 2.6.5, works fine. Thanks.
#8
This has been sitting around for a while and is RTBC ... when can we expect to see it committed?