(tag, attrs, lkey, value)
| 593 | |
| 594 | // this function is used to manually allow specific attributes on specific tags with certain prerequisites |
| 595 | function validCustomTag(tag, attrs, lkey, value){ |
| 596 | // catch the div placeholder for the iframe replacement |
| 597 | if (tag === 'img' && attrs['ta-insert-video']){ |
| 598 | if(lkey === 'ta-insert-video' || lkey === 'allowfullscreen' || lkey === 'frameborder' || (lkey === 'contenteditable' && value === 'false')) return true; |
| 599 | } |
| 600 | return false; |
| 601 | } |
| 602 | |
| 603 | /** |
| 604 | * create an HTML/XML writer which writes to buffer |
no outgoing calls
no test coverage detected