Comments (5)
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?
from vaadin-aceeditor.
@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:
from vaadin-aceeditor.
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.
@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
from vaadin-aceeditor.
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)
- PropertyDataSource not working correctly due to internal caching
- src-min-noconflict not available in 0.8.13 HOT 1
- setValue after setReadOnly(true) throws Exception HOT 2
- ENTER (=newline) doesn't work HOT 1
- Problem with keybindings HOT 1
- Scroll Listener
- vaadin 7.5 and aceeditor addon 0.8.13 compatibility
- Support Servlet 3.0 configuration HOT 2
- Keep scroll position inside a TabSheet
- setCursorRowCol fires 2 events
- Editor autoresize -- how to enable it?
- Links on Vaadin plugin directory page are wrong
- Auto completion feature in Ace Editor
- Compile widgetset error
- Disabling editor does not work in 0.8.15
- Height = 0 in Vaadin 8.1.0rc1
- I'd like to take over development of the AceEditor
- Changing value directly takes more time than clearing the text first HOT 2
- setEnabled() results in the editor displaying an empty editor rather than just disabling the editor
- Is there a way to disable error messages in editor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vaadin-aceeditor.