/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
jQuery(document).ready(function(e){e("#editControls a").click(function(t){switch(t.preventDefault(),e(this).data("role")){case"h1":case"h2":case"h3":case"h4":case"p":document.execCommand("formatBlock",!1,e(this).data("role"));break;default:document.execCommand(e(this).data("role"),!1,null)}var a=e("#editor").html();e("#editorCopy").val(a)}),e("#editor").keyup(function(){var t=e(this).html();e("#editorCopy").val(t)}).keyup(),e("#checkIt").click(function(t){t.preventDefault(),alert(e("#editorCopy").val())})});