Active
Project:
Wysiwyg
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2010 at 22:08 UTC
Updated:
2 Jun 2011 at 00:33 UTC
Jump to comment: Most recent
Apparently CKeditor has the ability to manage tab behavior, such that tab can be configured to act like it would in a word processor (next cell in a table, add a "tab" in a paragraph, etc) rather than focusing on the next field in the current Drupal form / next link. Does WYSIWYG provide the ability to manage this? If not, does anyone know how to configure it manually?
Comments
Comment #1
twodIf I read the beta release announcement correctly, this is implemented as a new plugin bundled with the editor.
Wysiwyg module currently has no meta information about this plugin so it can not be enabled via "Buttons and plugins". However, one can also provide this info using hook_wysiwyg_plugin from any module. Docs are in wysiwyg.api.php and scattered throughout the issue queue.
I'll change this to a feature request about adding the metadata about the plugin (and any other new ones) to ckeditor.inc, if you don't mind. If someone doesn't beat me to it, I'll post a patch as soon as I get some spare time.
Comment #2
obrienmd commentedDon't mind at all, thanks much for the information! Looking forward to your patch...
Comment #3
obrienmd commentedTwoD - Are you still planning on posting a patch for this?
Comment #4
twodPlanning, yes, but other work takes up too much of my time right now. It's not complicated to make this plugin selectable under "Buttons and Plugins" though. Just look at the bottom of ckeditor.inc and use the existing plugin/button metadata as a guide. But creating a GUI to really manage any settings it provides needs to wait for the "Allow to configure advanced settings"-issue. hook_wysiwyg_editor_settings_alter() will have to do until then.
Comment #5
Anonymous (not verified) commentedSubscribing. I'm very interested in this feature.
Thanks!
Comment #6
obrienmd commentedI'll try to hack something together this week, no promises though :)
Comment #7
obrienmd commentedArgh, still fighting this... I can get it to move to the next table cell (or last w/ shift+tab), but getting it to indent text is not working - when outside the table, it just changes focus to next field... Probably won't have time to work on this now for a few weeks.
Comment #8
obrienmd commentedI never could figure this out, anyone else take a crack at this?
Comment #9
obrienmd commentedEDIT: Never mind, it's just because it's a default plugin, and in ckeditor.js by default...
Here's an oddity - in the standard CKEditor 3.6 tar, there's no 'tab' directory under plugins, you have to head to the 'source' directory and copy 'tab' from there... However, I still have no clue on how to integrate it into Drupal WYSIWYG API.