Global validator and xss

Global validator and xss

Loren MaxwellLoren Maxwell Posts: 387Questions: 94Answers: 10

I'd like to set xss to false for all the fields of a specific instance of Editor. Is this possible?

Would using a global validator be the appropriate place?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin
    Answer ✓

    There isn't an option to set that option globally at the moment. You need to set it per field - e.g.:

    Field::inst( 'myField' )
      ->xss( false )
    

    Allan

This discussion has been closed.