ladea / Laravel-Markitup

MIT License
7 stars 2 forks source link

wrong path? #1

Open karelv opened 12 years ago

karelv commented 12 years ago

I tried out, and it didn't work... So I chase the cause, and I found that it related to wrong paths.

in markitup.php I had to change:

$assets->add('jquery', 'jquery-1.7.1.min.js'); //Checks to see if jQuery is loaded and loads it if it's not
#$assets->add('jquery', 'jquery.js'); //Checks to see if jQuery is loaded and loads it if it's not
if (File::exists(Bundle::path('markitup') . 'public' . DS . 'markitup' . DS . 'skins' . DS . $skin . DS . 'style.css'))
#if (File::exists(Bundle::path('public') . 'bundles' . DS . 'markitup' . DS . 'markitup' . DS . 'skins' . DS . $skin . DS . 'style.css'))
    $js_path = Bundle::path('markitup') . 'public'  . DS . 'markitup' . DS . 'sets' . DS . $set . DS . 'set.js';
    $css_path = Bundle::path('markitup') . 'public'  . DS . 'markitup' . DS . 'sets' . DS . $set . DS . 'style.css';
#   $js_path = Bundle::path('public') . 'bundles' . DS . 'markitup' . DS . 'markitup' . DS . 'sets' . DS . $set . DS . 'set.js';
#   $css_path = Bundle::path('public') . 'bundles' . DS . 'markitup' . DS . 'markitup' . DS . 'sets' . DS . $set . DS . 'style.css';

And now it works for me perfectly!

JordanDalton commented 11 years ago

I also encountered this problem. @karelv your solution worked for me.