Ticket #1979 (closed defect: fixed)
Insert Images in TinyMCE in CMS crappy attributes
| Reported by: | dio5 | Owned by: | sminnee |
|---|---|---|---|
| Priority: | medium | Milestone: | 2.2.3* |
| Component: | CMS - TinyMCE editor | Version: | |
| Severity: | medium effort / impact | Keywords: | image, tinymce, alt attributes, css |
| Cc: | Hours: |
Description
When inserting images with tinymce in SS2.2 I'm getting weird results.
Just inserting it from the right 'image' tool setting style to 'left with wrap' description to 'test' gives:
<img class="left" src="assets/Uploads/_resampled/ResizedImage333222-image.jpg" alt="test" title="null" align="null" height="222" hspace="null" vspace="null" width="333" />
- Title: null - hspace vspace align should be possible to leave them out.
I noticed that I could right-click on the image in the content area and get a popup. So I cleared the 'null' values, just erased them. This resulted in vspace and hspace gone, but the class was gone too, and the title had changed from null to undefined...
There should be a way that when inserting you just have:
- a title - an alt - a class (left, ... )
Without everything else.
A possible (crappy) solution for the hspace vspace align - stuff to disappear is: Erase hspace - vspace - align in cms/javascript/tinymce.template.js
That would make the right click - image properties quite unuseful and broken, but leaves out the crap.
It doesn't solve the 'title' issue though.
