Global validator and xss

Global validator and xss

Loren MaxwellLoren Maxwell Posts: 406Questions: 99Answers: 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: 63,498Questions: 1Answers: 10,471 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.