codex-team / codex-team/editor.js

Fake selection by inline-link tool strangely works with inline-code

Open
#828 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

## steps to reproduce

1. we have a text with a inline-code elements
![image](https://user-images.githubusercontent.com/15259299/60445025-1286ea00-9c27-11e9-8134-faa3272fc296.png)

2. lets select target area that will be a link
![image](https://user-images.githubusercontent.com/15259299/60445125-4235f200-9c27-11e9-9a5f-7b7602de7c54.png)

3. click "inline-link" tool icon. there will be added a fake selection to show selected area while you are editing link's url
![image](https://user-images.githubusercontent.com/15259299/60445151-511ca480-9c27-11e9-9955-bbc6371ae95b.png)

4. enter a link, or click tool icon again, or just click outside the toolbar. after editing last selection range will be restored, but there will stay strange selection (as fake)
![image](https://user-images.githubusercontent.com/15259299/60445357-bb354980-9c27-11e9-8ace-024e103c906d.png)

5. remove selection and you will see a selected range with a fake selection.
![image](https://user-images.githubusercontent.com/15259299/60445334-b375a500-9c27-11e9-9985-2a36ec890823.png)

### Gif example

![Jul-01-2019 17-22-28](https://user-images.githubusercontent.com/15259299/60444441-e74fcb00-9c25-11e9-9a2d-95a997d89fda.gif)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.