【问题标题】:How to get html content of custom element on button click in angularJs如何在angularJs中单击按钮时获取自定义元素的html内容
【发布时间】:2017-03-07 05:16:35
【问题描述】:

我正在使用本文Is it possible to allow user to edit and save html template in angularjs application中所述的指令加载html模板

我允许用户更改加载内容中的文本并希望将更新的 html 保存回数据库。有人可以帮助我如何在 angularjs 控制器中单击按钮时读取更新的 html 吗?

【问题讨论】:

  • 问题没有答案?

标签: html angularjs


【解决方案1】:

我通过在我的应用程序中使用 TinyMCE 编辑器控件解决了这个问题。只是分享它以防有人正在寻找这种行为。有关此控件的详细信息可以在他们的网站上找到https://www.tinymce.com/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-11-07
    • 2021-08-11
    • 1970-01-01
    • 1970-01-01
    • 2010-09-27
    • 2011-02-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多