settings.defaults.coffee 19 KB

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