[SCEditor] Sửa lỗi không đóng tinypic

  Bài viết hay nhất1
Một cập nhật mới của forumotion, thay host upload ảnh của thành viên từ imageshack sang tinypic (do imageshack nâng cấp).
Có lẽ là do sơ suất, đã làm xảy ra lỗi: Không thể đóng lại khung tinypic sau khi đã mở ra.

[You must be registered and logged in to see this image.]
Upload ảnh bằng tinypic

Tạm thời, cho đến khi forumotion chính thức khắc phục lỗi trên, bạn làm theo hướng dẫn sau:
Thêm code dưới đây vào cuối template viewtopic_bodyposting_body
Code:
<!-- BEGIN switch_user_logged_in -->
<script type="text/javascript">
//<![CDATA[
$(document).on("click", function () {
   $(".sceditor-dropdown.sceditor-tinypic").hide();
});
$(document).on("click", ".sceditor-dropdown.sceditor-tinypic", function (e) {
   e.stopPropagation();
});
$(document).on("click", ".sceditor-button-servimg", function () {
   $(".sceditor-dropdown.sceditor-tinypic").show();
});
//]]>
</script>
<!-- END switch_user_logged_in -->


Zzbaivong
You cannot reply to topics in this forum