@griddo/ax 1.75.128 → 1.75.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "1.75.
|
|
4
|
+
"version": "1.75.129",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -230,5 +230,5 @@
|
|
|
230
230
|
"publishConfig": {
|
|
231
231
|
"access": "public"
|
|
232
232
|
},
|
|
233
|
-
"gitHead": "
|
|
233
|
+
"gitHead": "cd977ed72fef927f3a8c117fe3c014083d387b87"
|
|
234
234
|
}
|
|
@@ -97,6 +97,9 @@ const PageConnectedField = (props: any) => {
|
|
|
97
97
|
updateEditorContent(selectedEditorID, "parent", null);
|
|
98
98
|
updateEditorContent(selectedEditorID, "slug", value ? "/" : slugify(selectedContent.title));
|
|
99
99
|
updateEditorContent(selectedEditorID, "isHome", value);
|
|
100
|
+
} else {
|
|
101
|
+
const editorID = templateID ? templateID : selectedEditorID;
|
|
102
|
+
updateEditorContent(editorID, key, value);
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
if (slugTo) {
|
|
@@ -104,10 +107,6 @@ const PageConnectedField = (props: any) => {
|
|
|
104
107
|
updateEditorContent(selectedEditorID, slugTo, slugify(slugValue));
|
|
105
108
|
}
|
|
106
109
|
|
|
107
|
-
const editorID = templateID ? templateID : selectedEditorID;
|
|
108
|
-
|
|
109
|
-
updateEditorContent(editorID, key, value);
|
|
110
|
-
|
|
111
110
|
const isPageTitle = ["Page", "GlobalPage"].includes(selectedContent.component) && key === "title";
|
|
112
111
|
if (isPageTitle) {
|
|
113
112
|
setCurrentPageName(value);
|
|
@@ -46,7 +46,8 @@ const RichText = (props: IRichTextProps): JSX.Element => {
|
|
|
46
46
|
const content = editorState.getCurrentContent();
|
|
47
47
|
const plainContent = content.getPlainText();
|
|
48
48
|
const rawObject = convertToRaw(content);
|
|
49
|
-
const markdownString =
|
|
49
|
+
const markdownString =
|
|
50
|
+
plainContent === "" ? plainContent : html ? draftToHtml(rawObject) : draftToMarkdown(rawObject);
|
|
50
51
|
onChange(markdownString);
|
|
51
52
|
error && handleValidation && handleValidation(plainContent);
|
|
52
53
|
};
|
|
@@ -10,7 +10,7 @@ const ButtonWrapper = styled.div`
|
|
|
10
10
|
|
|
11
11
|
const MenuWrapper = styled.div<{ isInAppBar?: boolean; position: string; offset?: number }>`
|
|
12
12
|
position: absolute;
|
|
13
|
-
z-index:
|
|
13
|
+
z-index: 7;
|
|
14
14
|
padding-top: ${(p) => (p.isInAppBar ? p.theme.spacing.s : p.theme.spacing.xs)};
|
|
15
15
|
margin-right: ${(p) => (p.isInAppBar ? p.theme.spacing.s : "0")};
|
|
16
16
|
${(p) => p.position}: ${(p) => (p.offset ? `${p.offset}px` : "0")};
|