generators/wysihat/templates/javascripts/wysihat_engine.js in wysihat-engine-0.1.5 vs generators/wysihat/templates/javascripts/wysihat_engine.js in wysihat-engine-0.1.6

- old
+ new

@@ -53,10 +53,10 @@ $$('textarea.wysihat_editor').each(function(i){ var editor = WysiHat.Editor.attach(i.id); var toolbar = new WysiHat.Toolbar(editor); toolbars[i.id] = toolbar; - editor.outputFilter = function(text) { + editor.inputFilter = function(text) { return text.formatHTMLOutput().sanitize({ tags: ['span', 'p', 'br', 'strong', 'em', 'a'], attributes: ['id', 'href'] }); }; \ No newline at end of file