-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4206 from ckeditor/t/4183
Fix incorrect images dimensions in Safari
- Loading branch information
Showing
4 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<p>Note, this test uses a real Cloud Service connection, so you might want to be on-line 😉.</p> | ||
|
||
<h2>Classic editor</h2> | ||
<div id="classic"> | ||
<figure class="easyimage easyimage-full"> | ||
<img alt="" sizes="100vw" src="../_assets/logo.png" srcset="../_assets/logo.png 350w" width="350" /> | ||
</figure> | ||
</div> | ||
|
||
<h2>Divarea editor</h2> | ||
<div id="divarea"> | ||
<figure class="easyimage easyimage-full"> | ||
<img alt="" sizes="100vw" src="../_assets/logo.png" srcset="../_assets/logo.png 350w" width="350" /> | ||
</figure> | ||
</div> | ||
|
||
<script> | ||
if ( !CKEDITOR.env.safari ) { | ||
bender.ignore(); | ||
} | ||
|
||
var commonConfig = { | ||
cloudServices_uploadUrl: easyImageTools.CLOUD_SERVICES_UPLOAD_GATEWAY, | ||
cloudServices_tokenUrl: easyImageTools.CLOUD_SERVICES_TOKEN_URL | ||
}; | ||
|
||
CKEDITOR.replace( 'classic', commonConfig ); | ||
CKEDITOR.replace( 'divarea', CKEDITOR.tools.extend( { | ||
extraPlugins: 'divarea' | ||
}, commonConfig ) ); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@bender-tags: 4.14.2, feature, 4183 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: sourcearea, wysiwygarea, floatingspace, toolbar, easyimage | ||
@bender-include: ../_helpers/tools.js | ||
|
||
1. Switch editor to source mode. | ||
2. Switch back. | ||
|
||
### Expected: | ||
|
||
Image is visible. | ||
|
||
### Unexpected: | ||
|
||
Image disappeared. | ||
|
||
3. Repeat the procedure several times for every editor. | ||
4. Remove the image and upload another one. Repeat the procedure. | ||
|
||
### Note: | ||
|
||
Sometimes image is not visible at the beginning. It shouldn't bother you - just proceed with the test. |