src/Parser/Html.php
public function attributeScript(array $quill)
    {
        if ($quill['attributes'][OPTIONS::ATTRIBUTE_SCRIPT] === Options::ATTRIBUTE_SCRIPT_SUB) {
            $this->deltas[] = new SubScript($quill['insert'], $quill['attributes']);
        }
        if ($quill['attributes'][OPTIONS::ATTRIBUTE_SCRIPT] === Options::ATTRIBUTE_SCRIPT_SUPER) {
            $this->deltas[] = new SuperScript($quill['insert'], $quill['attributes']);
        }
    }
public function attributeScript(array $quill)
    {
        if ($quill['attributes'][OPTIONS::ATTRIBUTE_SCRIPT] === Options::ATTRIBUTE_SCRIPT_SUB) {
            $this->deltas[] = new SubScript($quill['insert'], $quill['attributes']);
        }
        if ($quill['attributes'][OPTIONS::ATTRIBUTE_SCRIPT] === Options::ATTRIBUTE_SCRIPT_SUPER) {
            $this->deltas[] = new SuperScript($quill['insert'], $quill['attributes']);
        }
    }
public function attributeScript ( array $ quill ) { if ( $ quill [ 'attributes' ] [ OPTIONS :: ATTRIBUTE_SCRIPT ] === Options :: ATTRIBUTE_SCRIPT_SUB ) { $ this -> deltas [ ] = new SubScript ( $ quill [ 'insert' ] , $ quill [ 'attributes' ] ) ; } if ( $ quill [ 'attributes' ] [ OPTIONS :: ATTRIBUTE_SCRIPT ] === Options :: ATTRIBUTE_SCRIPT_SUPER ) { $ this -> deltas [ ] = new SuperScript ( $ quill [ 'insert' ] , $ quill [ 'attributes' ] ) ; } }
Script Quill attribute, assign the relevant Delta class and set up
the data, script could be sub or super

@param array $quill

@return void
Script Quill attribute assign the relevant Delta class and set up the data script could be sub or super