We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

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.

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...)

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.

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)

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.

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.

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.

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:

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.

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

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.

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.

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.

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

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.