简体   繁体   English

是否有一个textarea /富文本编辑器,允许用户在输入时跟随呈现在其中的链接?

[英]Is there a textarea/rich text editor that allows the user to follow links that render in them while entering?

I am looking for something like like FCKEditor that allows users to follow links by left clicking them. 我正在寻找类似FCKEditor的工具,该工具允许用户通过单击鼠标来跟踪链接。

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. 例如,在将数据输入编辑器时,StackOverflow中的markdown编辑器不允许您单击添加的链接。 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. 我想渲染一个预先填充了一些指向实验室结果的链接的文本区域,用户可以在评论时选择进行查看。

tinyMCE和fck编辑器都将用蓝色突出显示链接,如果您按住Ctrl键并单击它们,将在新的标签/窗口中打开(取决于浏览器配置)

大多数HTML RTF文本都不会对链接做任何事情(除了您可以通过单击鼠标左键将光标放在其中,以便编辑其文本),这会阻止您例如右键单击打开链接,复制链接或您的浏览器允许的任何内容。

TinyMCE allows you to preview within the same page and then click on any links with the click of a button/icon. TinyMCE允许您在同一页面中预览,然后单击按钮/图标单击任何链接。 I'm thinking there must be a way of triggering this outside of the TinyMCE and possibly having it populate another field/area. 我认为必须有一种方法可以在TinyMCE之外触发此事件,并可能将其填充到另一个字段/区域中。 (You probably could also grab the value of the textarea and put that somewhere else on the page.) (您可能还可以获取textarea的值,并将其放在页面上的其他位置。)

Not sure if this is what you are looking for. 不知道这是您在寻找什么。

Or you could try a preview mode, just like StackOverflow. 或者,您可以尝试预览模式,就像StackOverflow。 See How can I enable live preview for FCKeditor in an ASP.Net site? 请参阅如何在ASP.Net站点中为FCKeditor启用实时预览?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM