mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
fix: forum/components/TextEditor
This commit is contained in:
committed by
Franz Liedke
parent
4402dc81ac
commit
2590073a50
@@ -30,16 +30,16 @@ export default class TextEditor extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
view() {
|
view() {
|
||||||
const configTextArea = () => {
|
const configTextArea = (vnode) => {
|
||||||
const handler = () => {
|
const handler = () => {
|
||||||
this.onsubmit();
|
this.onsubmit();
|
||||||
m.redraw();
|
m.redraw();
|
||||||
};
|
};
|
||||||
|
|
||||||
$(element).bind('keydown', 'meta+return', handler);
|
$(vnode.dom).bind('keydown', 'meta+return', handler);
|
||||||
$(element).bind('keydown', 'ctrl+return', handler);
|
$(vnode.dom).bind('keydown', 'ctrl+return', handler);
|
||||||
|
|
||||||
this.attrs.composer.editor = new SuperTextarea(element);
|
this.attrs.composer.editor = new SuperTextarea(vnode.dom);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user