mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
New site setting to enable or disable rich text pasting
This commit is contained in:
parent
0a47642003
commit
b9c0488687
4 changed files with 11 additions and 2 deletions
|
@ -640,7 +640,7 @@ export default Ember.Component.extend({
|
|||
},
|
||||
|
||||
paste(e) {
|
||||
if (!$(".d-editor-input").is(":focus")) {
|
||||
if (!this.siteSettings.enable_rich_text_paste || !$(".d-editor-input").is(":focus")) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue