I actually use TinyMCE (4.8.2) on my application for multiple fields. i automatize fields by json content from JIRA API. BUT... One of the field is already in Markdown from JIRA.
Then i have implemented plugin text_pattern from tinymce to configure the markdown symbol in javascipt. The problem still persist and the text will not changed to html without rewrite the text. I can't find issue, do you ?
function initMCEexact(e) {
tinymce.init({
mode: "exact",
theme: "modern",
plugins: 'textpattern, advlist',
selector: 'textarea',
elements: e,
textpattern_patterns: [
{start: '_', end: '_', format: 'italic'},
{start: '*', end: '*', format: 'bold'},
{start: 'h1. ', format: 'h1'},
{start: 'h2. ', format: 'h2'},
{start: 'h3. ', format: 'h3'},
{start: 'h4. ', format: 'h4'},
{start: 'h5. ', format: 'h5'},
{start: 'h6. ', format: 'h6'},
{start: '# ', cmd: 'InsertOrderedList'},
{start: '* ', cmd: 'InsertUnorderedList'},
{start: '*', cmd: 'InsertUnorderedList'},
{start: '//brb', replacement: 'Be Right Back'}
]
});
}
Expecting translation of markdown to HTML automatically.