Comments (6)
It seems that the semicolon isn't the crucial to reproduce.
It reproduced to me when you press enter after some symbols at the end of block with contenteditable and there were no whitespaces at the start of the line.
So, in empty pane writing something (without spaces/tabs at start) in the first line and pressing enter would reproduce the bug.
Also, there is a bug that relates to this: when you're on the last line and didn't press the enter for the first time, them deleting everything in this line would place the caret at the beginning of code block.
So, after writing a+enter+enter+b
you could see the following (“|” is a caret):
a
b|
Then pressing backspace the b
would be deleted, but the caret would be moved to the start:
|a
But if you'd press the enter after b
(which won't create a new line), then pressing backspace wouldn't move the caret.
from dabblet.
Also, I saw that this behavior can be seen both in Chrome/Safari and in Firefox, but in Firefox this works another way: when you press enter for the first time, you don't see the newline, but when you press any other key (chars, or enter
again), you'd see that there were a new line, so pressing enter two times would create two line breaks (and only one in webkits).
from dabblet.
It seems this only happens when the caret is at the end of the text. Can anyone reproduce in other cases?
from dabblet.
Only at the end of text to me too. In other cases it was ok every time I've tested.
from dabblet.
I think I fixed it, although in a way I'm not too proud of. Can you confirm please?
from dabblet.
Works for me now.
from dabblet.
Related Issues (20)
- Minor JS issue for IE9 HOT 2
- Inline CSS previewers don't handle HTML entities/escapes in style attributes HOT 1
- Line break lost after paste HOT 2
- Enabling the <script> tags. HOT 5
- JavaScript Syntax Error (Does not show location)
- Why not integrate Codemirror or Ace? HOT 1
- Tab-switching shortcuts stop working after switching to Results tab
- Typo in CSS of 'Circular Text' HOT 1
- Import snipet into Silex with an API HOT 2
- adding images from local memory HOT 2
- line error in editor HOT 3
- This request has been blocked; HOT 1
- Validator returns 415 eror
- Can No Longer Save Gists/Dabblets Anonymously HOT 1
- my menu does not work HOT 1
- Nothing serious, description is removed.
- Log in issue HOT 13
- 404 Error - Link to: View Full Page Result HOT 2
- Why dabblet still not save codes and not login with GitHub HOT 1
- Responsible disclosure policy
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 dabblet.