describe("[rmFormat]", function () {
beforeEach(function () {
});
afterEach(function () {
$("textarea").wysiwyg("destroy");
});
it('should remove MS Word markup', function () {
$("#id1").wysiwyg({
rmUnusedControls: true,
controls: {
bold: { visible: true },
html: { visible: true }
},
plugins: {
rmFormat: {
rmMsWordMarkup: true
}
}
}).wysiwyg("clear").wysiwyg("insertHtml", "");
$.wysiwyg.rmFormat.enabled = true;
$.wysiwyg.removeFormat($("#id1"));
$.wysiwyg.rmFormat.enabled = false;
expect($("#id1").val()).toEqual("");
});
});