Re: custom javascript editor throws Exception
arsi <[email protected]> Mon, 07 Aug 2017 20:09:41 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Test this:
| EditorKit kit = MimeLookup.getLookup(mimeType).lookup(EditorKit.class);
if (kit ==null) {
throw new IllegalArgumentException("No EditorKit for '" + mimeType +"' mimetype.");
}
JEditorPane editorPane =new JEditorPane();
editorPane.setEditorKit(kit);
|
Arsi
------------------------------------------------------------------------
*From:* Difficult
*Sent:* Monday, August 07, 2017 5:56PM
*To:* Dev
*Subject:* [platform-dev] custom javascript editor throws Exception
I develop a web project plugin which has a javascript editor,and the editor is implemented as following:
Code:
EditorKit kit = CloneableEditorSupport.getEditorKit("text/javascript");
javascriptTextArea.setEditorKit(kit);
When installed in Netbeans 8.1,in the editor,when entering . ,the Netbeans throws exceptionï¼s(