Giter VIP home page Giter VIP logo

Comments (5)

Alex-D avatar Alex-D commented on September 28, 2024

I confirm the bug, but I don't know how to fix it right now :/

from trumbowyg.

weecka avatar weecka commented on September 28, 2024

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.

notno avatar notno commented on September 28, 2024

I can confirm that this happens in ie9 and ie8 (not surprisingly).

Additionally, on ie8, when you open the insertLink modal, it shows up:
screen shot 2015-01-07 at 5 50 28 pm

Naturally, the [object TextRange] gets used as the text/alt if you don't change them.

from trumbowyg.

notno avatar notno commented on September 28, 2024

I think the solution may be similar to the solution for #58

from trumbowyg.

Alex-D avatar Alex-D commented on September 28, 2024

Fix thanks to @lizardK :)

from trumbowyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.