nl_tokens: Takes the attributes of the elementToChange and inserts them in their corresponding dialog input fields
pl_tokens: function ( avoidHiddenFields ) { var field , fieldName , newValue , focusedElement = document . querySelector ( ":focus" ) , <mask> = this . container . querySelectorAll ( SELECTOR_FIELDS ) , length = fields . length , i = 0 ; for ( ; i < length ; i ++ ) { field = fields [ i ] ; // Never change elements where the user is currently typing in if ( field === focusedElement ) { continue ; } // Don't update hidden fields // See https://github.com/xing/wysihtml5/pull/14 if ( avoidHiddenFields && field . type === "hidden" ) { continue ; } fieldName = field . getAttribute ( ATTRIBUTE_FIELDS ) ; newValue = this . elementToChange ? ( this . elementToChange [ fieldName ] || "" ) : field . defaultValue ; field . value = newValue ; } }