Comments (5)
I confirm the bug, but I don't know how to fix it right now :/
from trumbowyg.
Hello @Alex-D,
to let you know, same thing is happening while using IE v11.
I think that the problem is here with the browser difference about execCommand function and in particularly createLink command.
MDN docs says:
createLink
Creates an anchor link from the selection, only if there is a selection. This requires the HREF URI string to be passed in as a value argument. The URI must contain at least a single character, which may be a white space. (Internet Explorer will create a link with a null URI value.)
Here is a link to docs: https://developer.mozilla.org/en-US/docs/Web/API/document.execCommand
As a solution, maybe there is a way to create a workaround, which would insert some white spaces and perform range selection automatically before the actual link insertion? And then after that perform a white space cleanup?
Regards,
-Vytautas
from trumbowyg.
I can confirm that this happens in ie9 and ie8 (not surprisingly).
Additionally, on ie8, when you open the insertLink modal, it shows up:
Naturally, the [object TextRange] gets used as the text/alt if you don't change them.
from trumbowyg.
I think the solution may be similar to the solution for #58
from trumbowyg.
Fix thanks to @lizardK :)
from trumbowyg.
Related Issues (20)
- <div id="trumbowyg-icons"> is remaining without style
- Base64 images are not displayed in gmail. HOT 2
- Line height plugin displaying custom size 1.5 as large HOT 2
- Issue with Undo and Redo Button HOT 1
- Big Issue with righttoleft languages
- How can i get text of editor (not html) and how call Focus on editor ?
- Insert html, java, python, etc code with format like an IDE
- Support for Tenor Gif API
- Sandbox CSS possible?
- Trumbowyg getting slow on Safari, but not on Chrome
- Hard to click for focus on empty editor HOT 3
- 2.28.0 assets are not showing in cdnjs
- Extra p tag on editing content HOT 1
- Table cells become unresizable after table content changed
- Add the ability to restrict image types
- Html model breaks html format
- Line-break with Ctrl-Enter not working anymore HOT 3
- form submission for colors plugin
- nombed not return all elements HOT 1
- O editor funciona muito bem com o highlihtjs-copy / Implement copy and paste to Trumbowyg
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 trumbowyg.