Would be nice if changes to image fields were somehow synced to what's in the textarea. That way, when an ALT or TITLE attribute is changed in the field area, the user doesn't also have to update it in the textarea.

Comments

ydahi’s picture

I would also appreciate this feature! Currently, alt/title input fields, while saved, do not get retrieved when the user re-visits the node/edit page.

This results in blank inputs for the alternative text and title fields (for the insert image plugin).

The major downside (or perhaps a bug??) to this is that the user must re-enter these values again, otherwise saving the node will result in blank values being stored for the fields (i.e. they lose their content!).

fietserwin’s picture

This feature is especially "needed" in multi lingual sites that use entity translation, because in these sites the workflow is such that you will for sure revisit the entity - to translate it - and now you have to enter the translations in the wysiwyg editor as well as in the image field...

Snater’s picture

I am browsing through old issues while working on the module's D8 version. Because this simply is a great feature, I have implemented that in the D8 version right from the start. However, I do not see that happening for the D7 version. When updating attributes, the editor DOM needs to be retrieved and scanned for the inserted images. This would require individual interfaces to each supported editor.
The tricky part is editors may process and manipulate the DOM as per some editor plugin or some native functionality. It is hardly reliable to just replace a DOM segment with updated DOM compiled by Insert, as reinserting DOM might trigger unintended additional or cascaded manipulation by the editor or one of its plugins. This is a can of worms.

While mentioning the D8 module, even in D8, the current implementation is not perfect. Changing the alt field's content will change the alt attribute value, just as changing the title field changes the title attribute's value. However, this may not be, what is defined by the placeholders in the template. So, even that needs some additional consideration.

With the issue not being touched within nearly three years, I tend to closing this ticket as outdated - it can be reopened any time, if someone in fact decides to put work into that.

Snater’s picture

Status: Active » Closed (outdated)

As per last comment.