Update to latest Draftail

pull/4136/head
Thibaud Colas 2018-01-18 12:28:31 +02:00
rodzic c3a4bf4758
commit 8742b249f3
4 zmienionych plików z 9 dodań i 17 usunięć

Wyświetl plik

@ -23,14 +23,6 @@ $draftail-editor-font-family: $font-serif;
@import './blocks/ImageBlock';
@import './blocks/EmbedBlock';
// 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.
.Draftail-unstyled,
.public-DraftEditorPlaceholder-inner {
margin: 0.5rem 0;
}
@include draftail-richtext-styles {
h1,
h2,

14
package-lock.json wygenerowano
Wyświetl plik

@ -2619,17 +2619,17 @@
}
},
"draftail": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/draftail/-/draftail-0.12.0.tgz",
"integrity": "sha512-GGXOBRUt2bxrtzOBnqrUoCeK82sm5N9e0LMMSQSp9c7IPBAPwi3zXqCDA4BxKO1OzOGhxl9x1Z/s3E8wdIn2OQ==",
"version": "0.13.0",
"resolved": "https://registry.npmjs.org/draftail/-/draftail-0.13.0.tgz",
"integrity": "sha512-NqXu4JC44vE3o9PjtJeP+T/n7JSold2PRBPLP8sawiPyZHJ6OAuhJoZ/V2Kzruzo87tFO/r4dXU8L46mVwVYKQ==",
"requires": {
"draftjs-filters": "0.4.0"
"draftjs-filters": "0.5.0"
}
},
"draftjs-filters": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/draftjs-filters/-/draftjs-filters-0.4.0.tgz",
"integrity": "sha512-inL6hcI9MXYKTM9GsTMI8K7Kj6xWVHhdJktAIt30azbxlLNQI+yHJ3Tohl+FpHcpP7oPSutvMlt2HqyZASipyQ=="
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/draftjs-filters/-/draftjs-filters-0.5.0.tgz",
"integrity": "sha512-JjWH6GH1YZx2SPC0DOyoG4LmleTGLX2IJS7/6TH+yVAN5uwCPVxuADqQISG68mCTEr/PGSmmz8QJ/xg3Lp733g=="
},
"duplexer": {
"version": "0.1.1",

Wyświetl plik

@ -83,7 +83,7 @@
"dependencies": {
"core-js": "^2.5.3",
"draft-js": "^0.10.4",
"draftail": "^0.12.0",
"draftail": "^0.13.0",
"focus-trap-react": "^3.1.0",
"prop-types": "^15.6.0",
"react": "^16.2.0",

Wyświetl plik

@ -97,7 +97,7 @@ def register_image_feature(features):
'attributes': ['id', 'src', 'alt', 'format'],
# Keep only images which are from Wagtail.
'whitelist': {
'id': '.*',
'id': True,
}
})
)