问题标签 [ngx-editor]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - ngx-editor 链接重定向到与 Angular 项目 url 结合的 url
所以我使用 ngx-editor 和 angular 6 来支持富文本。我想在段落中添加链接,然后单击链接,在新选项卡中打开 url。
在 html 页面上,我将数据动态呈现为:
其中 Description 是打字稿字符串 var。
我的问题是,当我单击从上面的 html 代码呈现的链接时,它会打开 url 为:
http://localhost:4200/www.google.com
www.google.com
我从 ngx-editor 窗口添加为链接的地方。
我希望它重定向到www.google.com
.
所以我想要解决方案从链接 URL 中删除项目 URL 并仅动态打开链接 URL。
提前致谢。
angular - 如何在 ngx-editor 的 Div 内容中使用样式
我在我的 Angular 应用程序中使用了最新版本的“ngx-editor”,但是当我在内容中使用内联样式div
时,它没有正确显示。我的意思是,ngx-editor在所见即所得编辑器中删除了该样式。
我一直在尝试下面的这个例子。
app.component.ts
app.component.html
但是当我单击提交按钮并控制该结果时,我没有得到那种内联样式。
也许,现在有人如何在 ngx-editor 的内容上使用内联样式。谢谢你的帮助。
angular - ngx-editor 可以在工具栏上添加新标签按钮或设置类名
我喜欢这个插件,但我需要新的标签功能,也许是“div”标签,或者在选择文本上设置类名,这可能吗?怎么办?谢谢你。
angular - 如何在 ngx-editor 中禁用图像粘贴?
我试图将 ngx-editor 用于富文本编辑器,但我想禁用在编辑器中粘贴图像的属性。尽管我已从工具栏中删除了插入图像按钮,但它仍在编辑器中粘贴图像。
链接到 ngx-editor 文档:https ://sibiraj-s.github.io/ngx-editor/#/
angular - ngx-editor 显示占位符,尽管它有一个值
我有一个使用 ngx-editor 的简单组件。html文件如下:
ts 类:
编辑器导入如下:
永远不会显示文本,而是显示占位符的消息。可能是什么原因?我在应用程序的几个地方使用它。只有一页不起作用。
angular - ngx-editor - 仅在编辑器具有焦点时显示工具栏
我有一个使用许多 NGX 编辑器的 Angular 应用程序。为了减少页面上的噪音,我只想在特定编辑器具有焦点时显示羽毛笔工具栏。有没有一种简单的方法可以做到这一点?
angular - 安装然后启动开发服务器后 ngx-editor 错误
我想在我的项目中使用ngx-editor包,所以我安装了它,然后在执行 ng serve 后出现以下错误。
以及终端中的其他一堆错误,它结束于
我的 package.json 文件是
我已经尝试过重新安装 node_modules。