﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16685	writer.setRules Not Defined In 4.5	Anthony Sherwood		"This is a duplicate of #9430, which I believe was incorrectly closed. I have v 4.5.10 of ckeditor, which is supposed to have a writer.setRules function to enable formatting of output.

== Steps to reproduce ==

1. Install 4.5.10 of ckeditor
2. Use the following code on the page (jquery document ready added to prove that all the other js on the page has already been loaded... console.log of writer shows that the object has fully loaded, but the setRules function does not exist.):

{{{
<script>
$( document ).ready(function() {
    CKEDITOR.replace('content',
    {
        on: {
            instanceReady: function( ev ) {
                console.log(this.dataProcessor.writer);
                this.dataProcessor.writer.setRules( 'p', {indent: true});
            }
        }
    });
});
</script>                     
}}}

3. View console output. Error ""TypeError: this.dataProcessor.writer.setRules is not a function"" will be present, and the object dump of writer will confirm that the writer object is fully loaded, but does not have a setRules function.

== Expected result ==

Setting of the rules for the output writer.

== Actual result ==

Javascript error stating that function is not defined.

== Other details (browser, OS, CKEditor version, installed plugins) ==

Tested in Chrome, Firefox, and Safari on OS X
CKEditor v 4.5.10, installed plugins: sourcearea
"	Bug	closed	Normal		Core : Output Data	4.5.1	invalid		
