Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 375521

Summary: Expose TextView's _frameDocument to the public API
Product: [ECD] Orion Reporter: Christanto Leonardo <christanto.leonardo>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: Silenio_Quarti
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Christanto Leonardo CLA 2012-03-28 08:27:55 EDT
Build Identifier: 

If will be very useful if _frameDocument of TextView is publicly exponsed.

For example I would like to inject a custom css style, for customizing font-size and font-family.

Reproducible: Always
Comment 1 Silenio Quarti CLA 2012-03-28 09:38:46 EDT
The latest editor (0.5) is not wrapped with an IFRAME anymore, so the _frameDocument does not exists.  You can inject CSS in the page document. Note that you have to call textView.update(true) if you are changing the CSS dynamically.

For 0.4, you can inject CSS by setting the "stylesheet" option (see setOption(options)). Note that the stylesheet option is gone as well.