fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.25k stars 116 forks source link

The text in the contenteditable text box don't came back in with the real line-breaks #224

Closed happysj2202 closed 2 years ago

happysj2202 commented 2 years ago

Setup

Browser: Chrome 101.0.4951.41 Editor: Emacs 28.1

Description

If the content in the contenteditable text box is as follows in https://ghosttext.fregante.com/test. (1) This is a contenteditable div (2) abc (3) 123 image

When I click on GhostText, and go to emacs interface. the text in emacs buffer comes back like this:

(1) This is a contenteditable div
(2) abc
(3) 123

image

The text don't came back in with the real line-breaks. How can I solve this problem?

fregante commented 2 years ago

GhostText doesn't do content conversion. The content of that contentEditable are divs so the editor receives divs.