Skip to content

Commit

Permalink
update CKEditor upload to SonataMediaBundle docs (#350)
Browse files Browse the repository at this point in the history
* update CKEditor upload to SonataMediaBundle documentation

Since CKEditor 4.9.0 `xhr` is default upload method. SonataMediaBundle require `form` method.

* apply fixes from FlintCI
  • Loading branch information
dmarkowicz authored and OskarStark committed Aug 4, 2018
1 parent 9a420b3 commit 58c5a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/reference/ckeditor_medias.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ contain something like this:
# Display images by default when clicking the image dialog browse button
filebrowserImageBrowseRouteParameters:
provider: sonata.media.provider.image
filebrowserUploadMethod: form
filebrowserUploadRoute: admin_sonata_media_media_ckeditor_upload
filebrowserUploadRouteParameters:
provider: sonata.media.provider.file
Expand Down
2 changes: 1 addition & 1 deletion tests/Formatter/TwigFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function testGetFormatterExtension()

$extensions = $formatter->getExtensions();

$this->assertSame(0, count($extensions));
$this->assertCount(0, $extensions);
}
}

Expand Down

0 comments on commit 58c5a4b

Please sign in to comment.