Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACE editor selection problem (wikipedia JS code editor) #2

Open
Eccenux opened this issue Oct 10, 2022 · 0 comments
Open

ACE editor selection problem (wikipedia JS code editor) #2

Eccenux opened this issue Oct 10, 2022 · 0 comments

Comments

@Eccenux
Copy link
Owner

Eccenux commented Oct 10, 2022

ACE editor is used for scripts (JS).

Seems like ACE is randomly choosing not to select things.

Code:

setTimeout(function(){
	console.log('2 sek')
},7000)
setTimeout(function(){
	console.log('1 sek')
},8000)
setTimeout(function(){
	console.log(sel_t3.getSelection())
},9000)

Edit field:

a
b
c
d
e
f
g
h

"d.e.f" is selected (3 lines)

Object { isEditable: true, isInput: true, selected: "d\ne" }

CTRL+A selected (8 lines):

Object { isEditable: true, isInput: true, selected: "g\nh" }
@Eccenux Eccenux changed the title ACE editor selection problem ACE editor selection problem (wikipedia JS code editor) Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant