PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/alien/TinyCodeDupe.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/alien/TinyCodeDupe.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/alien/TinyCodeDupe.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: 733 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.alien.TinyCodeDupe', [ 'global!document' ], function (document) { /// TODO this code is from the tinymce link plugin, deduplicate when we decide how to share it var openLink = function (target) { var link = document.createElement('a'); link.target = '_blank'; link.href = target.href; link.rel = 'noreferrer noopener'; var nuEvt = document.createEvent('MouseEvents'); nuEvt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); document.body.appendChild(link); link.dispatchEvent(nuEvt); document.body.removeChild(link); }; return { openLink: openLink }; } );