editor.show() and bootstrap4

editor.show() and bootstrap4

GargiucnGargiucn Posts: 109Questions: 30Answers: 0

Using editor.show('field_name') with bootstrap4 the editor add style="display: block;" on this line:

...
<div class="DTE_Field form-group row DTE_Field_Type_text DTE_Field_Name_contatti.cont_ragsoc" style="display: block;">

is there a solution?
Thanks,

Giuseppe

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    Thanks for your question. I'm not sure I understand what the problem is I'm afraid. Using editor.field('first_name').show() on this page doesn't appear to cause any issues.

    Allan

  • GargiucnGargiucn Posts: 109Questions: 30Answers: 0

    Exactly what I said happens...
    Using editor.field('first_name').show() the field is displayed in the editor below its description because a style="display: block;" is added.
    Here the instructions I use:

        editor.on('initEdit', function() {
            //editor.show(); 
            editor.field('prod_provvi').hide();
            //editor.hide('prod_provvi');
        }); 
        editor.on('initCreate', function() {
            //editor.show(); 
            editor.field('prod_provvi').show();
        }); 
    

    No difference using editor.field('first_name').show() or editor.show('first_name').
    Using editor.show() all visible fields have the same problem...
    I enclose the screenshots where Field2 is hidden in Edit and visible in Add.


    Thanks,
    Giuseppe

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I wasn't able to reproduce that on the example I linked to above I'm afraid. Could you give me a link to your page so I can check it out and debug the issue?

    Thanks,
    Allan

This discussion has been closed.