Deprecated Attributes

Is there any way modernise the Matrix image dialog? Not only is it extremely confusing to use, but it adds a bunch of deprecated attributes to images which is invalidating my beeeautiful HTML4 site.


Particularly frustrating is the align attribute which I'd love to be able to implement with CSS, but apparently can't. I'm trying to make this site so that regular human beings can update it, but I fear I'm going to have to disable the "insert image" dialog in order to do it.



Edit: This is mostly just a post of me being frustrated with this awful piece of un-functionality, but I'm genuinely curious as to whether anything can be done about it. Has anyone worked around it?



Applying the same via css requires wrapping elements which could present a big problem trying to manage in the current wysiwyg. Changing this interface has been brought up many times before since we are also consider site validation very important, but I have yet to hear of a solution that won't result in just removing functionality provided by deprecated attributes, or dropping in-line styles that aren't going to behave cross browser. The issue here isn't really specific to Matrix, but more that Matrix lets you use the deprecated attribute to achieve something that normally requires CSS and a wrapping element.


The short term solution would be to educate editors not to use this function (just because the option is there doesn't mean using it is ideal), but rather use CSS styles. But like you indicated HTML knowledge isn't inherent to 'regular human beings'.



I wish I had a better answer, perhaps another staff member has something else to add.

We have removed elements of the insert link dialog in our EES setup.


This is how our setup works:



  • insert link dialog button is hijacked (in fact we replace the entire WYSIWYG client side)
    [*]inside the new dialog we load in /__fudge/wysiwyg/plugins/matrix_insert_link/insert_link.php?new_window_options
    [*]using javascript we hide various parts of the form which are not wanted.


I don't know if keeping the default WYSIWYG complicates what happens when you submit the dialog. It probably does.

Steve