最近の検索
最近の検索はありません

Christopher Kennedy
参加日2021年4月14日
·
前回のアクティビティ2025年2月13日
フォロー中
0
フォロワー
3
合計アクティビティ
802
投票
0
受信登録
337
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Christopher Kennedy
Christopher Kennedyさんがコメントを作成しました:
Thanks for the context. The plan level is an issue here for sure. Custom business rules are not available on the Legacy Support Essential plan. I recommend a plan upgrade to take advantage of this feature set.
コメントを表示 · 投稿日時:2025年2月13日 · Christopher Kennedy
0
フォロワー
0
投票
0
コメント
Christopher Kennedyさんがコメントを作成しました:
0
フォロワー
0
投票
0
コメント
Christopher Kennedyさんがコメントを作成しました:
Can you share some more context:
- Are you building a server-side Zendesk app? Or client-side app?
- How are you including MSAL? And how are you detecting that it's failing to initialize?
コメントを表示 · 投稿日時:2024年12月20日 · Christopher Kennedy
0
フォロワー
0
投票
0
コメント
Christopher Kennedyさんがコメントを作成しました:
0
フォロワー
0
投票
0
コメント
Christopher Kennedyさんがコメントを作成しました:
You can actually include HTML links in the value when using
ticket.editor.insert
. However, whether or not it is supported depends on the ticket channel. Live channels like chat and messaging do not support rich text replies, while other channels (web form, email, etc) do. That's really what accounts for the discrepancy in behavior that you're seeing. You can always use the ticket.editor.capabilities object to check whether the current channel supports rich text before performing the insert.コメントを表示 · 投稿日時:2024年12月18日 · Christopher Kennedy
0
フォロワー
0
投票
0
コメント
Christopher Kennedyさんがコメントを作成しました:
Hi Simon,
Thanks for the context. Sorry for the missed reply! Since you're just building an article excerpt, the simplest approach is to just pull the text from the returned article JSON body. This is easier to accomplish in vanilla JS using DOMParser() and innerText. For example, where you're currently sanitizing HTML:
let parser = new DOMParser();
let doc = parser.parseFromString(html, "text/html");
let text = doc.body.innerText;
return text;
This would return just the article body text without having to first load the body content, images, etc to the DOM before sanitizing.
Also to limit the number of articles returned by your API request, take advantage of pagination to set the max article count in the response to 6. For example:
const url = `${hcUrl}/api/v2/help_center/sections/${sectionId}/articles.json?page[size]=6`;
コメントを表示 · 投稿日時:2024年12月05日 · Christopher Kennedy
0
フォロワー
0
投票
0
コメント