File tree Expand file tree Collapse file tree 5 files changed +36
-2
lines changed
src/components/manage/Tiles
theme/themes/pastanaga/globals Expand file tree Collapse file tree 5 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 30
30
* Refactor actions and reducers to match restapi docs naming @robgietema
31
31
* Fix site root api calls @robgietema
32
32
* Change visual editor to use the new tiles api @robgietema
33
+ * Fix bug with wrong order input @robgietema
33
34
34
35
## 0.5.0 (2018-03-23)
35
36
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export default class Edit extends Component {
79
79
*/
80
80
componentWillReceiveProps ( nextProps ) {
81
81
if (
82
+ nextProps . properties . description &&
82
83
this . props . properties . description !== nextProps . properties . description &&
83
84
! this . props . selected
84
85
) {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import {
25
25
} from 'draft-js-buttons' ;
26
26
import createBlockStyleButton from 'draft-js-buttons/lib/utils/createBlockStyleButton' ;
27
27
import createLinkPlugin from 'draft-js-anchor-plugin' ;
28
+ import createBlockBreakoutPlugin from 'draft-js-block-breakout-plugin' ;
28
29
import { defineMessages , injectIntl , intlShape } from 'react-intl' ;
29
30
30
31
const messages = defineMessages ( {
@@ -50,6 +51,7 @@ const CalloutButton = createBlockStyleButton({
50
51
children : < span > !</ span > ,
51
52
} ) ;
52
53
const linkPlugin = createLinkPlugin ( ) ;
54
+ const blockBreakoutPlugin = createBlockBreakoutPlugin ( ) ;
53
55
const inlineToolbarPlugin = createInlineToolbarPlugin ( {
54
56
structure : [
55
57
BoldButton ,
@@ -179,7 +181,7 @@ export default class Edit extends Component {
179
181
< Editor
180
182
onChange = { this . onChange }
181
183
editorState = { this . state . editorState }
182
- plugins = { [ inlineToolbarPlugin , linkPlugin ] }
184
+ plugins = { [ inlineToolbarPlugin , linkPlugin , blockBreakoutPlugin ] }
183
185
blockRenderMap = { extendedBlockRenderMap }
184
186
blockStyleFn = { contentBlock => {
185
187
const type = contentBlock . getType ( ) ;
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export default class Edit extends Component {
79
79
*/
80
80
componentWillReceiveProps ( nextProps ) {
81
81
if (
82
+ nextProps . properties . title &&
82
83
this . props . properties . title !== nextProps . properties . title &&
83
84
! this . props . selected
84
85
) {
Original file line number Diff line number Diff line change @@ -35,9 +35,38 @@ body {
35
35
outline-width: 1px;
36
36
}
37
37
38
- .tile .public-DraftEditorPlaceholder-inner {
38
+ .DraftEditor-editorContainer,
39
+ .DraftEditor-root,
40
+ .public-DraftEditor-content {
41
+ height: inherit;
42
+ text-align: initial;
43
+ }
44
+
45
+ .public-DraftEditor-content[contenteditable='true'] {
46
+ -webkit-user-modify: read-write-plaintext-only;
47
+ }
48
+
49
+ .DraftEditor-root {
50
+ position: relative;
51
+ }
52
+
53
+ .DraftEditor-editorContainer {
54
+ position: relative;
55
+ z-index: 1;
56
+ }
57
+
58
+ .public-DraftEditor-block {
59
+ position: relative;
60
+ }
61
+
62
+ .public-DraftEditorPlaceholder-root {
39
63
position: absolute;
40
64
color: #aaaaaa;
65
+ z-index: 1;
66
+ }
67
+
68
+ .DraftEditorPlaceholder-hidden {
69
+ display: none;
41
70
}
42
71
43
72
.tile.align.left {
You can’t perform that action at this time.
0 commit comments