Code Monkey home page Code Monkey logo

Comments (3)

pandao avatar pandao commented on May 29, 2024

这个我就不认同了,谁会在两个字中间插入headers?我认为这是一种不正确的使用方式,你所说的引用、h1、 h2、 h3、 h4、 h5、 h6、无序列表、有序列表都不属于行内元素。

from editor.md.

tylerlong avatar tylerlong commented on May 29, 2024

你可以做个实验, 打开 microsoft word (或者CKEditor ), 输入一行文字, 把光标放到文字**,然后点击 h1

操作的含义就是 `把当前行变成h1`, 而不是 `在当前位置插入h1`。 这是为懒人设置的特性: 不必选中行,也不必把光标定位到行首。

大部分编辑器都是这样的。

from editor.md.

pandao avatar pandao commented on May 29, 2024

我觉得这样实在没有意义,而且你说的都是HTML所见即所得编辑器,不太合适。
再者我不想把Editor.md搞得太复杂,按80/20定律,我只想实现那80%的真正需求,另外那20%给他们自己DIY,反正是开源的。

所以建议我们还是不要讨论这种所谓的“懒人”需求。

from editor.md.

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.