I have a simple function in the FormAPI that replaces a double quote with an html entity. It works fine in the standard text fields but nothing happens when I try to run it in a tinymce text field. What's different about this field?
function checkDoubleQuotes (item) {
var description_f = item.getName();
var description_event = IWDatacapture.getItem(description_f);
var description_val = description_event.getValue();
var special_char = """;
if((description_val != null) || (description_val != "")) {
var myNewString = description_val.replace('"', special_char);
description_event.setValue(myNewString);
}
}