PHP Classes

File: public/js/tinymce/src/core/src/main/js/dom/Bookmarks.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/core/src/main/js/dom/Bookmarks.js   Download  
File: public/js/tinymce/src/core/src/main/js/dom/Bookmarks.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: 987 bytes
 

Contents

Class file image Download
/** * Bookmarks.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.core.dom.Bookmarks', [ 'tinymce.core.dom.GetBookmark', 'tinymce.core.dom.ResolveBookmark' ], function (GetBookmark, ResolveBookmark) { var getBookmark = function (selection, type, normalized) { return GetBookmark.getBookmark(selection, type, normalized); }; var moveToBookmark = function (selection, bookmark) { ResolveBookmark.resolve(selection, bookmark).each(function (rng) { selection.setRng(rng); }); }; var isBookmarkNode = function (node) { return node && node.tagName === 'SPAN' && node.getAttribute('data-mce-type') === 'bookmark'; }; return { getBookmark: getBookmark, moveToBookmark: moveToBookmark, isBookmarkNode: isBookmarkNode }; } );