mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
consistent naming between serialize and deserialize modules
This commit is contained in:
parent
036cb02c0e
commit
e2388afb51
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import EditorModel from '../../../editor/model';
|
|||
import {setCaretPosition} from '../../../editor/caret';
|
||||
import {getCaretOffsetAndText} from '../../../editor/dom';
|
||||
import {htmlSerialize, textSerialize, requiresHtml} from '../../../editor/serialize';
|
||||
import parseEvent from '../../../editor/parse-event';
|
||||
import {parseEvent} from '../../../editor/deserialize';
|
||||
import Autocomplete from '../rooms/Autocomplete';
|
||||
// import AutocompleteModel from '../../../editor/autocomplete';
|
||||
import {PartCreator} from '../../../editor/parts';
|
||||
|
|
|
@ -54,7 +54,7 @@ function parseHtmlMessage(html) {
|
|||
return parts;
|
||||
}
|
||||
|
||||
export default function parseEvent(event) {
|
||||
export function parseEvent(event) {
|
||||
const content = event.getContent();
|
||||
if (content.format === "org.matrix.custom.html") {
|
||||
return parseHtmlMessage(content.formatted_body);
|
Loading…
Reference in a new issue