Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3405718
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:32:23+00:00 2026-05-18T05:32:23+00:00

I would like to add onMouseOver and onMouseOut events to an editor instance within

  • 0

I would like to add onMouseOver and onMouseOut events to an editor instance within TinyMCE (through a plugin), but they seem not to be supported by TinyMCE’s API. Specifically, I would like a control to appear when the element is moused over to toggle “read-only” mode (and possibly other things). Would I have to add code myself to TinyMCE to do this, or is it supported through some non-obvious route? If I do have to add code, is there some prohibition against supporting these events that forms the basis of their reasoning for not including it in the API?

To clarify for the benefit of those with the same confusion as responders below, I am specifically wishing to attach an event to the TinyMCE.Editor instance that is created by the TinyMCE library (the class that is, for instance, passed to the callback used in the setup parameter of TinyMCE.init). I wish to do the following

tinyMCE.init({
  .
  .
  .
  setup : function(ed) { 
    TinyMCEReadOnlySetup(ed,true); 
    ed.onMouseOver.add(ShowButton(ed));
    ed.onMouseOut.add(HideButton(ed));
  },
  .
  .
  .
});

, but ed (an instance of TinyMCE.Editor) does not support MouseOver.add in the fashion of similar events.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:32:24+00:00Added an answer on May 18, 2026 at 5:32 am

    Alright, I was able to get this to work by creating a plugin, then adding the following very hack-y code in the init attribute:

    ed.onInit.add(function(ed){
                       .
                       .
                       .
    
        document.getElementById(ed.id + '_parent').setAttribute('onmouseover',
          "tinyMCE.editor_ShowButton('" + ed.id + "');");
        document.getElementById(ed.id + '_parent').setAttribute('onmouseout',
          "tinyMCE.editor_HideButton('" + ed.id + "');");
        //ed.getBody().appendChild(newdiv);
     });
    

    It’s not an optimal solution, but it gets the job done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to add a way to scroll through menu items in a
I have this jquery plugin that zooms in on photos, but I would like
I would like to add a DataGridViewTextBoxCell cell to a DataGridViewCell control, but as
I would like to add AES encryption to a software product, but am concerned
I would like to add an element to an array but without actually changing
I have own project and i would like add for this class same as
I have a ListView and each item have a TextView. I would like add
I would like to add a GestureDetector to all views (view groups) of an
I would like to add a custom calculation method to a managed object (which
I would like to add roots to a VirtualTreeView http://www.delphi-gems.com/index.php/controls/virtual-treeview with a thread like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.