Cześć,
Pomocy, nie wiem już co zrobić: nie umiem włączyć designMode w firefoxie. Mój kod:
$("#reply").click(function() {
$(this).before("<form method=\"post\" accept-charset=\"utf-8\" action=\"/\"><div class=\"block topicArea\"></div></form>");
$(".topicArea").append("<iframe id=\"textEditor\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\"></iframe>");
$("#textEditor").designMode("on");
return false;
});
Dziękuje za wskazówki
Aha dodatkowo wygląda to tak, że problem nie występuje na innych przeglądarkach, tylko FF i tylko jeśli tworze formularz z poziomu Jquery.
document.getElementById("textEditor").contentWindow.focus();
document.getElementById("textEditor").contentDocument.designMode="on";