Skip to content

Commit

Permalink
Add class to text annotations
Browse files Browse the repository at this point in the history
This makes them stylable by plugins.
  • Loading branch information
atimmer committed Oct 2, 2018
1 parent f725ec1 commit 7aa0fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ export class RichText extends Component {
) {
record = applyFormat(
record,
{ type: 'mark' },
{ type: 'mark', attributes: { class: 'annotation-text annotation-text-' + annotation.source } },
startPos,
endPos
);
Expand Down

0 comments on commit 7aa0fa3

Please sign in to comment.