Skip to content

Commit

Permalink
Add TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Oct 17, 2017
1 parent e3ab17e commit 74e7acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/api/DraftUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export default {
const shouldNormaliseType = block => {
const type = block.getType();
return (
// TODO Should handle atomic blocks separately.
type !== BLOCK_TYPE.UNSTYLED &&
enabledBlockTypes.indexOf(type) === -1
);
Expand Down
4 changes: 4 additions & 0 deletions lib/api/behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,13 @@ export default {
filterPastedContent(
editorState,
maxListNesting,
// TODO Implement.
enableHorizontalRule,
// TODO Implement.
enableLineBreak,
blockTypes = [],
inlineStyles = [],
// TODO Implement.
// entityTypes = [],
) {
let nextEditorState = editorState;
Expand All @@ -264,6 +267,7 @@ export default {
enabledBlockTypes,
);

// TODO Re-test what happens when pasting a styled element, eg. h2 with bold, or blockquote with italic.
nextEditorState = DraftUtils.normaliseInlineStyle(
nextEditorState,
enabledInlineStyles,
Expand Down

0 comments on commit 74e7acb

Please sign in to comment.