TinyMCE not loading content in Editor

TinyMCE not loading content in Editor

mccwebdevmccwebdev Posts: 20Questions: 6Answers: 2
edited January 2022 in Bug reports

I have an Editor table that is making use of the TinyMCE plugin for one of the fields. Works without issues using packages:

"datatables.net": "^1.10.19",
"datatables.net-bs4": "^1.10.19",

However, upon the upgrade to packages:

"datatables.net": "1.11.4", or 1.13.9
"datatables.net-bs4": "1.11.4",

the TinyMCE content field will no longer load the contents. It simply displays blank. I've experimented with a variety of things to debug and found that the package update is the culprit. The first time I edit a record in a private/incognito browser there is a quick flash of the content and then it gets cleared out. Any assistance in resolving this or an update to the TinyMCE JS to fix would be appreciated.

Thanks

This question has accepted answers - jump to:

Answers

  • mccwebdevmccwebdev Posts: 20Questions: 6Answers: 2
    Answer ✓

    Sorry forgot to include TinyMCE version: 5.4.2

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    Thanks for the update. That'll do it :)

    Allan

  • mccwebdevmccwebdev Posts: 20Questions: 6Answers: 2
    edited January 2022

    Sorry Allan, I just meant that I forgot to include what verion of TinyMCE I am using. It was installed along with those DT versions I mentioned and produces the issue.

    So to clarify, I have Datatables intalled with the newer versions mentioned above and have TinyMCE installled using 5.4.2 and that is producing the issue of the content not being displayed in the TinyMCE editor.

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    Oh! Haha - sorry!

    Could you give me a link to your page so I can debug the issue please?

    Allan

  • getgecogetgeco Posts: 1Questions: 0Answers: 1
    Answer ✓

    I added conf._input.find('textarea').val(val); to the set function and worked for me

        set: function ( conf, val ) {
                var editor = tinymce.get( conf._safeId );
    
                // If not ready, then store the value to use when the `open` event fires
                conf._initSetVal = val;
                conf._input.find('textarea').val(val);
                if ( ! editor ) {
                    return;
                }
                editor.setContent( val );
            },
    
Sign In or Register to comment.