Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 f573f28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/templates/plugin.js
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion plugins/templates/templates/default.js
Expand Up @@ -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>' +
Expand Down

0 comments on commit f573f28

Please sign in to comment.