Open jackaponte opened 7 years ago
@klonos @jlfranklin can you confirm this bug? Interested in fixing? I don't really use this module so not simple for me to test.
I couldn't get it to show the "insert" button even with only a single HTML field 😞 ...something I must be doing wrong:
I also tried adding a file field and enabling insert for it, adding a second HTML-enabled text field. No joy 😞
@klonos, when editing the file or image fields did you make sure that the "Enable insert button" box under the Insert dropdown is checked? It's easy to miss, and without it being checked the Insert button won't appear.
I'm observing may two different funky behaviors:
If editing a node that includes a Body field with the Summary field enabled, I can use the Insert button to insert a file into either the Summary or the main Body field; however, if I insert a file into the Summary field, there's no coming back, I can't insert any files into the main Body field after that. The opposite is not true.
On a different content type with multiple HTML-enabled, WYSIWYG-enabled fields, the Insert button appears but does nothing at all; the file isn't inserted into any of the HTML-enabled fields.
On still another content type with one HTML-enabled field with no WYSIWYG and a second with WYSIWYG, if I click in the first WYSIWYG disabled field I can insert images into that field; I can't insert any images into the second WYSIWYG enabled field.
Not sure if those details are at all helpful; let me know if I can provide more helpful specific details!
I've experimented with this. The issue is something to do with https://github.com/backdrop-contrib/insert/blob/1.x-1.x/insert.js
If I have a body with summary or a second text field but keep it plain text then insert seems to work.
According to
README.md
, "Insert should work on multiple fields (the last field that was active will receive the file), and with most popular WYSIWYG editors." However, I've found that Insert doesn't work when there's more then one HTML-enabled field on the node add/edit form. No error reports that I've been able to observe!