Git Product home page Git Product logo

Comments (5)

ahn avatar ahn commented on September 17, 2024

Do you mean this light blue/gray line on the cursor line in this picture? That should be there by default, works for me in here. Or do you mean something else?
linehighlight

from vaadin-aceeditor.

marcelhallmann avatar marcelhallmann commented on September 17, 2024

@ahn
Hi,

yes, thats the highlighted line I mean.
When I try your online demo it works for me, too, but Iโ€™m not sure if the online demo already is V7 or still V6?

Hereโ€™s my code snippet:
this.aceeditor = new AceEditor();
this.aceeditor.setValue("text" +
"text" +
"text" +
"text");
this.aceeditor.setMode(AceMode.textile);
this.aceeditor.setTheme(AceTheme.eclipse);

And here the result:

ace

from vaadin-aceeditor.

ahn avatar ahn commented on September 17, 2024

Yes, now I've seen this bug myself.

The demo is Vaadin 7 but it hosts its own Ace theme files, that's why it works.

By default the Vaadin 7 AceEditor reads the required theme/mode/worker files from the same location as this Ace tutorial. The files are probably of different version than the Ace of the current Vaadin AceEditor or something, and that may be why the highlight line doesn't show.

I don't have time to take a look at this deeper now, but for now you can host your own theme/mode/worker files as descriped in "Ace file paths" chapter here to get the themes to properly work. I recommend using the Ace files of the Directory download package.

from vaadin-aceeditor.

marcelhallmann avatar marcelhallmann commented on September 17, 2024

@ahn
Thanks a lot for your help, the hightlight works now for me.

But I found another issue:
Add a textfield and a button to the page and an listener to the button. Within the listener read the value from the textfield and call aceeditor.setCursorPosition().

To reproduce the behavior start the webapp and go to the page, but do not click in the aceeditor!
Type in 15.
When you click now onto the button, the second line will be selected, which is not correct, it should be the thrid line.
But, when you click into the aceeditor it works correctly (reload the page).

Here you see screenshots:
without clicking into the aceeditor
without_click

and with clicking into it
with_click

from vaadin-aceeditor.

Sudhansu9269 avatar Sudhansu9269 commented on September 17, 2024

Hi,
I am new In vaadin ace editor. i added ace editor in my application. but enter key is not working. the cursor only in first line can u help me.

from vaadin-aceeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.