client/src/HtmlSerializer.js
changeset 25 e04714a1d4eb
parent 21 284e866f55c7
child 157 5c3af4f10e92
--- 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;
       }
     }