前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >PHPCMS更改后台编辑器样式

PHPCMS更改后台编辑器样式

作者头像
李维亮
发布2021-07-09 15:21:56
1.4K0
发布2021-07-09 15:21:56
举报
文章被收录于专栏:李维亮的博客李维亮的博客

PHPCMS默认的后台样式用着不习惯,根前台的视觉差太大?没关系,改一下就是了。

后台编辑器样式文件 staticsjsckeditorcontents.css

把前台样式表中控制文字的那一部分拷贝进去稍微修改下即可,当然你可以自定义编辑器背景什么的,看个人喜好了。

我自己比较喜欢的样式现在分享给大家

/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/

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

    /* Text color */
    color: #333;

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

    margin: 20px;
}

.cke_editable
{
    font-size: 13px;
    line-height: 1.6em;
}
.cke_contents_ltr blockquote
{
    padding-left: 20px;
    padding-right: 8px;
    border-left-width: 5px;
}

.cke_contents_rtl blockquote
{
    padding-left: 8px;
    padding-right: 20px;
    border-right-width: 5px;
}

a
{
    color: #0782C1;
}

ol,ul,dl
{
    /* IE7: reset rtl list margin. (#7334) */
    *margin-right: 0px;
    /* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/
    padding: 0 40px;
}

h1,h2,h3,h4,h5,h6
{
    font-weight: normal;
    line-height: 1.2em;
}

hr
{
    border: 0px;
    border-top: 1px solid #ccc;
}

img.right
{
    border: 1px solid #ccc;
    float: right;
    margin-left: 15px;
    padding: 5px;
}

img.left
{
    border: 1px solid #ccc;
    float: left;
    margin-right: 15px;
    padding: 5px;
}

/* #10868: We use :not() selector to exclude IE8, which crashes on img:hover style. */
:not(.ie8) img:hover
{
    opacity: .9;
    filter: alpha(opacity = 90);
}
.marker
{
    background-color: Yellow;
}
blockquote
{
    font-style: italic;
    font-family: Georgia, Times, "Times New Roman", serif;
    padding: 2px 0;
    border-style: solid;
    border-color: #ccc;
    border-width: 0;
}
pre
{
    white-space: pre-wrap; /* CSS 2.1 */
    word-wrap: break-word; /* IE7 */
    border:1px dashed #444;
    padding:0.5em 1em;
}
p{
    text-indent:2em;
}
table{
    border-collapse:collapse;
}
table, th, td{
    border: 1px solid #000;
}
td{
    padding:0 0 0 1em;
}

建议大家把编辑器升级到最新版,见 PHPCMS编辑器ckeditor升级到最新版

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2015-10-19,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档