Git Product home page Git Product logo

Comments (2)

haochuan9421 avatar haochuan9421 commented on June 21, 2024

这些特殊的列表序号其实是一些小图片,UEditor 默认的图片地址 http://bs.baidu.com/listicon/ 已经 404 了,所以看不见这些序号。我已经把这些图片另存下来了,可以点这里下载。

  1. 把这图片保存到下列位置:
    image
  2. 设置 config 中的 listiconpath: UEDITOR_HOME_URL + "listicon/"

这样编辑的时候就可以看到序号了。

但要注意的一点的是,在还原编辑器内容时,要使用 ueditor.parse.js,不然还原后的富文本还是看不到序号的。可以参考 UEditor 官方关于 编辑内容展示的文档 和我写的编辑内容展示 的示例。

还有一点就是 ueditor.parse.jsueditor.parse.min.js 本身是有一个小 BUG 的,看下图修改一下就好了
image

如果不使用 ueditor.parse.js 来还原,可以手动设置样式,附上一段 less 代码:

.list(@i) when (@i > -1) {
  .list((@i - 1));
  .list-cn-1-@{i} {
    // 注意这里的路径,根据小图片的位置进行调整
    background-image: url('/UEditor/listicon/list-cn-1-@{i}.gif');
  }
  .list-cn-2-@{i} {
    background-image: url('/UEditor/listicon/list-cn-2-@{i}.gif');
  }
  .list-cn-3-@{i} {
    background-image: url('/UEditor/listicon/list-cn-3-@{i}.gif');
  }

  .list-num-1-@{i} {
    background-image: url('/UEditor/listicon/list-num-1-@{i}.gif');
  }
  .list-num-2-@{i} {
    background-image: url('/UEditor/listicon/list-num-2-@{i}.gif');
  }
  .list-num-3-@{i} {
    background-image: url('/UEditor/listicon/list-num-3-@{i}.gif');
  }
}
.list(99);

from vue-ueditor-wrap.

beck126 avatar beck126 commented on June 21, 2024

图片没办法下载啊

from vue-ueditor-wrap.

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.