Skip to content

Commit

Permalink
Merge pull request #53 from harryxu/patch-1
Browse files Browse the repository at this point in the history
Fixed ckeditor path prefix.
  • Loading branch information
gravitano committed Oct 11, 2015
2 parents c9c1c30 + a824d90 commit a79e3d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/views/articles/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@
{!! script('vendor/ckfinder/ckfinder.js') !!}

<script type="text/javascript">
var prefix = '{!! asset(option("ckfinder.prefix")) !!}';
CKEDITOR.editorConfig = function( config ) {
var prefix = '/{!! option("ckfinder.prefix") !!}';
config.filebrowserBrowseUrl = prefix + '/vendor/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = prefix + '/vendor/ckfinder/ckfinder.html?type=Images';
config.filebrowserFlashBrowseUrl = prefix + '/vendor/ckfinder/ckfinder.html?type=Flash';
Expand All @@ -70,7 +69,6 @@
};
var editor = CKEDITOR.replace( 'ckeditor' );
var prefix = '/{!! option("ckfinder.prefix") !!}';
CKFinder.setupCKEditor( editor, prefix + '/vendor/ckfinder/') ;
</script>
@stop

0 comments on commit a79e3d7

Please sign in to comment.