#10895 closed New Feature (fixed)
Image2 need to support server file browsers
Reported by: | fbfactory | Owned by: | Marek Lewandowski |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.3 |
Component: | UI : Dialogs | Version: | 4.3 Beta |
Keywords: | Cc: |
Description
I upgraded to the Image2 plugin to be able to insert images with caption using html5 figure and figcaption elements. However, I realized the plugin does not support server file browsing, which is a total dealbreaker.
Change History (15)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
Milestone: | → CKEditor 4.3 |
---|
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
Owner: | set to Olek Nowodziński |
---|---|
Status: | confirmed → assigned |
Integration under development: t/10895.
comment:5 Changed 11 years ago by
Status: | assigned → review |
---|
Integrated Image2 with file browsers, deriving from the old image plugin (t/10895).
Note: plugins/image2/dev/image2.html
already supports CKFinder.
comment:6 Changed 11 years ago by
Keywords: | file browser image2 removed |
---|---|
Status: | review → review_failed |
I was not able to enable the browse button and the upload tab by just adding the following to the config:
config.filebrowserImageBrowseUrl = '/browser/browse.php?type=Images'; config.filebrowserImageUploadUrl = '/uploader/upload.php?type=Images';
Addiotionally, I know that the old dialog has this ugly thing, but couldn't we finally make it better and have the URL field taking the whole dialog width if the button will not be shown?
comment:7 Changed 11 years ago by
Owner: | changed from Olek Nowodziński to Marek Lewandowski |
---|---|
Status: | review_failed → assigned |
hijacking this one :)
comment:8 Changed 11 years ago by
Status: | assigned → review |
---|
Url field will now adjust its width, but it's done in a tricky way (it alters config object). We may think about tweaking dialog a little bit, in the way that it will totally ignore rendering <td /> elements for hidden element, that would solve the problem.
comment:9 Changed 11 years ago by
Status: | review → review_failed |
---|
The final solution is mostly fine. We just agreed that the src field will *replace* the hbox that contains it, instead of having the button simply removed.
comment:10 Changed 11 years ago by
Status: | review_failed → review |
---|
Now it's replacing it, but its a really nasty piece of code :\ Pushed to t/10895
comment:11 Changed 11 years ago by
Status: | review → review_failed |
---|
- The button is not being displayed when setting filebrowserBrowseUrl only.
- config.filebrowserImage2BrowseUrl has been introduced just to hack the filebrowser plugin. It's not the optimal approach for this configuration though, so better to check config.filebrowserImageBrowseUrl instead in the dialog file to be better future proof.
- The curly-braces are missing in the "if" at line 540 in dialog.
comment:12 Changed 11 years ago by
Commited to: t/10895
- Thanks, i was not aware of
filebrowserBrowseUrl
:)
- As for
filebrowserImage2BrowseUrl
i thought that it was temporary adapter rather than true hack - curly braces were removed on purpose, afaik we don't place braces if they are not essential, but just let me know if you are sure that you want me to add braces in this case
comment:13 Changed 11 years ago by
Status: | review_failed → review |
---|
comment:14 Changed 11 years ago by
Status: | review → review_passed |
---|
You have two lines inside that if
, so in this case curly-braces are mandatory. I've just committed it and updated the branch with latest major.
comment:15 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Merged to major with git:96b94e7d0d30.
We know about this issue. We're doing our best to allow a smooth transition from
image
toimage2
.