AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/media/com_comment/js/vendor/sceditor/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/media/com_comment/js/vendor/sceditor/plugins/plaintext.js
/**
 * SCEditor Plain Text Plugin
 * http://www.sceditor.com/
 *
 * Copyright (C) 2016, Sam Clarke (samclarke.com)
 *
 * SCEditor is licensed under the MIT license:
 *	http://www.opensource.org/licenses/mit-license.php
 *
 * @author Sam Clarke
 */
(function (sceditor) {
	'use strict';

	var extend = sceditor.utils.extend;

	/**
	 * Options:
	 *
	 * pastetext.addButton - If to replace the plaintext button with a toggle
	 *                       button that enables and disables plain text mode.
	 *
	 * pastetext.enabled - If the plain text button should be enabled at start
	 *                     up. Only applies if addButton is enabled.
	 */
	sceditor.plugins.plaintext = function () {
		var plainTextEnabled = true;

		this.init = function () {
			var commands = this.commands;
			var opts = this.opts;

			if (opts && opts.plaintext && opts.plaintext.addButton) {
				plainTextEnabled = opts.plaintext.enabled;

				commands.pastetext = extend(commands.pastetext || {}, {
					state: function () {
						return plainTextEnabled ? 1 : 0;
					},
					exec: function () {
						plainTextEnabled = !plainTextEnabled;
					}
				});
			}
		};

		this.signalPasteRaw = function (data) {
			if (plainTextEnabled) {
				if (data.html && !data.text) {
					var div = document.createElement('div');
					div.innerHTML = data.html;
					data.text = div.innerText;
				}

				data.html = null;
			}
		};
	};
}(sceditor));

Anon7 - 2022
AnonSec Team