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

如何控制内容是否可以编辑? #7

Closed
SunJenry opened this issue Sep 15, 2017 · 4 comments
Closed

如何控制内容是否可以编辑? #7

SunJenry opened this issue Sep 15, 2017 · 4 comments

Comments

@SunJenry
Copy link

尝试把richEditor.html中的
div id="summernote" contenteditable="true"></div>
contenteditable 设置为false,但是加载出来的内容仍然可以编辑。有其他的方法吗?

@Even201314
Copy link
Owner

@SunGuangjie 试一下disable()方法

@SunJenry
Copy link
Author

disable()可以的,但是背景会变暗。
这个contenteditable设置是做什么用的

@Even201314
Copy link
Owner

Even201314 commented Sep 15, 2017

@SunGuangjie 其实不设置也没关系。
我修改了一下样式,你试一下最新的提交,看看有没有效果

@SunJenry
Copy link
Author

可以了。多谢。
希望有机会为这个项目出点力。

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