@orion-studios/payload-studio 0.6.0-beta.58 → 0.6.0-beta.59
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.
|
@@ -839,6 +839,9 @@ var bindEditablePreview = (view, editor) => {
|
|
|
839
839
|
const placeholder = element.dataset.orionPlaceholder || "";
|
|
840
840
|
element.setAttribute("title", isImage ? "Click to replace image" : "Click and type to edit");
|
|
841
841
|
element.style.cursor = "text";
|
|
842
|
+
element.addEventListener("pointerdown", () => {
|
|
843
|
+
editor.select?.(view.model);
|
|
844
|
+
}, true);
|
|
842
845
|
element.addEventListener("click", (event) => {
|
|
843
846
|
event.stopPropagation();
|
|
844
847
|
editor.select?.(view.model);
|
|
@@ -715,6 +715,9 @@ var bindEditablePreview = (view, editor) => {
|
|
|
715
715
|
const placeholder = element.dataset.orionPlaceholder || "";
|
|
716
716
|
element.setAttribute("title", isImage ? "Click to replace image" : "Click and type to edit");
|
|
717
717
|
element.style.cursor = "text";
|
|
718
|
+
element.addEventListener("pointerdown", () => {
|
|
719
|
+
editor.select?.(view.model);
|
|
720
|
+
}, true);
|
|
718
721
|
element.addEventListener("click", (event) => {
|
|
719
722
|
event.stopPropagation();
|
|
720
723
|
editor.select?.(view.model);
|
package/package.json
CHANGED