How disable Multi Restore option

How disable Multi Restore option

gutobrzgutobrz Posts: 2Questions: 1Answers: 0

Hi Folks,

My editor has just fields of type "select" so I don´t want the "Undo changes" text being presented when the editor is opened. Is there Editor option to hide it?
I worked around using JS setTimout in my "open" event handler, I mean:

editor.on( 'open', function ( e, d, type ) {
    if ( type === 'edit' ) {
        if(editor.field("ModuleId").isMultiValue()) {
            // Work arround to hide multi restore message
            setTimeout(function() { 
                $(".multi-restore").hide();
            }, 500);
...

Thanks in advance,

Guto

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Hi Guto,

    I don´t want the "Undo changes" text being presented when the editor is opened

    It shouldn't be. It should always be hidden by default until some user interaction to cause it to appear. I'm wondering if the Editor CSS hasn't been included (or perhaps updated)?

    Can you give me a link to the page in question please?

    Allan

  • gutobrzgutobrz Posts: 2Questions: 1Answers: 0

    Hi Allan,

    I can provide the access to the page (I will need your e-mail since it is under login) but
    your comment clarify why the text is being presented, I mean, my editor handles two select fields, as the rows to be edited should have different values (for one or both selects), I included a placehold in the select options saying "Keep individual value". So there is an interaction (not an user interaction).

    For sure it is not a editor issue and looks like I will need to keep my workaround.

    Thanks for your time.

    Guto

This discussion has been closed.