I just compared the html code generated by drupalimage plugin for tinymce and "add image" button below the textarea.

Add image method generates following errors:
* image width and height values do not have surrounding quotes
* image tag is not closed properly, instead of > it should have /> ending

Code generated by drupalimage was fine.

CommentFileSizeAuthor
#2 img_assist_14.patch4.05 KBsun

Comments

sun’s picture

Title: HTML syntax errors » HTML of TinyMCE and Img_Assist buttons differ
Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Is this still true in the latest development snapshot for 5.x?

sun’s picture

Assigned: Unassigned » sun
Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new4.05 KB
document.getElementById("finalhtmlcode").innerHTML;

returned the IMG tag without closing slash. I don't know why this happens, but I've committed attached patch that uses a hidden form field's value now.

Anonymous’s picture

Status: Fixed » Closed (fixed)