fix eslint and refactor code
This commit is contained in:
parent
f0497ee9c4
commit
bfafca42b7
|
@ -10,8 +10,6 @@ import { getRegister } from 'discourse-common/lib/get-owner';
|
||||||
import { findRawTemplate } from 'discourse/lib/raw-templates';
|
import { findRawTemplate } from 'discourse/lib/raw-templates';
|
||||||
import { determinePostReplaceSelection, clipboardData } from 'discourse/lib/utilities';
|
import { determinePostReplaceSelection, clipboardData } from 'discourse/lib/utilities';
|
||||||
import toMarkdown from 'discourse/lib/to-markdown';
|
import toMarkdown from 'discourse/lib/to-markdown';
|
||||||
import { ajax } from 'discourse/lib/ajax';
|
|
||||||
import { popupAjaxError } from 'discourse/lib/ajax-error';
|
|
||||||
import deprecated from 'discourse-common/lib/deprecated';
|
import deprecated from 'discourse-common/lib/deprecated';
|
||||||
|
|
||||||
// Our head can be a static string or a function that returns a string
|
// Our head can be a static string or a function that returns a string
|
||||||
|
@ -657,9 +655,7 @@ export default Ember.Component.extend({
|
||||||
if (table) {
|
if (table) {
|
||||||
this.appEvents.trigger('composer:insert-text', table);
|
this.appEvents.trigger('composer:insert-text', table);
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
} else if (html && html.includes("urn:schemas-microsoft-com:office:word")) {
|
||||||
|
|
||||||
if (html && html.includes("urn:schemas-microsoft-com:office:word")) {
|
|
||||||
html = ""; // use plain text data for microsoft word
|
html = ""; // use plain text data for microsoft word
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue