askbot-dragon 1.4.53 → 1.4.55
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.
package/package.json
CHANGED
|
@@ -3767,8 +3767,7 @@ export default {
|
|
|
3767
3767
|
processAction: [
|
|
3768
3768
|
{
|
|
3769
3769
|
content: {
|
|
3770
|
-
html:
|
|
3771
|
-
"<p>“富文本升级”可以包括以下技术方案:</p><ul><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ul><ol><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ol><h2>123</h2><h3>456</h3><h4>789</h4><p>1. 使用HTML5和CSS3实现<span class=\"text-huge\">更丰富的文字排版和样式功能;</span></p><p><a style='color: -webkit-link;text-decoration: underline;' href=\"12212121212\">2. 在富文本编辑器中支持在线协作、实时同步等功能</a>;</p><p>3. 将富文<span style=\"background-color:hsl(60,75%,60%);\">本采用JSON格式存储、传输,提高效率和稳定性;</span></p><p>4. 将富文本编辑器嵌入到移动端应用,实现移动<span style=\"color:hsl(0,75%,60%);\">端富文本编辑。</span></p><p>以上方案仅供参考,具体的“富文本升级”方案应根据实际需求和现有技术进行设计和选择。</p><figure class=\"image\"><img onclick='previewImage(this)' referrerpolicy='no-referrer' src=\"https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/20/15/45/bc09b3eb2caf92ec72aaccccecb8c1da/c402.png\"></figure>",
|
|
3770
|
+
html: `<h2>啊</h2><h3>啊</h3><h4>啊</h4><p><strong>富文本是一种文件格式,</strong><span style="color:hsl(0,75%,60%);">它可以在文本中包含丰富的样式、</span><span style="background-color:hsl(90,75%,60%);">图像、超链接和其他多媒体元素。</span><i>富文本通常用于创建网页</i>、<a style='color: -webkit-link;text-decoration: underline;' href="https://www.askbot.cn">电子邮件</a>、报告和其他电子文档。它与普通文本不同,因为它可以包含格式化的字体、颜色、大小和其他样式。富文本还可以包含表、图、动画、视频和音频。</p><p> </p><ul><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ul><ol><li class='rich-text-li'>1</li><li class='rich-text-li'>2</li><li class='rich-text-li'>3</li></ol><p> </p><p><a style='color: -webkit-link;text-decoration: underline;' href="https://u9zkf6yo6j.feishu.cn/docs/doccnaI2zolU4Tr6J0f6WUHkEBh">全员工手册.txt</a></p><p><a class="ask-component-href" href="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/24/15/45/2cc4741c774eb0e1629763f8408d34a0/滴滴出行行程报销单 (3).pdf" th:href="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/24/15/45/2cc4741c774eb0e1629763f8408d34a0/滴滴出行行程报销单 (3).pdf" target="_blank">滴滴出行行程报销单 (3).pdf</a></p><figure class="image"><img onclick='previewImage(this)' referrerpolicy='no-referrer' src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/21/10/49/5f5ab6b75e4961c0447987e6989e9763/微信图片_20230711185518.jpg"></figure><p>“富文本”是一种文本格式,允许在文本中插入图片、表格、链接、颜色等丰富的元素,使文本内容更加丰富多彩。在很多应用程序中都可以看到富文本的应用,比如邮件、社交媒体、博客等。富文本的优点是可以吸引读者的注意力并让文本内容更加易于理解和记忆。同时,富文本也可以提高文档制作的效率和质量。</p><figure class="image"><img onclick='previewImage(this)' referrerpolicy='no-referrer' src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/2023/07/21/10/49/385f5ab6b75e4961c0447987e6989e97/微信图片_20230711185518.jpg"></figure><p> </p>`,
|
|
3772
3771
|
recommend: {
|
|
3773
3772
|
description: '关联意图测试描述',
|
|
3774
3773
|
list: [
|
|
@@ -243,12 +243,15 @@
|
|
|
243
243
|
},
|
|
244
244
|
//预览图片
|
|
245
245
|
lookAttach(e){
|
|
246
|
+
console.log(246, e);
|
|
246
247
|
/* eslint-disable */
|
|
247
248
|
var reg = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/;
|
|
248
249
|
/* eslint-enable*/
|
|
249
250
|
if (e.target.localName == 'a'){
|
|
251
|
+
console.log(252);
|
|
250
252
|
this.previewHref = e.target.href;
|
|
251
|
-
|
|
253
|
+
console.log(254, this.previewHref);
|
|
254
|
+
if (this.previewHref.includes('https://www') || this.previewHref.includes('http://www') || (this.previewHref.indexOf('https://static.guoranbot.com') == -1 && this.previewHref.indexOf('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com'))){
|
|
252
255
|
return
|
|
253
256
|
} else {
|
|
254
257
|
if (isMobile()){
|