From 63b11f50015cc327dd735230e3a269dd2e363d67 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 14 Jun 2019 18:24:36 +0200 Subject: [PATCH] (de)serialize at-room-pills just like pill-candidate (no html needed) --- src/editor/serialize.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/editor/serialize.js b/src/editor/serialize.js index 73fbbe5d01..876130074c 100644 --- a/src/editor/serialize.js +++ b/src/editor/serialize.js @@ -24,6 +24,7 @@ export function mdSerialize(model) { return html + "\n"; case "plain": case "pill-candidate": + case "at-room-pill": return html + part.text; case "room-pill": case "user-pill": @@ -47,6 +48,7 @@ export function textSerialize(model) { return text + "\n"; case "plain": case "pill-candidate": + case "at-room-pill": return text + part.text; case "room-pill": case "user-pill": @@ -58,13 +60,11 @@ export function textSerialize(model) { export function requiresHtml(model) { return model.parts.some(part => { switch (part.type) { - case "newline": - case "plain": - case "pill-candidate": - return false; case "room-pill": case "user-pill": return true; + default: + return false; } }); }