本文介绍了添加富文本编辑器让我失去了焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个网页,以前工作正常,直到我添加了一个富文本编辑器。 页面是ASP,它是一个新闻博客,有一个评论部分,人们点击评论的标题,然后打开一个弹出页面ccalled" comment_view.asp" ;它有一个回复按钮。如果有人想要回复该消息,他们会单击回复并将其带到父页面(view.asp),其中有一个表单供他们填写,并提交评论。设置为预填充主题。并专注于评论部分。 这个以前工作正常,直到我添加了一个富文本编辑器。到评论框。现在发生的是,主题是否已预先填充,但是,光标不关注评论。我确实改变了评论提交表格中的一些内容,但是我看不出问题是什么。我需要光标专注于评论。就像以前一样,将评论发送到任务栏,就像之前一样。有谁知道我需要添加或更改? 以下是评论表格所在页面的代码I have a web page which used to work fine until i added a rich text editor.the pages are in ASP and it is a news weblog, with a comments section where people click the headline of a comment and it opens into a pop up page ccalled "comment_view.asp" which has a reply button. If anyone wants to reply to the message, they click reply and it takes them to the parent page (view.asp) where there is a form for them to fill in,and submit the comment. It was setup to prefill the "subject" and focus on the "comment" section.This used to work fine until i added a "rich text editor" to the comment box. What happens now, is that the subject DOES get prefilled, however, the cursor does not focus on the "comment". I did change some of the things in the comment submission form, however i can''t see what the problem is. I need the cursor to focus on "comment" like it used to and send the comment into the taskbar, like before. Does anyone know what i need to add or change?Here is the code from the page where the comment form is 展开 | 选择 | Wrap | 行号推荐答案 嗨Jared, 这还不在网上,因为我还有一些其他需要整理的问题..之前是测试并且工作正常,直到添加了富文本编辑器, i think它是'document.focus'最后一行是问题..因为它应该关注评论。但是自从添加了富文本编辑器以来,它并不专注于评论。虽然它确实填充了sujject线。我添加了一个id和其他东西,但我不明白为什么这应该是问题,除非它的bodyonload函数导致它....Hi Jared, this isn''t on the web yet, as im having a few other problems that need sorting out..it was before as a test and was working fine till the rich text editor was added,i think it''s "document.focus" the last line that is the problem..as it should focus on "comment" but since the rich text editor was added it doesn''t focus on "comment" though it does prefill the sujject line. I added an "id" and something else, but i can''t see why that should be the problem, unless its the bodyonload function that causes it .... 展开 | 选择 | Wrap | 行号 这篇关于添加富文本编辑器让我失去了焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-13 14:37