-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image disappears in Safari when switching to source mode and back #4183
Comments
Could be related to #778. NOTE: When reproducing the problem natively, I have been only able to reproduce this problem in iframe (although in CKEditor, I can reproduce it in iframe as well as divarea) and only when dev-tools were disabled.
|
As a workaround, users could use Inline CKEditor with Source Dialog plugin: or Classic Editor with Source Dialog plugin, but they will need to configure the toolbar to drop classic 'Source' button and replace it with 'Sourcedialog' button. Fortunately one can use, Online Builder (to add Source Dialog to build) as well as toolbar configurator available in each build: https://ckeditor.com/docs/ckeditor4/latest/features/toolbar.html, https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbar |
Note that this bug is not limited to switching back and forth from Source to WYSIWYG. More significantly, images simply won't show on Safari if they are simply pre-loaded in the <textarea> being targeted. Switching back and forth from source is just the fastest way to demonstrate the problem. Steps:
|
@cantonbecker I haven't been able to reproduce your case in inline editor (Classic editor has this problem). Whenever I load content from EI into inline editor, everything works as expected in my case. |
I've reported a bug to WebKit. Basically it seems that when I wasn't able to reproduce it on non-`iframe` based editor. I'm not sure if we can fix it on our side. The only solution I can think of is just forcing the image to reload, if it has 0x0 dimensions. But for editors with many images that can become cumbersome. |
Closed in a5ec67e. |
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
Image is visible in wysiwyg mode
Actual result
Only html is visible in source mode but there is no image in wysiwyg mode
Other details
NOTE: Problem can be reproduced in Classic as well as DivArea editor.
The text was updated successfully, but these errors were encountered: