$(".richtext_dopreview").click(function (event) {
var editor = $(this).parents(".richtext_container").find("textarea");
var preview = $(this).parents(".richtext_container").find(".richtext_preview");
$(".richtext_dopreview").click(function (event) {
var editor = $(this).parents(".richtext_container").find("textarea");
var preview = $(this).parents(".richtext_container").find(".richtext_preview");
- var width = editor.outerWidth() - preview.outerWidth() + preview.innerWidth();
- var minHeight = editor.outerHeight() - preview.outerHeight() + preview.innerHeight();
+ var width = editor.outerWidth() - preview.outerWidth() + preview.width();
+ var minHeight = editor.outerHeight() - preview.outerHeight() + preview.height();
preview.oneTime(500, "loading", function () {
preview.addClass("loading");
});
preview.oneTime(500, "loading", function () {
preview.addClass("loading");
});