Giter Club home page Giter Club logo

neditor's Introduction

新版发布

2.1 发布,此次版本移除了后端相关代码,纯 ajax 提交,请配置 neditor.config.js neditor.service.js,支持各种后端或者云存储。

捐赠

该项目需要您的支持, 捐赠 以支持此项目的发展。

第一步:下载编辑器

方式一:完整安装包 (推荐)

方式二: npm安装

npm i @notadd/neditor -S

方式三:编译安装

git clone https://github.com/notadd/neditor.git
npm install
npm run build

第二步:在浏览器打开 index.html

进入到目录 dist , 使用浏览器打开文件 index.html

如果看到了下面这样的编辑器,恭喜你,初次部署成功!

部署成功

相关版本

Angular 版 Neditor

Vue 版 Neditor 【第三方维护】

Rails 版 Neditor 【第三方维护】

技术支持

该项目基于 MIT 协议开源,任何组织/企业以及个人都可以免费使用(保留版权)。
如果您需要额外商业技术支持或者定制编辑器,请联系 QQ:1256985886

其他版本待添加

自定义的参数

编辑器有很多可自定义的参数项,在实例化的时候可以传入给编辑器:

var ue = UE.getEditor('container', {
    autoHeight: false
});

配置项也可以通过 neditor.config.js 文件修改,具体的配置方法请看 [前端配置项说明](http://fex.baidu.com/ueditor/#start-config1.4 前端配置项说明.md)、后端配置项说明

编辑器图片、视频、涂鸦、附件上传service

编辑器上传逻辑单独在 neditor.service.js 文件配置,具体的配置方法见注释

设置和读取编辑器的内容

通 getContent 和 setContent 方法可以设置和读取编辑器的内容

var ue = UE.getContent();
ue.ready(function(){
    //设置编辑器的内容
    ue.setContent('hello');
    //获取html内容,返回: <p>hello</p>
    var html = ue.getContent();
    //获取纯文本内容,返回: hello
    var txt = ue.getContentTxt();
});

Ueditor 的更多API请看API 文档

下载地址

Neditor 码云: http://gitee.com/notadd/neditor

Neditor github 地址:http://github.com/notadd/neditor

相关链接

Ueditor 官网:http://ueditor.baidu.com

Ueditor API 文档:http://ueditor.baidu.com/doc

详细文档

Ueditor 文档:http://fex.baidu.com/ueditor/

注: 对IE8以下版本不再承诺兼容

关于 HTTPS

使用了 又拍云CDN 服务,支持跨域 和 https。

如果有需要,也可将下面域名改成自己的。

imgbaidu.b0.upaiyun.com
tingapi.b0.upaiyun.com

联系我们

Neditor官方交流群:257753500

QQ 群: 321735506

issue

Todo

2.1

  • 将上传封装为 service ,支持非 GraphQL 接口。
  • 细节样式修改(美化)

2.2

  • word 内图片自动上传
  • 粘贴图片转为本地图片(图片本地化)

2.3

  • 上传文件/图片无需后端

3.0

  • 使用 Typescript 重构
  • 草稿箱功能与离线保存
  • service worker 特性
  • 实现 2.0 的大部分功能

其他项目:Notadd

https://github.com/notadd/notadd

感谢提供赞助:

 

neditor's People

Contributors

akikonata avatar campaign avatar carsonxu avatar csbde avatar dafrok avatar dependabot[bot] avatar gustbul avatar hancong03 avatar kaisy00 avatar medz avatar minikey avatar nwind avatar orchidliu avatar phinome avatar regrex avatar renovate-bot avatar risent avatar sjshare avatar skqing avatar strugglebird avatar taoqili avatar techird avatar tian-hun avatar twilroad avatar worry127722 avatar yancend avatar zhanghuan1203 avatar zhuwenxuan avatar zuohuadong avatar zxeoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neditor's Issues

图片不能收缩

点击上传图片之后(多图和单图上传),图片能放大只能收缩

选中图片后就不能选中文字了

插入地图有问题

我尝试了你的线上demo,百度原版的线上demo,以及我自己部署的demo,发现三个地方中:百度的能插入静态地图,neditor无法插入静态地图。动态地图都插入不了。我猜测是不是由于百度现在使用地图需要开发者秘钥的原因?如果是这个原因的话麻烦加个配置的接口吧,不然得手动添加,或者别人不知道以为是bug?

对齐效果有bug

文字或图片改变对齐方式后, 图标没有进行相应的变化

比如一开始是居左对齐, 点击居中对齐后, 居中对齐的图标没有被点亮, 失去焦点后图标才被点亮.

你好,请问这是一个bug吗?

我的问题是:

使用toobar 里的"simpleupload"上传图片之后,离开编辑器,然后再点击图片,就只会选中这个图片,无法进入编辑状态:

一开始正常上传:
default

上传然后退出编辑再点击图片时就无法编辑了,无法回到编辑状态,只能删除图片
default

另外,我测试了设置editor高度为可变结果也是一样的,不能点击图片,否则无法再进入编辑状态。。。。。。。能不能看下呢,谢谢了。。。

listicon 不存在

liiconpath : utils.removeLastbs(this.rootPath) + '/themes/ueditor-list/',

文件缺失。

nothing

算了,不如自己解决。

在Firefox下关掉自动长高,滚动条达到一定高度点击Toolbars的功能,滚动条自动回到顶部了

关闭自动自动长高:
autoHeightEnabled:false
设置初始高度:
initialFrameHeight:400

这样的设置应该是内容超过400的高度自动出现滚动条,但是在Firefox 59.0.3版本下(其它版本没试),内容达到一定的高度(大概initialFrameHeight设置的高两倍),再点击上工具条的功能滚动条就自动回到了顶部了。Chrome则不会有这样的现象。

不知道有没有朋友也遇到这样的问题

图片选中的问题

图片编辑是一个很大的问题,特别是当我使用了固定高度后,选中图片就坑爹的出现截图的问题。如果禁用掉或是修正。
20180107-170509

此问题是在固定高度时出现的,补充下,在Neditor也一样有这个问题

image

菜单显示bug问题

为什么编辑器首次打开,菜单的图标都会超级大,然后缩小,有什么好的解决方案么

如何禁止editor自动移除code标签

过滤白名单中有code标签,在使用的过程中pre 标签下的 code标签还是会被自动移除

例如

<pre><code>var a = 0;</code></pre>

被替换成

<pre>var a = 0;</pre>

致命问题

致命问题

系统环境, mac,
浏览器 chrome,
demo地址:https://demo.neditor.notadd.com/

问题描述:

鼠标移动到图标上(工具栏上)无提示,查看dom里的确title还在,但是不提示了,应该是改svg的问题

百度官网的demo没这个问题,这个问题导致几乎要都点一遍才知道是什么功能,

严重妨碍使用,望修复

代码中的<>号有问题

比如插入C语言代码。你写的#include <stdio.h> 在保存之后再次编辑的时候,读取到的内容 <stdio.h> 整个就没了,消失了。这是bug么?

自定义工具栏按钮无法显示

自定义按钮支持吗? 我试了一下 按照原版 Ueditor 添加自定义按钮 可以显示,但是 按照 Neditor 则不显示,是什么原因?

README说明中含错别字

在README文档中有个错别字!具体位置:
入门部署和体验 -> 第一步:下载编辑器 并用Grount进行项目构建

不支持file协议

我已经修改了代码设置为了window.UEDITOR_CONFIG中的serverUrl,然后index.html使用file协议打开,发现依旧无法正常运行,现在html5 app那么火爆,不支持file协议不就等于无法在很多场景下使用吗?

.Net Core版本的后端文件上传服务

NEditor的作者您好,

今天有人告知了我NEditor的存在,我的心情是万分激动的,之前一直觉得UEditor挺好,就是很多BUG,官方也不维护了,很高兴看到有个大牛能够继续维护这个宇宙第一富文本编辑器。

当然,这不是重点。

最近我为微软最新的跨平台技术.NET Core写了UEditor的后端文件上传相关服务的API,看起来也是能够无缝的对接到您的NEditor中的,希望您能够在项目的文档中,将我的项目地址做一个链接,以便帮助到更多的人。
项目地址:https://github.com/baiyunchen/UEditor.Core

再次感谢您的无私奉献!

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.