Opened 12 years ago
Closed 12 years ago
#9430 closed Bug (invalid)
In 4.0 beta dataProcessor.writer.setRules is undefined
Reported by: | ctrl | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
There is an issue with 4.0 beta version.
The code below worked fine in 3.x
Now dataProcessor.writer.setRules is undefined:
CKEDITOR.plugins.add(
'test', {
requires: htmlwriter?,
init: function(editor) {
editor.dataProcessor = new CKEDITOR.htmlDataProcessor(editor);
editor.dataProcessor.writer.setRules(
'p', {
breakBeforeClose: false
}
);
editor.fire('customDataProcessorLoaded');
}
}
);
I have checked this code and it works on latest 'master' version. Perhaps you have been calling it too early if it was used directly on HTML page.