Search code examples
javascriptace-editor

Mozilla Ace: text mouseover reaction


I want to use Mozilla Ace with mouseover reaction on some highlighted elements. Like tooltips for the text, or, for instance, look on the color mouseover on the Dabblet. I want only to understand, how to make similar callback-functions in Ace and use them. So, how it can be reached?


Solution

  • the trick is some css rules:

    .ace_layer * {
        pointer-events:none !important;
    }
    
    .ace_constant {
        pointer-events:auto !important;
    }
    

    Look this fiddle