Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
show hover tooltip on custom formatted element in tinymce editor

I want to show my provision value in a tooltip on hover selected element in tinymce editor.

I have something like this:

tinymce.init({
    selector: 'textarea',
    menubar: false,
    toolbar: [
        'undo redo | styleselect | removeformat'
    ],
    statusbar: false,
    height: 300,
    style_formats:[
         {
           title: "Provisions",
           items: [
                 {title: 'Provision1', inline: 'span', 'classes': 'provision provision-1'},
                 {title: 'Provision2', inline: 'span', 'classes': 'provision provision-2'},
           ]
        },
    ],
    content_style: ".provision {background: #c4dce8}",
});

I want to see the provision title in the tooltip when I hover some formated line in my text.

When I select line of text in my paragraph and format it as a provision, classes and styles are appending. It works but how can I include a tooltips to these selected elements?

Many thanks for help.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!