Fix cursor selection after converting preview to editor

This commit is contained in:
Kijin Sung 2018-03-06 21:57:59 +09:00
parent a0ae7a2a30
commit 499a7e4457

View file

@ -286,7 +286,7 @@ jQuery(function($) {
$(".editable_preview").on("click", function() {
var input = $(this).siblings(".editable_preview_content");
if (input.size()) {
$(this).off("click").off("focus").remove();
$(this).off("click").off("focus").hide();
input = input.first();
if (input.attr("type") !== "hidden") {
input.hide();