@sequent-org/moodboard 1.4.15 → 1.4.16
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
|
@@ -470,7 +470,7 @@ export class ToolbarPopupsController {
|
|
|
470
470
|
const target = 64;
|
|
471
471
|
const targetW = target;
|
|
472
472
|
const targetH = target;
|
|
473
|
-
const placementSrc = this.resolveEmojiPlacementSrc(cat, emojiCode, url);
|
|
473
|
+
const placementSrc = this.resolveEmojiPlacementSrc(cat, emojiCode, url, isInline);
|
|
474
474
|
this.toolbar.eventBus.emit(Events.Keyboard.ToolSelect, { tool: 'place' });
|
|
475
475
|
this.toolbar.eventBus.emit(Events.Place.Set, {
|
|
476
476
|
type: 'image',
|
|
@@ -509,7 +509,7 @@ export class ToolbarPopupsController {
|
|
|
509
509
|
const target = 64;
|
|
510
510
|
const targetW = target;
|
|
511
511
|
const targetH = target;
|
|
512
|
-
const placementSrc = this.resolveEmojiPlacementSrc(cat, emojiCode, url);
|
|
512
|
+
const placementSrc = this.resolveEmojiPlacementSrc(cat, emojiCode, url, isInline);
|
|
513
513
|
|
|
514
514
|
this.toolbar.eventBus.emit(Events.Place.Set, {
|
|
515
515
|
type: 'image',
|
|
@@ -535,7 +535,10 @@ export class ToolbarPopupsController {
|
|
|
535
535
|
this.toolbar.container.appendChild(this.toolbar.emojiPopupEl);
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
-
resolveEmojiPlacementSrc(category, emojiCode, fallbackUrl) {
|
|
538
|
+
resolveEmojiPlacementSrc(category, emojiCode, fallbackUrl, isInline = false) {
|
|
539
|
+
if (isInline) {
|
|
540
|
+
return fallbackUrl;
|
|
541
|
+
}
|
|
539
542
|
const basePath = this.getEmojiBasePath();
|
|
540
543
|
if (!emojiCode || !basePath) {
|
|
541
544
|
return fallbackUrl;
|