public function getJSParser()
	{
		$className = get_class($this);
		if (strpos($className, 's9e\\TextFormatter\\Plugins\\') === 0)
		{
			$p = explode('\\', $className);
			$pluginName = $p[3];

			$filepath = __DIR__ . '/' . $pluginName . '/Parser.js';
			if (file_exists($filepath))
			{
				return file_get_contents($filepath);
			}
		}

		return null;
	}
public function getJSParser()
	{
		$className = get_class($this);
		if (strpos($className, 's9e\\TextFormatter\\Plugins\\') === 0)
		{
			$p = explode('\\', $className);
			$pluginName = $p[3];

			$filepath = __DIR__ . '/' . $pluginName . '/Parser.js';
			if (file_exists($filepath))
			{
				return file_get_contents($filepath);
			}
		}

		return null;
	}
public function getJSParser ( ) { $ className = get_class ( $ this ) ; if ( strpos ( $ className , 's9e\\TextFormatter\\Plugins\\' ) === 0 ) { $ p = explode ( '\\' , $ className ) ; $ pluginName = $ p [ 3 ] ; $ filepath = __DIR__ . '/' . $ pluginName . '/Parser.js' ; if ( file_exists ( $ filepath ) ) { return file_get_contents ( $ filepath ) ; } } return null ; }
Return this plugin's JavaScript parser

This is the base implementation, meant to be overridden by custom plugins. By default it
returns the Parser.js file from stock plugins' directory, if available

@return string|null JavaScript source, or NULL if no JS parser is available
Return this plugin s JavaScript parser