FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

someone take out the TinyMCE's Right click menu![lock!]

 


Mgccl
I need the code for that right click menu... so I can use it...
I will pay.... a lot for it


Last edited by Mgccl on Wed Apr 26, 2006 11:18 pm; edited 1 time in total
Aredon
You want to prevent your users from right-clicking in order to prevent them opening the contextmenu?
Code:

<script type="text/javascript">
document.oncontextmenu=function(){return false}
</script>


What's the point if the user has JavaScript disabled?
Scorpio
Aredon wrote:
You want to prevent your users from right-clicking in order to prevent them opening the contextmenu?
Code:

<script type="text/javascript">
document.oncontextmenu=function(){return false}
</script>


What's the point if the user has JavaScript disabled?


That was the code I gave before.

I never got around understanding what he wanted anyway
Mgccl
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

I know how to disable context menu.... but I need an artifical menu like TinyMCE's to show up and function too
Aredon
Context menu script
Mgccl
this is cool.... but there are these problems...
It does not work well when DOCTYPE is XHTML 1.0
so... I need one like TinyMCE because it works so good in anything...
Traveller
You could also try http://www.dhtmlgoodies.com/index.html?whichScript=context_menu, which lets you set up a context menu based upon an unordered list.

Regardless of the approach you choose for your own context menu, if you wish to disable or modify the one in TinyMCE, you will probably need to look through its code for onContextMenu and/or onMouseDown events.
Mgccl
thx! Traveller! I'm donating all my points to you!
Traveller
Mgccl wrote:
thx! Traveller! I'm donating all my points to you!


Thanks. Glad to be of assistance. Good luck with your site.
Reply to topic    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.