You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
7.0 KiB
32 lines
7.0 KiB
/* |
|
* ATTENTION: An "eval-source-map" devtool has been used. |
|
* This devtool is neither made for production nor for readable output files. |
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. |
|
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) |
|
* or disable the default devtool with "devtool: false". |
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). |
|
*/ |
|
/******/ (function() { // webpackBootstrap |
|
/******/ var __webpack_modules__ = ({ |
|
|
|
/***/ "./assets/scripts/call-to-action.js": |
|
/*!******************************************!*\ |
|
!*** ./assets/scripts/call-to-action.js ***! |
|
\******************************************/ |
|
/***/ (function() { |
|
|
|
eval("/* eslint-disable no-unused-vars */\n(function () {\n tinymce.create('tinymce.plugins.aldine_call_to_action', {\n /**\n * @param editor\n * @param url\n */\n init: function init(editor, url) {\n editor.addButton('aldine_call_to_action', {\n title: aldine.call_to_action.title,\n icon: 'icon dashicons-flag',\n\n /**\n *\n */\n onclick: function onclick() {\n editor.windowManager.open({\n title: aldine.call_to_action.title,\n body: [{\n type: 'textbox',\n name: 'text',\n label: aldine.call_to_action.text,\n value: aldine.call_to_action.title\n }, {\n type: 'textbox',\n name: 'link',\n label: aldine.call_to_action.link,\n value: '#'\n }],\n\n /**\n * @param e\n */\n onsubmit: function onsubmit(e) {\n editor.insertContent('[aldine_call_to_action text=\"' + e.data.text + '\" link=\"' + e.data.link + '\"]');\n }\n });\n }\n });\n },\n\n /**\n * @param n\n * @param cm\n */\n createControl: function createControl(n, cm) {\n return null;\n }\n });\n tinymce.PluginManager.add('aldine_call_to_action', tinymce.plugins.aldine_call_to_action);\n})();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AcHJlc3Nib29rcy9wcm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blxuXHQpO1xufSApKCk7XG4iXSwiZmlsZSI6Ii4vYXNzZXRzL3NjcmlwdHMvY2FsbC10by1hY3Rpb24uanMuanMiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./assets/scripts/call-to-action.js\n"); |
|
|
|
/***/ }) |
|
|
|
/******/ }); |
|
/************************************************************************/ |
|
/******/ |
|
/******/ // startup |
|
/******/ // Load entry module and return exports |
|
/******/ // This entry module can't be inlined because the eval-source-map devtool is used. |
|
/******/ var __webpack_exports__ = {}; |
|
/******/ __webpack_modules__["./assets/scripts/call-to-action.js"](); |
|
/******/ |
|
/******/ })() |
|
; |