Skip to content

Instantly share code, notes, and snippets.

View blasterpistol's full-sized avatar
🦜

BlasterPistol blasterpistol

🦜
View GitHub Profile
@blasterpistol
blasterpistol / index.js
Last active October 28, 2020 06:24
TinyMCE formatting for contentEditable=false elements
// To resolve all quirks need to use custom elements
// Demo: http://fiddle.tinymce.com/7whaab
tinymce.init({
selector: 'textarea',
// custom html elements will force tinymce to wrap var-inline when formatting
// and apply formatting inside of var-block (as it should be)
custom_elements: "~var-inline,var-block",