Skip to content

Commit f573f28

Browse files
committed
Added src and alt attributes so template is correct and image is not filtered out (#11170).
1 parent 50bcc9a commit f573f28

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plugins/templates/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
*/
7878
CKEDITOR.config.templates_files = [
7979
CKEDITOR.getUrl( 'plugins/templates/templates/default.js' )
80-
];
80+
];
8181

8282
/**
8383
* Whether the "Replace actual contents" checkbox is checked by default in the

plugins/templates/templates/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ CKEDITOR.addTemplates( 'default', {
1616
image: 'template1.gif',
1717
description: 'One main image with a title and text that surround the image.',
1818
html: '<h3>' +
19-
'<img style="margin-right: 10px" height="100" width="100" align="left"/>' +
19+
// Use src=" " so image is not filtered out by the editor as incorrect (src is required).
20+
'<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
2021
'Type the title here' +
2122
'</h3>' +
2223
'<p>' +

0 commit comments

Comments
 (0)