/    Sign up×
Community /Pin to ProfileBookmark

needs help with an right click menu

I have tried with many ways to make an right click menu just like the one in TinyMCE

[url]http://tinymce.moxiecode.com/example_full.php?example=true[/url]

if you right click in the editor, you will see an right click menu….

I want an right click menu just like that, with the funcion of copy (in non textarea),cut and paste(in textarea)….

anyone can help me with it?
I also need it compatable with 2 standards… one is
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
and the other is the html file have no notice at all of what doctype it is…

Anyone can help me with that?

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 23.2006 — Far as I can see that web page uses the same context menu as all the other web pages I have looked at. After all a web page doesn't have access to change the context menu (at least it doesn't in the browser I use and any sensible person using browsers where it is optionally allowed will have disabled that option).
Copy linkTweet thisAlerts:
@balloonbuffoonApr 23.2006 — He means the artificial context menu when you right click in the WYSIWYG editor.

--Steve
Copy linkTweet thisAlerts:
@felgallApr 23.2006 — I know what he means but that only comes up in browsers that allow web pages to override the context menu and where the person hasn't disabled the option in their browser. Therefore only a small fraction of visitors will ever see it. Fewer as time goes on and more people start using appropriate security settings. A web page is not supposed to be able to access that menu.
Copy linkTweet thisAlerts:
@balloonbuffoonApr 24.2006 — Its not really accessing the context menu as much as disabling it and showing an artificial one in place of it. Don't you show on your website how to disable the context menu? And doesn't it work in the average user's browser? I think the majority of users' browsers are set in such a way to allow a website to disable the context menu.

--Steve
Copy linkTweet thisAlerts:
@MgcclauthorApr 24.2006 — umm... I need that menu is for disable the normal context menu and still let the user to do 3 basic functions... cut, paste in textboxs, and copy in everywhere....

I used hours to search for a solution... and only find TinyMCE got what I need... but I don't know how to seprate it from TinyMCE
Copy linkTweet thisAlerts:
@felgallApr 25.2006 — The Opera web browser completely disregards any script references to the context menu and just displays the regular menu.

The Mozilla based browsers such as Firefox are slightly more configurable from the browser. With the right settings the person will be able to see both your custom context menu and their regular one.
Copy linkTweet thisAlerts:
@stephen1davisApr 26.2006 — i have an IE only one [URL=http://www.freewebs.com/stephendavis/cmenu.html]here[/URL].
Copy linkTweet thisAlerts:
@felgallApr 26.2006 — IE is the only browser that allows such things. The facility is there for use on intranets since on the internet you can't assume that people are still runing such an old broswer.
×

Success!

Help @Mgccl spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.9,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...