-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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.js: placing a red dot when clicking "enter" #5423
Comments
This appears to be a regression introduced between versions https://raw.githack.com/ajaxorg/ace/v1.4.14/kitchen-sink.html and https://raw.githack.com/ajaxorg/ace/v1.5.0/kitchen-sink.html blinking placeholder being shown on line start with rtl also seems to be a bug. |
I cannot seem to trigger it. Is this only affecting right-to-left editors? |
Yes, enable |
I see the dot now, looks quite a bad experience indeed, gonna put it as P1. |
Seems to be the following PR: #4693 |
The PR added a mechanism for detecting 'hidden unicode characters' that could introduce security vulnerabilities. Obviously when using RTL this would be a legitimate use case. So the solution would be to undo these checks when RTL is enabled.
|
I created a new issue for that problem (#5436). The current PR can be reviewed, and this issue could be resolved after it is merged. |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
This is the options i'm using for loading the editor
When I click "enter" a red dot appears, this is the element:
I don't want a live syntax checking, so I disabled the worker:
useWorker: false
What else am I missing in the config to make it stop ?
After switching to the src/ files, i've edited manually the
ace.js
file and saw that this code creates it:As you can see I tried to log to console the problematic char - but it's giving a strange result:
So I printed its code instead:
Which according to the web this is a right-to-left thing ( which I am using )
I'm loading:
How can I solve this ?
Expected Behavior
No dot should appear
Current Behavior
There's a dot with the following span inside the line
Reproduction Steps
I'm using a demo code like so:
Possible Solution
I removed the
rtlText: true,
but the blinking placeholder is at the left after starting a new line vs right ... so it's not idealAdditional Information/Context
No response
Ace Version / Browser / OS / Keyboard layout
Ace version: exports.version = "1.32.1", browser: Firefox, OS: MacOSX Monterey, Keyboard layout: hebrew
The text was updated successfully, but these errors were encountered: