mirror of
https://github.com/flarum/core.git
synced 2025-07-14 13:26:23 +02:00
committed by
GitHub
parent
6d06fcf731
commit
c0aa73f01a
@ -28,9 +28,12 @@ app.initializers.add('flarum-markdown', function(app) {
|
||||
extend(TextEditor.prototype, 'configTextarea', function(value, element, isInitialized, context) {
|
||||
if (isInitialized) return;
|
||||
|
||||
const editor = new MarkdownArea(element);
|
||||
editor.disableInline();
|
||||
editor.ignoreTab();
|
||||
const editor = new MarkdownArea(element, {
|
||||
keyMap: {
|
||||
indent: ['Ctrl+m'],
|
||||
outdent: ['Ctrl+M']
|
||||
}
|
||||
});
|
||||
|
||||
context.onunload = function() {
|
||||
editor.destroy();
|
||||
|
Reference in New Issue
Block a user