【问题标题】:the ability to change color in the N2 cms text editor在 N2 cms 文本编辑器中更改颜色的能力
【发布时间】:2011-05-13 19:43:37
【问题描述】:

我正在使用 N2 cms,它确实是一件工作, 我希望能够在 Html 文本编辑器中更改文本颜色,它拥有除此之外所需的一切。

那么容易做到吗?

【问题讨论】:

    标签: text-editor html-editor n2 n2cms


    【解决方案1】:

    转到你的 css 文件,放置一个具有颜色属性的类。然后去Html Text Editor,参考这个类。这是一些代码。

    在您的样式表中:

       .textColor
       {
           color:Red;
       }
    

    在 Html 文本编辑器中:

     <h1 class="textColor"> the text is in red</h1>
    

    编辑

    最佳方法

    您可以通过将以下代码放入 Web.config/n2/edit 标签中来启用 tinyMCE 上的前景色

     <tinyMCE enabled="true">
            <settings> 
              <add key="theme_advanced_buttons1" value="bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect"/>
              <add key="theme_advanced_buttons2" value="cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"/>
              <add key="extended_valid_elements" value="hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],pre[class],code[class],iframe[src|name|class|style|frameborder]"/>
              <add key="theme_advanced_disable" value="help,paste,emotions,iespell,styleprops"/>
              <add key="relative_urls" value="true"/>
              <add key="apply_source_formatting" value="true"/>
            </settings>
          </tinyMCE>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 2014-07-31
      • 2015-02-10
      • 1970-01-01
      相关资源
      最近更新 更多