|
|
|
Re: Xtext Web Editor [message #1734639 is a reply to message #1734627] |
Fri, 10 June 2016 07:04 |
Jahic Benjamin Messages: 10 Registered: October 2015 |
Junior Member |
|
|
Thank you for your fast reply, well actually I've added in the MWE2Workflow in the language section the webSupport section : Here the code
language = StandardLanguage {
name = "lu.uni.lassy.messep.tesma.Tesma"
fileExtensions = "tes"
serializer = {
generateStub = false
}
[i]webSupport = {
generateHtmlExample = true
framework = "CODEMIRROR"
}[/i]
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
and I've changed the script section in the index.html file to
require.config({
paths: {
"jquery": "webjars/jquery/<version>/jquery.min",
"xtext/xtext-codemirror": "xtext/<version>/xtext-codemirror"
},
packages: [{
name: "codemirror",
location: "webjars/codemirror/<version>",
main: "lib/codemirror"
}]
});
require(["xtext/xtext-codemirror"], function(xtext) {
xtext.createEditor();
});
}
and then I've executed the jettyrun command, the server starts properly but the textbox is actually not editable in the web application, neither in chrome or safari.
In attachement, I've put a screenshot of the web browser.
Thank you in advance
[Updated on: Fri, 10 June 2016 07:05] Report message to a moderator
|
|
|
|
|
|
Re: Xtext Web Editor [message #1750943 is a reply to message #1734646] |
Mon, 02 January 2017 13:25 |
Puneet Patwari Messages: 64 Registered: November 2014 |
Member |
|
|
Hi Christian
Quote:and you may need to add a
def void configureIPreferenceValuesProvider(Binder binder) {
binder.bind(IPreferenceValuesProvider).annotatedWith(FormatterPreferences).to(FormatterPreferenceValuesProvider)
}
to the webmodule if you use xtext 2.10
This is a very important piece of information. I have wasted 1 day figuring out my mistake. I recently downloaded Xtext 2.10 for using Xtext on Web. And i ran into this error which I could not find any help for. Now it's working fine.
Thanks for writing the solution.
Puneet
[Updated on: Mon, 02 January 2017 13:26] Report message to a moderator
|
|
|
|
|
|
Re: Xtext Web Editor [message #1751212 is a reply to message #1750985] |
Thu, 05 January 2017 17:10 |
Puneet Patwari Messages: 64 Registered: November 2014 |
Member |
|
|
Hi
Do I need to bind the IServerResourceHandler in WebModule code? Can you help me with a link that shows how I can implement the persistence mechanism? I am lost. I am also unable to run Orion editor. I can use the default ACE editor easily. I have seen the documentation on the official website but I do not think its sufficient to get a complete idea as to what is happening behind the curtains. I am very curious to know how the things are working within Xtext.
Thanks
:Puneet
[Updated on: Thu, 05 January 2017 17:19] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03984 seconds