Skip to content
Permalink
Browse files

Added src and alt attributes so template is correct and image is not …

…filtered out (#11170).
  • Loading branch information...
Reinmar committed Nov 27, 2013
1 parent 50bcc9a commit f573f28ea498d1cf5202ea66b5ff959cf22e2237
Showing with 3 additions and 2 deletions.
  1. +1 −1 plugins/templates/plugin.js
  2. +2 −1 plugins/templates/templates/default.js
@@ -77,7 +77,7 @@
*/
CKEDITOR.config.templates_files = [
CKEDITOR.getUrl( 'plugins/templates/templates/default.js' )
];
];

/**
* Whether the "Replace actual contents" checkbox is checked by default in the
@@ -16,7 +16,8 @@ CKEDITOR.addTemplates( 'default', {
image: 'template1.gif',
description: 'One main image with a title and text that surround the image.',
html: '<h3>' +
'<img style="margin-right: 10px" height="100" width="100" align="left"/>' +
// Use src=" " so image is not filtered out by the editor as incorrect (src is required).
'<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
'Type the title here' +
'</h3>' +
'<p>' +

0 comments on commit f573f28

Please sign in to comment.
You can’t perform that action at this time.