-
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.
Added consistent content CSS to the caption test.
- Loading branch information
Showing
1 changed file
with
85 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,97 @@ | ||
<h2>Classic editor</h2> | ||
<head> | ||
<link rel="stylesheet" href="/apps/ckeditor/contents.css"> | ||
</head> | ||
<body> | ||
<h2>Classic editor</h2> | ||
|
||
<div id="classic"> | ||
<p>Widget without caption:</p> | ||
<figure> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</figure> | ||
<p>Widget with empty caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<div id="classic"> | ||
<p>Widget without caption:</p> | ||
<figure> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption></figcaption> | ||
</figure> | ||
<p>Widget with caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption>Test caption</figcaption> | ||
</figure> | ||
</div> | ||
</figure> | ||
<p>Widget with empty caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption></figcaption> | ||
</figure> | ||
<p>Widget with caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption>Test caption</figcaption> | ||
</figure> | ||
</div> | ||
|
||
<h2>Divarea editor</h2> | ||
<h2>Divarea editor</h2> | ||
|
||
<div id="divarea"> | ||
<p>Widget without caption:</p> | ||
<figure> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</figure> | ||
<p>Widget with empty caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption></figcaption> | ||
</figure> | ||
<p>Widget with caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<div id="divarea"> | ||
<p>Widget without caption:</p> | ||
<figure> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption>Test caption</figcaption> | ||
</figure> | ||
</div> | ||
</figure> | ||
<p>Widget with empty caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption></figcaption> | ||
</figure> | ||
<p>Widget with caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption>Test caption</figcaption> | ||
</figure> | ||
</div> | ||
|
||
<h2>Inline editor</h2> | ||
<h2>Inline editor</h2> | ||
|
||
<div id="inline" contenteditable="true"> | ||
<p>Widget without caption:</p> | ||
<figure> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</figure> | ||
<p>Widget with empty caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption></figcaption> | ||
</figure> | ||
<p>Widget with caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<div id="inline" contenteditable="true"> | ||
<p>Widget without caption:</p> | ||
<figure> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption>Test caption</figcaption> | ||
</figure> | ||
</div> | ||
</figure> | ||
<p>Widget with empty caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption></figcaption> | ||
</figure> | ||
<p>Widget with caption:</p> | ||
<figure> | ||
<a href="https://cksource.com"> | ||
<img src="../../../image2/_assets/foo.png" alt="foo"> | ||
</a> | ||
<figcaption>Test caption</figcaption> | ||
</figure> | ||
</div> | ||
|
||
<script> | ||
( function() { | ||
'use strict'; | ||
<script> | ||
( function() { | ||
'use strict'; | ||
|
||
var commonConfig = { | ||
on: { | ||
pluginsLoaded: function( evt ) { | ||
var editor = evt.editor, | ||
plugin = CKEDITOR.plugins.imagebase; | ||
var commonConfig = { | ||
on: { | ||
pluginsLoaded: function( evt ) { | ||
var editor = evt.editor, | ||
plugin = CKEDITOR.plugins.imagebase; | ||
|
||
plugin.addImageWidget( editor, 'testWidget', plugin.addFeature( editor, 'caption', {} ) ); | ||
} | ||
}, | ||
height: 500 | ||
}; | ||
plugin.addImageWidget( editor, 'testWidget', plugin.addFeature( editor, 'caption', {} ) ); | ||
} | ||
}, | ||
height: 500 | ||
}; | ||
|
||
CKEDITOR.replace( 'classic', commonConfig ); | ||
CKEDITOR.replace( 'divarea', CKEDITOR.tools.object.merge( commonConfig, { | ||
extraPlugins: 'divarea' | ||
} ) ); | ||
CKEDITOR.inline( 'inline', commonConfig ); | ||
}() ); | ||
</script> | ||
CKEDITOR.replace( 'classic', commonConfig ); | ||
CKEDITOR.replace( 'divarea', CKEDITOR.tools.object.merge( commonConfig, { | ||
extraPlugins: 'divarea' | ||
} ) ); | ||
CKEDITOR.inline( 'inline', commonConfig ); | ||
}() ); | ||
</script> | ||
</body> |