Handles all inline GPG/PGP data found on content pages
webpg. | Handles all inline GPG/PGP data found on content pages |
Functions | |
init | Sets up the context and calls the PGPDataSearch method to find PGP data in the page. |
PGPDataSearch | Searches the document for elements that contain PGP Data blocks. |
ignoreInners | Avoids detection of PGP blocks found inside of other PGP blocks. |
PGPBlockParse | Parses range contents and sends the appropriate request for the PGP blocks discovered. |
addResultsFrame | Creates the results container(s) and iframe for the inline formatting |
addResultsReplacementFrame | Creates a results iframe that replaces the element that contained the original PGP data |
PGPBlockParse: function( range, node, blockType )
Parses range contents and sends the appropriate request for the PGP blocks discovered. Calls the addResultsFrame method for any matching PGP blocks.
range | <range> The range containing the identified PGP block |
node | <obj> The node that PGP data was discovered in |
blockType | <int> The type of webpg.constants.PGPBlocks found |
Sets up the context and calls the PGPDataSearch method to find PGP data in the page.
init: function( doc )
Searches the document for elements that contain PGP Data blocks.
PGPDataSearch: function( doc )
Avoids detection of PGP blocks found inside of other PGP blocks.
ignoreInners: function( idx, end, node )
Parses range contents and sends the appropriate request for the PGP blocks discovered.
PGPBlockParse: function( range, node, blockType )
Creates the results container(s) and iframe for the inline formatting
addResultsFrame: function( node, range )
Creates a results iframe that replaces the element that contained the original PGP data
addResultsReplacementFrame: function( element )