Skip to main content
GameDev.net gamedev.net
🔒 Locked

test

Started by khawk Jun 19, 2017 at 10:52 AM 1 replies 1k views
Original Post
khawk

test

Admin for GameDev.net.
fastcall22
fastcall22

# Markdown Test The quick brown fox jumps over the [Lazy Googled](http://google.com/search?q=the+quick+brown+fox+jumps+over+the+lazy+dog). ## Markdown plugin fix First, apply the fix: // applications/core/interface/ckeditor/ckeditor/plugins/markdown/plugin.js:48 (t => { if ( t.addClass._hacked ) { return; } var _old_addClass = t.addClass; t.addClass = str => str.split(' ').forEach(_old_addClass.bind(t)); t.addClass._hacked = true; })(textarea); textarea.addClass('cke_source cke_reset cke_enable_context_menu'); Then, enable markdown (where’s the button?) Object.values(CKEDITOR.instances).forEach((editor) => editor.setMode('markdown')) And finally, Object.values(CKEDITOR.instances).forEach((editor) => editor.setMode('wysiwyg'))

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.