Okay
  Public Ticket #2689001
Custom css formatted on one line
Closed

Comments

  • John J Hannon started the conversation

    When I enter custom css in the UI and hit Save, the css gets formatted as a single line of text. This makes it extremely difficult to edit if you have more than one or two style rules.

  • John J Hannon replied

    Possibly related?

    load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tabs,jquery-form&ver=5.6:5 JQMIGRATE: Migrate is installed, version 3.3.2
    main.js?ver=3.4.1:459 Uncaught ReferenceError: aceEditorTableCSS is not defined
        at HTMLPreElement.<anonymous> (main.js?ver=3.4.1:459)
        at HTMLPreElement.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tabs,jquery-form&ver=5.6:2)
        at HTMLPreElement.v.handle (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tabs,jquery-form&ver=5.6:2)
    (anonymous) @ main.js?ver=3.4.1:459
    dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tabs,jquery-form&ver=5.6:2
    v.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tabs,jquery-form&ver=5.6:2


  •  2,572
    Aleksandar replied

    Hello John

    I'm not sure I understand what the issue is here.

    Can you show me in a screenshot what you're referring to?

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • John J Hannon replied

    Screenshot attached. This css was nicely formatted when I entered it, now it's all on one line.

  •  472
    Isidora replied

    Hi John,

    Sorry for the delay in our responses, has been national holidays in our country for the last two days.

    Aleksandar is on vacation and I will help you out.

    Yes, you are right. We will fix this for the next update. Until that please go in file wp-content/plugins/wpdatatables/source/class.wdtconfigcontroller.php around line 409

    you will find this

    $table->tableCustomCss = sanitize_text_field($table->tableCustomCss);

    and replace with this

    $table->tableCustomCss = sanitize_textarea_field($table->tableCustomCss);

    Sorry for the inconvenience,

    Thank you for reporting this.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables