#2139 - Adding images to a Wiki+ issue
| Identifier | #2139 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Adding images to a Wiki+ issue |
| Status | Closed (no changes needed) |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | Hi,
On vwgolfmk1.org.uk we have a custom image upload system developed by Composr. If you add an image to a Wiki page in wysiwyg the image appears but it is not entered as an attachment so you do not get the advantages of the responsive display of the image. If you add a image in none wysiwyg mode then it gets added as a responsive attachment properly. http://vwgolfmk1.org.uk/cms/index.php?page=cms_cedi&type=edit_page&id=154&redirect=http%3A%2F%2Fvwgolfmk1.org.uk%2Findex.php%3Fpage%3Dcedi%26type%3Dmisc%26id%3D154%26redirected%3D1 In non wysiwyg mode the image entries look like this: [img param="569d584df3e2f-2.jpg"]http://res.cloudinary.com/mk1-golf-owners-club/image/upload/c_limit,w_1024/v1453188775/uploads/attachments/569de6a66be54.jpg[/img] [attachment_safe description="569d584fdd167.jpg" thumb="0" type="inline"]10553[/attachment_safe] Any idea why ? Cheers Ade |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
"In wysiwyg mode the image entries look like this:
[img param="569d584df3e2f-2.jpg"]http://res.cloudinary.com/mk1-golf-owners-club/image/upload/c_limit,w_1024/v1453188775/uploads/attachments/569de6a66be54.jpg[/img] [^]
In non wysiwyg mode the image entries look like this:
[attachment_safe description="569d584fdd167.jpg" thumb="0" type="inline"]10553[/attachment_safe]"
Because you're getting the 'img' tag in WYSIWYG, and the 'attachment' tag in non-WYSIWYG.
Or am I wrong and somehow within WYSIWYG you get both an 'img' and 'attachment' tag?
Also I'm a bit confused as we don't have any "responsive attachments" feature specifically. Possibly we have a max-width rule in the CSS or something like that.
This sounds like correct behaviour. If you add an attachment in WYSIWYG, it just is edited within the WYSIWYG (i.e. Composr allows it to convert to an 'img' tag). However, if WYSIWYG is off it just stores it as a pure attachment.