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

Add support for CKEditor #219

Closed benthamite closed 1 year ago

benthamite commented 2 years ago

Setup

Browser: Chrome Version 96.0.4664.55 (Official Build) (x86_64) Editor: GNU Emacs 28.0.50 / Sublime Text, Stable Channel, Build 4121

Description

GhostText works fine on most websites, but it fails on a few that I personally use very often. The foremost example is LessWrong. When I trigger GhostText from the browser, it opens a new buffer on Emacs with the text <p><br data-cke-filler="true"></p>. However, any text entered at this point is not sent back to the browser; on LessWrong, the comment field remains empty.

I downloaded and installed Sublime text, and can confirm that it exhibits the same behavior.

fregante commented 1 year ago

The site uses https://ckeditor.com

PR welcome to add support for it

https://github.com/fregante/GhostText/blob/main/contributing.md#adding-support-for-more-editors

fregante commented 1 year ago

CKEditor is a WYSIWYG editor and it can't really be "supported" here because your editor would still need to receive the HTML and not plain text.

You have two options: