So after a good deal of experimentation, I still can’t reliably put an image inline when first creating a node or filing a comment. The only times I can reliably do it is when I paste the tag into a textarea after it has failed once already. Submitting the textarea with *hand-entered* HTML fails/succeeds under the same circumstances.
I think I’ve ruled some things out, though:
- the WYSIWYG editor is probably not the source of the problem (having it enabled or not seems to have no predictable effect on the ability to have inline tags stick). When WYSIWYG is turned on, the img_assist dialog won’t even post its tag into the textarea, though.
- the various input types seem to have no predictable effect on stickiness
- the input format corrective filters seem to have no effect (I turned them all off and had the same problem)
- the order of input format corrective filters seems to have no effect either. Plus, it seems clear that some correction happens upon submission and others (like converting the [img_assist] tag into HTML happens upon display.
- the form of the tag select (Filter Tag, HTML Tag) in the img_assist dialog has no effect on stickiness.
One finding that seems significant: if you have a working set of copy/tags in your post, and you go to edit it, and you use img_assist to add an image to the bottom, that tag – and JUST that tag – will be deleted upon submission. This also happens when you add straight HTML, even if the tags are on the “allowed” list.
My current theory is that this is CSS class/ID related. It wouldn’t be surprising that all my mucking about with styles has renamed the textarea reference point substantially enough that the img_assist dialog can’t find the correct textarea when WYSIWIG is on. It may be that when the error result from a given post comes back, the classes and id tags are slightly different, which explains why it’s easier to insert a tag the next time. But why this would result in a form submission deleting just the tag I entered (or any other HTML I just entered) has me mystified. Maybe, Gregory House-style, we’re dealing with two parallel problems here.
I think I’ll continue to experiment with simple hand-entered tags under various circumstances and see what is allowed and what isn’t.