PHP Classes

File: public/js/tinymce/src/ui/src/test/js/module/test/ViewBlock.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/ui/src/test/js/module/test/ViewBlock.js   Download  
File: public/js/tinymce/src/ui/src/test/js/module/test/ViewBlock.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 847 bytes
 

Contents

Class file image Download
define( 'tinymce.ui.test.ViewBlock', [ 'tinymce.core.dom.DOMUtils', 'global!document' ], function (DOMUtils, document) { return function () { var domElm = DOMUtils.DOM.create('div', { style: 'position: absolute; right: 10px; top: 10px;' }); var attach = function (preventDuplicates) { if (preventDuplicates && domElm.parentNode === document.body) { detach(); } document.body.appendChild(domElm); }; var detach = function () { DOMUtils.DOM.remove(domElm); }; var update = function (html) { DOMUtils.DOM.setHTML(domElm, html); }; var get = function () { return domElm; }; return { attach: attach, update: update, detach: detach, get: get }; }; } );