Closed (won't fix)
Project:
Wysiwyg
Version:
6.x-2.x-dev
Component:
Plugins
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Feb 2009 at 20:24 UTC
Updated:
26 Apr 2011 at 16:11 UTC
First of all I need to say this:
Sun, you need an award for this man! What a great module!!! Especially the UI.
That said, I was working on adding the nicUpload plugin to the nicEdit editor. I needed to make some changes to wysiwyg's code, so I thought it would be wise to do this in a way other editors could also take advantage of this. This is what I've done:
wysiwyg.module:
wysiwyg.admin.inc:
nicedit.inc:
nicedit.js:
I hope I haven't done something that already has been done and you find it useful.
| Comment | File | Size | Author |
|---|---|---|---|
| nicedit.js_.patch | 583 bytes | skilip | |
| nicedit.inc_.patch | 3.81 KB | skilip | |
| wysiwyg.admin_.inc_.patch | 2.13 KB | skilip | |
| wysiwyg.module.patch | 1.04 KB | skilip |
Comments
Comment #1
sunI'm not sure I want to add this (burden) to Wysiwyg API. For example, Image Assist will soon be available for Nicedit (resp. all editors at once), so the entire file browser logic would need to be swappable, but also configurable.
Like in TinyMCE's and FCKeditor's case, the "native" file browser rather is an external plugin, having the downside that all uploaded files are not managed by and unknown to Drupal. Thus, like IMCE module, which has proven to be a invalid concept in a CMS like Drupal.
CNW in any case, because new features go into HEAD only.
Comment #2
skilip commentedA single filemanager which covers all wysiwyg file handling for D..... Please wake me up, I must be dreaming. Where can I signup? ;)
Comment #3
sunhttp://drupal.org/project/media
My current plan on this is: While a few of fellow Drupalers work on the media project (file handling, streams, low-level API, and also a first UI), plenty of work goes into Image Assist 3.x and Inline 2.x currently (to flesh out a "rich" editor plugin that works in any editor via Wysiwyg API). Afterwards, if the Media project was successful, we will use the experience and knowledge to allow the upcoming Media module to be an editor plugin like Image Assist.
Comment #4
Gentoo7 commentedHey all, How do I add this patches to my code?
G
Comment #5
skilip commentedhttp://drupal.org/patch/apply
Comment #6
sunLet me first say: thank you for your work on this! It is nice to see that you were able to build something useful for your use-case.
However, I really think that all developers should rather join forces and work on Inline API, Image Assist, Media, or other Drupal modules to implement Drupal plugin support there. By doing so, those Drupal modules can provide file upload and file browsing features to all editors and not just one. That is the long-term goal we are heading to.
Because of that, I'm marking this issue won't fix - sorry.
Comment #7
skilip commentedYou're right! All future effords should go there. I wish I'd heard of those projects before.
Comment #8
Luciuz commentedHello
i have a problem with the last patch. (nicedit v0.9 is used)
what's need to add into nicedit.js?
Now i have not image after uploading. textarea has img from tmp directory ("//tmp/test.png") but there is no image in the directory.
Comment #9
Luciuz commentedComment #10
twodAll you should need to add to wysiwyg/editors/js/nicedit.js is:
just at the top of the attach() function.
The serverside files need a lot more modifications tho, as the patches show.
Note that we do not give official support on this subject since we don't support the editors' native filebrowsers in Wysiwyg module.