mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
remove trailing spaces to make linter happy (no-trailing-spaces)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
58301e5dd4
commit
100ecfe7ce
@ -183,7 +183,7 @@ export default class MessageComposerInput extends React.Component {
|
||||
this.md = new Md({
|
||||
rules: [
|
||||
{
|
||||
// if serialize returns undefined it falls through to the default hardcoded
|
||||
// if serialize returns undefined it falls through to the default hardcoded
|
||||
// serialization rules
|
||||
serialize: (obj, children) => {
|
||||
if (obj.object !== 'inline') return;
|
||||
@ -304,7 +304,7 @@ export default class MessageComposerInput extends React.Component {
|
||||
* - contentState was passed in
|
||||
*/
|
||||
createEditorState(richText: boolean, // eslint-disable-line no-unused-vars
|
||||
editorState: ?Value): Value {
|
||||
editorState: ?Value): Value {
|
||||
if (editorState instanceof Value) {
|
||||
return editorState;
|
||||
}
|
||||
@ -359,7 +359,7 @@ export default class MessageComposerInput extends React.Component {
|
||||
// If so, what should be the format, and how do we differentiate it from replies?
|
||||
|
||||
const quote = Block.create('block-quote');
|
||||
if (this.state.isRichTextEnabled) {
|
||||
if (this.state.isRichTextEnabled) {
|
||||
let change = editorState.change();
|
||||
if (editorState.anchorText.text === '' && editorState.anchorBlock.nodes.size === 1) {
|
||||
// replace the current block rather than split the block
|
||||
|
Loading…
Reference in New Issue
Block a user