Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created May 11, 2021 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcharlton/183bfe14113d01d46620f25cce47a2a7 to your computer and use it in GitHub Desktop.
Save nickcharlton/183bfe14113d01d46620f25cce47a2a7 to your computer and use it in GitHub Desktop.
Gist from Drafts

Drafts → Basecamp / Trix Rich Text Fields

Problem: Copying text with reference links as Rich Text from Drafts into Basecamp mangles all of the formatting.

Solution:

  1. Inspect Element on the editor
  2. $1.editor.setSelectedRange([0, 0])
  3. Copy as HTML in Drafts
  4. $1.editor.insertHTML(

    Daily Update

    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment