__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
(function () {
'use strict';
/**
* plugin.js
*
* Original code by Arjan Haverkamp
* Copyright 2013-2015 Arjan Haverkamp ([email protected])
*/
window.tinymce.PluginManager.add('highlightPlus', function (editor, url) {
var showSourceEditor = function showSourceEditor() {
editor.focus();
editor.selection.collapse(true);
if (!editor.settings.codemirror) editor.settings.codemirror = {};
// Insert caret marker
if (editor.settings.codemirror && editor.settings.codemirror.saveCursorPosition) {
editor.selection.setContent('<span style="display: none;" class="CmCaReT">�</span>');
}
var codemirrorWidth = 800;
if (editor.settings.codemirror.width) {
codemirrorWidth = editor.settings.codemirror.width;
}
var codemirrorHeight = 550;
if (editor.settings.codemirror.height) {
codemirrorHeight = editor.settings.codemirror.height;
}
var buttonsConfig = [{
type: 'custom',
text: 'Ok',
name: 'codemirrorOk',
primary: true
}, {
type: 'cancel',
text: 'Cancel',
name: 'codemirrorCancel'
}];
var config = {
title: 'Source code',
url: url + "/source.html",
width: codemirrorWidth,
height: codemirrorHeight,
resizable: true,
maximizable: true,
fullScreen: editor.settings.codemirror.fullscreen,
saveCursorPosition: false,
buttons: buttonsConfig
};
config.onAction = function (dialogApi, actionData) {
if (actionData.name === 'codemirrorOk') {
var doc = document.querySelectorAll('.tox-dialog__body-iframe iframe')[0];
doc.contentWindow.tinymceHighlighterSubmit();
editor.undoManager.add();
// eslint-disable-next-line no-use-before-define
win.close();
}
};
var win = editor.windowManager.openUrl(config);
if (editor.settings.codemirror.fullscreen) {
win.fullscreen(true);
}
};
editor.ui.registry.addButton('code', {
icon: 'sourcecode',
title: 'Source code+',
tooltip: 'Source code+',
onAction: showSourceEditor
});
editor.ui.registry.addMenuItem('code', {
icon: 'sourcecode',
text: 'Source code+',
onAction: showSourceEditor,
context: 'tools'
});
});
})();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| plugin-es5.js | File | 2.34 KB | 0664 |
|
| plugin-es5.min.js | File | 1.22 KB | 0664 |
|
| plugin-es5.min.js.gz | File | 598 B | 0664 |
|
| plugin.js | File | 2.14 KB | 0664 |
|
| plugin.min.js | File | 1.18 KB | 0664 |
|
| plugin.min.js.gz | File | 589 B | 0664 |
|
| source-es5.js | File | 9.24 KB | 0664 |
|
| source-es5.min.js | File | 4.34 KB | 0664 |
|
| source-es5.min.js.gz | File | 1.94 KB | 0664 |
|
| source.css | File | 531 B | 0664 |
|
| source.html | File | 5.63 KB | 0664 |
|
| source.js | File | 8.42 KB | 0664 |
|
| source.min.css | File | 472 B | 0664 |
|
| source.min.css.gz | File | 354 B | 0664 |
|
| source.min.js | File | 4.98 KB | 0664 |
|
| source.min.js.gz | File | 2.02 KB | 0664 |
|