• 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 }
  • 相关阅读:
    Android studio 克隆分支
    香蕉派 banana pi BPI-M3 八核开源硬件开发板
    Visual F# Power Tools 简单介绍
    win764bit系统plsqldeveloper11连接oracle11g64bit配置方法
    cocos2d-x 模态对话框的实现
    《AndroidStudio每日一贴》2.高速查看项目中近期的变更
    Android百日程序 开篇章:Intent打开网页
    Linux应用server搭建手冊—Weblogic服务域的创建与部署
    HDU 5623 KK's Number(DP)
    JAVA之堆内存和栈内存的差别
  • 原文地址:https://www.cnblogs.com/Fmaj7/p/13439414.html
Copyright © 2020-2023  润新知