Commit 17eedc3f authored by john's avatar john

H1-6

parent 067f3b97
......@@ -60,7 +60,16 @@ $(function ()
var id = $(this).attr('id');
$('#doccontentlang-' + data_id + '-markdown').val(testEditor[id].getMarkdown())
$('#doccontentlang-' + data_id + '-html').val(testEditor[id].getPreviewedHTML())
var html_no_rewrited = testEditor[id].getPreviewedHTML();
var html_rewrited = html_no_rewrited;
$('body').append('<div class="hidden hidden_tmp_result"></div>');
$('.hidden_tmp_result').html(html_no_rewrited);
$('.hidden_tmp_result h1,.hidden_tmp_result h2,.hidden_tmp_result h3,.hidden_tmp_result h4,.hidden_tmp_result h5,.hidden_tmp_result h6').each(function ()
{
$(this).html($(this).text())
});
html_rewrited = $('.hidden_tmp_result').html();
$('#doccontentlang-' + data_id + '-html').val(html_rewrited)
})
});
// $("#goto-line-btn").bind("click", function ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment