Try Applying the Following Listener under "Dialog" of that component and
use the property "beforesubmit" it will surely Work 100%
function(dialog){var i;for (i = 0; dialog.findByType("richtext",
true)[i]="undefined"; i++) { var rte = dialog.findByType("richtext",
true)[i];var para=rte.getName();var
text=dialog.getField(para).getValue();var final=text.split("font-family:
tahoma, arial, helvetica, sans-serif; font-size:
12px;").join("");dialog.getField(para).setValue(final);}} Thanks,Nikhil
Kumar