Skip to content

Commit

Permalink
rm console
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Jul 23, 2019
1 parent 8b37900 commit 4cc958b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions site/edit-module/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ AV.init({
export const userName = 'antd-landing-user-name';

const xssFunc = (data) => {
Object.keys(data).forEach(key => {
Object.keys(data).forEach((key) => {
const item = data[key];
switch (typeof item) {
case 'string':
data[key] = xss(data[key]);
break;
case 'object':
xssFunc(item);
break
break;
default:
break;
}
})
}
});
};

let t = 0;
let localNum = 0;
Expand Down
1 change: 0 additions & 1 deletion site/edit/template/components/EditStageController.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ class EditStateController extends React.PureComponent {
}

editTextHandleChange = (text) => {
console.log(text)
this.setState({
editText: text,
isInput: true,
Expand Down
2 changes: 1 addition & 1 deletion site/edit/template/components/MediumEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class Editor extends React.Component {
placeholderText: 'Paste or type a having (http) link.',
targetCheckbox: true,
targetCheckboxText: 'Open in new window',
}
},
});
this.medium.subscribe('editableInput', (e, b) => {
(this.props.onChange || noop)(b.innerHTML);
Expand Down

0 comments on commit 4cc958b

Please sign in to comment.