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

kissy1.3/1.4 editor使用sync()后,双引号丢失 #550

Closed
ghost opened this issue Jan 8, 2014 · 5 comments
Closed

kissy1.3/1.4 editor使用sync()后,双引号丢失 #550

ghost opened this issue Jan 8, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 8, 2014

例如在编辑器中输入<div class="hlg_match">, editor.sync();操作后,结果变成 <div class=hlg_match>&nbsp;</div>,class 中的双引号丢失,这个问题从 kissy1.3开始就后了(造成除style的双引号还在,其他(例如width、class)的双引号都消失);

其他:kissy1.3中可以使用DOM.val('#editorEl textarea',editor.get("formatData"));来简单实现sync()的功能;但是 kissy1.4多了data配置项,不能再用editor.get("formatData")方法获取内容。

@yiminghe
Copy link
Member

yiminghe commented Jan 8, 2014

双引号故意删的,减少代码大小
1.4.1 可以用 editor.getFormatData()

@ghost
Copy link
Author

ghost commented Jan 8, 2014

ok,谢谢

@yiminghe yiminghe closed this as completed Jan 8, 2014
@Snger
Copy link

Snger commented Jan 9, 2014

@yiminghe 是否过滤双引号,改成可配置项如何?默认过滤?

@yiminghe
Copy link
Member

好的,下版本考虑,目前可手动取 getFormatData() ,不调用 sync

@Snger
Copy link

Snger commented Jan 11, 2014

ok,赞

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

2 participants