更改 CKEditor 默认 newpage_html
这是我的场景:我有 CKEditor,启用了 docprops 并将 fullpage 设置为 true。当 fullpage true 时,contentCss 不执行任何操作,这在 Trac 中是“无法修复”的。
我正在尝试修改被替换的 NewPage 代码。目前(fullpage true),这就是单击 NewPage 进入的内容:
<!DOCTYPE html />
<html>
<head>
<title></title>
</head>
<body></body>
</html>
很好,但无法编辑它。使用 newpage_html 仅将代码输入到 body 标记中,而不是替换整个内容。
我想替换整个代码,这样我就可以声明我的 CSS 默认值,但由于启用了全页,我无法这样做。
我查了很多资料,还是不知道如何修改。我什至无法在源代码中找到默认代码来自哪里!任何帮助都将是光荣的!
Here's my scenario: I have CKEditor with docprops enabled and fullpage set true. With fullpage true the contentsCss does nothing, that's a "won't fix" in Trac.
I'm trying to modify the NewPage code that gets replaced. Currently (with fullpage true), this is what clicking NewPage enters:
<!DOCTYPE html />
<html>
<head>
<title></title>
</head>
<body></body>
</html>
That's great, but there is no way to edit it. Using newpage_html only enters code into the body tags, not replacing the whole thing.
I want to replace the entire code so I can declare my CSS defaults which I can't do since fullpage is enabled.
I've looked high and low and I can't find out how to modify this. I can't even find where the default code is coming from in the source code! Any help would be glorious!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 config.newpage_html (文档中缺少它)
Use config.newpage_html (it was missing from the docs)