简体   繁体   English

未加载对ckeditor的contents.css文件所做的更改

[英]Changes made to contents.css file of ckeditor not loading

In my firefox 43 if i put a long text in ckeditor, I get different result in firefox and chrome. 在firefox 43中,如果我在ckeditor中输入了较长的文字,则在firefox和chrome中会得到不同的结果。 In chrome work-wrap works and breaks the word by creating a new line.But in firefox an horizontal scroll bar appears and send the text outside of the window's confinement.to prevent this behaviour i applied the following css to ckeditor's contents.css file.But the changes are not loading. 在chrome中,work-wrap通过创建新行来工作并打断单词。但是在firefox中,出现了水平滚动条并将文本发送到窗口范围之外。为防止这种行为,我将以下CSS应用于ckeditor的contents.css文件。但是更改未加载。

Can browser's cache prevent the changes from being applied?please help. 浏览器的缓存能否阻止更改的应用?请提供帮助。

can i use php to respond to css change using time related functions. 我可以使用php使用与时间相关的功能来响应CSS更改吗?

I didn't link the contents.css file to my page.It remains inside ckeditor file 我没有将contents.css文件链接到我的页面,而是保留在ckeditor文件中

在此处输入图片说明

body
{
    /* Font */
    font-family: sans-serif, Arial, Verdana, "Trebuchet MS";
    font-size: 12px;


    /* Text color */
    color: #333;

-ms-word-break: break-all;
-ms-word-wrap: break-all;
-webkit-word-break: break-word;
-webkit-word-wrap: break-word;

word-wrap: break-word;
word-wrap:break-all;
-webkit-hyphens: auto;
-moz-hyphens: auto;
white-space: pre-wrap;

hyphens: auto;
    /* Remove the background color to make it transparent */
    background-color: #fff;

    margin: 20px;
}

solved it with this piece of code: 用这段代码解决了它:

    CKEDITOR.addCss( 'body {word-break:break-all;}' );
    CKEDITOR.replace( 'editor1', {
      fullPage: true
    })

;

I fixed this by adding the following to contents.css on line 21: 我通过在第21行的content.css中添加以下内容来解决此问题:

.cke_editable {
font-size: 13px;
line-height: 1.6;
word-break: break-all;  <-- add this

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

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