Browse Source

Preserve formatting for media caption

master
Eduard Kuzmenko 3 years ago
parent
commit
1b1a6c6e87
  1. 2
      src/components/popups/newMedia.ts

2
src/components/popups/newMedia.ts

@ -97,7 +97,7 @@ export default class PopupNewMedia extends PopupElement {
}); });
this.input = this.inputField.input; this.input = this.inputField.input;
this.inputField.value = this.wasInputValue = this.chat.input.messageInputField.value; this.inputField.value = this.wasInputValue = this.chat.input.messageInputField.input.innerHTML;
this.chat.input.messageInputField.value = ''; this.chat.input.messageInputField.value = '';
this.container.append(scrollable.container); this.container.append(scrollable.container);

Loading…
Cancel
Save