icontent.js
Static functions for writing the contents of an iframe-based editable field. These vary significantly from browser to browser. Uses strings and document.write instead of DOM manipulation, because iframe-loading is a performance bottleneck.

File Location

editor/icontent.js

Classes

goog.editor.icontent.FieldFormatInfo
A data structure for storing simple rendering info about a field.
goog.editor.icontent.FieldStyleInfo
A data structure for storing simple info about the styles of a field. Only needed in Firefox/Blended mode.

Public Protected Private

Global Functions

goog.editor.icontent.forceStandardsModeIframes()
No description.
code »
goog.editor.icontent.getInitialIframeContent_(infobodyHtmlstyle)
Generate the initial iframe content.
Arguments:
info :
Formatting info about the field.
bodyHtml :
The HTML to insert as the iframe body.
style :
Style info about the field, if needed.
Returns:   The initial IFRAME content HTML.
code »
goog.editor.icontent.writeHttpsInitialIframe(infodocbodyHtml)
Write the initial iframe content in IE/HTTPS mode.
Arguments:
info :
Formatting info about the field.
doc :
The iframe document.
bodyHtml :
The HTML to insert as the iframe body.
code »
goog.editor.icontent.writeNormalInitialBlendedIframe(infobodyHtmlstyleiframe)
Write the initial iframe content in normal mode.
Arguments:
info :
Formatting info about the field.
bodyHtml :
The HTML to insert as the iframe body.
style :
Style info about the field, if needed.
iframe :
HTMLIFrameElement
The iframe.
code »
goog.editor.icontent.writeNormalInitialIframe(infobodyHtmlstyleiframe)
Write the initial iframe content in normal mode.
Arguments:
info :
Formatting info about the field.
bodyHtml :
The HTML to insert as the iframe body.
style :
Style info about the field, if needed.
iframe :
HTMLIFrameElement
The iframe.
code »

Global Properties

goog.editor.icontent.useStandardsModeIframes_ :
Whether to always use standards-mode iframes.
Code »

Directory editor

File Reference