Skip to content

Commit

Permalink
Ticket #78 - Removed the 2nd <link> tag being inserted into the previ…
Browse files Browse the repository at this point in the history
…ew and added 'theme' ids to all theme <link>s.
  • Loading branch information
OscarGodson committed Jun 17, 2012
1 parent 0aa0b7a commit cc280c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
9 changes: 3 additions & 6 deletions epiceditor/js/epiceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,13 @@
setupIframeStyles(elementsToResize);

// Insert Base Stylesheet
_insertCSSLink(self.settings.basePath + self.settings.theme.base, self.iframe);
_insertCSSLink(self.settings.basePath + self.settings.theme.base, self.iframe, 'theme');

// Insert Editor Stylesheet
_insertCSSLink(self.settings.basePath + self.settings.theme.editor, self.editorIframeDocument);
_insertCSSLink(self.settings.basePath + self.settings.theme.editor, self.editorIframeDocument, 'theme');

// Insert Previewer Stylesheet
_insertCSSLink(self.settings.basePath + self.settings.theme.preview, self.previewerIframeDocument);
_insertCSSLink(self.settings.basePath + self.settings.theme.preview, self.previewerIframeDocument, 'theme');

// Add a relative style to the overall wrapper to keep CSS relative to the editor
self.iframe.getElementById('epiceditor-wrapper').style.position = 'relative';
Expand All @@ -524,9 +524,6 @@
this.previewer.style.height = parseInt(_getStyle(this.previewer, 'height'), 10) + 2;
}

// Preload the preview theme:
_insertCSSLink(self.settings.basePath + self.settings.theme.preview, self.previewerIframeDocument, 'theme');

// If there is a file to be opened with that filename and it has content...
this.open(self.settings.file.name);

Expand Down
Loading

0 comments on commit cc280c4

Please sign in to comment.