// jQuery not really required, it's here to overcome an inability to pass configuration options to the fiddle remotely // Custom example logic /** * TinyMCE Load */ if (typeof (tinyMCE) == "undefined") { console.log('Requires TinyMCE.'); } let isMobile = !tinymce.Env.desktop; // (tinymce.Env.phone || tinymce.Env.tablet || false); let pluploadHandler, menubar, plugins, toolbar, cssText; cssText = "div.emoticon-group {margin:0; padding:0;}"; cssText += "div.emoticon-group > A.emoticon-group-item {margin:0;padding:0 9px 0 11px; float:left;width:60px;height:60px; list-style:none;cursor:pointer;}"; cssText += "div.emoticon-group > A.emoticon-group-item > IMG.emoticon-group-item-icon {max-width:100%;max-height:100%;}"; cssText += "div.mce-path > .mce-path-item {display:none !important;}"; cssText += "@media all and (max-width: 480px;) {"; cssText += "ul.emoticon-group > li.emoticon-group-item {width:32px;}"; cssText += "}"; if(isMobile) { cssText += "@media all and (max-width: 480px;){"; cssText += ".tinycme-full .mce-edit-area {display:flex;flex-flow:column;}"; cssText += ".tinycme-full .mce-edit-area iframe {flex:1 1 auto;}"; cssText += ".tinycme-full {height:100%;}"; cssText += ".tinycme-full .mce-tinymce.mce-container {width:100%;height:100%;/*border:0;*/}"; cssText += ".tinycme-full .mce-panel{/*border:0;*/}"; cssText += ".tinycme-full .mce-container-body.mce-stack-layout {display: flex; flex-flow: column;height: 100%;}"; cssText += ".tinycme-full .mce-stack-layout-item{ flex: 0 0 auto;}"; cssText += ".tinycme-full .mce-edit-area{flex:1 1 auto;}"; cssText += ".tinycme-full .mce-window .mce-btn.mce-colorbutton {display:none}"; cssText += ".tinycme-full .mce-window-head .mce-dragh {cursor:default !important;} }"; } // Viewport Add HTML5기반 (IE 10, Chrome 9, Opera 12.1, Safari 5.1, Firefox 6.0 if (!$('head > meta[name="viewport"]:last').length) { $('').append('head:last'); } $('