Skip to content

Commit

Permalink
Revert D6056162: [draft] Highlight invalid text in red
Browse files Browse the repository at this point in the history
Summary:
This reverts commit r3371761

bypass-lint

Differential Revision: D6056162

fbshipit-source-id: 7d0c49ee5c110c08f751a23e88417dc6c0e5a058
  • Loading branch information
steveluscher authored and facebook-github-bot committed Oct 16, 2017
1 parent 4d56d7d commit c601ee9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const DraftEditorContents = require('DraftEditorContents.react');
const DraftEditorDragHandler = require('DraftEditorDragHandler');
const DraftEditorEditHandler = require('DraftEditorEditHandler');
const DraftEditorPlaceholder = require('DraftEditorPlaceholder.react');
const DraftFeatureFlags = require('DraftFeatureFlags');
const EditorState = require('EditorState');
const React = require('React');
const ReactDOM = require('ReactDOM');
Expand Down Expand Up @@ -268,8 +267,6 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {
// here which makes its autotranslation skip over this subtree.
'notranslate': !readOnly,
'public/DraftEditor/content': true,
'public/DraftEditor/highlightInvalidText':
DraftFeatureFlags.draft_highlight_invalid_text,
})}
contentEditable={!readOnly}
data-testid={this.props.webDriverTestID}
Expand Down
2 changes: 0 additions & 2 deletions src/component/contents/DraftEditorLeaf.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const DraftEditorTextNode = require('DraftEditorTextNode.react');
var React = require('React');
var ReactDOM = require('ReactDOM');

const cx = require('cx');
const invariant = require('invariant');
var setDraftEditorSelection = require('setDraftEditorSelection');

Expand Down Expand Up @@ -167,7 +166,6 @@ class DraftEditorLeaf extends React.Component<Props> {
return (
<span
data-offset-key={offsetKey}
className={cx('public/DraftEditor/leaf')}
ref="leaf"
style={styleObj}>
<DraftEditorTextNode>{text}</DraftEditorTextNode>
Expand Down
6 changes: 1 addition & 5 deletions src/component/contents/DraftEditorTextNode.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const React = require('React');
const ReactDOM = require('ReactDOM');
const UserAgent = require('UserAgent');

const cx = require('cx');
const invariant = require('invariant');

// In IE, spans with <br> tags render as two newlines. By rendering a span
Expand Down Expand Up @@ -90,10 +89,7 @@ class DraftEditorTextNode extends React.Component<Props> {
return this._forceFlag ? NEWLINE_A : NEWLINE_B;
}
return (
<span
key={this._forceFlag ? 'A' : 'B'}
className={cx('public/DraftEditor/textNode')}
data-text="true">
<span key={this._forceFlag ? 'A' : 'B'} data-text="true">
{this.props.children}
</span>
);
Expand Down
1 change: 0 additions & 1 deletion src/component/utils/DraftFeatureFlags-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
'use strict';

var DraftFeatureFlags = {
draft_highlight_invalid_text: false,
draft_killswitch_allow_nontextnodes: false,
draft_segmented_entities_behavior: false,
};
Expand Down

0 comments on commit c601ee9

Please sign in to comment.