﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11507	[PR#78] Templates plugin does not play well with data filtering.	Godefroid Chapelle	Marek Lewandowski	"There should be a way to register data filter rules when registering templates.

I made a pull request on github :

https://github.com/ckeditor/ckeditor-dev/pull/78

Current registration of templates work through hash tables like :

{{{
{
title: 'Image and Title',
image: 'template1.gif',
description: 'One main image with a title and text that surround the image.',
html: '<h3>' +
    // 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>' +
    'Type the text here' +
    '</p>'
}
}}}

The patch looks for a new key in the template registration hash table : `allowedContent`

{{{
{
title: 'Image and Title',
image: 'template1.gif',
description: 'One main image with a title and text that surround the image.',
html: '<h3>' +
    // 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>' +
    'Type the text here' +
    '</p>',
allowedContent: 'img{margin-right}'
}
}}}

The `allowedContent` is allowed through a call to `editor.filter.allow()`"	New Feature	closed	Normal		General		invalid	HasPullRequest	
