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: '

' + // Use src="" "" so image is not filtered out by the editor as incorrect (src is required). '' + 'Type the title here' + '

' + '

' + 'Type the text here' + '

' } }}} 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: '

' + // Use src="" "" so image is not filtered out by the editor as incorrect (src is required). '' + 'Type the title here' + '

' + '

' + 'Type the text here' + '

', allowedContent: 'img{margin-right}' } }}} The `allowedContent` is allowed through a call to `editor.filter.allow()`",New Feature,closed,Normal,,General,,invalid,HasPullRequest,