Opened 15 years ago
Closed 15 years ago
#4399 closed New Feature (fixed)
return caption/alt text to Image plugin from file browser
Reported by: | Kae Verens | Owned by: | Wiktor Walc |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.2 |
Component: | General | Version: | 3.0 |
Keywords: | Confirmed Review+ | Cc: |
Description
at the moment, the filebrowser plugin only appears to set the image url in the image plugin.
however, some file browsers also allow captions to be set on their images (for example, sending back caption text stored within the image file itself).
it would be nice to select an image using a filebrowser plugin and have the image plugin fill in the Alt text from the retrieved caption.
Attachments (1)
Change History (5)
Changed 15 years ago by
Attachment: | 4399.patch added |
---|
comment:1 Changed 15 years ago by
Keywords: | Confirmed Review? added |
---|---|
Milestone: | → CKEditor 3.2 |
Version: | → 3.0 |
comment:2 Changed 15 years ago by
Owner: | set to Wiktor Walc |
---|
comment:3 Changed 15 years ago by
Keywords: | Review+ Doc? added; Review? removed |
---|
I like it. It's simple but provides full customization.
It just needs proper documentation explaining that if they return false in that function then the default processing of the returned data won't be executed.
comment:4 Changed 15 years ago by
Keywords: | Doc? removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed with [4940].
I have updated the documentation here: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)/Custom_File_Browser.
I think it could be even more flexible.
Suppose your file browser can return also other information that can be set in the image dialog (like link url, target etc.). One can imagine even a custom dialog with unknown fields that could be updated by a file browser.
It seems that the right way to go would be to allow passing a callback function to the setUrl function in the filebrowser plugin. This way we could do something like: