From 98803c23e673b9bbba13ba796aadc22fc87da1d0 Mon Sep 17 00:00:00 2001 From: aqordeon Date: Wed, 11 Dec 2024 16:20:02 +0800 Subject: [PATCH] fix: Announcement: update editor styles, link target on text --- .../Components/CMS/Fields/MultiEditorInputHTML.vue | 8 ++++---- .../js/Components/CMS/Fields/SideEditorInputHTML.vue | 2 +- resources/js/Components/Editor/TiptapLinkDialog.vue | 2 +- .../Forms/Fields/BubleTextEditor/EditorV2.vue | 11 ++++++----- .../AnnouncementInformation2TransitionText.vue | 12 ++++++------ .../Templates/Promo/AnnouncementPromo1.vue | 12 +++++++----- 6 files changed, 25 insertions(+), 22 deletions(-) diff --git a/resources/js/Components/CMS/Fields/MultiEditorInputHTML.vue b/resources/js/Components/CMS/Fields/MultiEditorInputHTML.vue index eb08a3397..30fb64241 100644 --- a/resources/js/Components/CMS/Fields/MultiEditorInputHTML.vue +++ b/resources/js/Components/CMS/Fields/MultiEditorInputHTML.vue @@ -136,18 +136,18 @@ const transitionList = [
{{ trans('Text list') }}
-
-
+
+
-
+
diff --git a/resources/js/Components/CMS/Fields/SideEditorInputHTML.vue b/resources/js/Components/CMS/Fields/SideEditorInputHTML.vue index d977bdb0f..202155b62 100644 --- a/resources/js/Components/CMS/Fields/SideEditorInputHTML.vue +++ b/resources/js/Components/CMS/Fields/SideEditorInputHTML.vue @@ -22,7 +22,7 @@ defineOptions({ v-bind="$attrs" > diff --git a/resources/js/Components/Editor/TiptapLinkDialog.vue b/resources/js/Components/Editor/TiptapLinkDialog.vue index 88783b771..7c9a7aae9 100644 --- a/resources/js/Components/Editor/TiptapLinkDialog.vue +++ b/resources/js/Components/Editor/TiptapLinkDialog.vue @@ -47,7 +47,7 @@ onMounted(() => {
Link
- +
Target
diff --git a/resources/js/Components/Forms/Fields/BubleTextEditor/EditorV2.vue b/resources/js/Components/Forms/Fields/BubleTextEditor/EditorV2.vue index 6b8603142..7a63b7d69 100644 --- a/resources/js/Components/Forms/Fields/BubleTextEditor/EditorV2.vue +++ b/resources/js/Components/Forms/Fields/BubleTextEditor/EditorV2.vue @@ -414,14 +414,15 @@ const irisVariablesList = [ --> -
+
+ :value="editorInstance.getAttributes('textStyle').color" + /> -
@@ -435,7 +436,7 @@ const irisVariablesList = [ @input="editorInstance.chain().focus().setHighlight({ color: $event.target.value }).run()" :value="editorInstance.getAttributes('highlight').color" /> -
diff --git a/resources/js/Components/Workshop/Announcement/Templates/Information/AnnouncementInformation2TransitionText.vue b/resources/js/Components/Workshop/Announcement/Templates/Information/AnnouncementInformation2TransitionText.vue index eac3a01a0..511c4c535 100644 --- a/resources/js/Components/Workshop/Announcement/Templates/Information/AnnouncementInformation2TransitionText.vue +++ b/resources/js/Components/Workshop/Announcement/Templates/Information/AnnouncementInformation2TransitionText.vue @@ -24,12 +24,12 @@ const props = defineProps<{ duration: number multi_text: string[] } - button_1: { - text: string - container: { - properties: BlockProperties - } - } + // button_1: { + // text: string + // container: { + // properties: BlockProperties + // } + // } countdown: { date: string expired_text?: string diff --git a/resources/js/Components/Workshop/Announcement/Templates/Promo/AnnouncementPromo1.vue b/resources/js/Components/Workshop/Announcement/Templates/Promo/AnnouncementPromo1.vue index ea01776e4..413f7f58e 100644 --- a/resources/js/Components/Workshop/Announcement/Templates/Promo/AnnouncementPromo1.vue +++ b/resources/js/Components/Workshop/Announcement/Templates/Promo/AnnouncementPromo1.vue @@ -214,11 +214,12 @@ const defaultFieldsData = { "button_1": { "link": { "type" : "internal", - "url": "https://ancientwisdom.biz/showroom", + "href": "https://wowsbar.com", "id": 9, - "workshop_route" : "" + "workshop_route" : "", + "target": "_blank" }, - "text": 'Claim Now!', + "text": 'Claim Now!', "container": { "properties": { "text": { @@ -386,7 +387,7 @@ defineExpose({
- +
+
{{ announcementData?.fields?.button_1 }}