Uname: Linux gains.arrowcloudlinux.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 131.153.51.35
Your Ip: 18.218.3.204
User: az2015 (2658) | Group: az2015 (2661)
Safe Mode: OFF
Disable Function:
allow_url_include,show_source,symlink,system, passthru, exec, popen, pclose, proc_open, proc_terminate, proc_get_status, proc_close, proc_nice, allow_url_fopen, shell-exec, shell_exec, fpassthru, base64_encodem, escapeshellcmd, escapeshellarg, crack_check, crack_closedict, crack_getlastmessage, crack_opendict, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, dl, escap,phpinfo

name : sample.js
/**

 * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.

 * For licensing, see LICENSE.md or http://ckeditor.com/license

 */



/* exported initSample */



if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )

	CKEDITOR.tools.enableHtml5Elements( document );



// The trick to keep the editor in the sample quite small

// unless user specified own height.

CKEDITOR.config.height = 150;

CKEDITOR.config.width = 'auto';



var initSample = ( function() {

	var wysiwygareaAvailable = isWysiwygareaAvailable(),

		isBBCodeBuiltIn = !!CKEDITOR.plugins.get( 'bbcode' );



	return function() {

		var editorElement = CKEDITOR.document.getById( 'editor' );



		// :(((

		if ( isBBCodeBuiltIn ) {

			editorElement.setHtml(

				'Hello world!\n\n' +

				'I\'m an instance of [url=http://ckeditor.com]CKEditor[/url].'

			);

		}



		// Depending on the wysiwygare plugin availability initialize classic or inline editor.

		if ( wysiwygareaAvailable ) {

			CKEDITOR.replace( 'editor' );

		} else {

			editorElement.setAttribute( 'contenteditable', 'true' );

			CKEDITOR.inline( 'editor' );



			// TODO we can consider displaying some info box that

			// without wysiwygarea the classic editor may not work.

		}

	};



	function isWysiwygareaAvailable() {

		// If in development mode, then the wysiwygarea must be available.

		// Split REV into two strings so builder does not replace it :D.

		if ( CKEDITOR.revision == ( '%RE' + 'V%' ) ) {

			return true;

		}



		return !!CKEDITOR.plugins.get( 'wysiwygarea' );

	}

} )();



© 2024 UnknownSec