Search code examples
phphtmlcsstinymce

Tiny MCE Editor cursor is pointer not text


In my Tiny MCE Editor, the cursor is pointer when hovered which should be in text. I'm not getting any method or way to change cursor to text when hover on MCE Editor. The documentation of Editor is also not giving any idea.


Solution

  • add one more option in tinymce init function

    setup : function(ed) {
                      ed.on("click", function() {
                          ed.focus();
                      });
                  }
    

    now your code will like this

    tinymce.init({
        selector: "textarea",
        theme: "modern",
        width: '100%',
        plugins: ["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen",
                  "insertdatetime media table contextmenu paste textcolor"
                  ],
        toolbar: " bold italic underline | alignleft aligncenter",
        setup : function(ed) {
            ed.on("click", function() {
                ed.focus();
            });
        }
    });