Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available



afru
Novice

Feb 6, 2005, 8:36 AM


Views: 35952
Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available

Hi All,

As per the promise, I am back with Extended File Manager. (EFM 1.0 beta)

Package : Extended File Manager EFM 1.0 Beta
Plugin url : http://www.afrusoft.com/htmlarea

Overview :
-------------

Extended File Manager is an advanced plugin for HtmlArea 3.0

It works in two different modes.
1). Insert Image Mode and
2). Insert File Link Mode.

In Insert Image Mode, it replaces the basic insert image functionality of HtmlArea with its advanced image manager.

If Insert File Link Mode is enabled, a new icon will be added to the toolbar with advanced file linking capability.

Complete Features :
----------------------------
* Easy config.inc file that enables individual options for both modes.
* Thumnail View
* List View
* Nice icons for both views
* Create Folders
* Vertical Scrolling
* Allowed extensions to view or upload.
* File Uploads
* Max File upload limit
* Max Upload Folder size (Including all subfolders and files. A must see option.)
* Dynamic display of available free space in the Upload Folder
* Dynamic Thumbnails using Image libraries or browser resize
* Image Editor (Actually done by Wei...a great addon)
* Can be used to insert images along with properties.
* Can be used to insert link to non-image files like pdf or zip.



For a live demo and download, visit http://www.afrusoft.com/htmlarea

Be sure to leave comments and your suggestions.

Finally, my hearty cheers to Wei who started this great addon

My sincere thanks to AG, Nikkoto, Wreimer and Mirical Bernd for their continuous support.

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





(This post was edited by afru on Feb 10, 2005, 10:42 PM)


Mirical Bernd
Novice

Feb 6, 2005, 10:23 AM


Views: 35924
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

I would love to integrate the new version in our CMS. Do you have a download-link?

In our CMS I programmed a private message-system with the ability to post attachments. I use the extension of the files to identify them via a database-table in which the common file-types are in. However this is written in PHP. I guess you need Javascript, right?

oh one more thing: in german browsers, the button "browse" is slightly bigger, which let's slip down Refresh and OK under the baseline of the window. Can you make it appear bigger from the beginning? Here it is on my firefox:

http://www.splashpages.de/browse_durchsuchen.jpg
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs

(This post was edited by Mirical Bernd on Feb 6, 2005, 10:27 AM)


nikotto
User

Feb 7, 2005, 2:13 AM


Views: 35868
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

wow, great
amazing! good work!!

is there anywhere a download-link?

about your 15th feature:
i would suggest if one selects a non-image the EFM inserts code like this
<a href="thefile.pdf">thefile.pdf</a>
so the user can edit the link-text...

if you post a zip-file somewhere i can try implementing this....



but what you have think about too:
can users edit the inserted file like they can edit the image?


and what comes into my mind too: it is not logical if i want to insert a pdf i have to click the image-button in the toolbar!
wouldn't it be possible to have two separate buttons - one for images and one for files?


thanks niko


afru
Novice

Feb 7, 2005, 4:49 AM


Views: 35838
Re: [nikotto] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3


Quote
it is not logical if i want to insert a pdf i have to click the image-button in the toolbar! wouldn't it be possible to have two separate buttons - one for images and one for files?


Yes its not logical to have single button and I am in search of good icon for button for File insert.


Anybody who has nice icon for File insert button, please do post it here. Regarding download link, I am still working hard on the project and will soon make it available on sourceforge.

I need some beta testers who can take time to check the version online and tell me about any bugs. And your valuable suggestions are always welcome.

Demo link : http://www.afrusoft.com/htmlarea

Thank you,

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





(This post was edited by afru on Feb 7, 2005, 6:08 AM)


wreimer
Novice

Feb 7, 2005, 11:42 AM


Views: 35782
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

Excellent work! but... I already posted a question about this under general discussion, but I noticed the same problem in your demo. In Firefox, no image properties are added when you insert a new image, only when you edit an existing one. Here's a quick test:

1. Make sure you have a flashing cursor
2. Click Insert Image
3. Select an image
4. Type something for Alt
5. Click OK
6. View Source -- no alt (or height/width either)

This problem does not show up in the original Insert Image, nor in IE. I spent about 4 hours trying to solve this one in my own custom image inserter. Anybody have a clue?

By the way, "File Manager" may not be the best name for this, since you can't do all the things implied by the name (e.g. move, delete files). Extended Insert Image would be better.

-Wes


afru
Novice

Feb 7, 2005, 9:38 PM


Views: 35741
Re: [wreimer] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3


Quote
In Firefox, no image properties are added when you insert a new image, only when you edit an existing one. Here's a quick test:

Thanks for the bug report. I am looking into it and hope we will solve it soon. If anybody finds any other bugs, please do report.

Quote
"File Manager" may not be the best name for this, since you can't do all the things implied by the name (e.g. move, delete files). Extended Insert Image would be better.



Dear Wes, Here we have two options as per your idea.

One is to rename this plugin to extended insert image as it doesnt have move option. Another is to keep the same name as extended file manager and implement the things implied by the name (e.g. move, delete files).

Which one do you think is better. Obviously "Extended File Manager". By the way, I think Delete option is already implemented. And as per your suggestion, I will definetly implement move option. Hey, how about cut copy paste?

Ok anyhow thanks a lot for your feed back.

You are lot better than those 200 guys who have visited but didnt left any comments so far. Smile

Thank you once again.

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





(This post was edited by afru on Feb 7, 2005, 9:41 PM)


Mirical Bernd
Novice

Feb 8, 2005, 12:13 AM


Views: 35721
Re: [wreimer] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3


In Reply To
Excellent work! but... I already posted a question about this under general discussion, but I noticed the same problem in your demo. In Firefox, no image properties are added when you insert a new image, only when you edit an existing one.


This is a rather old bug, which only happens, if you insert an image with no text surrounding the image. If you choose i.e. a cursor position directly in front of a text, the image properties are there. Seems that the script thinks: No text here? So why do I need the properties? ;) I had this bug already in RC 1.
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


nikotto
User

Feb 8, 2005, 12:49 AM


Views: 35713
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

I would be for File Manager - as you can insert pdf files or zip-files too!

a "rename-file" would be easy to implement i think.
a "move-file" harder but would be nice too...
or this could be the same dialog...

if the EFM has delete, move and upload functions - it defenitely IS a File Manager :D


Mirical Bernd
Novice

Feb 8, 2005, 3:40 AM


Views: 35688
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

I would vote for a complete distinction between File- and Image-Manager. Here is why:

- Adding images AND files to the same upload folder clutters the whole thing. And you cannot get your staff to distinguish the types. It is already a problem in our staff to get them to upload images to the respective folders as "news" or "specials".
- If you use the same icon for images and files in the editor it is more than strange and not the best usability.

Technically I think it won't be a problem. You still need only one module. Just call it with two variables. One which opens it as an Image Manager. And one which opens it as a file-manager.
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


wreimer
Novice

Feb 8, 2005, 7:08 AM


Views: 35661
Re: [Mirical Bernd] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3


In Reply To
This is a rather old bug, which only happens, if you insert an image with no text surrounding the image. If you choose i.e. a cursor position directly in front of a text, the image properties are there. Seems that the script thinks: No text here? So why do I need the properties? ;) I had this bug already in RC 1.


Thanks for clarifying the bug. Which leads back to my original question (in the other forum), how does Insert Image actually work -- where does the image object get created, or if it doesn't, how does the HTML get inserted? Why doesn't it work at the end of a text node?


Code
some text[cursor here]</p>


Attempting to insert an image in the above position results in a Firefox error "img has no properties", but the image gets inserted anyway, just without attributes.


nikotto
User

Feb 8, 2005, 7:14 AM


Views: 35659
Re: [Mirical Bernd] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3


Quote
I would vote for a complete distinction between File- and Image-Manager.

Me too. Two different Buttons in the toolbar that opens one dialog for insert image and one for insert file - although it is of course exactly the same dialog (only filter applied)

But the whole addon should be called "Extended File Manager"!

Additionally the Image-Manager is some kind of a File-Manager too... a image is a file too isn't it :D


wreimer
Novice

Feb 8, 2005, 7:17 AM


Views: 35659
Re: [Mirical Bernd] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3


In Reply To
I would vote for a complete distinction between File- and Image-Manager.


This is the way we do it in our CMS (which I am trying to convert to htmlArea). Insert Image and File Manager are two different buttons, and although the file list looks the same in both, in the FM you can do most of the usual FTP stuff, but with Ins. Img you can only select an image and it adds a preview pane with attributes. Afru's Insert Image is nicer in that it has the thumbnails and resizing...


afru
Novice

Feb 8, 2005, 8:31 AM


Views: 35647
Extended File Manager (EFM 1.0 beta) Updated

Hi all,

Am back again with my new EFM. It is lot more extended implied by its name Smile

Same plugin works for both Insert Image Mode and Insert File Link Mode.

It has two different buttons each with its own functionality.

Both modes can have individual configuration. Complete control on all options.

This enables us to initialize both modes with different Upload directories, different file extensions, different file views and more...

Only thing that is left to do is cut copy paste .... Coming sooon.......Smile

Checkout the updated demo at http://www.afrusoft.com/htmlarea

Regarding the download link, I am working on little documentation for the plugin and will upload it tomorrow. Very tired today... Got to go to sleep now. Meanwhile if you find any bugs please report them here...

Its really very nice to have some body comment on your work. Please do post your comments. It encourages us to share our work together.


My sincere thanks to "nikotto", "Mirical Bernd" and "Wreimer" for their valuable suggestions.


Thanking you,

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





(This post was edited by afru on Feb 8, 2005, 8:39 AM)


AG
Novice

Feb 8, 2005, 8:35 AM


Views: 35643
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

Afru you are the man (or woman!). I have been searching these forums for a month to get exactly this. I hope it is easily configurable.

As i was posting this, you said that you are going to put a download link....so i guess i dont need to ask again :-). After i download it, i will test it and of course report any bugs to you...

Thanks again!


(This post was edited by AG on Feb 8, 2005, 8:37 AM)


Mirical Bernd
Novice

Feb 8, 2005, 9:36 AM


Views: 35616
Re: [afru] Extended File Manager (EFM 1.0 beta) Updated

Great work. I am eager to test it on our plattforms :)
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


DarrylB
User

Feb 8, 2005, 4:27 PM


Views: 35532
Re: [Mirical Bernd] Extended File Manager (EFM 1.0 beta) Updated

This is brilliant. Looks and works great!
Keep up the good work!


chet
User

Feb 8, 2005, 11:37 PM


Views: 35505
Re: [DarrylB] Extended File Manager (EFM 1.0 beta) Updated

Nice work :)

I have a new suggestion for the copy, paste ,delete and move function

We made an FMmanager with right mouse click options so you can click on a file and with right click you can select
an option.
Download the manager here and have a look for yourself. It is easy to put it in this package
http://www.webinsta.com/downloads/webinstafm.zip


nikotto
User

Feb 9, 2005, 12:16 AM


Views: 35501
Re: [afru] Extended File Manager (EFM 1.0 beta) Updated

much, much thanks!! it is really working great!
good work :D

i'm now waiting - like many others - for the download link :D


mmcw
User

Feb 9, 2005, 3:29 AM


Views: 35459
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3

I your example I do add an image using the image manager!
Perfect!

But when trying to use the link manager on this image it will not work!
It will give an javascript error.

Line 162
Row 4
Object or method is not supported (Or something)

Had to translate it from dutch.

I am using IE6


afru
Novice

Feb 9, 2005, 6:31 AM


Views: 35414
Re: [mmcw] how to catch right click in moz?


In Reply To
I your example I do add an image using the image manager!
Perfect!

But when trying to use the link manager on this image it will not work!
It will give an javascript error.

Line 162
Row 4
Object or method is not supported (Or something)

Had to translate it from dutch.

I am using IE6



Hi,

I have observed this long ago. The same error happens when you insert a image and try to link it using weblink button that is provided with htmlarea 3.0 I think its a bug and should soon be resolved.

Ok regarding Efm release I am working on cut copy paste and got stucked trying to code right click event for cut copy paste. It works fine for ie, but on moz, the event didnt get cancelled and the default context menu of moz is firing up. Here is the code below. Hope somebody will find out the bug.

when a thumbnail file is clicked this happens


Code
 <td onmousedown="return selectImage(event, "file.jpg",100, 200)"> 
<img src="filethumnail.jpg"></td>



and the selectImage function is like below.


Code
 function selectImage(e,filename,width,height) 
{
if(e.button==2)
{
// do right click stuff...
return false;
}
else
{
// select image file stuff...
return false;
}
}



This perfectly works in ie, and both left click and right click are working.

But moz also shows default context menu when right click used. I have fiddled a lot
with onmousedown and onmouseup too. But it didnt worked out.

Remember that there will be lots of <td> elements and we cannot add event listeners to each and every <td> we can send the event object to the selectImage function only through <td onevent="return selectImage(event,.....)"> code.

It will be great If anybody can help it out... :)

Thanking you,

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





nikotto
User

Feb 9, 2005, 8:46 AM


Views: 35360
Re: [afru] how to catch right click in moz?

i would like to help.. but i can't as i don't have the sourcecode :D

imho a copy-cut-paste solution isn't the best because:
- i would never need a copy
- all i maby would like to do is to move a file in a different directory
- one more thing i would like to do is to rename a file (can't be done with copy-cut-paste)
- it might confuse users that a copied image from EFM can't be pasted in their Word. (at least i can't imagine that this will be possible Smile)
- some users might copy a file in Windows Explorer and try to paste it in EFM

just my opinion :D


(This post was edited by nikotto on Feb 9, 2005, 8:48 AM)


afru
Novice

Feb 9, 2005, 9:25 AM


Views: 35350
Re: [nikotto] how to catch right click in moz?


In Reply To
i would like to help.. but i can't as i don't have the sourcecode :D

imho a copy-cut-paste solution isn't the best because:
- i would never need a copy
- all i maby would like to do is to move a file in a different directory
- one more thing i would like to do is to rename a file (can't be done with copy-cut-paste)
- it might confuse users that a copied image from EFM can't be pasted in their Word. (at least i can't imagine that this will be possible Smile)
- some users might copy a file in Windows Explorer and try to paste it in EFM

just my opinion :D



I think you are right upto some extent. We will never need Copy.

Ok then, I dont think anyone will ever try to copy from EFM and paste it into word because it wont work even in our windows explorer. You cannot copy a file from desktop and place it into word. Smile

Then rename is a very nice feature. And I too think its a must. So we will have cut, paste and rename. What is there with copy ? lets put that too. if anybody wants they can use it. Smile So we shall have cut, copy , paste and rename.

If somebody can help me out with right click stuff, I can complete this very soon....

Regarding the code, I just want to capture right click only on particular table cells or links or images. I want to capture right click mouse events and use them as per my needs and then disable them all.

When you right click, the capturing is working, and we are getting event object to our user define function but It is displaying right context menu of the browser after that.

I know how to add event listener to a particular ID. But what I cant add listeners because we may have hundreds of files and we cannot assign ID to each of them. I want to capture right click event from inside of <td> or <a href> tag or <img> tag where ever I need it and then disable right context menu.

Hope somebody will work out how to use that....

A simple working cross browser example will be fabulous.

Thanking you.

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





Mirical Bernd
Novice

Feb 9, 2005, 10:43 AM


Views: 35330
Re: [afru] how to catch right click in moz?


In Reply To
Ok then, I dont think anyone will ever try to copy from EFM and paste it into word because it wont work even in our windows explorer. You cannot copy a file from desktop and place it into word. Smile


Silly people do silly things. You haven't worked in support yet, eh? ;) Whatever you think off IS possible. Even if it is the silliest thing there is on this world :D
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


nikotto
User

Feb 9, 2005, 12:29 PM


Views: 35306
Re: [afru] how to catch right click in moz?


Quote
You cannot copy a file from desktop and place it into word. Smile

That is true, i should have said that users might copy the file in EFM in paste it in their Windows Explorer.

If i would have no technical background it would even make sense - clipboard works everywhere i could suppose!

other reasons against copy-cut-paste:
- furthermore who tells the user that EFM has a context-menu?
- bad usability:
1. cut the file
2. move into the folder where you need the file
3. paste the file

instead of a simple move-command:
1. click move-file-button
2. select destination-folder

- where/how do you display that a file has been cut?



My suggestions would be to have a Move-file-icon right of the trashcan that pops up a dialog where you have a selectbox with all avaliable direcotries and a textbox with the filename.
So we would have rename and move in one dialog!




...wahts wrong about that? why does it not work?

Code
<td onmousedown="return selectImage(event, "file.jpg",100, 200)">  
<img src="filethumnail.jpg"></td>

there you have the filename - and thats everything you need i suppose...


AG
Novice

Feb 9, 2005, 12:55 PM


Views: 35302
Re: [nikotto] how to catch right click in moz?

Hi Guys,

in my opinion, i think the goal of the EFM should be a simple and easy way to upload images and files. The more options you give, the more confused users get and more cluttered the screen becomes. I think the file manager should be a sweet simple solution to manage files and delete them if neccessary - not create a windows explorer. If they are indeed that advanced to use these sort of features, they will be advanced enough to figure out how to move/rename items around without a move button.

Just my thought - not a lazy solution - but a viewpoint from some of the users i came accross with....


AG
Novice

Feb 9, 2005, 12:56 PM


Views: 23379
Re: [afru] how to catch right click in moz?

can you give a step by step description of the error? I am having troubles reproducing it.

Thank you

AG


afru
Novice

Feb 10, 2005, 5:40 AM


Views: 23294
Re: [AG] how to catch right click in moz?

Hi all,

Thank you for your patience. I was busy with some other project. Ok anyhow, I have uploaded EFM1.0b to the demo site. You can download it from below url.

http://www.afrusoft.com/htmlarea

By the way, I dont know why people are so secretive about coding. I have posted my problem in half a dozen forums but none of them had proper reply.

Ok any how I am posting my problem once again as simple as I can.


Quote
Problem : How to capture right click from inside <a> tag or <img > tag through onmousedown or onmouseup events and disable context menu for that element only? Ofcourse I need crossbrowser script. And "oncontextmenu" wont work on Mac/ie.



So that you can create right click menu for images, links and even table cells. I know how to write it by using add listener to document but it will make only one menu for the whole document. I think you understand what I am upto.

I am really very upset that no body is helping me out when I really get into trouble.

Hope some body who knows the answer will come forward and spend atleast 5 mins to post it.


Cheers to all...

Download EFM1.0b and enjoy.

Download URL once again : http://www.afrusoft.com/htmlarea

Have a nice day :)

Afru.




Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





afru
Novice

Feb 10, 2005, 8:27 AM


Views: 23245
Re: [afru] how to catch right click in moz?

Hi AG,

I have checked your posted URL.

http://www.catech-systems.com/plugins/ExtendedFileManager/example2.html

It seem to be that you have your example file in EFM folder. But your "_editor_url" path in your example file was not set properly. It should point to folder where your htmlarea.js file is located.

Hope you will get it.


Quote
My advice is to test htmlarea without installing the plugin first.
When your htmlarea is fine and running, then try to install the plugin and it will work perfectly.



Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





nikotto
User

Feb 10, 2005, 9:14 AM


Views: 23239
Re: [afru] how to catch right click in moz?

much, much thanks for the download-link :D works great!!


if for the contextmenu i played around a bit... didn't get it working... in mozilla the contextmenu always shows up...

found some scripts like this:
http://javascript.internet.com/page-details/disable-images-click.html
...not working :(

some google-research returned this:
http://www.javascripter.net/faq/rightbu2.htm
...an ugly solution imho.. you need mouseover and set some vars... although it might work (actually i din't try)


another suggestion:
you disable the context-menu for the whole images.php-document (using the usual technice like http://www.tipsntutorials.com/tips/Javascript/7)
and then in the onmousedown of the <td> you catch the event!
(don't know if it is still there when you disabled the context-menu...)

greets


AG
Novice

Feb 10, 2005, 10:56 AM


Views: 23217
Re: [afru] how to catch right click in moz?

Hi Afru,

hahahah, i feel like a fool. I assumed the new addition was like HTMLArea 2.03. I never actually used HTMLArea 3. Now i figured it all out, and have it working great!. I am in the process of fitting it all in and will try my best to shed some light on the bug you have.

Thanks again,

AG


nikotto
User

Feb 10, 2005, 1:17 PM


Views: 23202
Re: [AG] how to catch right click in moz?

actually we are in the forum called "htmlArea 3 (beta)" *g*
HTMLArea 3 is much better anyway - cross-browser-support rules!
(as i'm working on linux, and some cusomers of our company are working on mac)


AG
Novice

Feb 10, 2005, 1:23 PM


Views: 23199
Re: [nikotto] how to catch right click in moz?

hahhah, i knew that much as to which forum we were in, but since i never used HTMLArea 3, i assumed the package included everything Crazy

HTMLArea 3 is really nice. It works really well, especially with Afru's new addition!


afru
Novice

Feb 10, 2005, 10:31 PM


Views: 23169
Re: [nikotto] how to catch right click in moz?


In Reply To
HTMLArea 3 is much better anyway - cross-browser-support rules!
(as i'm working on linux, and some cusomers of our company are working on mac)



Hi nikotto,

I think you agree that HTMLArea is cross browser, so we should design plugins to be used on all browsers.

Actually I thought that there will be very few people who will use MAC/IE and so we
shall use "oncontextmenu" for creating context menus but when u said that you have
some clients working on mac I discarded the idea.

I have found an example from dynamic drve that creates different menu links when
left clicked on the links.

Just check it out at http://www.afrusoft.com/htmlarea/menu.html

Go though the source of the file and check whether you can make it for right click
instead.

Even if you want to implement move option, still we need to implement right click to
select the option.

Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





nikotto
User

Feb 11, 2005, 12:06 AM


Views: 23151
Re: [afru] how to catch right click in moz?

hey...
on Mac/IE HTMLArea isn't working anyway!
(our customers are forced to use firefox)

so when you write a plugin for HTMLArea you can expect that it will be never used by a Mac/IE.

Although you might plan to release a standalone-version! (like wei did)

in that case it would be of course very nice to get it running on mac/ie too.



Quote
Just check it out at http://www.afrusoft.com/htmlarea/menu.html

Go though the source of the file and check whether you can make it for right click
instead.

nope. this script uses onclick - which does only catch the left-mouse-button.


Quote
Even if you want to implement move option, still we need to implement right click to
select the option.


currently we have a delete and an edit-button. why not add a third button (move)? - we don't need a context-menu at all then!
another question is of course if this looks good and if there is still enough space for the filename.

niko


Mirical Bernd
Novice

Feb 11, 2005, 1:10 AM


Views: 23143
Re: [afru] how to catch right click in moz?


In Reply To


I tested it now, with some difficulties:

1. If you use "de" or any other language apart of "en" in your HTMLArea you won't get it to load. It would be good to put at least the language-files into the lang-folder. They don't need to be translated - which can be done by other - they just need to be there.

2. I allowed upload, but it didn't work. I came to the conclusion that the foldersize was connected to this. When I made it bigger, it worked. BUT this isn't commented in the config-file. Wink

3. The problem with the "browse"-button on the upload-field still exists. If you use a german browser it is named "Durchsuchen" which makes it much longer and pushes "Refresh", "OK" and "Cancel" beyond the border of the window and you need to resize the window by hand to see them again. A possible solution would be to replace in the manager.php these lines:


Code
				<table cellpadding="0" cellspacing="0" border="0"> 
<tr>
<td><input type="hidden" name="MAX_FILE_SIZE" value="<? echo ($IMConfig['max_filesize_kb']*1024); ?>" />
<input type="file" name="upload" id="upload"/></td>
<td>&nbsp;<button type="submit" name="submit" onclick="doUpload();"/>Upload</button></td>
</tr>
</table>


with these lines:

Code
				<table cellpadding="0" cellspacing="0" border="0"> 
<tr>
<td><input type="hidden" name="MAX_FILE_SIZE" value="<? echo ($IMConfig['max_filesize_kb']*1024); ?>" />
<input type="file" name="upload" id="upload"/></td>
</tr><tr>
<td>&nbsp;<button type="submit" name="submit" onclick="doUpload();"/>Upload</button></td>
</tr>
</table>


which makes it a bit better. It's not a perfect solution. The best would be to open the window a bit larger. I am not a big Javascript master, so I didn't find any reference in the JS-files.

And now some idea which might be really good: How about the possibility to sort the files in the list view by name, date, size? Just like in Explorer Smile
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


afru
Novice

Feb 11, 2005, 3:50 AM


Views: 23109
EFM 1.0b Patch to insert file link to images in IE

Hi All,

First of all let me clear you about the difference between the following three terms.

1. Insert Web Link. This is provided with core htmlarea and is used to insert a web link like "http://www.google.com"

2. Insert Image. This is also provided by core htmlarea but EFM overrides it and popup its own dialog box to select an image and insert it.

3. Insert File Link. This is provided with EFM and is used to insert link to any type of files that are available on your server.

Sorry if advanced users feel that it is too silly to give such explanation but I really feel to explain them because I am getting too many mails from users confusing between the 3 terms.

Ok coming to the point, many of EFM users reported me that they are getting error in IE while inserting file link to an image.


Try doing this on IE.
Insert a small image. Select it and then click on Insert File Link button. You will get Javascript error and the insert file link dialog wont open.

Actually this is not a bug in EFM. but it is in the core htmlarea itself. Because, you will get the same error even if you try to insert web link to an image.

Ok here is the patch for it. Just download "extended-file-manager.js" file and over write the old one in EFM folder.

This enables you to insert file links to any images.
Best example for this is to have a small image linked to a big image. That is creating a popup image.

By the way, the fresh EFM1.0b zip file that is at http://www.afrusoft.com/htmlarea is patched now and you will not need to patch it again.


Cheers,
Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.



Attachments: extended-file-manager.js (5.59 KB)


mmcw
User

Feb 11, 2005, 10:18 AM


Views: 23030
Re: [afru] EFM 1.0b Patch to insert file link to images in IE

In you example at http://www.afrusoft.com/htmlarea/ it still does not work?
Did you forgot to patch the example?


AG
Novice

Feb 11, 2005, 10:40 AM


Views: 23023
Re: Possible bug on Windows servers when uploading files?

Hi Afru,

I testing everything on a Unix machine, and i got things to run - but when i try to switch to a Windows server the image uploading seems to not work.

The error it gives me is that i dont have write access to the folder/or i exceed my limit. I know that i have not exceeded my limit and that the folder has write access because i am using HTMLArea 2 with an image uploading tool to that directory (it is in ASP though, not PHP).

The file manager shows all the contents in the directory, but wont allow me to upload.

Any ideas?


afru
Novice

Feb 12, 2005, 12:04 AM


Views: 22972
Re: [AG] Possible bug on Windows servers when uploading files?

Hi AG,

First of all let me assure you that there cant be a bug in EFM on Windows server
because, I have designed the whole thing on Windows NT server and never tested it
myself on unix Smile

Anyhow as you are getting upload problem just follow the below steps.
  • Check if your maxfilesize is set to a smaller KB in config file. Make it some 10000 for test purposes.
  • Check if your maxfoldersize is set to a smaller MB in config file. Make it some 50 MB for test purposes.
  • Check if you have enough freespace showing right below upload button.
  • Check if your uploading file size is not larger than 2.0 MB becuase php wont allow to upload more than 2.0 MB by default.
  • Check if your folder has write permissions.
  • Also check if your upload permissions for php are set correctly. You can do this by checking simple php upload scripts available around the web. If your upload works fine on any other php script, then it will surely work on EFM.


If you are able to upload files through other php scripts and if you still get an error uploading file, through EFM, please send me the exact error text that you are getting on error box.

I will surely help you all the way I can.

Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





Admino
New User

Feb 12, 2005, 3:06 AM


Views: 22959
Afru - very good work!

Hi,
Afru, thank you, Extended File Manager is really best!
All is better than in File Manager and ImageManager plugins.
EFM is all in ONE :).

I have a idea:
Can you do this?
If I want in IMAGE MODE insert FULL IMAGE I click on button INSERT FULL IMAGE(or something like this), but if I want to insert THUMB i click on button INSERT THUMB.

It wasn't in ImageManager, but more people welcome(enjoy) this function.

I am going to try do it. But I cant JavaScript well.
Sorry, my English isn't good too Blush.

I'll come forward, if I make it.
Thanks once more.


afru
Novice

Feb 12, 2005, 9:35 PM


Views: 22908
Re: [Admino] Afru - very good work!

Hi All,

EFM 1.0 RC1 is coming soon with following features added.

* A nice Context Menu on right click
* Multi Language Support
* Cut, Copy, Paste and Rename Features.

I am still working on it and will post it in the forum once it is ready.

Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





Admino
New User

Feb 13, 2005, 1:28 AM


Views: 22891
Re: [afru] Afru - very good work!

Hi, Afru.

If you want, I can help you with translate EFM to czech, russian language.Tongue

My contact:
E-mail: info@czechtur.com
ICQ: 97562248
Skype: czechtur.com <- the best Smile

Bye.


Mirical Bernd
Novice

Feb 13, 2005, 4:58 AM


Views: 22872
Re: [afru] Afru - very good work!

I would be taking on the german and italian translation :)
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


joduba
New User

Feb 13, 2005, 6:43 AM


Views: 22859
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available

Hi Afru,

You job is great! congratulations and thanks.
We are changing our "WYSIWYG HTMLeditor" to HTMLArea and your pluggin help so much to take that decision.

One thing that we have today (because we implemented internally), is really similar to your "LinkFile" mode.

We call it Attachment, and the idea is simple, "I can attach a file to my text". It displays and Icon in the middle of the text (where I placed the attach) with a Link to the file that I decided to upload.

The main difference with your TextLink is the ability to automatically detect file-type and display the apropiate icon.

In the input window, we additionally ask for following fields:

Display options:"Large Icons","Small Icons","Text"
Alternate Text: INPUT TEXT (used as ALT text for the icons, or Text in text mode).

I can play in your Source and implement it (as you can imagine is really simple), or perhaps you are interested to add this functionality to your standard distribution.

For me is better if is included in standard distribution, looking to future releases...

Let me know what do you think, and if I can help you.

Best Regards


afru
Novice

Feb 13, 2005, 10:26 AM


Views: 22817
Re: [joduba] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available


Quote
The main difference with your TextLink is the ability to automatically detect file-type and display the apropiate icon.

In the input window, we additionally ask for following fields:

Display options:"Large Icons","Small Icons","Text"
Alternate Text: INPUT TEXT (used as ALT text for the icons, or Text in text mode).




Hi joduba,

I like your idea very much. We can surely implement it in our next release.

So far, when the user didnt select any text or image, we are forcing him to type some text and select it. Then only file link will work.

But now, we can make it to insert the file name with an icon if the user didnt select any thing and tried to use file link.

Hope this is ok. All we have to do is to check if the user has selected anything. If he has selected anything,
link will be created around the selection , otherwise a link will be created with an icon and file name (or optional text).

Very nice idea.

If you have implemented this on EFM. Please send it to me soon, so that I can add it to the next release.

Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





Mirical Bernd
Novice

Feb 13, 2005, 1:11 PM


Views: 22794
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available

Could you please make this feature in a way, that you can turn it off in the Configuration? Just because that I would like to be able to select files without having an icon in front of it :)
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


nikotto
User

Feb 14, 2005, 1:51 AM


Views: 22741
Re: [Admino] Afru - very good work!

Hello Admino

Me too always wanted to have some kind of imageManger that inserts a thumbnail and if i click on it it opens a popup with the full-size-image.

My suggestions for that:
- a third toolbar-button "Insert Thumbnail Image"
- works exactly like the normal Insert Image
- in config you can define a fixed width and/or height
- that height/width will be used in the File Manager (with right proportions)
- when you select an image an click OK EFM will insert
o a thumbnail-image (automaticall created by the ImageLibary)
o a <a href="fullsize.php?path=foo.jpg" onclick="window.open(this.href, ....)">
- configurable:
o the link for the popup
o the onclick-event for the link
o the size (predefined) of the thumbnail
o additional HTML-code inserted with the thumbnail (for example a small + that shows that there exists a large picture)
o best would be to have this configuration as HtmlArea-Plugin-Config-options - not in the config.inc.php of EFM

ok, these are my ideas, don't know if this is possible - and don't know if afru has interests in a feature like that - i would like to help.

greets niko


SvenF
New User

Feb 14, 2005, 4:58 AM


Views: 22661
Re: [nikotto] Afru - very good work!

Hi nikotto, since weekend I am working on an Extension for EFM, that will do most of your suggestions...
I hope I have something to show an the weekend.


Greets Sven



nikotto
User

Feb 14, 2005, 5:06 AM


Views: 22656
Re: [SvenF] Afru - very good work!

great, that would be fantastic :D


joduba
New User

Feb 14, 2005, 5:07 AM


Views: 22653
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available

Hi Afru,

You has perfeclty understood my sugestion.
If is not too much, I will add a "pull-down" menu to select between "Big Icons", "Small Icons", "Text"... and a input text to ask for a ALT text of the icon.

Currently I'm working to integrate (substitute) the WYSIWYG editor for HTML, this will take me a while (1 week?)

And next I have two weeks far from my development computer...

I'm not a JavaScript guru, I only play a little bit with it.. (copy&paste) ;-)

If finally I decide to implement it, I will share with you, promised. In meanwhile, I found a pluggin that is similar to EFM called InsertFile... it partially does what we require...

Best Regards


Mirical Bernd
Novice

Feb 14, 2005, 8:57 AM


Views: 136077
Re: [Mirical Bernd] how to catch right click in moz?

Ok, one more bug-report - which is not much of a bug, but...

If I use:

[code]editor.config.toolbar = [
[ "fontname", "space",
"fontsize", "space",
"formatblock", "space",
"bold", "italic", "underline", "separator",
"subscript", "superscript", "separator", "undo", "redo"],

[ "copy", "cut", "paste", "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "orderedlist", "unorderedlist", "outdent", "indent", "separator",
"forecolor", "hilitecolor", "separator", "inserthorizontalrule", "createlink", "insertimage","linkfile", "inserttable", "htmlmode"]
];[/code]

on our editor, some valuable and also new functions of the latest RC of htmlarea are not there. If I strip it from the generation of the editor, i.e. my table-operations and the other functions load again, but the linkfile-icon will appear under the table-operations. Even if I add "linkfile" to the htmlarea.js it will load unter the table-operations.

That's why I deactivated the plugin "ExtendedFileManager".

I would appreciate a way to insert it without removing other valuable plugins.
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


afru
Novice

Feb 15, 2005, 8:42 AM


Views: 136005
EFM 1.0 RC1 for testing....

Hi All,

Checkout the latest demo of EFM 1.0 RC 1 at http://www.afrusoft.com/htmlarea

New features include,
  • Right context menu
  • Move folders and files using cut and paste
  • Copy, paste for those who can afford space :)
  • Rename files and folders
  • Exact Folder size in list view
  • Recursive delete for folders
  • Multi Language support
  • Many many many bugs have been solved since Beta release.


This package is still under testing. So please take some time to test it and report any bugs you have found. I will try to solve them as soon as possible.

If everything is alright, I shall upload the zip file soon.

Note :
In image mode, I have allowed only jpg, gif, png and bmp extensions. So you cant see other files in image mode. And so you will get alerts that you cannot move or delete folders that contain hidden files when you work on folders with hidden files.


Quote
If you want to try cut copy paste without hassles, try link mode instead.
There, you will have access to all types of files and so, you can
delete or move folders.



Request :
I have found many of the visitors to misuse the demo by deleting all files or uploading too many files. This way, you cant expect me to share my work .

Make sure the folder is nice with reasonable files before you leave the demo so that others may not get confused by seeing an empty folder or getting upload size exceed errors.

Lets be professional and keep up good works.

I will be waiting for your feedback... Smile

Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





(This post was edited by afru on Feb 15, 2005, 8:43 AM)


nikotto
User

Feb 15, 2005, 11:31 AM


Views: 135977
Re: [afru] EFM 1.0 RC1 for testing....

cool :D
great, much thanks!

i see you used oncontextmenu...

do you plan to release a standalone-filemanager?

niko


chet
User

Feb 15, 2005, 11:35 AM


Views: 135976
Re: [nikotto] EFM 1.0 RC1 for testing....

That would be great an standalone-filemanager

Thanks for all this works, I know how much work this is


Mirical Bernd
Novice

Feb 15, 2005, 1:21 PM


Views: 135965
Re: [afru] EFM 1.0 RC1 for testing....

Tested it now on your demo. What would be nice, if after renaming or editing the picture, if the list view would automatically refresh.
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


afru
Novice

Feb 15, 2005, 9:20 PM


Views: 135946
Re: [Mirical Bernd] EFM 1.0 RC1 for testing....


Quote
What would be nice, if after renaming or editing the picture, if the list view would automatically refresh.



Hi Mirical,

I didnt get you. I have tested EFM thoroughly before putting on the demo. The directory is perfectly refreshing after renaming any file or folder. Please check it once again. May be you would need to clear your cache. If you still didnt get it, please tell me about your browser version.

Have a nice day :)

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





pdegruijter
New User

Feb 16, 2005, 8:00 AM


Views: 135893
Re: [afru] EFM 1.0 RC1 for testing....

first off all, I absolutely delighted with the emf, it's a wonderful piece of software.

Just one question, I can't upload any files, so I can't test. Does the upload eliminate any spaces from filenames? When renaming, a blank is converted into an underscore, is this also the case when uploading?

Regs,

Peter


jansid
New User

Feb 16, 2005, 8:03 AM


Views: 135891
Re: [afru] EFM 1.0 RC1 for testing....

Hello
You've done great job.
It works excellent!
Great Thanks!
But I have a little problem.
1.I cannot rename, cut... because of missing context menu(I don't see them at all)
2.In thumbnail view, i can see only gif images( jpg, png aren't visible). Inserted to html are visibled.

Someone have any idea?
I'll be grateful for answering.
p.s I attached config file
Attachments: config.inc.php (5.98 KB)


afru
Novice

Feb 16, 2005, 10:00 AM


Views: 135865
Re: [pdegruijter] EFM 1.0 RC1 for testing....


Quote
Just one question, I can't upload any files, so I can't test. Does the upload eliminate any spaces from filenames? When renaming, a blank is converted into an underscore, is this also the case when uploading?



Hi peter,

Yes, all spaces and hyphens are converted to underscores for unix compatibility.

This happens when you copy, rename, move or upload files. Ofcourse you can turn it off easily with a slight modification if you dont want it.

Thanks for your complements on EFM :)

Afru


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





afru
Novice

Feb 16, 2005, 10:05 AM


Views: 135862
Re: [jansid] EFM 1.0 RC1 for testing....

Dear Jansid,

I think what you have downloaded is EFM 1.0 Beta. And it doesnt have any context menus. Thats why you are not getting them. EFM.1.0 RC 1 is kept as demo for testing only and will be available for download soon.

Regarding thumbnails, turn off image library to false and check if you are able to get all thumbnails. If you are getting all thumbnails, then there is a problem with your image library. In your case it is NetPbm.

Hope you have got it....

EFM 1.0 RC 1 with context menus will be ready for download soon.... Still under testing... Just post your feed back on it.

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





Mirical Bernd
Novice

Feb 16, 2005, 10:31 AM


Views: 135852
Re: [afru] EFM 1.0 RC1 for testing....


In Reply To

Quote
What would be nice, if after renaming or editing the picture, if the list view would automatically refresh.

I didnt get you. I have tested EFM thoroughly before putting on the demo. The directory is perfectly refreshing after renaming any file or folder. Please check it once again. May be you would need to clear your cache. If you still didnt get it, please tell me about your browser version.


Must have been the cache, cause now it works :)
------------------------------
Xinha - An HTMLArea-Fork which gets rid of the bugs


PeteBest
New User

Feb 17, 2005, 9:40 AM


Views: 135778
Re: [Mirical Bernd] EFM 1.0 RC1 for testing....

afru,

Not sure if this is already planned for the RC release, but it'd be good to have the ability to restrict the ability to delete files and folders. Apologies if I've missed these settings, but I couldn't see it in the config.inc.php of the beta version

Aside from that looks like more great work! Looking forward to the RC release Wink

Pete


thetoaster
New User

Feb 17, 2005, 12:09 PM


Views: 135759
Re: [PeteBest] EFM 1.0 RC1 for testing....

hello. used another tool till now:
http://alrashid.klokan.sk/insFile/htmlareademo/
but this has some errors in v.1.1
but v. 1.0 has the nice feature, that you can insert file-size, file-date, ...

Would it be possible to implement such a thing in this nice tool also??


mmcw
User

Feb 17, 2005, 9:52 PM


Views: 135719
Re: [afru] EFM 1.0 RC1 for testing....

Every time you push the right button on an image the menu icons will have to be loaded.
Maybe preloading could help make it faster.


Morph
New User

Feb 18, 2005, 4:00 AM


Views: 135684
Re: EFM 1.0 RC1 for testing....

Has anyone tested the right-click menu with other languages?
I'm having the problem that it doesn't work properly while using a language other than English. (It most of the times it stays at the upper left corner of the html-area.)

Does this happen with EFM as well or does anybody know how to fix this.

Cheers
Morph


afru
Novice

Feb 18, 2005, 7:49 AM


Views: 135650
Need help from JS gurus

Hi all,

EFM RC1 is almost complete execpt one feature. That is thumbnail popup. I have got
many mails requesting to incorporate this into EFM. So I understood the necessity
and am trying to implement this in this release itself. I have also got some code from
Mr. Petr whom I owe a lot for his ideas.

Ok anyhow coming to the point, I have written code for inserting link around thumbnail
image if the user has selected the option for thumbail popup. Below is the code.


Code
 // Function to select image before inserting link around it. 
HTMLArea.prototype.selectNode = function(node) {
this.focusEditor();
this.forceRedraw();
var range;
if (HTMLArea.is_ie) {
range = this._doc.body.createTextRange();
range.moveToElementText(node);
range.select();
} else {
var sel = this._getSelection();
range = this._doc.createRange();
range.selectNode(node);
sel.removeAllRanges();
sel.addRange(range);
}
};

// Over ride the _insertImage function in htmlarea.js.
// Open up the ExtendedFileManger script instead.
HTMLArea.prototype._insertImage = function(image) {


var editor = this; // for nested functions
var outparam = null;
var link = null;


if (typeof image == "undefined") {
if (image)
{
if (!/^img$/i.test(image.tagName))
{
image = null;
link = null;
}
else
{
link = image.parentNode;
if (!/^a$/i.test(link.tagName))
link = null;
}
}
}


if (image) outparam = {
f_url : HTMLArea.is_ie ? image.src : image.getAttribute("src"),
f_alt : image.alt,
f_border : image.border,
f_align : image.align,
f_vert : image.vspace,
f_horiz : image.hspace,
f_width : image.width,
f_height : image.height
};


var manager = _editor_url + 'plugins/ExtendedFileManager/manager.php?mode=image';

Dialog(manager, function(param){
if (!param)
{ // user must have pressed Cancel
return false;
}


var img = image;
if (!img)
{
var sel = editor._getSelection();
var range = editor._createRange(sel);
editor._doc.execCommand("insertimage", false, param.f_url);
if (HTMLArea.is_ie)
{
img = range.parentElement();
// wonder if this works...
if (img.tagName.toLowerCase() != "img")
{
img = img.previousSibling;
}
}
else
{
img = range.startContainer.previousSibling;
}
}
else
{
img.src = param.f_url;
}

for (field in param)
{
var value = param[field];
switch (field)
{
case "f_alt" : img.alt = value; break;
case "f_border" : img.border = parseInt(value || "0"); break;
case "f_align" : img.align = value; break;
case "f_vert" : img.vspace = parseInt(value || "0"); break;
case "f_horiz" : img.hspace = parseInt(value || "0"); break;
case "f_width" : img.width = parseInt(value || "0"); break;
case "f_height" : img.height = parseInt(value || "0"); break;
}
}



//Testing directly by linking thumbnail to google.com
//Actually this variable will have the link to popupurl.
param.f_popurl="
http://www.google.com";

//create popup link around the image if popupurl is set.
if(param.f_popurl)
{
var a = link;
if (!a) try {
editor.selectNode(img);
editor._doc.execCommand("createlink", false, param.f_popurl);
a = editor.getParentElement();
var sel = editor._getSelection();
var range = editor._createRange(sel);
if (!HTMLArea.is_ie) {
a = range.startContainer;
if (!/^a$/i.test(a.tagName)) {
a = a.nextSibling;
if (a == null)
a = range.startContainer.parentNode;
}
}
} catch(e) {}
else {
var href = param.f_popurl.trim();
editor.selectNodeContents(a);
if (href == "") {
editor._doc.execCommand("unlink", false, null);
editor.updateToolbar();
return false;
}
else {
a.href = href;
}
}
}




}, outparam);



};



This code perfectly works in IE and any image inserted will be linked to google.com as per our test.

But Mozilla is inserting only image and not creating link around it. The main code that has got changed is shown in green for your reference.

If anybody have idea about how to create link around the image in Mozilla, please post it soon.

I shall release RC1 once this is complete.

Thanking you,

Afru.


Quote
Extended File Manager EFM 1.0b for HtmlArea 3.0
Its always very nice to hear comments from others.
Be sure to leave your comments whenever you gain something.





pdegruijter
New User

Feb 20, 2005, 7:35 AM


Views: 135520
Re: [afru] Extended File Manager (EFM 1.0 beta) for HtmlArea 3 Rc 3 - Download Available

Hi Afru,

I don't know whether my problem lies with the efm, or with the fullscreen popup. When I have a image however in a text and use the fullscreen.html, the path to the image disappears and the folder in which the popup resides becomes the active image folder.

I've been searching both the efm and fullscreen for any clues, but haven't been able to find them.

thx for your great work,

Peter


IanB
New User

Feb 21, 2005, 5:03 AM


Views: 135436
Re: [AG] how to catch right click in moz?

HI,

i have a problem with uploading images? when i load file manager it gives me an error "access is denied"

Line 81

Char 3

manager.php?mode=image

also when i upload it says "folder does not have write permission

am running IIS


Can anybody please help


(This post was edited by IanB on Feb 21, 2005, 5:09 AM)


AG
Novice

Feb 21, 2005, 7:11 AM


Views: 135409
Re: [IanB] how to catch right click in moz?

Code

Hi,

I had the same problem on my IIS Server, yours might be the same. it has to do with the is_file() function. this is how i fixed it (the change is in one file - ExtendedFileManager.php) You will loose some of the file renaming funtionality when you upload duplicates, but at least it will work! Just change replace your old processFiles() function with this:


Code
   


/**
* Process upload files. The file must be an
* uploaded file. Any duplicate
* file will be renamed. See Files::copyFile for details
* on renaming.
* @param string $relative the relative path where the file
* should be copied to.
* @param array $file the uploaded file from $_FILES
* @return boolean true if the file was processed successfully,
* false otherwise
*/
function _processFiles($relative, $file)
{
if($file['
error']!=0)
{
Return false;
}




// START AG FIX (have to comment this out, as this function returns null for no good reason!
// if(!is_file($file['
tmp_name']))
// {
// Return false;
// }
// end ALI G FIX



if(!is_uploaded_file($file['
tmp_name']))
{
Files::delFile($file['
tmp_name']);
Return false;
}




$afruext = strtolower(substr(strrchr($file['
name'], "."), 1));

if(!in_array($afruext,$this->config['
allowed_extensions']))
{
Files::delFile($file['
tmp_name']);
Return "Cannot upload .".$afruext." Files. Permission denied.";
}

if($file['
size']>($this->config['max_filesize_kb']*1024))
{
Files::delFile($file['
tmp_name']);
Return "Unble to upload file. Maximum file size [".$this->config['
max_filesize_kb']."Kb] exceeded.";
}

if( (Files::dirSize($this->getBaseDir()))+$file['
size']> ($this->config['max_foldersize_mb']*1048576))
{
Files::delFile($file['
tmp_name']);
Return ("Cannot upload. Maximum folder size reached. Delete unwanted files and try again.");
}

//now copy the file
$path = Files::makePath($this->getBaseDir(),$relative);
$result = Files::copyFile($file['
tmp_name'], $path, $file['name']);



//start AG FIX

if (move_uploaded_file($file['
tmp_name'], $path . $file['name']))
Return $file['
name']." successfully uploaded.";

// end AG FIX
//
/* had to comment this the next few lines as well, as they returnened null
// //start AG fix 2
// if(copy ($file['
tmp_name'], $path . $file['name']))
// {
// Files::delFile($file['
tmp_name']);
// Return $file['
name']." successfully uploaded.";
// }
// //END AG fix 2

*/

//no copy error
/*
if(!is_int($result))
{
Files::delFile($file['
tmp_name']);
Return $file['
name']." successfully uploaded.";
}
*/
//delete tmp files.
Files::delFile($file['
tmp_name']);
Return false;

}