!function(n){function t(){n(".fluentform-post-content").each((function(t,e){var o=n(e),i=o.attr("id"),c=o.attr("placeholder")||"";window.wp&&window.wp.editor&&i&&(window.tinymce.get(i)&&window.wp.editor.remove(i),setTimeout((function(){window.wp.editor.initialize(i,{mediaButtons:!1,tinymce:{height:250,toolbar1:"formatselect,table,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,underline,strikethrough,forecolor,removeformat,codeformat,outdent,indent,undo,redo",setup:function(t){c&&(t.on("init",(function(){var e=n(t.getContainer()).find("iframe").contents().find("body");""===t.getContent()&&e.html('<span class="mce-placeholder" style="color: #aaa;">'+c+"</span>")})),t.on("focus",(function(){var n=t.getContent({format:"raw"});""!==n&&-1===n.indexOf("mce-placeholder")||t.setContent("")})),t.on("blur",(function(){""===t.getContent()&&n(t.getContainer()).find("iframe").contents().find("body").html('<span class="mce-placeholder" style="color: #aaa;">'+c+"</span>")}))),t.on("BeforeSetContent",(function(n){n.content&&!n.content.includes("\x3c!-- wp:paragraph --\x3e")&&(n.content=n.content.replace(/\n/g,"<br>"))})),t.on("GetContent",(function(n){n.content&&!n.content.includes("\x3c!-- wp:paragraph --\x3e")&&(n.content=n.content.replace(/<br>/g,"\n"))})),t.on("change",(function(n,t){var e=wp.editor.getContent(i);o.val(e).trigger("change")}))}},quicktags:!1})}),10))}))}n(document).ready((function(){t()})),n(document).on("lity:open",(function(){t()}))}(jQuery);