Instead of having to handle any number of potential WYSIWYG modules, we should use the '#wysiwyg' property = FALSE for textarea form elements. Any normal and respectful WYSIWYG module should never add an editor to those fields.
| Comment | File | Size | Author |
|---|---|---|---|
| #25 | 715408-pathauto-wysiwyg-warn-v2-D7.patch | 2.93 KB | dave reid |
| #23 | 715408-pathauto-wysiwyg-warn-v2-D7.patch | 2.97 KB | dave reid |
| #14 | pathauto.wysiwyg.14.patch | 1.74 KB | sun |
| #8 | 715408-pathauto-wysiwyg-warn-D6-2.patch | 2.18 KB | dave reid |
| #2 | 715408-pathauto-wysiwyg-warn-D6-2.patch | 2.18 KB | dave reid |
Comments
Comment #1
dave reidPatch for 7.x-1.x.
Comment #2
dave reidPatches for 6.x-2.x and 6.x-1.x as well.
Comment #3
greggles6.x-1.x is missing the removal of the warning function. Do most of these modules actually respect the "#wysiwyg false" attribute?
Also, I'm fine if we stop maintaining the 6.x-2.x branch. We should make 7.x the home for the fun stuff and 6.x-1.x the stable thing.
Comment #4
Freso commentedI think we should rather get a 6.x-2.0 out the door and let 6.x-1.x slowly die out. Regardless of new features in 7.x-1.x, 6.x-2.x will still smooth the transition from 6.x-1.x to 7.x-1.x.
Also, I like this issue. :)
Comment #5
gregglesHow does it smooth the transition? For coders or for end users?
Comment #6
dave reidThe 6.x-1.x doesn't actually have a warning function, so its really not much of a change there. greggles and I talked on IRC and I think he's fine keeping 6.x-2.x *just* as a backport of 7.x-1.x. I'll take charge of making sure they're in sync so he doesn't have to worry about it.
Comment #7
dave reidDoing research on all the proposed editors and their support for #wysiwyg
bueditor - #327184: Support #wysiwyg FAPI attribute
ckeditor - Handles #wysiwyg property
fckeditor - Handles #wysiwyg property (#310988: Exclude by default: edit-feedburner-useragents)
htmlarea - Does not have D6 release or branch.
htmlbox - #716096: Support the #wysiwyg form element property for manual exclusion
tinymce - Dead project, replaced with WYSIWYG
whizzywig - #716128: Support the #wysiwyg form element property for manual exclusion
widgeditor
wymeditor - Does not have D6 release or branch.
wysiwyg - Going to be re-added soon (via sun)
xstandard
yui_editor - #320794: Does this module support disabling edtior via the #wysiwyg FAPI attribute?
Comment #8
dave reidRevised patch for 6.x-2.x, had #wysiwyg spelled wrong.
Comment #9
dave reidDoes this seem good enough to commit then?
Comment #11
dave reidI committed #2 to 6.x-1.x since it contained no string or real functional changes.
Comment #12
sunThe proper solution for this issue is to
1) kill this entire warning, do NOT implement the #wysiwyg property
2) won't fix any bug report/support request against Pathauto regarding editors
The presumption is wrong: A proper and respectful editor integration will not hi-jack Pathauto's form at all. Period.
While marking issues won't fix, you can point users to Wysiwyg module (and perhaps others, if they are equally smart).
Comment #13
sun[04:41] tha_sun: I feel totally guilty for introducing that #wysiwyg property idea in the first place. Shit happens to ill ideas. All over again
[04:42] tha_sun: davereid: their fault
[04:43] tha_sun: No one should support a wrong concept
[04:43] Ok, what is wrong with it?
[04:43] tha_sun: Client-side editors can only work on input fields for filtered content
[04:44] tha_sun: It makes zero sense to bootstrap an editor on any form element that doesn't support HTML
[04:45] tha_sun: So Pathauto is babysitting broken code
[04:46] tha_sun: If people need to use those other editor integration modules, then those other editor integration modules can happily copy+paste Wysiwyg's code
Comment #14
sunAt your service.
Comment #15
gregglesYes, exactly. And, either we babysit in code or we babysit in the issue queue. It is a major pain to babysit the issue queue so I put this into the code. Even so we still get bug reports about it in the queue. So, #14 is a won't fix IMO.
Comment #16
dave reidWhat if we just used #wysiwyg => FALSE, and added small form validation to check if strip_tags('ignored,words') == 'ignored,words'.
Comment #17
gregglesI like the strip_tags idea. And then we would show the message if the strip_tags version differs? Seems great to me.
Comment #18
sun-1 That strip_tags() idea won't work, and I'm not entirely sure where those ignored words would be displayed. You don't want to confuse users more by putting those words into the regular configuration form elements, right? A hidden/invisible/disabled textarea will usually not trigger and load an editor.
Instead of increasing the superfluous code to babysit broken modules, it should be decreased.
If you absolutely want to, then you can surely add #wysiwyg => FALSE and just pray that every other module out there properly supports it.
Comment #20
sunDouble post?
You could however, try an insane validator applied as #element_validate to all fields:
However, still --- overall, I don't see why Pathauto should special-case all of this. There are 4,000+ other modules out there. Do we really want to add this babysitting cruft to every module out there? No. And so shouldn't Pathauto.
Comment #21
Freso commentedFWIW, I'm leaning towards the approach in #14, followed up by "won't fix"'es to issues, complaining about them using a bad WYSIWYG module. Especially now that Dave is so active in the queue as well - between the 3+ of us, the WYSIWYG issues that would crop up, shouldn't be too taxing.
Comment #22
greggles@sun - the idea you propose in #20 is exactly in line with what Dave was proposing.
I think we should do #14 and #20 (aka #16).
Comment #23
dave reidHere's the patch version.
Comment #24
Freso commentedJust being pedantic, but
should probably be its own patch. :)
Comment #25
dave reidMeh, fine with me. :)
Comment #26
gregglesLooks great to me.
Comment #27
dave reidCommitted to CVS!
http://drupal.org/cvs?commit=377170