亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tinymce.php

?? Joomla!是一套獲得過多個獎項的內容管理系統(Content Management System, CMS)。Joomla!采用PHP+MySQL數據庫開發
?? PHP
字號:
<?php/** * @version		$Id: tinymce.php 10709 2008-08-21 09:58:52Z eddieajau $ * @package		Joomla * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. * @license		GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */// Do not allow direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );jimport( 'joomla.plugin.plugin' );/** * TinyMCE WYSIWYG Editor Plugin * * @package Editors * @since 1.5 */class plgEditorTinymce extends JPlugin{	/**	 * Constructor	 *	 * For php4 compatability we must not use the __constructor as a constructor for plugins	 * because func_get_args ( void ) returns a copy of all passed arguments NOT references.	 * This causes problems with cross-referencing necessary for the observer design pattern.	 *	 * @param 	object $subject The object to observe	 * @param 	array  $config  An array that holds the plugin configuration	 * @since 1.5	 */	function plgEditorTinymce(& $subject, $config)	{		parent::__construct($subject, $config);	}	/**	 * Method to handle the onInit event.	 *  - Initializes the TinyMCE WYSIWYG Editor	 *	 * @access public	 * @return string JavaScript Initialization string	 * @since 1.5	 */	function onInit()	{		global $mainframe;		$db			=& JFactory::getDBO();		$language	=& JFactory::getLanguage();		$theme = $this->params->get( 'theme', 'advanced' );		// handling for former default option		if ($theme == 'default' ) {			$theme = 'advanced';		}		$toolbar 			= $this->params->def( 'toolbar', 'top' );		$html_height		= $this->params->def( 'html_height', '550' );		$html_width			= $this->params->def( 'html_width', '750' );		$content_css		= $this->params->def( 'content_css', 1 );		$content_css_custom	= $this->params->def( 'content_css_custom', '' );		$invalid_elements	= $this->params->def( 'invalid_elements', 'script,applet,iframe' );		$newlines			= $this->params->def( 'newlines', 0 );		$cleanup_startup	= $this->params->def( 'cleanup_startup', 0 );		$cleanup_save		= $this->params->def( 'cleanup_save', 2 );		$compressed			= $this->params->def( 'compressed', 0 );		$langPrefix			= $this->params->def( 'lang_code', 'en' );		$langMode			= $this->params->def( 'lang_mode', 0 );		$relative_urls		= $this->params->def( 'relative_urls', 		0 );		$clear_entities		= $this->params->def( 'clear_entities', 0 );		$extended_elements	= $this->params->def( 'extended_elements', '' );		$plugins 	= array();		$buttons2	= array();		$buttons3	= array();		$elements	= explode( ',', $extended_elements );		// search & replace		$searchreplace 		=  $this->params->def( 'searchreplace', 1 );		if ( $searchreplace ) {			$plugins[]	= 'searchreplace';			$buttons2[]	= 'search,replace';		}		$plugins[]	= 'insertdatetime';		// insert date		$insertdate			= $this->params->def( 'insertdate', 1 );		$format_date		= $this->params->def( 'format_date', '%Y-%m-%d' );		if ( $insertdate ) {			$buttons2[]	= 'insertdate';		}		// insert time		$inserttime			= $this->params->def( 'inserttime', 1 );		$format_time		= $this->params->def( 'format_time', '%H:%M:%S' );		if ( $inserttime ) {			$buttons2[]	= 'inserttime';		}		// emotions		$smilies 			=  $this->params->def( 'smilies', 0 );		if ( $smilies ) {			$plugins[]	= 'emotions';			$buttons2[]	= 'emotions';		}		//media plugin		$plugins[] = 'media';		$buttons2[] = 'media';		// horizontal line		$hr 				=  $this->params->def( 'hr', 1 );		if ( $hr ) {			$plugins[]	= 'advhr';			$elements[] = 'hr[id|title|alt|class|width|size|noshade]';			$buttons3[]	= 'advhr';		} else {			$elements[] = 'hr[id|class|title|alt]';		}		// table		$table			=  $this->params->def( 'table', 1 );		if ( $table ) {			$plugins[]	= 'table';			$buttons3[]	= 'tablecontrols';		}		// fullscreen		$fullscreen			=  $this->params->def( 'fullscreen', 1 );		if ( $fullscreen ) {			$plugins[]	= 'fullscreen';			$buttons3[]	= 'fullscreen';		}		// rtl/ltr buttons		$directionality		=  $this->params->def( 'directionality', 1 );		if ( $directionality ) {			$plugins[] = 'directionality';			$buttons2[] = 'ltr,rtl';		}		// autosave		$autosave			= $this->params->def( 'autosave', 0 );		if ( $autosave ) {			$plugins[]	= 'autosave';		}		// layer		$layer			= $this->params->def( 'layer', 1 );		if ( $layer ) {			$plugins[]	= 'layer';			$buttons2[]	= 'insertlayer';			$buttons2[]	= 'moveforward';			$buttons2[]	= 'movebackward';			$buttons2[]	= 'absolute';		}		// style		$style			= $this->params->def( 'style', 1 );		if ( $style ) {			$plugins[]	= 'style';			$buttons3[]	= 'styleprops';		}		// XHTMLxtras		$xhtmlxtras			= $this->params->def( 'xhtmlxtras', 0 );		if ( $xhtmlxtras ) {			$plugins[]	= 'xhtmlxtras';			$buttons3[]	= 'cite';			$buttons3[]	= 'abbr';			$buttons3[]	= 'acronym';			$buttons3[]	= 'ins';			$buttons3[]	= 'del';			$buttons3[]	= 'attribs';		}		// template		$template			= $this->params->def( 'template', 0 );		if ( $template ) {			$plugins[]	= 'template';			$buttons3[]	= 'template';		}		// text color		$buttons2[] = 'forecolor';		if ($language->isRTL()) {			$text_direction = 'rtl';		} else {			$text_direction = 'ltr';		}		$entities = '';		if ($clear_entities) {			$entities = 'entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,60,lt,62,gt,8804,le,8805,ge,176,deg,8722,minus",';		}		$element_path = '';		if($this->params->get('element_path', 0)) {			$element_path = "theme_advanced_statusbar_location : \"bottom\", theme_advanced_path : true,";		}		if ( $langMode ) {			$langPrefix = substr( $language->getTag(), 0, strpos( $language->getTag(), '-' ) );		}		// loading of css file for `styles` dropdown		if ( $content_css_custom ) {			$content_css = 'content_css : "'. $content_css_custom .'", ';		}		else		{			/*			 * Lets get the default template for the site application			 */			$query = 'SELECT template'			. ' FROM #__templates_menu'			. ' WHERE client_id = 0'			. ' AND menuid = 0'			;			$db->setQuery( $query );			$template = $db->loadResult();			if($content_css)			{				$file_path = JPATH_SITE .'/templates/'. $template .'/css/';				if ( !file_exists( $file_path .DS. 'editor.css' ) ) {					$template = 'system';				}				$content_css = 'content_css : "' . JURI::root() .'templates/'. $template . '/css/editor.css",';			} else {				$content_css = '';			}		}		if ( $cleanup_startup ) {			$cleanup_startup = 'true';		} else {			$cleanup_startup = 'false';		}		switch ( $cleanup_save ) {		case '0': /* Never clean up on save */			$cleanup = 'false';			break;		case '1': /* Clean up front end edits only */			if ($mainframe->isadmin())				$cleanup = 'false';			else				$cleanup = 'true';			break;		default:  /* Always clean up on save */			$cleanup = 'true';		}		if ( $newlines ) {			$br_newlines	= 'true';			$p_newlines		= 'false';		} else {			$br_newlines	= 'false';			$p_newlines		= 'true';		}		// Tiny Compressed mode		if ( $compressed ) {			$load = "\t<script type=\"text/javascript\" src=\"".JURI::root()."plugins/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php\"></script>\n";		} else {			$load = "\t<script type=\"text/javascript\" src=\"".JURI::root()."plugins/editors/tinymce/jscripts/tiny_mce/tiny_mce.js\"></script>\n";		}		$buttons2 	= implode( ',', $buttons2 );		$buttons3 	= implode( ',', $buttons3 );		$plugins 	= implode( ',', $plugins );		$elements 	= implode( ',', $elements );		$return = $load .			"\t<script type=\"text/javascript\">			tinyMCE.init({			theme : \"$theme\",			language : \"". $langPrefix . "\",			mode : \"textareas\",			gecko_spellcheck : \"true\",			editor_selector : \"mce_editable\",			document_base_url : \"". JURI::root() ."\",			entities : \"60,lt,62,gt\",			relative_urls : $relative_urls,			remove_script_host : false,			save_callback : \"TinyMCE_Save\",			invalid_elements : \"$invalid_elements\",			extended_valid_elements : \"a[class|name|href|target|title|onclick|rel],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],$elements\",			theme_advanced_toolbar_location : \"$toolbar\",			theme_advanced_source_editor_height : \"$html_height\",			theme_advanced_source_editor_width : \"$html_width\",			directionality: \"$text_direction\",			force_br_newlines : \"$br_newlines\",			force_p_newlines : \"$p_newlines\",			$content_css			debug : false,			cleanup : $cleanup,			cleanup_on_startup : $cleanup_startup,			safari_warning : false,			plugins : \"advlink, advimage, $plugins\",			theme_advanced_buttons1_add : \"fontselect\",			theme_advanced_buttons2_add : \"$buttons2\",			theme_advanced_buttons3_add : \"$buttons3\",			theme_advanced_disable : \"help\",			plugin_insertdate_dateFormat : \"$format_date\",			plugin_insertdate_timeFormat : \"$format_time\",			$entities			$element_path			fullscreen_settings : {				theme_advanced_path_location : \"top\"			}		});		function TinyMCE_Save(editor_id, content, node)		{			base_url = tinyMCE.settings['document_base_url'];			var vHTML = content;			if (true == true){				vHTML = tinyMCE.regexpReplace(vHTML, 'href\s*=\s*\"?'+base_url+'', 'href=\"', 'gi');				vHTML = tinyMCE.regexpReplace(vHTML, 'src\s*=\s*\"?'+base_url+'', 'src=\"', 'gi');				vHTML = tinyMCE.regexpReplace(vHTML, 'mce_real_src\s*=\s*\"?', '', 'gi');				vHTML = tinyMCE.regexpReplace(vHTML, 'mce_real_href\s*=\s*\"?', '', 'gi');			}			return vHTML;		}	</script>";		return $return;	}	/**	 * TinyMCE WYSIWYG Editor - get the editor content	 *	 * @param string 	The name of the editor	 */	function onGetContent( $editor ) {		return "tinyMCE.getContent();";	}	/**	 * TinyMCE WYSIWYG Editor - set the editor content	 *	 * @param string 	The name of the editor	 */	function onSetContent( $editor, $html ) {		return "tinyMCE.setContent(".$html.");";	}	/**	 * TinyMCE WYSIWYG Editor - copy editor content to form field	 *	 * @param string 	The name of the editor	 */	function onSave( $editor ) {		return "tinyMCE.triggerSave();";	}	/**	 * TinyMCE WYSIWYG Editor - display the editor	 *	 * @param string The name of the editor area	 * @param string The content of the field	 * @param string The width of the editor area	 * @param string The height of the editor area	 * @param int The number of columns for the editor area	 * @param int The number of rows for the editor area	 * @param mixed Can be boolean or array.	 */	function onDisplay( $name, $content, $width, $height, $col, $row, $buttons = true)	{		// Only add "px" to width and height if they are not given as a percentage		if (is_numeric( $width )) {			$width .= 'px';		}		if (is_numeric( $height )) {			$height .= 'px';		}		$buttons = $this->_displayButtons($name, $buttons);		$editor  = "<textarea id=\"$name\" name=\"$name\" cols=\"$col\" rows=\"$row\" style=\"width:{$width}; height:{$height};\" class=\"mce_editable=\">$content</textarea>\n" . $buttons;		return $editor;	}	function onGetInsertMethod($name)	{		$doc = & JFactory::getDocument();		$js= "function jInsertEditorText( text, editor ) {			tinyMCE.execInstanceCommand(editor, 'mceInsertContent',false,text);		}";		$doc->addScriptDeclaration($js);		return true;	}	function _displayButtons($name, $buttons)	{		// Load modal popup behavior		JHTML::_('behavior.modal', 'a.modal-button');		$args['name'] = $name;		$args['event'] = 'onGetInsertMethod';		$return = '';		$results[] = $this->update($args);		foreach ($results as $result) {			if (is_string($result) && trim($result)) {				$return .= $result;			}		}		if(!empty($buttons))		{			$results = $this->_subject->getButtons($name, $buttons);			/*			 * This will allow plugins to attach buttons or change the behavior on the fly using AJAX			 */			$return .= "\n<div id=\"editor-xtd-buttons\">\n";			foreach ($results as $button)			{				/*				 * Results should be an object				 */				if ( $button->get('name') )				{					$modal		= ($button->get('modal')) ? 'class="modal-button"' : null;					$href		= ($button->get('link')) ? 'href="'.JURI::base().$button->get('link').'"' : null;					$onclick	= ($button->get('onclick')) ? 'onclick="'.$button->get('onclick').'"' : null;					$return .= "<div class=\"button2-left\"><div class=\"".$button->get('name')."\"><a ".$modal." title=\"".$button->get('text')."\" ".$href." ".$onclick." rel=\"".$button->get('options')."\">".$button->get('text')."</a></div></div>\n";				}			}			$return .= "</div>\n";		}		return $return;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品夜夜夜夜久久| 国模冰冰炮一区二区| 国产呦萝稀缺另类资源| 97精品视频在线观看自产线路二| 4438x亚洲最大成人网| 最新热久久免费视频| 日韩电影免费在线看| 色94色欧美sute亚洲线路一久| 日韩免费观看高清完整版| 亚洲三级电影网站| 国产成人欧美日韩在线电影| 欧美电影在哪看比较好| 亚洲欧美另类久久久精品2019| 韩国精品主播一区二区在线观看 | 欧美精品v国产精品v日韩精品| 国产亚洲欧美在线| 日韩精品五月天| 欧美制服丝袜第一页| 国产色91在线| 国产精品一二一区| 26uuu久久天堂性欧美| 日韩福利电影在线| 欧美伊人久久久久久久久影院| 国产精品福利电影一区二区三区四区| 久久99国产精品麻豆| 欧美高清视频www夜色资源网| 亚洲摸摸操操av| 波波电影院一区二区三区| 久久免费电影网| 国产一区三区三区| 精品毛片乱码1区2区3区| 免费欧美高清视频| 欧美一区二区日韩一区二区| 秋霞影院一区二区| 日韩一区二区三区电影在线观看 | 99久久久精品| 国产精品国产三级国产普通话99| 丁香五精品蜜臀久久久久99网站| 欧美激情在线免费观看| 成人av在线播放网站| 国产欧美日韩在线| 成人精品视频一区二区三区| 国产精品天干天干在观线| 国产经典欧美精品| 亚洲欧洲av在线| 色婷婷久久久综合中文字幕| 亚洲一区二区三区国产| 9191成人精品久久| 美女一区二区在线观看| 精品国产乱码久久久久久蜜臀 | 五月天丁香久久| 91精品国产色综合久久ai换脸 | 欧美亚洲自拍偷拍| 日韩精品国产精品| 精品国产不卡一区二区三区| 国产成人无遮挡在线视频| 国产精品不卡在线| 欧美老肥妇做.爰bbww| 欧美bbbbb| 国产精品午夜电影| 欧美中文字幕一区| 精品无码三级在线观看视频| 国产欧美一区二区精品仙草咪| 99re热视频这里只精品| 日本美女一区二区三区视频| 精品sm在线观看| 色综合激情五月| 美女脱光内衣内裤视频久久影院| 久久精品人人爽人人爽| 欧美综合一区二区| 国内偷窥港台综合视频在线播放| 国产精品久久久久久久蜜臀 | 日本aⅴ免费视频一区二区三区 | 欧美亚洲愉拍一区二区| 久久精品噜噜噜成人88aⅴ| 欧美国产一区二区在线观看| 欧美绝品在线观看成人午夜影视| 国产很黄免费观看久久| 亚洲成人福利片| 中文av一区特黄| 日韩一级高清毛片| 色综合天天在线| 国产在线视频一区二区| 亚洲高清久久久| 国产精品色噜噜| 欧美成人三级在线| 色播五月激情综合网| 精品综合免费视频观看| 亚洲永久免费av| 国产精品私房写真福利视频| 欧美日韩极品在线观看一区| 不卡的av电影在线观看| 久久精品99久久久| 性做久久久久久| 一二三区精品视频| 中文字幕成人在线观看| 日韩欧美国产一二三区| 精品视频1区2区3区| 波多野结衣在线aⅴ中文字幕不卡| 美女一区二区久久| 日韩电影免费一区| 午夜精品一区二区三区三上悠亚 | 男人的天堂久久精品| 一区二区三区在线高清| 国产精品毛片a∨一区二区三区| 精品国产伦一区二区三区免费 | 欧美综合一区二区| 99re免费视频精品全部| 国产一区二区三区免费在线观看| 免费看欧美美女黄的网站| 日韩国产一区二| 日本怡春院一区二区| 五月婷婷另类国产| 午夜日韩在线电影| 一区二区国产盗摄色噜噜| 一个色在线综合| 亚洲国产wwwccc36天堂| 日韩激情在线观看| 视频一区二区欧美| 日韩高清中文字幕一区| 免费国产亚洲视频| 国产一区二区三区美女| 国产福利一区二区三区| 成人福利视频网站| 在线免费精品视频| 欧美日韩国产三级| 日韩欧美你懂的| 国产亚洲1区2区3区| 国产精品欧美一区喷水| 中文字幕一区二区三区色视频| 中文字幕av一区 二区| 国产精品久久影院| 国产亚洲1区2区3区| 亚洲精品日韩专区silk| 亚洲卡通动漫在线| 亚洲精品日日夜夜| 亚洲国产毛片aaaaa无费看 | 91蜜桃免费观看视频| 成人美女视频在线观看18| 国产成a人亚洲精| 国产精品白丝av| 韩国在线一区二区| aaa欧美色吧激情视频| 99re这里只有精品6| 色婷婷国产精品久久包臀| 欧美性生交片4| 欧洲精品一区二区三区在线观看| 色88888久久久久久影院按摩| 91老司机福利 在线| 91久久国产最好的精华液| 欧美美女黄视频| 中文字幕欧美国产| 一区二区三区欧美日| 亚洲风情在线资源站| 麻豆一区二区在线| 99re这里只有精品首页| 欧美三级电影网| 欧美电影免费观看完整版| 亚洲男人都懂的| 日本91福利区| 成人丝袜视频网| 99国产精品久久久久久久久久久| 欧美电影一区二区| 国产午夜精品久久久久久免费视| 亚洲精品视频在线| 蜜桃精品在线观看| 色琪琪一区二区三区亚洲区| 3d动漫精品啪啪一区二区竹菊| 337p粉嫩大胆色噜噜噜噜亚洲 | 国产中文一区二区三区| 成人激情免费视频| 国产成人日日夜夜| 日韩免费观看2025年上映的电影 | 欧美福利电影网| 中文字幕电影一区| 国产一区在线视频| 91在线视频官网| 欧美精品一区二区在线播放| 亚洲欧洲日产国码二区| 国产精品影视在线观看| 91久久精品网| 国产欧美日韩亚州综合| 亚洲一区在线观看网站| 经典三级在线一区| 欧美视频精品在线观看| 国产精品日韩精品欧美在线| 蜜臀精品久久久久久蜜臀| 69成人精品免费视频| 国产精品久久久久四虎| 国模娜娜一区二区三区| 欧美巨大另类极品videosbest| 亚洲制服丝袜一区| av男人天堂一区| 久久色在线观看| 婷婷中文字幕综合| 欧美一区二区三区免费视频| 伊人性伊人情综合网| 成人小视频免费在线观看| 91精品国产手机| 六月婷婷色综合|