-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed ckeditor upload function. anavel/uploads module responsibility
- Loading branch information
Adrián Pardellas Blunier
committed
Sep 15, 2016
1 parent
b306242
commit bc51655
Showing
12 changed files
with
62 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
} | ||
|
||
.img-preview img { | ||
width: 200px; | ||
height: 200px; | ||
} | ||
width: 133px; | ||
height: 133px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
namespace Anavel\Foundation\View\Composers; | ||
|
||
use Anavel\Foundation\Contracts\Anavel; | ||
|
||
class MasterLayoutComposer | ||
{ | ||
protected $anavel; | ||
|
||
public function __construct(Anavel $anavel) | ||
{ | ||
$this->anavel = $anavel; | ||
} | ||
|
||
public function compose($view) | ||
{ | ||
$uploadsModuleIsInstalled = $this->anavel->hasModule('Anavel\Uploads\UploadsModuleProvider'); | ||
|
||
$ckEditorData = [ | ||
'removePlugins' => 'image', | ||
'fileBrowserUrl' => '', | ||
'fileUploaderUrl' => '', | ||
]; | ||
|
||
if ($uploadsModuleIsInstalled) { | ||
$ckEditorData['removePlugins'] = ''; | ||
$ckEditorData['fileBrowserUrl'] = route('anavel-uploads.ckeditor.file-browser'); | ||
$ckEditorData['fileUploaderUrl'] = route('anavel-uploads.ckeditor.file-uploader', ['_token' => csrf_token()]); | ||
} | ||
|
||
$view->with([ | ||
'ckEditorData' => json_encode($ckEditorData) | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.