Bug 738194 - Directly use editor.markupDocumentViewer in editingOverlay.js as it now is defined in base toolkit/content/widgets/editor.xml. r=neil

This commit is contained in:
aceman 2012-09-29 23:34:45 -04:00
Родитель 8cc1bbe884
Коммит b2be372a1a
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -117,8 +117,7 @@ function EditorStartup(aUrl, aCharset)
// Get url for editor content and load it. The editor gets instantiated by
// the editingSession when the URL has finished loading.
try {
var contentViewer = GetCurrentEditorElement().docShell.contentViewer;
contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
var contentViewer = GetCurrentEditorElement().markupDocumentViewer;
contentViewer.defaultCharacterSet = aCharset;
contentViewer.forceCharacterSet = aCharset;
} catch (e) {}