-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1840 from ckeditor/t/1835
Fix integration with CKFinder
- Loading branch information
Showing
5 changed files
with
196 additions
and
2 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
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,29 @@ | ||
<h2>Classic editor</h2> | ||
|
||
<textarea id="classic"></textarea> | ||
|
||
<h2>Inline editor</h2> | ||
|
||
<div id="inline" contenteditable="true"> | ||
<p>Click me</p> | ||
</div> | ||
|
||
<script> | ||
var ignored = false, | ||
config = { | ||
filebrowserBrowseUrl: '//ckeditor.test/ckfinder/ckfinder.html', | ||
filebrowserUploadUrl: '//ckeditor.test/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', | ||
on: { | ||
instanceReady: function() { | ||
if ( !CKEDITOR.fileTools.isFileUploadSupported && !ignored ) { | ||
bender.ignore(); | ||
ignored = true; | ||
} | ||
} | ||
} | ||
}; | ||
|
||
CKEDITOR.replace( 'classic', config ); | ||
CKEDITOR.inline( 'inline', config ); | ||
|
||
</script> |
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,23 @@ | ||
@bender-tags: 4.9.1, bug, 1835 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, filebrowser, filetools, image, link, flash, floatingspace | ||
|
||
# CKFinder upload | ||
|
||
1. Open Image dialog using the Image button. | ||
2. Go to the Upload tab. | ||
3. Choose an image to be uploaded. | ||
4. Click the "Send it to the Server" button. | ||
|
||
## Expected | ||
|
||
No errors are displayed. | ||
|
||
CKFinder _might_ report an alert like: "A file with the same name already exists. The uploaded file was renamed to "city-wallpaper-47(8).jpg"." - that's fine it only means that the file was renamed. | ||
|
||
## Unexpected | ||
|
||
There should be no errors, e.g. like (but not limited to): | ||
|
||
* "Network error occurred during file upload." | ||
* "Incorrect server response." |
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