kopia lustrzana https://github.com/wagtail/wagtail
Fix linting issues in Draftail
rodzic
8ce14cfb00
commit
9dc0ee47dd
client/src/components/Draftail
|
@ -3,7 +3,7 @@
|
|||
// Give each block element eg. paragraph some spacing so we don't end up
|
||||
// with empty paragraphs in code when user double enters because they think
|
||||
// there are no paragraphs.
|
||||
div[data-block="true"] {
|
||||
div[data-block='true'] {
|
||||
margin: 0.75rem 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import ModalSource from './ModalSource';
|
||||
|
||||
const $ = global.jQuery;
|
||||
const ModalWorkflow = global.ModalWorkflow;
|
||||
|
||||
class DocumentSource extends ModalSource {
|
||||
constructor(props) {
|
||||
|
@ -28,7 +29,8 @@ class DocumentSource extends ModalSource {
|
|||
// }
|
||||
}
|
||||
|
||||
global.ModalWorkflow({
|
||||
// eslint-disable-next-line new-cap
|
||||
ModalWorkflow({
|
||||
url,
|
||||
responses: {
|
||||
documentChosen: this.parseData,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import ModalSource from './ModalSource';
|
||||
|
||||
const $ = global.jQuery;
|
||||
const ModalWorkflow = global.ModalWorkflow;
|
||||
|
||||
class EmbedSource extends ModalSource {
|
||||
constructor(props) {
|
||||
|
@ -24,7 +25,8 @@ class EmbedSource extends ModalSource {
|
|||
componentDidMount() {
|
||||
$(document.body).on('hidden.bs.modal', this.onClose);
|
||||
|
||||
global.ModalWorkflow({
|
||||
// eslint-disable-next-line new-cap
|
||||
ModalWorkflow({
|
||||
url: global.chooserUrls.embedsChooser,
|
||||
responses: {
|
||||
embedChosen: this.parseData,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import ModalSource from './ModalSource';
|
||||
|
||||
const $ = global.jQuery;
|
||||
const ModalWorkflow = global.ModalWorkflow;
|
||||
|
||||
class ImageSource extends ModalSource {
|
||||
constructor(props) {
|
||||
|
@ -18,7 +19,8 @@ class ImageSource extends ModalSource {
|
|||
const imageChooser = global.chooserUrls.imageChooser;
|
||||
$(document.body).on('hidden.bs.modal', this.onClose);
|
||||
|
||||
global.ModalWorkflow({
|
||||
// eslint-disable-next-line new-cap
|
||||
ModalWorkflow({
|
||||
url: imageChooser,
|
||||
responses: {
|
||||
imageChosen: this.parseData,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import ModalSource from './ModalSource';
|
||||
|
||||
const $ = global.jQuery;
|
||||
const ModalWorkflow = global.ModalWorkflow;
|
||||
|
||||
// Plaster over Wagtail internals.
|
||||
const buildInitialUrl = (entity, openAtParentId, canChooseRoot, pageTypes) => {
|
||||
|
@ -87,7 +88,8 @@ class LinkSource extends ModalSource {
|
|||
|
||||
$(document.body).on('hidden.bs.modal', this.onClose);
|
||||
|
||||
global.ModalWorkflow({
|
||||
// eslint-disable-next-line new-cap
|
||||
ModalWorkflow({
|
||||
url,
|
||||
urlParams,
|
||||
responses: {
|
||||
|
|
Ładowanie…
Reference in New Issue