settings.defaults.coffee 19 KB

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