yandex-ui / ckeditor-autolink2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gnodiah/ckeditor-autolink
A hyperlink auto-generator plugin for CKEditor
License: MIT License
This project forked from gnodiah/ckeditor-autolink
A hyperlink auto-generator plugin for CKEditor
License: MIT License
There is a bug with the link detection in the IE11.
I write some text, then the last part of the line is a link. I press RETURN and start writing text in the second line. Then the link is detected as expected and the target is the right URL.
But in the second line the first word is detected as link, too. And it has another target. It is the link from the first line plus the word of the second line.
It's a bit hard to explain with text, so here are 2 screenshots.
In this screenshot you can see the editor content and the opened link dialog. The link you see in the dialog is the one of the end of the first line.
In this screenshot you see the same text, but the link dialog shows the link of the first word of the second line. As you can see it is wrong.
На основе https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
предлагается заменить regexp для проверки имейла
/[^@]+@[^\.]+(\.[^\.]+)*\.[^\.]{2,}/i
При вводе текста
Зайди сюда: http://server.com!
сейчас получаем ссылку вместе с !
(ссылка обозначена []
):
Зайди сюда: [http://server.com!]
хочется так
Зайди сюда: [http://server.com]!
Ещё примеры:
сейчас:
[http://server.com]
[http://server.com.]
[http://server.com,]
[http://server.com!]
хочется
[http://server.com]
[http://server.com].
[http://server.com],
[http://server.com]!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.