2
0
Fork 0
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:
Vinoth Kannan 2017-12-08 14:09:39 +05:30
parent 0a47642003
commit b9c0488687
4 changed files with 11 additions and 2 deletions

View file

@ -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;
}