Replace image on Edit creates Error
Permalink Browser Info Environment
When I edit the block and click to replace the image it puts the name of the image in the text area instead of the image area. Workaround is to delete the existing image and then select a new one.
Type: | Discussion |
---|---|
Status: | New |
Ok, should be fixed in version 1.22.
Unfortunately, I had to impose a limitation on the content editor, though: Adding file links via the 'Files' button on the C5 toolbar at the top of the TinyMCE editor is no longer possible. I will try to fix this eventually. A workaround is to add the links to a temporary content block, then copy/paste them into the 'Content Around Image' block.
Unfortunately, I had to impose a limitation on the content editor, though: Adding file links via the 'Files' button on the C5 toolbar at the top of the TinyMCE editor is no longer possible. I will try to fix this eventually. A workaround is to add the links to a temporary content block, then copy/paste them into the 'Content Around Image' block.
Thanks for taking the time to post this bug and workaround! I guess I never tested changing the image in edit mode, but it's definitely something that needs to work correctly.
It's interesting that when you add a *new* block, set the image and content, then change the image, it works just fine -- so the bug is strictly in edit mode.
At this point, I've tracked it down to the complicated javascript/php around editor_init.php and editor_config.php which I blindly copied over from the content block without understanding it at all. I'll try to work on it some more tomorrow...