fixes paths

master
Gnieark 7 years ago
parent 1948b6be8c
commit 7cad3f6165

@ -1,8 +1,10 @@
# Yash 3
C'est un fork avec des modifications mineures du plugin Yash de [Dotclear](https://fr.dotclear.org/ "dotclear") http://plugins.dotaddict.org/dc2/details/yash (By pep and contributors GNU/GPL v2)
# Etat du dev
reste un bug _ non fonctionnel tout de suite.
# Utilisation
///yash3 language
some->code->here;
///
# code tiers
Minifier class was made by Tedious https://github.com/tedious/JShrink BSD License.

@ -29,7 +29,7 @@ class yash3Behaviors
public static function coreInitWikiPost($wiki2xhtml)
{
$wiki2xhtml->registerFunction('macro:yash3',array('yashBehaviors','transform'));
$wiki2xhtml->registerFunction('macro:yash3',array('yash3Behaviors','transform'));
}
public static function transform($text,$args)

@ -120,15 +120,12 @@ if (!empty($_POST['saveconfig'])) {
}
//concat js files and minify them
$fContent = yash3_minify_js(
file_get_contents(dirname(__FILE__)."/syntaxhighlighter/js/shCore.js").
file_get_contents(dirname(__FILE__)."/syntaxhighlighter/js/shAutoloader.js").
dcUtils::jsVar('yash_path',$core->blog->getPF('yash/syntaxhighlighter/js/')).
include_once(dirname(__FILE__).'/inc/Minifier.php');
$fContent = Minifier::minify(
file_get_contents(dirname(__FILE__)."/syntaxhighlighter/js/shCore.js").
file_get_contents(dirname(__FILE__)."/syntaxhighlighter/js/shAutoloader.js").
" var yash3_path=\"".$core->blog->getPF('yash/syntaxhighlighter/js/')."\"; ".
"\n var yash3_path=\"".$core->blog->getPF('yash3/syntaxhighlighter/js/')."\";\n".
file_get_contents(dirname(__FILE__)."/js/public.js")
);
//write the fiule

@ -37,7 +37,7 @@ jsToolBar.prototype.elements.yash3.fn.markdown = function() {
};
jsToolBar.prototype.elements.yash3.fncall.wiki = function() {
var stag = '\n///yash3 ' + this.elements.yash.data.syntax + '\n';
var stag = '\n///yash3 ' + this.elements.yash3.data.syntax + '\n';
var etag = '\n///\n';
this.encloseSelection(stag,etag);
};

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save