zoukankan      html  css  js  c++  java
  • tinymce配置

     1 TINYMCE_DEFAULT_CONFIG = {
     2     # // General options
     3     'mode': 'textareas',
     4     'theme': "advanced",
     5     'plugins': "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
     6 
     7     # // Theme  options
     8     'theme_advanced_buttons1': "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect,fullscreen,code",
     9     'theme_advanced_buttons2': "cut,copy,paste,pastetext,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,insertdate,inserttime,preview,|,forecolor,backcolor",
    10     'theme_advanced_buttons3': "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl",
    11     'theme_advanced_toolbar_location': "top",
    12     'theme_advanced_toolbar_align': "left",
    13     'theme_advanced_statusbar_location': "bottom",
    14     'theme_advanced_resizing': 'true',
    15 
    16     # // content_css: "/css/style.css",
    17     'template_external_list_url': "lists/template_list.js",
    18     'external_link_list_url': "lists/link_list.js",
    19     'external_image_list_url': "lists/image_list.js",
    20     'media_external_list_url': "lists/media_list.js",
    21 
    22 # // Style formats
    23     'style_formats': [
    24     {'title': 'Bold text', 'inline': 'strong'},
    25     {'title': 'Red text', 'inline': 'span', 'styles': {'color': '#ff0000'}},
    26     {'title': 'Help', 'inline': 'strong', 'classes': 'help'},
    27     {'title': 'Table styles'},
    28     {'title': 'Table row 1', 'selector': 'tr', 'classes': 'tablerow'}
    29     ],
    30     'width': '700',
    31     'height': '400'
    32 }
  • 相关阅读:
    编写更好的API
    C,C++语法基础 | 字符串 | 05
    C,C++语法基础 | 变量,表达式与顺序语句 | 01
    业务数据分析 | 深入浅出数据分析入门 | 01
    linux全套 | 目录 | 00
    linux全套 | 组管理和权限管理 | 08
    linux全套 | crond任务调度 | 09
    linux全套 | linux磁盘分区,挂载 | 10
    linux全套 | 网络配置 | 11
    linux全套 | 进程管理 | 12
  • 原文地址:https://www.cnblogs.com/Fmaj7/p/13439414.html
Copyright © 2011-2022 走看看