Skip to content

Commit 739431a

Browse files
author
FalkWolsky
committed
Same Editor Settings for Ticket Details
1 parent 9a4fb96 commit 739431a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

client/packages/lowcoder/src/pages/setting/subscriptions/productCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import styled from 'styled-components';
33
import { GreyTextColor } from 'constants/style';
44
import { Card, Button } from 'antd';
5-
import { SettingOutlined, CheckCircleOutlined, PlusSquareOutlined, LoadingOutlined, InfoCircleOutlined } from '@ant-design/icons';
5+
import { SettingOutlined, CheckCircleOutlined, LoadingOutlined, InfoCircleOutlined } from '@ant-design/icons';
66
import { buildSubscriptionSettingsLink, buildSubscriptionInfoLink } from "constants/routesURL";
77
import history from "util/history";
88

client/packages/lowcoder/src/pages/support/supportDetail.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ const AttachmentWrapper = styled.div`
6767
margin-bottom: 16px;
6868
`;
6969

70+
const toolbarOptions = [
71+
['bold', 'italic', 'underline'], // Basic formatting options
72+
[{ 'list': 'ordered' }, { 'list': 'bullet' }], // Lists
73+
[{ 'header': [1, 2, 3, false] }], // Headers
74+
['link'], // Links
75+
[{ 'align': [] }] // Text alignment
76+
];
77+
7078
// Function to convert Jira syntax to Markdown
7179
const convertJiraToMarkdown = (content: string) => {
7280
// Normalize tabs to single spaces and reduce multiple spaces to a single space
@@ -450,6 +458,7 @@ export function SupportDetail() {
450458
theme="snow"
451459
value={newDescription}
452460
onChange={setNewDescription}
461+
modules={{ toolbar: toolbarOptions }}
453462
style={{ marginBottom: '8px' }}
454463
/>
455464
<Button
@@ -469,7 +478,7 @@ export function SupportDetail() {
469478
) : (
470479
<>
471480
{renderMarkdown(newDescription || trans("support.noDescription"))}
472-
<Button onClick={() => setIsEditingDescription(true)} style={{ marginTop: '8px' }}>
481+
<Button type="primary" onClick={() => setIsEditingDescription(true)} style={{ marginTop: '8px' }}>
473482
{trans('support.edit')}
474483
</Button>
475484
</>

0 commit comments

Comments
 (0)