nl_tokens: @module snippetPreview Defines the config and outputTarget for the SnippetPreview
pl_tokens: function ( opts ) { defaultsDeep ( opts , defaults ) ; this . data = opts . data ; if ( ! isUndefined ( opts . analyzerApp ) ) { this . refObj = opts . analyzerApp ; this . i18n = this . refObj . i18n ; this . data = { title : this . refObj . rawData . snippetTitle || "" , urlPath : this . refObj . rawData . snippetCite || "" , metaDesc : this . refObj . rawData . snippetMeta || "" , } ; // For backwards compatibility set the metaTitle as placeholder. if ( ! isEmpty ( this . refObj . rawData . metaTitle ) ) { opts . placeholder . title = this . refObj . rawData . metaTitle ; } } if ( ! isUndefined ( opts . i18n ) ) { this . i18n = opts . i18n ; } if ( ! isElement ( opts . targetElement ) ) { throw new Error ( "The snippet preview requires a valid target element" ) ; } this . opts = opts ; this . _currentFocus = null ; this . _currentHover = null ; // For backwards compatibility monitor the unformatted text for changes and reflect them in the preview this . unformattedText = { } ; <mask> . defineProperty ( this . unformattedText , "snippet_cite" , { get : retrieveUnformattedText . bind ( this , "urlPath" ) , set : updateUnformattedText . bind ( this , "urlPath" ) , } ) ; Object . defineProperty ( this . unformattedText , "snippet_meta" , { get : retrieveUnformattedText . bind ( this , "metaDesc" ) , set : updateUnformattedText . bind ( this , "metaDesc" ) , } ) ; Object . defineProperty ( this . unformattedText , "snippet_title" , { get : retrieveUnformattedText . bind ( this , "title" ) , set : updateUnformattedText . bind ( this , "title" ) , } ) ; }