Giter VIP home page Giter VIP logo

Comments (3)

therealglazou avatar therealglazou commented on May 28, 2024

A few things here...

  1. I don't see the <br /> elements you're mentioning
  2. if you place the caret at the begin of bar, you're in effect placing the collapsed selection INSIDE the dfn element and before the first character. So you end with two nested dfn elements. According to the HTML document model, this is wrong. But we have no way to allow pasting and be model-compliant here, hence the result.

To paste your <dfn>foo</dfn> correctly, place the caret inside the other dfn element, hit the ESC key to select the whole element and then the left arrow key to place the selection BEFORE the element (and not inside it like above).

Closing as there is nothing I can do here.

from bluegriffon.

garretwilson avatar garretwilson commented on May 28, 2024

Closing as there is nothing I can do here.

There is indeed something you can do here. Add the rule: "if the cursor is at the beginning of a series of inline elements and the user hits Enter, don't create a whole list of empty inline elements, as it is obvious that the user wants the newline to take place before them."

That is, if I my cursor is here:

<li><dfn><code><span>|foobar

If I hit Enter, it is obvious that I want to create this:

<li>
<li><dfn><code><span>|foobar...

and not

<li><dfn><code><span></span></code></dfn><br/>
  <dfn><code><span>|foobar...</li>

from bluegriffon.

garretwilson avatar garretwilson commented on May 28, 2024

To paste your foo correctly, place the caret inside the other dfn element, hit the ESC key to select the whole element and then the left arrow key to place the selection BEFORE the element (and not inside it like above).

Ah, that's a very good tip. Thanks. It seems to be working; I'll keep testing it. (Still the suggestion I indicated above could make it all more user friendly.)

from bluegriffon.

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.