Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
135 lines (122 sloc) 8.25 KB
<!DOCTYPE html>
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see or
<meta charset="utf-8">
<meta name="description" content="Enhanced Image Plugin">
<meta name="keywords" content="ckeditor, editor, wysiwyg, image, caption, widget, drag, drop, image2, enhanced, configure, configuration, setup, settings, options, customization, customize, customise, customisation, config, modification, modify, change">
<meta name="sdk-samples" content="Enhanced Image Plugin">
<meta name="sdk-category" content="sdk-inserting-images">
<meta name="sdk-order" content="20">
<title>Enhanced Image Plugin</title>
<link href=",500,400" rel="stylesheet">
<link href="../template/theme/css/sdk.css" rel="stylesheet">
<script src="../../ckeditor-dev/ckeditor.js"></script>
<script src="assets/picoModal-2.0.1.min.js"></script>
<script src="assets/contentloaded.js"></script>
<script src="assets/simplesample.js"></script>
<script src="assets/beautify-html.js"></script>
<script src="assets/sample.js"></script>
<!--[if lt IE 9]>
<script src="assets/html5shiv.min.js"></script>
<link rel="icon" href="../template/theme/img/favicon.ico">
<header class="sdk-header">
<section class="sdk-container">
<nav class="sdk-sidebar">
<section class="sdk-contents">
<h1>Enhanced Image Plugin <a class="documentation" href="">Documentation</a></h1>
The optional <a href="">Enhanced Image</a> plugin, introduced in CKEditor 4.3, supports inserting images into the editor content. It provides the following features when compared to the classic <a href="./image.html">Image</a> plugin that is available by default in CKEditor distributions:
It allows for adding <strong>image captions</strong> (that will not be separated from the image when its location changes).
It has <a href="">all advantages of widgets</a>, i.e. you can <strong>treat the image and its caption as one entity</strong> and select, delete, or move it in the editor content area as a whole.
It supports <strong>drag and drop</strong> for changing the image position.
It provides <strong>image alignment</strong>, including centering, with inline styles or CSS classes.
It includes hassle-free <strong>"click and drag" resizing</strong>.
It can be integrated with a <strong>file manager</strong> of your choice such as <a href="">CKFinder</a> for image upload and storage support.
When the Enhanced Image plugin is enabled, the <span class="button_icon" data-icon="image" title="Image">&nbsp;</span> button is automatically added to the toolbar. Once clicked, it opens the <strong>Image Properties</strong> dialog window that replaces the one available in the default Image plugin and lets you configure the captioned image.
A few configuration options are available to fine-tune this feature, including <a href="">making the alternative text mandatory</a>, adjusting the <a href="">alignment style</a> to use classes instead of inline styles or setting a <a href="">custom CSS class</a> for the captioned image. Refer to the <a href="">Enhanced Image Plugin</a> article to learn more about this feature.
<textarea cols="80" id="editor1" name="editor1" rows="10" data-sample="1" data-sample-short>
&lt;h1&gt;Essential things to think about before starting a blog&lt;/h1&gt;
&lt;figure class=&quot;image&quot; style=&quot;float:right;&quot;&gt;&lt;img alt=&quot;A picture of wooden spoons with spices and herbs in them.&quot; src=&quot;assets/image2/spoons.jpg&quot; width=&quot;400px&quot;/&gt;
&lt;figcaption&gt;It takes several ingredients to create a delicious blog.&lt;/figcaption&gt;
&lt;p&gt;It has been exactly 3 years since I wrote my first blog series entitled “Flavorful Tuscany”, but starting it was definitely not easy. Back then, I didn’t know much about blogging, let alone think that one day it could become &lt;strong&gt;my full-time job&lt;/strong&gt;. Even though I had many recipes and food-related stories to tell, it never crossed my mind that I could be sharing them with the whole world&lt;/p&gt;
&lt;p&gt;I am now a &lt;strong&gt;full-time blogger&lt;/strong&gt; and the curator of the &lt;a href=""&gt;Simply delicious newsletter&lt;/a&gt;, sharing stories about traveling and cooking, as well as tips on how to run a successful blog.&lt;/p&gt;
&lt;p&gt;If you are tempted by the idea of creating your own blog, please think about the following:&lt;/p&gt;
&lt;li&gt;Your story (what do you want to tell your audience)&lt;/li&gt;
&lt;li&gt;Your audience (who do you write for)&lt;/li&gt;
&lt;li&gt;Your blog name and design&lt;/li&gt;
&lt;p&gt;After you get your head around these 3 essentials, all you have to do is grab your keyboard and the rest will follow.&lt;/p&gt;
<p class="tip">
If you are looking for pixel-perfect image alignment with vertical and horizotal whitespace, configurable image border and file manager integration, try the default <a href="./image.html">Image</a> plugin. If you need to insert images which are automatically rescaled, optimized, responsive and delivered through a blazing-fast CDN, try <a href="./easyimage.html">Easy Image</a>.
<h2>Related Features</h2>
<li><a href="./image.html">Inserting Images &ndash; Default Image Plugin</a></li>
<li><a href="./easyimage.html">Inserting Images &ndash; Easy Image Plugin</a></li>
<li><a href="./styles.html#widget-styles">Styling and Formatting &ndash; Applying Styles to Editor Content</a></li>
<li><a href="./fileupload.html">Inserting Content &ndash; File Upload through Dialogs and Drag&amp;Drop</a></li>
<script data-sample="1" >
CKEDITOR.replace( 'editor1', {
extraPlugins: 'image2,uploadimage',
toolbar: [
{ name: 'clipboard', items: [ 'Undo', 'Redo' ] },
{ name: 'styles', items: [ 'Styles', 'Format' ] },
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
{ name: 'links', items: [ 'Link', 'Unlink' ] },
{ name: 'insert', items: [ 'Image', 'Table' ] },
{ name: 'tools', items: [ 'Maximize' ] },
{ name: 'editing', items: [ 'Scayt' ] }
// Configure your file manager integration. This example uses CKFinder 3 for PHP.
filebrowserBrowseUrl: '/apps/ckfinder/3.4.5/ckfinder.html',
filebrowserImageBrowseUrl: '/apps/ckfinder/3.4.5/ckfinder.html?type=Images',
filebrowserUploadUrl: '/apps/ckfinder/3.4.5/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl: '/apps/ckfinder/3.4.5/core/connector/php/connector.php?command=QuickUpload&type=Images',
// Upload dropped or pasted images to the CKFinder connector (note that the response type is set to JSON).
uploadUrl: '/apps/ckfinder/3.4.5/core/connector/php/connector.php?command=QuickUpload&type=Files&responseType=json',
// Reduce the list of block elements listed in the Format drop-down to the most commonly used.
format_tags: 'p;h1;h2;h3;pre',
// Simplify the Image and Link dialog windows. The "Advanced" tab is not needed in most cases.
removeDialogTabs: 'image:advanced;link:advanced',
height: 450
} );
<footer class="sdk-footer">
You can’t perform that action at this time.