Skip to content

Commit cc4ae3c

Browse files
authored
Merge d28eaab into d8cf5cd
2 parents d8cf5cd + d28eaab commit cc4ae3c

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* Refactor actions and reducers to match restapi docs naming @robgietema
3131
* Fix site root api calls @robgietema
3232
* Change visual editor to use the new tiles api @robgietema
33+
* Fix bug with wrong order input @robgietema
3334

3435
## 0.5.0 (2018-03-23)
3536

src/components/manage/Tiles/Description/Edit.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default class Edit extends Component {
7979
*/
8080
componentWillReceiveProps(nextProps) {
8181
if (
82+
nextProps.properties.description &&
8283
this.props.properties.description !== nextProps.properties.description &&
8384
!this.props.selected
8485
) {

src/components/manage/Tiles/Text/Edit.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
} from 'draft-js-buttons';
2626
import createBlockStyleButton from 'draft-js-buttons/lib/utils/createBlockStyleButton';
2727
import createLinkPlugin from 'draft-js-anchor-plugin';
28+
import createBlockBreakoutPlugin from 'draft-js-block-breakout-plugin';
2829
import { defineMessages, injectIntl, intlShape } from 'react-intl';
2930

3031
const messages = defineMessages({
@@ -50,6 +51,7 @@ const CalloutButton = createBlockStyleButton({
5051
children: <span>!</span>,
5152
});
5253
const linkPlugin = createLinkPlugin();
54+
const blockBreakoutPlugin = createBlockBreakoutPlugin();
5355
const inlineToolbarPlugin = createInlineToolbarPlugin({
5456
structure: [
5557
BoldButton,
@@ -179,7 +181,7 @@ export default class Edit extends Component {
179181
<Editor
180182
onChange={this.onChange}
181183
editorState={this.state.editorState}
182-
plugins={[inlineToolbarPlugin, linkPlugin]}
184+
plugins={[inlineToolbarPlugin, linkPlugin, blockBreakoutPlugin]}
183185
blockRenderMap={extendedBlockRenderMap}
184186
blockStyleFn={contentBlock => {
185187
const type = contentBlock.getType();

src/components/manage/Tiles/Title/Edit.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default class Edit extends Component {
7979
*/
8080
componentWillReceiveProps(nextProps) {
8181
if (
82+
nextProps.properties.title &&
8283
this.props.properties.title !== nextProps.properties.title &&
8384
!this.props.selected
8485
) {

theme/themes/pastanaga/globals/site.overrides

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,38 @@ body {
3535
outline-width: 1px;
3636
}
3737

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 {
3963
position: absolute;
4064
color: #aaaaaa;
65+
z-index: 1;
66+
}
67+
68+
.DraftEditorPlaceholder-hidden {
69+
display: none;
4170
}
4271

4372
.tile.align.left {

0 commit comments

Comments
 (0)