【问题标题】:Froala showing content differently in view-only pageFroala 在仅查看页面中以不同方式显示内容
【发布时间】:2014-12-19 06:42:28
【问题描述】:

我正在使用 Froala 创建带有图像的 html 内容。问题是图像在仅查看模式下未正确对齐,并且始终显示为左对齐。此页面上接受的答案https://stackoverflow.com/a/26452421/2211098 建议使用 froala_page.min.css,但我在源代码中找不到该文件。任何帮助将不胜感激。

【问题讨论】:

    标签: froala


    【解决方案1】:

    froala_page.min.css 最近更改为 froala_content.min.cssfroala_style.min.css。阅读https://editor.froala.com/docs 中的Display Edited Content 部分。

    【讨论】:

    • 感谢您的回复。这些文件已经按照文档中描述的方式包含在我的应用程序中。但在编辑器中,图像显示在 div 的中心,而在仅查看模式下,它是左对齐的。
    • 可能您没有正确保存内容。如果图像没有 fr-tag 类,则内容未正确保存。如果你使用 JS 保存内容,你应该使用getHTMLeditor.froala.com/examples/getHTML 一样。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-15
    • 2011-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-06
    • 2023-01-24
    相关资源
    最近更新 更多