Forgot password
 Register account
View 283|Reply 1

编辑引用部分

[Copy link]

3210

Threads

7832

Posts

52

Reputation

Show all posts

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

3210

Threads

7832

Posts

52

Reputation

Show all posts

original poster 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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:38 GMT+8

Powered by Discuz!

Processed in 0.012611 seconds, 26 queries