#1929 - Style parameters for images in WYSIWYG editor disappear on save

This is a spacer post for a website comment topic. The content this topic relates to: #1929 - Style parameters for images in WYSIWYG editor disappear on save
I am closing on the basis you probably enabled the "Convert XHTML to Comcode" option. Comcode won't be supporting those parameters, and we no longer recommend using this option.

If I'm wrong please reply and we can take a look.
Negative. The XHTML to comcode option is disabled upon checking.
Is the content being added by an admin, or a user without the "Subject to a more liberal HTML filter" privilege?
Its being added by an admin
Hello,

The "Steps To Reproduce" here are not currently sufficient.

For example, in "Additional Information" you mentioned it only happens when there's a contents tag, but the steps do not include adding that.

It mentions adding an image. I'm not sure if you mean as an attachment (in which case there'd be a preview step in there too), or via the WYSIWYG image toolbar button.

I suspect steps 3 and 4 are not both required.

I need the steps to tell me precisely what to add and do in what order, step by step, in order to see the problem.
Okay I'll go back a little ways.

1. Edit the default help comcode page that was included with Composr
2. Section out the help document using headers, and use the comcode assistant to create a contents tag at the top of the page. No parameters except 0 for list style.
3. Save the changes.
4. Go back to the help page again and edit, ensuring you use the WYSIWYG editor.
5. Add an image anywhere on the page using the image button on the WYSIWYG editor. The image URL is an image from the same domain.
6. Change the width and height of the image in the dialog box as well, then save.
7. Save the page.
8. Once again, go back into the help page and edit it.
9. Notice the images are no longer resized.
10. If you check the HTML source, the style tag that was once there for the image (created during the image dialog) went missing in the process of saving the page, and therefore the image is no longer resized.
11. Manually add back in the style tag into the image source to define image height and width.
12. Save the page.
13. Go back to editing. The style is missing again.
14. Edit another comcode page on the site that does not have a contents tag.
15. Add an image via. the image button on WYSIWYG.
16. Image exists on same domain. Resize it to a different height and width.
17. Save the page.
18. Edit that same page. The image is still resized and the style tag is still in tact.
Thank you. I'll take another look soon.
The reproduction steps don't work for me, but what I think it is is you have a URL written into the page loosely. v9 has a restriction whereby such URLs have to be interpreted via the Comcode parser, so it forces a Comcode conversion.

In v10 we have already made it so that HTML parsing can detect those URLs.
0 guests and 0 members have recently viewed this.