Skip to content

Instantly share code, notes, and snippets.

View auwtch's full-sized avatar

0xAuwtch auwtch

View GitHub Profile
@auwtch
auwtch / 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",