Forgot password?
 Register account
View 342|Reply 1

编辑引用部分

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2023-4-9 07:50 |Read mode
Screenshot 2023-04-09 at 00-47-53 参与_回复主题 - 第3版test - 测试区 - 悠闲数学.png 回复帖子时,引用部分不可编辑。建议将引用的部分设为可编辑。

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2023-5-11 02:01
Last edited by hbghlyj 2023-5-12 17:34
用这段代码可编辑引用部分
  1. let q=document.querySelector('.quote');
  2. q.setAttribute("contenteditable", true);
  3. q.setAttribute("onblur","editorform.noticetrimstr.value=html2bbcode(document.querySelector('.quote').outerHTML)")
Copy the Code

演示 output.gif

Mobile version|Discuz Math Forum

2025-6-5 00:58 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit