[editor-simplyhtml] UsersNoteとStandardDocumentでエディタが開かなかった問題を修正
@@ -34,11 +34,7 @@ | ||
34 | 34 | this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); |
35 | 35 | |
36 | 36 | this.document = document; |
37 | - String xml = this.document.getSource(); | |
38 | - String source = null; | |
39 | - if(xml.startsWith("<xml><html>") && xml.endsWith("</html></xml>")){ | |
40 | - source = xml.substring("<xml><html>".length(),xml.length() - "</html><xml>".length()); | |
41 | - } | |
37 | + String source = this.document.getSource(); | |
42 | 38 | this.textPane = new GSEditorTextPane(this.document,source); |
43 | 39 | textPane.getSGSDocumentPane().setMouseListener(new GSWysiwygMouseListener(textPane)); |
44 | 40 | textPane.getSGSDocumentPane().setDocumentListener(new GSWysiwygDocumentListener(textPane)); |
@@ -24,11 +24,7 @@ | ||
24 | 24 | // this.tabbedPane = new GSTabbedPane(document,this); |
25 | 25 | |
26 | 26 | // GSEditorTextPane textPane = this.tabbedPane.getTextPane(); |
27 | - String xml = this.document.getSource(); | |
28 | - String source = null; | |
29 | - if(xml.startsWith("<xml><html>") && xml.endsWith("</html></xml>")){ | |
30 | - source = xml.substring("<xml><html>".length(),xml.length() - "</html><xml>".length()); | |
31 | - } | |
27 | + String source = this.document.getSource(); | |
32 | 28 | this.textPane = new GSEditorTextPane(this.document,source); |
33 | 29 | textPane.getSGSDocumentPane().setMouseListener(new GSWysiwygMouseListener(textPane)); |
34 | 30 | textPane.getSGSDocumentPane().setDocumentListener(new GSWysiwygDocumentListener(textPane)); |