简体   繁体   English

富文本编辑器更改样式

[英]Rich text editor change style

I have installed ckeditor (Rich text editor) for my blog. 我已经为我的博客安装了ckeditor(Rich Text Editor)。 Of course I installed it to customize my posts more than the default textarea. 当然,我安装它的目的是自定义帖子,而不是默认的textarea。

But I have a small problem. 但是我有一个小问题。 On my homepage I preview the first words of the post as a small description. 在我的主页上,我预览了帖子的前几句话,作为一个简短的描述。 Underneath their is a "read more" button. 它们的下方是一个“阅读更多”按钮。 The problem is that you can see the whole decoration in the preview. 问题在于您可以在预览中看到整个装饰。 But I just want a default white text. 但是我只想要一个默认的白色文本。

在此处输入图片说明

In the first posts I used no decoration. 在第一篇文章中,我没有装饰。 Just typing some text like I would do in a normal editor. 就像在普通编辑器中一样键入一些文本。 As you can see it show fine. 如您所见,它显示得很好。 But there is one problem: The CKEditor uses a custom class and I don't know how to change the color to white. 但是有一个问题:CKEditor使用一个自定义类,并且我不知道如何将颜色更改为白色。 Thats the first problem. 那就是第一个问题。

The second problem is as you can see the all the decoration in the second preview. 第二个问题是,您可以在第二个预览中看到所有装饰。 What I want is that something removes all the decoration and just shows all the text. 我想要的是除去所有装饰,只显示所有文字。

I know this is a really large question but I hope someone knows how to fix it. 我知道这是一个非常大的问题,但我希望有人知道如何解决。

Thanks for helping! 感谢您的帮助!

字符串strip_tags(字符串$ str [,字符串$ allowable_tags])

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

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