@manuscripts/body-editor 3.2.12 → 3.2.13
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/dist/cjs/versions.js +1 -1
- package/dist/cjs/views/image_element.js +5 -0
- package/dist/es/versions.js +1 -1
- package/dist/es/views/image_element.js +5 -0
- package/dist/types/versions.d.ts +1 -1
- package/dist/types/views/image_element.d.ts +1 -0
- package/package.json +1 -1
- package/styles/AdvancedEditor.css +5 -0
package/dist/cjs/versions.js
CHANGED
|
@@ -26,9 +26,14 @@ class ImageElementView extends block_view_1.default {
|
|
|
26
26
|
super(...arguments);
|
|
27
27
|
this.ignoreMutation = () => true;
|
|
28
28
|
}
|
|
29
|
+
createDOM() {
|
|
30
|
+
super.createDOM();
|
|
31
|
+
this.dom.setAttribute('contenteditable', 'false');
|
|
32
|
+
}
|
|
29
33
|
createElement() {
|
|
30
34
|
this.container = document.createElement('div');
|
|
31
35
|
this.container.classList.add('block');
|
|
36
|
+
this.container.setAttribute('contenteditable', 'true');
|
|
32
37
|
this.dom.appendChild(this.container);
|
|
33
38
|
this.contentDOM = document.createElement('figure');
|
|
34
39
|
this.contentDOM.classList.add('figure-block');
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.2.
|
|
1
|
+
export const VERSION = '3.2.13';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
|
@@ -20,9 +20,14 @@ export class ImageElementView extends BlockView {
|
|
|
20
20
|
super(...arguments);
|
|
21
21
|
this.ignoreMutation = () => true;
|
|
22
22
|
}
|
|
23
|
+
createDOM() {
|
|
24
|
+
super.createDOM();
|
|
25
|
+
this.dom.setAttribute('contenteditable', 'false');
|
|
26
|
+
}
|
|
23
27
|
createElement() {
|
|
24
28
|
this.container = document.createElement('div');
|
|
25
29
|
this.container.classList.add('block');
|
|
30
|
+
this.container.setAttribute('contenteditable', 'true');
|
|
26
31
|
this.dom.appendChild(this.container);
|
|
27
32
|
this.contentDOM = document.createElement('figure');
|
|
28
33
|
this.contentDOM.classList.add('figure-block');
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.2.
|
|
1
|
+
export declare const VERSION = "3.2.13";
|
|
2
2
|
export declare const MATHJAX_VERSION = "3.2.2";
|
|
@@ -19,6 +19,7 @@ import BlockView from './block_view';
|
|
|
19
19
|
export declare class ImageElementView extends BlockView<Trackable<FigureElementNode>> {
|
|
20
20
|
container: HTMLElement;
|
|
21
21
|
ignoreMutation: () => boolean;
|
|
22
|
+
createDOM(): void;
|
|
22
23
|
createElement(): void;
|
|
23
24
|
}
|
|
24
25
|
declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<ImageElementView>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/body-editor",
|
|
3
3
|
"description": "Prosemirror components for editing and viewing manuscripts",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.13",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -1558,3 +1558,8 @@ th:hover > .table-context-menu-button,
|
|
|
1558
1558
|
.hero-image-toggle-btn.collapsed svg {
|
|
1559
1559
|
transform: rotate(180deg);
|
|
1560
1560
|
}
|
|
1561
|
+
|
|
1562
|
+
.ProseMirror .block-image_element .block:focus-visible,
|
|
1563
|
+
.ProseMirror .block-figure_element .block:focus-visible {
|
|
1564
|
+
outline: none;
|
|
1565
|
+
}
|