是否有一个文本区域/富文本编辑器允许用户在输入时跟踪其中呈现的链接?
我正在寻找像 FCKEditor 这样的东西,它允许用户通过左键单击来跟踪链接。
例如,StackOverflow 中的 Markdown 编辑器不允许您在将数据输入编辑器时单击添加的链接。 我想渲染一个预先填充了一些实验室结果链接的文本区域,用户可以在发表评论时选择查看这些链接。
I am looking for something like like FCKEditor that allows users to follow links by left clicking them.
For example, the markdown editor in StackOverflow does not allow you to click the links you add as you are entering data into the editor. I would like to render a text area pre-populated with some links to lab results that the user can choose to review while making their comments.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
tinyMCE 和 fck 编辑器都会以蓝色突出显示链接,如果您 ctrl+单击它们,将在新选项卡/窗口中打开(取决于您的浏览器配置)
both tinyMCE and fck editor will highlight the links with blue color and if you ctrl+click on them, will open in a new tab/window (depends of you browser configuration)
大多数 HTML 富文本不会对链接执行任何操作(除了您可以通过单击左键将光标置于其中,以便编辑其文本),这会阻止您右键单击打开链接、复制它或您的浏览器允许的任何内容。
Most HTML richtext don't do anything to the link (with the exception that you can place the cursor in them with a single left click, in order to edit their text) that would prevent you from, for instance, right-clicking to open the link, copy it, or whatever your browser allows.
TinyMCE 允许您在同一页面中预览,然后通过单击按钮/图标来单击任何链接。 我认为必须有一种方法可以在 TinyMCE 之外触发此操作,并可能让它填充另一个字段/区域。 (您可能还可以获取文本区域的值并将其放在页面上的其他位置。)
不确定这是否是您正在寻找的内容。
TinyMCE allows you to preview within the same page and then click on any links with the click of a button/icon. I'm thinking there must be a way of triggering this outside of the TinyMCE and possibly having it populate another field/area. (You probably could also grab the value of the textarea and put that somewhere else on the page.)
Not sure if this is what you are looking for.
或者您可以尝试预览模式,就像 StackOverflow 一样。 请参阅如何启用实时在 ASP.Net 站点中预览 FCKeditor?
Or you could try a preview mode, just like StackOverflow. See How can I enable live preview for FCKeditor in an ASP.Net site?