0e2f559f283fd0590dec0ed19a9e7addd9dfe230
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Resources / Public / JavaScript / RteLinkBrowser.js
1 /**
2 * This file is part of the TYPO3 CMS project.
3 *
4 * It is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License, either version 2
6 * of the License, or any later version.
7 *
8 * For the full copyright and license information, please read the
9 * LICENSE.txt file that was distributed with this source code.
10 *
11 * The TYPO3 project - inspiring people to share!
12 */
13
14 /**
15 * LinkBrowser communication with parent window
16 */
17 define('TYPO3/CMS/Rtehtmlarea/RteLinkBrowser', ['jquery', 'TYPO3/CMS/Recordlist/LinkBrowser'], function($, LinkBrowser) {
18 "use strict";
19
20 var RteLinkBrowser = {
21 plugin: null,
22 HTMLArea: null
23 };
24
25 RteLinkBrowser.initialize = function() {
26 RteLinkBrowser.plugin = window.parent.RTEarea[LinkBrowser.urlParameters.editorNo].editor.getPlugin("TYPO3Link");
27 RteLinkBrowser.HTMLArea = window.parent.HTMLArea;
28 };
29
30 $(RteLinkBrowser.initialize);
31
32 return RteLinkBrowser;
33 });