--- a/client/src/HtmlSerializer.js Thu Jun 08 17:57:57 2017 +0200
+++ b/client/src/HtmlSerializer.js Thu Jun 08 18:54:36 2017 +0200
@@ -10,7 +10,7 @@
em: 'italic',
strong: 'bold',
u: 'underline',
- annotation: 'span'
+ category: 'span'
}
const rules = [
@@ -51,7 +51,7 @@
case 'bold': return <strong>{children}</strong>
case 'italic': return <em>{children}</em>
case 'underline': return <u>{children}</u>
- case 'annotation': return <span style={{ backgroundColor: object.data.get('color') }}>{children}</span>
+ case 'category': return <span style={{ backgroundColor: object.data.get('color') }}>{children}</span>
default: return;
}
}