@atlaskit/editor-plugin-media 0.6.4 → 0.6.5
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 0.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#60047](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60047) [`a1cc52ca9df3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1cc52ca9df3) - Insert media as inlineImage
|
|
8
|
+
|
|
3
9
|
## 0.6.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -110,6 +110,7 @@ var insertMediaInlineNode = exports.insertMediaInlineNode = function insertMedia
|
|
|
110
110
|
var scaledHeight = height ? Math.round(height / scaleFactor) : _mediaInline.DEFAULT_IMAGE_HEIGHT;
|
|
111
111
|
mediaInlineAttrs.width = scaledWidth;
|
|
112
112
|
mediaInlineAttrs.height = scaledHeight;
|
|
113
|
+
mediaInlineAttrs.type = 'image';
|
|
113
114
|
}
|
|
114
115
|
var mediaInlineNode = mediaInline.create(mediaInlineAttrs);
|
|
115
116
|
var space = state.schema.text(' ');
|
|
@@ -119,6 +119,7 @@ export const insertMediaInlineNode = editorAnalyticsAPI => (view, mediaState, co
|
|
|
119
119
|
const scaledHeight = height ? Math.round(height / scaleFactor) : DEFAULT_IMAGE_HEIGHT;
|
|
120
120
|
mediaInlineAttrs.width = scaledWidth;
|
|
121
121
|
mediaInlineAttrs.height = scaledHeight;
|
|
122
|
+
mediaInlineAttrs.type = 'image';
|
|
122
123
|
}
|
|
123
124
|
const mediaInlineNode = mediaInline.create(mediaInlineAttrs);
|
|
124
125
|
const space = state.schema.text(' ');
|
|
@@ -104,6 +104,7 @@ export var insertMediaInlineNode = function insertMediaInlineNode(editorAnalytic
|
|
|
104
104
|
var scaledHeight = height ? Math.round(height / scaleFactor) : DEFAULT_IMAGE_HEIGHT;
|
|
105
105
|
mediaInlineAttrs.width = scaledWidth;
|
|
106
106
|
mediaInlineAttrs.height = scaledHeight;
|
|
107
|
+
mediaInlineAttrs.type = 'image';
|
|
107
108
|
}
|
|
108
109
|
var mediaInlineNode = mediaInline.create(mediaInlineAttrs);
|
|
109
110
|
var space = state.schema.text(' ');
|