I added an If Statement to the function, making it only work if event.inputType != "formatBold"
:
function myFunction() {
if (event.inputType == "formatBold") {
document.getElementById("feedback").innerHTML = "The text was stylized.";
} else {
document.getElementById("feedback").innerHTML = "The content was changed.";
// + other things the function is supposed to do.
}
}
CLICK HERE to find out more related problems solutions.