Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在我的仓库发布了新版本/ new version in my fork repository #545

Closed
hawtim opened this issue Mar 19, 2018 · 14 comments
Closed

在我的仓库发布了新版本/ new version in my fork repository #545

hawtim opened this issue Mar 19, 2018 · 14 comments

Comments

@hawtim
Copy link

hawtim commented Mar 19, 2018

修复了部分bug,升级了项目构建工具,不兼容 IE9 以下
项目地址:
https://github.com/hawtim/editor.md

🐛 修复使用 on* 过滤标签的属性,图片加链接的语法会出错的问题
🐛 修复<0000>的文本会被识别成标签的问题处理
⚡ 编辑器使用自动高度时,可以设置编辑器的最小高度和最大高度
🐛 修复关闭同步滚动后输入内容右侧不更新的问题及输入内容右侧滚动条跳转的问题

构建工具使用 babel 转换后再进行 uglify,原本会在 uglify 时报错,因不支持对象动态属性,例如:

var key = 'Ctrl'
keyMap = {
    [key + '-1']: 'h1'
}

故转换后使用了 Object.defineProperty() 来支持对象动态属性,所以不支持 IE9 以下
欢迎 star & fork & issue

@hawtim hawtim changed the title 在我的仓库发布了新版本 在我的仓库发布了新版本/ new version in my fork repository Mar 19, 2018
@hawtim
Copy link
Author

hawtim commented Mar 27, 2018

TODOs:

  1. 增加链接为新页面打开的配置项
  2. 处理上传图片接受的文件类型
  3. 增加粘贴图片上传功能 求图片的粘贴上传功能 #524/【新功能】支持 c-v 上传图片 #519
  4. 点击事件判断错误 点击事件判断错误 #526
  5. 有序列表解析问题 有序列表解析问题 #543
  6. 最新分支无法通过gulp正常生成 最新分支无法通过gulp正常生成 #513 finish

@hawtim
Copy link
Author

hawtim commented Mar 29, 2018

v2.0.1

  • 新增: 增加 TODO 文件,欢迎大家来此提需求/ update TODO file, welcome your issues

  • 改进: 修复 toc 列表节点标识错误的问题 / fixed toc list have a wrong sign

  • 改进: 更新 marked 的版本用以修复有序列表初始序号错误的问题 / update markded.js to fix order list got a wrong start number 有序列表解析问题 #543

  • 改进: 修复 on* 过滤条件下,<a href="javascript:alert('xss')">xss</a> 会引发 XSS 的问题 / fixed xss problem

JaxsonWang pushed a commit to LuRenJiasWorld/WP-Editor.md that referenced this issue Apr 2, 2018
@ye21st
Copy link

ye21st commented Apr 5, 2018

@hawtim 支持。希望能建一个群一起交流,学习。

@JZLeung
Copy link

JZLeung commented May 6, 2018

@hawtim 支持。
不知道有没有支持 es6 的模块开发的想法?

@isAlmogK
Copy link

isAlmogK commented May 8, 2018

Is this is the new version that we should be using? How can I get both markdown the html would like to save both in my db?

@wujianglong
Copy link

想了解下 关于英文引号 总是转义成中文引号

@wufeng87
Copy link

增加粘贴图片上传功能 请问这个任务项怎么样了?没弄好的话,有思路吗?我也想试试加上这个功能。

@ElderJames
Copy link

支持,希望作者 @pandao 可以给下管理权限,让这个项目继续下去。我也想做一下Angular的支持

@Zephery
Copy link

Zephery commented Jun 17, 2018

hello。。。。请问图片那个怎么样 了?

@zhangruinian
Copy link

感觉同步滚动一直不好用呀,左侧存在流程图和图片的时候,右侧滚动精度不行

@LiarOnce
Copy link

LiarOnce commented Dec 25, 2018

过滤 on* 属性以后预览功能直接废了,F12输出的信息是:

Uncaught TypeError: Cannot read property 'attributes' of undefined
    at editormd.min.js?1.0:2
    at String.replace (<anonymous>)
    at Function.i.filterHTMLTags (editormd.min.js?1.0:2)
    at init.save (editormd.min.js?1.0:2)
    at init.loadedDisplay (editormd.min.js?1.0:2)
    at r (editormd.min.js?1.0:2)
    at editormd.min.js?1.0:2
    at HTMLScriptElement.i.isIE8.r.onload (editormd.min.js?1.0:2)

@rockmelodies
Copy link

请问粘贴图片可以了吗?

@rockmelodies
Copy link

@hawtim 可以粘贴吗

@ElderJames
Copy link

能否完全复制到独立仓库,让其他人的pr可以合并起来?

@pandao pandao closed this as completed May 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests