-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ckeditor image upload functionality #62
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ public function __construct( | |
* @param string $editor the name of the editor to load, currently only | ||
* hallo and hallo-coffee are supported | ||
*/ | ||
public function includeJSFilesAction($editor = 'hallo') | ||
public function includeJSFilesAction($editor = 'ckeditor') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i manually merged and reverted this change for now, until the blocking issues are solved |
||
{ | ||
if ($this->securityContext && false === $this->securityContext->isGranted($this->requiredRole)) { | ||
return new Response(''); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,7 @@ jQuery(document).ready(function() { | |
} | ||
}); | ||
|
||
window.CKEDITOR.config.filebrowserImageUploadUrl = cmfCreateHalloImageUpload; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this name is weird. we should probably have a controller service per editor and a specific url and a specific twig name for each of them. this one states it would be for hallo. |
||
|
||
window.CKEDITOR.basePath = window.CKEDITOR_BASEPATH; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably be configured in the class rather.