settings.defaults.coffee 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. Path = require('path')
  2. http = require('http')
  3. http.globalAgent.maxSockets = 300
  4. # Make time interval config easier.
  5. seconds = 1000
  6. minutes = 60 * seconds
  7. # These credentials are used for authenticating api requests
  8. # between services that may need to go over public channels
  9. httpAuthUser = process.env['WEB_API_USER'] or "sharelatex"
  10. httpAuthPass = process.env['WEB_API_PASSWORD'] or "password"
  11. httpAuthUsers = {}
  12. httpAuthUsers[httpAuthUser] = httpAuthPass
  13. sessionSecret = process.env['SESSION_SECRET'] or "secret-please-change"
  14. if process.env['V1_API_URL'] or process.env['V1_HOST']
  15. v1Api =
  16. url: process.env['V1_API_URL'] or "http://#{process.env['V1_HOST']}:5000"
  17. user: process.env['V1_API_USER']
  18. pass: process.env['V1_API_PASSWORD']
  19. else
  20. v1Api =
  21. url: undefined
  22. user: undefined
  23. pass: undefined
  24. module.exports = settings =
  25. allowAnonymousReadAndWriteSharing:
  26. process.env['SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING'] == 'true'
  27. # Databases
  28. # ---------
  29. mongo:
  30. url : process.env['MONGO_CONNECTION_STRING'] || process.env['MONGO_URL'] || "mongodb://#{process.env['MONGO_HOST'] or '127.0.0.1'}/sharelatex"
  31. redis:
  32. web:
  33. host: process.env['REDIS_HOST'] || "localhost"
  34. port: process.env['REDIS_PORT'] || "6379"
  35. password: process.env["REDIS_PASSWORD"] or ""
  36. maxRetriesPerRequest: parseInt(process.env["REDIS_MAX_RETRIES_PER_REQUEST"] || '20')
  37. # websessions:
  38. # cluster: [
  39. # {host: 'localhost', port: 7000}
  40. # {host: 'localhost', port: 7001}
  41. # {host: 'localhost', port: 7002}
  42. # {host: 'localhost', port: 7003}
  43. # {host: 'localhost', port: 7004}
  44. # {host: 'localhost', port: 7005}
  45. # ]
  46. # ratelimiter:
  47. # cluster: [
  48. # {host: 'localhost', port: 7000}
  49. # {host: 'localhost', port: 7001}
  50. # {host: 'localhost', port: 7002}
  51. # {host: 'localhost', port: 7003}
  52. # {host: 'localhost', port: 7004}
  53. # {host: 'localhost', port: 7005}
  54. # ]
  55. # cooldown:
  56. # cluster: [
  57. # {host: 'localhost', port: 7000}
  58. # {host: 'localhost', port: 7001}
  59. # {host: 'localhost', port: 7002}
  60. # {host: 'localhost', port: 7003}
  61. # {host: 'localhost', port: 7004}
  62. # {host: 'localhost', port: 7005}
  63. # ]
  64. api:
  65. host: process.env['REDIS_HOST'] || "localhost"
  66. port: process.env['REDIS_PORT'] || "6379"
  67. password: process.env["REDIS_PASSWORD"] or ""
  68. maxRetriesPerRequest: parseInt(process.env["REDIS_MAX_RETRIES_PER_REQUEST"] || '20')
  69. # Service locations
  70. # -----------------
  71. # Configure which ports to run each service on. Generally you
  72. # can leave these as they are unless you have some other services
  73. # running which conflict, or want to run the web process on port 80.
  74. internal:
  75. web:
  76. port: webPort = process.env['WEB_PORT'] or 3000
  77. host: process.env['LISTEN_ADDRESS'] or 'localhost'
  78. documentupdater:
  79. port: docUpdaterPort = 3003
  80. gitBridgePublicBaseUrl: "http://#{process.env['GIT_BRIDGE_HOST'] || 'localhost'}:8000"
  81. # Tell each service where to find the other services. If everything
  82. # is running locally then this is easy, but they exist as separate config
  83. # options incase you want to run some services on remote hosts.
  84. apis:
  85. web:
  86. url: "http://#{process.env['WEB_API_HOST'] or process.env['WEB_HOST'] or "localhost"}:#{process.env['WEB_API_PORT'] or process.env['WEB_PORT'] or 3000}"
  87. user: httpAuthUser
  88. pass: httpAuthPass
  89. documentupdater:
  90. url : "http://#{process.env['DOCUPDATER_HOST'] or process.env['DOCUMENT_UPDATER_HOST'] or 'localhost'}:#{docUpdaterPort}"
  91. thirdPartyDataStore:
  92. url : "http://#{process.env['TPDS_HOST'] or 'localhost'}:3002"
  93. emptyProjectFlushDelayMiliseconds: 5 * seconds
  94. dropboxApp: process.env['TPDS_DROPBOX_APP']
  95. tags:
  96. url :"http://#{process.env['TAGS_HOST'] or 'localhost'}:3012"
  97. spelling:
  98. url : "http://#{process.env['SPELLING_HOST'] or 'localhost'}:3005"
  99. host: process.env['SPELLING_HOST']
  100. trackchanges:
  101. url : "http://#{process.env['TRACK_CHANGES_HOST'] or 'localhost'}:3015"
  102. project_history:
  103. sendProjectStructureOps: process.env.PROJECT_HISTORY_ENABLED == 'true' or false
  104. initializeHistoryForNewProjects: process.env.PROJECT_HISTORY_ENABLED == 'true' or false
  105. displayHistoryForNewProjects: process.env.PROJECT_HISTORY_ENABLED == 'true' or false
  106. url : "http://#{process.env['PROJECT_HISTORY_HOST'] or 'localhost'}:3054"
  107. docstore:
  108. url : "http://#{process.env['DOCSTORE_HOST'] or 'localhost'}:3016"
  109. pubUrl: "http://#{process.env['DOCSTORE_HOST'] or 'localhost'}:3016"
  110. chat:
  111. url: "http://#{process.env['CHAT_HOST'] or 'localhost'}:3010"
  112. internal_url: "http://#{process.env['CHAT_HOST'] or 'localhost'}:3010"
  113. blog:
  114. url: "http://localhost:3008"
  115. port: 3008
  116. university:
  117. url: "http://localhost:3011"
  118. filestore:
  119. url: "http://#{process.env['FILESTORE_HOST'] or 'localhost'}:3009"
  120. clsi:
  121. url: "http://#{process.env['CLSI_HOST'] or 'localhost'}:3013"
  122. # url: "http://#{process.env['CLSI_LB_HOST']}:3014"
  123. backendGroupName: undefined
  124. templates:
  125. url: "http://#{process.env['TEMPLATES_HOST'] or 'localhost'}:3007"
  126. githubSync:
  127. url: "http://#{process.env['GITHUB_SYNC_HOST'] or 'localhost'}:3022"
  128. recurly:
  129. apiKey: process.env['RECURLY_API_KEY'] or ''
  130. apiVersion: process.env['RECURLY_API_VERSION']
  131. subdomain: process.env['RECURLY_SUBDOMAIN'] or ''
  132. publicKey: process.env['RECURLY_PUBLIC_KEY'] or ''
  133. geoIpLookup:
  134. url: "http://#{process.env['GEOIP_HOST'] or process.env['FREEGEOIP_HOST'] or 'localhost'}:8080/json/"
  135. realTime:
  136. url: "http://#{process.env['REALTIME_HOST'] or 'localhost'}:3026"
  137. contacts:
  138. url: "http://#{process.env['CONTACTS_HOST'] or 'localhost'}:3036"
  139. sixpack:
  140. url: ""
  141. references:
  142. url: if process.env['REFERENCES_HOST']? then "http://#{process.env['REFERENCES_HOST']}:3040" else undefined
  143. notifications:
  144. url: "http://#{process.env['NOTIFICATIONS_HOST'] or 'localhost'}:3042"
  145. analytics:
  146. url: "http://#{process.env['ANALYTICS_HOST'] or 'localhost'}:3050"
  147. linkedUrlProxy:
  148. url: process.env['LINKED_URL_PROXY']
  149. thirdpartyreferences:
  150. url: "http://#{process.env['THIRD_PARTY_REFERENCES_HOST'] or 'localhost'}:3046"
  151. v1: v1Api
  152. v1_history:
  153. url: "http://#{process.env['V1_HISTORY_HOST'] or "localhost"}:3100/api"
  154. user: process.env['V1_HISTORY_USER'] or 'staging'
  155. pass: process.env['V1_HISTORY_PASSWORD'] or 'password'
  156. templates:
  157. user_id: process.env.TEMPLATES_USER_ID or "5395eb7aad1f29a88756c7f2"
  158. showSocialButtons: false
  159. showComments: false
  160. # cdn:
  161. # web:
  162. # host:"http://nowhere.sharelatex.dev"
  163. # darkHost:"http://cdn.sharelatex.dev:3000"
  164. # Where your instance of ShareLaTeX can be found publically. Used in emails
  165. # that are sent out, generated links, etc.
  166. siteUrl : siteUrl = process.env['PUBLIC_URL'] or 'http://localhost:3000'
  167. # Used to close the editor off to users
  168. editorIsOpen: process.env['EDITOR_IS_OPEN'] or true
  169. # Optional separate location for websocket connections, if unset defaults to siteUrl.
  170. wsUrl: process.env['WEBSOCKET_URL']
  171. # cookie domain
  172. # use full domain for cookies to only be accessible from that domain,
  173. # replace subdomain with dot to have them accessible on all subdomains
  174. cookieDomain: process.env['COOKIE_DOMAIN']
  175. cookieName: process.env['COOKIE_NAME'] or "sharelatex.sid"
  176. # this is only used if cookies are used for clsi backend
  177. #clsiCookieKey: "clsiserver"
  178. # Same, but with http auth credentials.
  179. httpAuthSiteUrl: "http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}"
  180. robotsNoindex: (process.env['ROBOTS_NOINDEX'] == "true") or false
  181. maxEntitiesPerProject: 2000
  182. maxUploadSize: 50 * 1024 * 1024 # 50 MB
  183. # Security
  184. # --------
  185. security:
  186. sessionSecret: sessionSecret
  187. bcryptRounds: 12 # number of rounds used to hash user passwords (raised to power 2)
  188. httpAuthUsers: httpAuthUsers
  189. # Default features
  190. # ----------------
  191. #
  192. # You can select the features that are enabled by default for new
  193. # new users.
  194. defaultFeatures: defaultFeatures =
  195. collaborators: -1
  196. dropbox: true
  197. github: true
  198. gitBridge: true
  199. versioning: true
  200. compileTimeout: 180
  201. compileGroup: "standard"
  202. references: true
  203. templates: true
  204. trackChanges: true
  205. features:
  206. personal: defaultFeatures
  207. plans: plans = [{
  208. planCode: "personal"
  209. name: "Personal"
  210. price: 0
  211. features: defaultFeatures
  212. }]
  213. enableSubscriptions:false
  214. enabledLinkedFileTypes: (process.env['ENABLED_LINKED_FILE_TYPES'] or '').split(',')
  215. # i18n
  216. # ------
  217. #
  218. i18n:
  219. subdomainLang:
  220. www: {lngCode:"en", url: siteUrl}
  221. defaultLng: "en"
  222. # Spelling languages
  223. # ------------------
  224. #
  225. # You must have the corresponding aspell package installed to
  226. # be able to use a language.
  227. languages: [
  228. {code: "en", name: "English"},
  229. {code: "en_US", name: "English (American)"},
  230. {code: "en_GB", name: "English (British)"},
  231. {code: "en_CA", name: "English (Canadian)"},
  232. {code: "af", name: "Afrikaans"},
  233. {code: "ar", name: "Arabic"},
  234. {code: "gl", name: "Galician"},
  235. {code: "eu", name: "Basque"},
  236. {code: "br", name: "Breton"},
  237. {code: "bg", name: "Bulgarian"},
  238. {code: "ca", name: "Catalan"},
  239. {code: "hr", name: "Croatian"},
  240. {code: "cs", name: "Czech"},
  241. {code: "da", name: "Danish"},
  242. {code: "nl", name: "Dutch"},
  243. {code: "eo", name: "Esperanto"},
  244. {code: "et", name: "Estonian"},
  245. {code: "fo", name: "Faroese"},
  246. {code: "fr", name: "French"},
  247. {code: "de", name: "German"},
  248. {code: "el", name: "Greek"},
  249. {code: "id", name: "Indonesian"},
  250. {code: "ga", name: "Irish"},
  251. {code: "it", name: "Italian"},
  252. {code: "kk", name: "Kazakh"},
  253. {code: "ku", name: "Kurdish"},
  254. {code: "lv", name: "Latvian"},
  255. {code: "lt", name: "Lithuanian"},
  256. {code: "nr", name: "Ndebele"},
  257. {code: "ns", name: "Northern Sotho"},
  258. {code: "no", name: "Norwegian"},
  259. {code: "fa", name: "Persian"},
  260. {code: "pl", name: "Polish"},
  261. {code: "pt_BR", name: "Portuguese (Brazilian)"},
  262. {code: "pt_PT", name: "Portuguese (European)"},
  263. {code: "pa", name: "Punjabi"},
  264. {code: "ro", name: "Romanian"},
  265. {code: "ru", name: "Russian"},
  266. {code: "sk", name: "Slovak"},
  267. {code: "sl", name: "Slovenian"},
  268. {code: "st", name: "Southern Sotho"},
  269. {code: "es", name: "Spanish"},
  270. {code: "sv", name: "Swedish"},
  271. {code: "tl", name: "Tagalog"},
  272. {code: "ts", name: "Tsonga"},
  273. {code: "tn", name: "Tswana"},
  274. {code: "hsb", name: "Upper Sorbian"},
  275. {code: "cy", name: "Welsh"},
  276. {code: "xh", name: "Xhosa"}
  277. ]
  278. # Password Settings
  279. # -----------
  280. # These restrict the passwords users can use when registering
  281. # opts are from http://antelle.github.io/passfield
  282. # passwordStrengthOptions:
  283. # pattern: "aA$3"
  284. # length:
  285. # min: 6
  286. # max: 128
  287. # Email support
  288. # -------------
  289. #
  290. # ShareLaTeX uses nodemailer (http://www.nodemailer.com/) to send transactional emails.
  291. # To see the range of transport and options they support, see http://www.nodemailer.com/docs/transports
  292. #email:
  293. # fromAddress: ""
  294. # replyTo: ""
  295. # lifecycle: false
  296. ## Example transport and parameter settings for Amazon SES
  297. # transport: "SES"
  298. # parameters:
  299. # AWSAccessKeyID: ""
  300. # AWSSecretKey: ""
  301. # Third party services
  302. # --------------------
  303. #
  304. # ShareLaTeX's regular newsletter is managed by mailchimp. Add your
  305. # credentials here to integrate with this.
  306. # mailchimp:
  307. # api_key: ""
  308. # list_id: ""
  309. #
  310. # Fill in your unique token from various analytics services to enable
  311. # them.
  312. # analytics:
  313. # ga:
  314. # token: ""
  315. #
  316. # ShareLaTeX's help desk is provided by tenderapp.com
  317. # tenderUrl: ""
  318. #
  319. # Client-side error logging is provided by getsentry.com
  320. # sentry:
  321. # src: ""
  322. # publicDSN: ""
  323. #
  324. # src should be either a remote url like
  325. # //cdn.ravenjs.com/1.1.22/jquery,native/raven.min.js
  326. # or a local file in the js/libs directory.
  327. # The publicDSN is the token for the client-side getSentry service.
  328. # Production Settings
  329. # -------------------
  330. # Should javascript assets be served minified or not. Note that you will
  331. # need to run `grunt compile:minify` within the web-sharelatex directory
  332. # to generate these.
  333. useMinifiedJs: process.env['MINIFIED_JS'] == 'true' or false
  334. # Should static assets be sent with a header to tell the browser to cache
  335. # them.
  336. cacheStaticAssets: false
  337. # If you are running ShareLaTeX over https, set this to true to send the
  338. # cookie with a secure flag (recommended).
  339. secureCookie: false
  340. # If you are running ShareLaTeX behind a proxy (like Apache, Nginx, etc)
  341. # then set this to true to allow it to correctly detect the forwarded IP
  342. # address and http/https protocol information.
  343. behindProxy: false
  344. # Cookie max age (in milliseconds). Set to false for a browser session.
  345. cookieSessionLength: 5 * 24 * 60 * 60 * 1000 # 5 days
  346. # When true, only allow invites to be sent to email addresses that
  347. # already have user accounts
  348. restrictInvitesToExistingAccounts: false
  349. # Should we allow access to any page without logging in? This includes
  350. # public projects, /learn, /templates, about pages, etc.
  351. allowPublicAccess: if process.env["SHARELATEX_ALLOW_PUBLIC_ACCESS"] == 'true' then true else false
  352. enableHomepage: process.env["HOME_PAGE_ENABLED"] == 'true'
  353. # editor should be open by default
  354. editorIsOpen: if process.env["EDITOR_OPEN"] == 'false' then false else true
  355. # site should be open by default
  356. siteIsOpen: if process.env["SITE_OPEN"] == 'false' then false else true
  357. # Use a single compile directory for all users in a project
  358. # (otherwise each user has their own directory)
  359. # disablePerUserCompiles: true
  360. # Domain the client (pdfjs) should download the compiled pdf from
  361. pdfDownloadDomain: process.env["PDF_DOWNLOAD_DOMAIN"] #"http://clsi-lb:3014"
  362. # Maximum size of text documents in the real-time editing system.
  363. max_doc_length: 2 * 1024 * 1024 # 2mb
  364. # Internal configs
  365. # ----------------
  366. path:
  367. # If we ever need to write something to disk (e.g. incoming requests
  368. # that need processing but may be too big for memory, then write
  369. # them to disk here).
  370. dumpFolder: "/data/dumpFolder"
  371. uploadFolder: "/data/uploads"
  372. # Automatic Snapshots
  373. # -------------------
  374. automaticSnapshots:
  375. # How long should we wait after the user last edited to
  376. # take a snapshot?
  377. waitTimeAfterLastEdit: 5 * minutes
  378. # Even if edits are still taking place, this is maximum
  379. # time to wait before taking another snapshot.
  380. maxTimeBetweenSnapshots: 30 * minutes
  381. # Smoke test
  382. # ----------
  383. # Provide log in credentials and a project to be able to run
  384. # some basic smoke tests to check the core functionality.
  385. #
  386. smokeTest:
  387. user: process.env['SMOKE_TEST_USER']
  388. userId: process.env['SMOKE_TEST_USER_ID']
  389. password: process.env['SMOKE_TEST_PASSWORD']
  390. projectId: process.env['SMOKE_TEST_PROJECT_ID']
  391. rateLimitSubject: process.env['SMOKE_TEST_RATE_LIMIT_SUBJECT'] or "127.0.0.1"
  392. appName: process.env['APP_NAME'] or "ShareLaTeX (Community Edition)"
  393. adminEmail: process.env['ADMIN_EMAIL'] or "placeholder@example.com"
  394. statusPageUrl: process.env['OVERLEAF_STATUS_URL'] or "status.overleaf.com"
  395. brandPrefix: process.env['BRAND_PREFIX'] or "sl-" # Set to 'ol-' for overleaf styles
  396. nav:
  397. title: "ShareLaTeX Community Edition"
  398. left_footer: [{
  399. text: "Powered by <a href='https://www.sharelatex.com'>ShareLaTeX</a> © 2016"
  400. }]
  401. right_footer: [{
  402. text: "<i class='fa fa-github-square'></i> Fork on Github!"
  403. url: "https://github.com/sharelatex/sharelatex"
  404. }]
  405. showSubscriptionLink: false
  406. header_extras: []
  407. # Example:
  408. # header_extras: [{text: "Some Page", url: "http://example.com/some/page", class: "subdued"}]
  409. recaptcha:
  410. disabled:
  411. invite: true
  412. register: true
  413. customisation: {}
  414. # templates: [{
  415. # name : "cv_or_resume",
  416. # url : "/templates/cv"
  417. # }, {
  418. # name : "cover_letter",
  419. # url : "/templates/cover-letters"
  420. # }, {
  421. # name : "journal_article",
  422. # url : "/templates/journals"
  423. # }, {
  424. # name : "presentation",
  425. # url : "/templates/presentations"
  426. # }, {
  427. # name : "thesis",
  428. # url : "/templates/thesis"
  429. # }, {
  430. # name : "bibliographies",
  431. # url : "/templates/bibliographies"
  432. # }, {
  433. # name : "view_all",
  434. # url : "/templates"
  435. # }]
  436. redirects:
  437. "/templates/index": "/templates/"
  438. reloadModuleViewsOnEachRequest: process.env['NODE_ENV'] == 'development'
  439. domainLicences: [
  440. ]
  441. sixpack:
  442. domain:""
  443. # ShareLaTeX Server Pro options (https://www.sharelatex.com/university/onsite.html)
  444. # ----------
  445. # LDAP
  446. # ----------
  447. # Settings below use a working LDAP test server kindly provided by forumsys.com
  448. # When testing with forumsys.com use username = einstein and password = password
  449. # ldap :
  450. # host: 'ldap://ldap.forumsys.com'
  451. # dn: 'uid=:userKey,dc=example,dc=com'
  452. # baseSearch: 'dc=example,dc=com'
  453. # filter: "(uid=:userKey)"
  454. # failMessage: 'LDAP User Fail'
  455. # fieldName: 'LDAP User'
  456. # placeholder: 'email@example.com'
  457. # emailAtt: 'mail'
  458. # anonymous: false
  459. # adminDN: 'cn=read-only-admin,dc=example,dc=com'
  460. # adminPW: 'password'
  461. # starttls: true
  462. # tlsOptions:
  463. # rejectUnauthorized: false
  464. # ca: ['/etc/ldap/ca_certs.pem']
  465. #templateLinks: [{
  466. # name : "CV projects",
  467. # url : "/templates/cv"
  468. #},{
  469. # name : "all projects",
  470. # url: "/templates/all"
  471. #}]
  472. rateLimit:
  473. autoCompile:
  474. everyone: process.env['RATE_LIMIT_AUTO_COMPILE_EVERYONE'] or 100
  475. standard: process.env['RATE_LIMIT_AUTO_COMPILE_STANDARD'] or 25
  476. # currentImage: "texlive-full:2017.1"
  477. # imageRoot: "<DOCKER REPOSITORY ROOT>" # without any trailing slash
  478. compileBodySizeLimitMb: process.env['COMPILE_BODY_SIZE_LIMIT_MB'] or 5
  479. validRootDocExtensions: ['tex', 'Rtex', 'ltx']
  480. # allowedImageNames: [
  481. # {imageName: 'texlive-full:2017.1', imageDesc: 'TeXLive 2017'}
  482. # {imageName: 'wl_texlive:2018.1', imageDesc: 'Legacy OL TeXLive 2015'}
  483. # {imageName: 'texlive-full:2016.1', imageDesc: 'Legacy SL TeXLive 2016'}
  484. # {imageName: 'texlive-full:2015.1', imageDesc: 'Legacy SL TeXLive 2015'}
  485. # {imageName: 'texlive-full:2014.2', imageDesc: 'Legacy SL TeXLive 2014.2'}
  486. # ]
  487. # module options
  488. # ----------
  489. modules:
  490. sanitize:
  491. options:
  492. allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'col', 'caption', 'tbody', 'tr', 'th', 'td', 'tfoot', 'pre', 'iframe', 'img', 'figure', 'figcaption', 'span', 'source', 'video', 'del' ]
  493. allowedAttributes:
  494. 'a': [ 'href', 'name', 'target', 'class', 'event-tracking', 'event-tracking-ga', 'event-tracking-label', 'event-tracking-trigger' ]
  495. 'div': [ 'class', 'id', 'style' ]
  496. 'h1': [ 'class', 'id' ]
  497. 'h2': [ 'class', 'id' ]
  498. 'h3': [ 'class', 'id' ]
  499. 'h4': [ 'class', 'id' ]
  500. 'h5': [ 'class', 'id' ]
  501. 'h6': [ 'class', 'id' ]
  502. 'col': [ 'width' ]
  503. 'figure': [ 'class', 'id', 'style']
  504. 'figcaption': [ 'class', 'id', 'style']
  505. 'i': [ 'aria-hidden', 'aria-label', 'class', 'id' ]
  506. 'iframe': [ 'allowfullscreen', 'frameborder', 'height', 'src', 'style', 'width' ]
  507. 'img': [ 'alt', 'class', 'src', 'style' ]
  508. 'source': [ 'src', 'type' ]
  509. 'span': [ 'class', 'id', 'style' ]
  510. 'table': [ 'border', 'class', 'id', 'style' ]
  511. 'td': [ 'colspan', 'rowspan', 'headers' ]
  512. 'th': [ 'abbr', 'headers', 'colspan', 'rowspan', 'scope', 'sorted', 'style' ]
  513. 'tr': [ 'class' ]
  514. 'video': [ 'alt', 'class', 'controls', 'height', 'width' ]