From 6483ea72ddd645c629eeb6baa5a81a25e9c1cc12 Mon Sep 17 00:00:00 2001 From: Developer-Mike Date: Sat, 19 Oct 2024 11:53:45 +0200 Subject: [PATCH] Added support for selecting text of the preview file --- manifest.json | 2 +- src/styles/preview.scss | 4 ++++ styles.css | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 6cec34e..be7cda9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "docxer", "name": "Docxer", - "version": "2.1.0", + "version": "2.1.1", "minAppVersion": "1.5.0", "description": "Import Word files easily. Adds a preview mode for .docx files and the ability to convert them to markdown (.md) files.", "author": "Developer-Mike", diff --git a/src/styles/preview.scss b/src/styles/preview.scss index 48f61c7..a72792e 100644 --- a/src/styles/preview.scss +++ b/src/styles/preview.scss @@ -23,4 +23,8 @@ background-color: var(--background-primary) !important; transform-origin: center top; + + & article { + user-select: text; + } } \ No newline at end of file diff --git a/styles.css b/styles.css index 64b567c..4ec14fc 100644 --- a/styles.css +++ b/styles.css @@ -35,4 +35,7 @@ background-color: var(--background-primary) !important; transform-origin: center top; } -/*# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL3N0eWxlcy9zZXR0aW5ncy5zY3NzIiwgInNyYy9zdHlsZXMvcHJldmlldy5zY3NzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIua29maS1idXR0b24ge1xyXG4gIHotaW5kZXg6IDk5OTtcclxuXHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIGJvdHRvbTogdmFyKC0tc2l6ZS00LTUpO1xyXG4gIHJpZ2h0OiB2YXIoLS1zaXplLTQtNSk7XHJcblxyXG4gIGhlaWdodDogMzBweDtcclxuXHJcbiAgaW1nIHtcclxuICAgIGhlaWdodDogMTAwJTtcclxuICB9XHJcbn1cclxuXHJcbi5kb2N4ZXItc2V0dGluZ3MtaGVhZGluZyB7XHJcbiA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BQ0EsU0FBQSxJQUFBO0FBRUEsVUFBQTs7QUFFQSxDQVRGLFlBU0U7QUFDRSxVQUFBOztBQUlKLENBQUE7QUFLRSxpQkFBQSxJQUFBLE1BQUEsSUFBQTs7QUFKQSxDQURGLHVCQUNFLEtBQUE7QUFDRSxjQUFBLElBQUE7O0FDaEJKLENBQUE7QUFDRSxXQUFBO0FBQ0EsZUFBQTtBQUNBLG1CQUFBO0FBRUEsV0FBQSxLQUFBO0FBRUEsYUFBQTtBQUNBLG9CQUFBLElBQUE7O0FBR0YsQ0FBQTtBQUNFLGNBQUE7QUFDQSxZQUFBO0FBRUEsb0JBQUEsSUFBQTtBQUNBLFVBQUEsSUFBQSxNQUFBLElBQUE7QUFDQSxpQkFBQSxJQUFBOztBQUdGLENBQUE7QUFDRSxXQUFBO0FBQ0Esb0JBQUEsSUFBQTtBQUVBLG9CQUFBLE9BQUE7OyIsCiAgIm5hbWVzIjogW10KfQo= */ +.docx-wrapper article { + user-select: text; +} +/*# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL3N0eWxlcy9zZXR0aW5ncy5zY3NzIiwgInNyYy9zdHlsZXMvcHJldmlldy5zY3NzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIua29maS1idXR0b24ge1xyXG4gIHotaW5kZXg6IDk5OTtcclxuXHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIGJvdHRvbTogdmFyKC0tc2l6ZS00LTUpO1xyXG4gIHJpZ2h0OiB2YXIoLS1zaXplLTQtNSk7XHJcblxyXG4gIGhlaWdodDogMzBweDtcclxuXHJcbiAgaW1nIHtcclxuICAgIGhlaWdodDogMTAwJTtcclxuICB9XHJcbn1cclxuXHJcbi5kb2N4ZXItc2V0dGluZ3MtaGVhZGluZyB7XHJcbiAgJjpub3QoOmZpcnN0LWNoaWxkKSB7XHJcbiAgICBtYXJnaW4tdG9wOiB2YXIoLS1zaXplLTQtMTApICFpbX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