bedrock_sass 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (466) hide show
  1. checksums.yaml +4 -4
  2. data/assets/_vendor/ace/ace.js +255 -589
  3. data/assets/_vendor/ace/ext-beautify.js +1 -2
  4. data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +2 -2
  5. data/assets/_vendor/ace/ext-emmet.js +4 -4
  6. data/assets/_vendor/ace/ext-error_marker.js +1 -2
  7. data/assets/_vendor/ace/ext-keybinding_menu.js +1 -2
  8. data/assets/_vendor/ace/ext-language_tools.js +5 -9
  9. data/assets/_vendor/ace/ext-linking.js +1 -2
  10. data/assets/_vendor/ace/ext-modelist.js +9 -5
  11. data/assets/_vendor/ace/ext-options.js +10 -7
  12. data/assets/_vendor/ace/ext-rtl.js +1 -2
  13. data/assets/_vendor/ace/ext-searchbox.js +8 -4
  14. data/assets/_vendor/ace/ext-settings_menu.js +10 -7
  15. data/assets/_vendor/ace/ext-spellcheck.js +1 -2
  16. data/assets/_vendor/ace/ext-split.js +1 -2
  17. data/assets/_vendor/ace/ext-static_highlight.js +11 -8
  18. data/assets/_vendor/ace/ext-statusbar.js +1 -2
  19. data/assets/_vendor/ace/ext-textarea.js +1 -5
  20. data/assets/_vendor/ace/ext-themelist.js +2 -4
  21. data/assets/_vendor/ace/ext-whitespace.js +1 -2
  22. data/assets/_vendor/ace/keybinding-emacs.js +6 -2
  23. data/assets/_vendor/ace/keybinding-vim.js +13 -25
  24. data/assets/_vendor/ace/mode-abap.js +2 -3
  25. data/assets/_vendor/ace/mode-abc.js +3 -2
  26. data/assets/_vendor/ace/mode-actionscript.js +2 -2
  27. data/assets/_vendor/ace/mode-ada.js +1 -2
  28. data/assets/_vendor/ace/mode-apache_conf.js +2 -2
  29. data/assets/_vendor/ace/mode-apex.js +457 -0
  30. data/assets/_vendor/ace/mode-applescript.js +1 -2
  31. data/assets/_vendor/ace/mode-asciidoc.js +2 -2
  32. data/assets/_vendor/ace/mode-asl.js +1 -2
  33. data/assets/_vendor/ace/mode-assembly_x86.js +2 -2
  34. data/assets/_vendor/ace/mode-autohotkey.js +1 -2
  35. data/assets/_vendor/ace/mode-batchfile.js +2 -2
  36. data/assets/_vendor/ace/mode-bro.js +2 -2
  37. data/assets/_vendor/ace/mode-c9search.js +1 -2
  38. data/assets/_vendor/ace/mode-c_cpp.js +2 -2
  39. data/assets/_vendor/ace/mode-cirru.js +1 -2
  40. data/assets/_vendor/ace/mode-clojure.js +2 -2
  41. data/assets/_vendor/ace/mode-cobol.js +1 -2
  42. data/assets/_vendor/ace/mode-coffee.js +1 -2
  43. data/assets/_vendor/ace/mode-coldfusion.js +3 -2
  44. data/assets/_vendor/ace/mode-csharp.js +3 -3
  45. data/assets/_vendor/ace/mode-csound_document.js +319 -80
  46. data/assets/_vendor/ace/mode-csound_orchestra.js +323 -86
  47. data/assets/_vendor/ace/mode-csound_score.js +1 -2
  48. data/assets/_vendor/ace/mode-csp.js +1 -2
  49. data/assets/_vendor/ace/mode-css.js +2 -2
  50. data/assets/_vendor/ace/mode-curly.js +3 -2
  51. data/assets/_vendor/ace/mode-d.js +2 -2
  52. data/assets/_vendor/ace/mode-dart.js +24 -14
  53. data/assets/_vendor/ace/mode-diff.js +4 -4
  54. data/assets/_vendor/ace/mode-django.js +3 -2
  55. data/assets/_vendor/ace/mode-dockerfile.js +3 -2
  56. data/assets/_vendor/ace/mode-dot.js +1 -2
  57. data/assets/_vendor/ace/mode-drools.js +3 -2
  58. data/assets/_vendor/ace/mode-edifact.js +2 -2
  59. data/assets/_vendor/ace/mode-eiffel.js +1 -2
  60. data/assets/_vendor/ace/mode-ejs.js +5 -2
  61. data/assets/_vendor/ace/mode-elixir.js +2 -2
  62. data/assets/_vendor/ace/mode-elm.js +1 -2
  63. data/assets/_vendor/ace/mode-erlang.js +2 -2
  64. data/assets/_vendor/ace/mode-forth.js +2 -2
  65. data/assets/_vendor/ace/mode-fortran.js +1 -2
  66. data/assets/_vendor/ace/mode-fsharp.js +1 -2
  67. data/assets/_vendor/ace/mode-fsl.js +258 -0
  68. data/assets/_vendor/ace/mode-ftl.js +3 -2
  69. data/assets/_vendor/ace/mode-gcode.js +1 -2
  70. data/assets/_vendor/ace/mode-gherkin.js +2 -4
  71. data/assets/_vendor/ace/mode-gitignore.js +1 -2
  72. data/assets/_vendor/ace/mode-glsl.js +2 -2
  73. data/assets/_vendor/ace/mode-gobstones.js +3 -2
  74. data/assets/_vendor/ace/mode-golang.js +1 -2
  75. data/assets/_vendor/ace/mode-graphqlschema.js +1 -2
  76. data/assets/_vendor/ace/mode-groovy.js +4 -2
  77. data/assets/_vendor/ace/mode-haml.js +5 -2
  78. data/assets/_vendor/ace/mode-handlebars.js +3 -2
  79. data/assets/_vendor/ace/mode-haskell.js +2 -2
  80. data/assets/_vendor/ace/mode-haskell_cabal.js +1 -2
  81. data/assets/_vendor/ace/mode-haxe.js +2 -2
  82. data/assets/_vendor/ace/mode-hjson.js +2 -2
  83. data/assets/_vendor/ace/mode-html.js +3 -2
  84. data/assets/_vendor/ace/mode-html_elixir.js +4 -2
  85. data/assets/_vendor/ace/mode-html_ruby.js +5 -2
  86. data/assets/_vendor/ace/mode-ini.js +1 -2
  87. data/assets/_vendor/ace/mode-io.js +2 -2
  88. data/assets/_vendor/ace/mode-jack.js +1 -2
  89. data/assets/_vendor/ace/mode-jade.js +14 -115
  90. data/assets/_vendor/ace/mode-java.js +64 -3
  91. data/assets/_vendor/ace/mode-javascript.js +2 -2
  92. data/assets/_vendor/ace/mode-json.js +1 -2
  93. data/assets/_vendor/ace/mode-jsoniq.js +8 -2317
  94. data/assets/_vendor/ace/mode-jsp.js +4 -2
  95. data/assets/_vendor/ace/mode-jssm.js +2 -2
  96. data/assets/_vendor/ace/mode-jsx.js +1 -2
  97. data/assets/_vendor/ace/mode-julia.js +2 -2
  98. data/assets/_vendor/ace/mode-kotlin.js +2 -2
  99. data/assets/_vendor/ace/mode-latex.js +1 -2
  100. data/assets/_vendor/ace/mode-less.js +4 -2
  101. data/assets/_vendor/ace/mode-liquid.js +2026 -477
  102. data/assets/_vendor/ace/mode-lisp.js +2 -2
  103. data/assets/_vendor/ace/mode-livescript.js +1 -2
  104. data/assets/_vendor/ace/mode-logiql.js +2 -2
  105. data/assets/_vendor/ace/mode-logtalk.js +352 -0
  106. data/assets/_vendor/ace/mode-lsl.js +1 -2
  107. data/assets/_vendor/ace/mode-lua.js +1 -2
  108. data/assets/_vendor/ace/mode-luapage.js +3 -2
  109. data/assets/_vendor/ace/mode-lucene.js +2 -3
  110. data/assets/_vendor/ace/mode-makefile.js +3 -2
  111. data/assets/_vendor/ace/mode-markdown.js +5 -2
  112. data/assets/_vendor/ace/mode-mask.js +3 -2
  113. data/assets/_vendor/ace/mode-matlab.js +1 -2
  114. data/assets/_vendor/ace/mode-maze.js +2 -2
  115. data/assets/_vendor/ace/mode-mel.js +2 -2
  116. data/assets/_vendor/ace/mode-mixal.js +1 -2
  117. data/assets/_vendor/ace/mode-mushcode.js +2 -2
  118. data/assets/_vendor/ace/mode-mysql.js +3 -4
  119. data/assets/_vendor/ace/mode-nix.js +2 -2
  120. data/assets/_vendor/ace/mode-nsis.js +2 -2
  121. data/assets/_vendor/ace/mode-objectivec.js +3 -2
  122. data/assets/_vendor/ace/mode-ocaml.js +1 -2
  123. data/assets/_vendor/ace/mode-pascal.js +2 -2
  124. data/assets/_vendor/ace/mode-perl.js +2 -2
  125. data/assets/_vendor/ace/mode-perl6.js +593 -0
  126. data/assets/_vendor/ace/mode-pgsql.js +304 -69
  127. data/assets/_vendor/ace/mode-php.js +844 -1029
  128. data/assets/_vendor/ace/mode-php_laravel_blade.js +844 -1029
  129. data/assets/_vendor/ace/mode-pig.js +2 -2
  130. data/assets/_vendor/ace/mode-plain_text.js +1 -2
  131. data/assets/_vendor/ace/mode-powershell.js +2 -2
  132. data/assets/_vendor/ace/mode-praat.js +2 -2
  133. data/assets/_vendor/ace/mode-prolog.js +2 -2
  134. data/assets/_vendor/ace/mode-properties.js +1 -2
  135. data/assets/_vendor/ace/mode-protobuf.js +2 -2
  136. data/assets/_vendor/ace/mode-puppet.js +1 -2
  137. data/assets/_vendor/ace/mode-python.js +297 -63
  138. data/assets/_vendor/ace/mode-r.js +3 -2
  139. data/assets/_vendor/ace/mode-razor.js +9 -3
  140. data/assets/_vendor/ace/mode-rdoc.js +2 -2
  141. data/assets/_vendor/ace/mode-red.js +2 -2
  142. data/assets/_vendor/ace/mode-redshift.js +1 -2
  143. data/assets/_vendor/ace/mode-rhtml.js +5 -2
  144. data/assets/_vendor/ace/mode-rst.js +1 -2
  145. data/assets/_vendor/ace/mode-ruby.js +3 -2
  146. data/assets/_vendor/ace/mode-rust.js +2 -2
  147. data/assets/_vendor/ace/mode-sass.js +205 -117
  148. data/assets/_vendor/ace/mode-scad.js +2 -2
  149. data/assets/_vendor/ace/mode-scala.js +3 -2
  150. data/assets/_vendor/ace/mode-scheme.js +2 -2
  151. data/assets/_vendor/ace/mode-scss.js +204 -115
  152. data/assets/_vendor/ace/mode-sh.js +3 -2
  153. data/assets/_vendor/ace/mode-sjs.js +2 -2
  154. data/assets/_vendor/ace/mode-slim.js +18 -117
  155. data/assets/_vendor/ace/mode-smarty.js +3 -2
  156. data/assets/_vendor/ace/mode-snippets.js +1 -2
  157. data/assets/_vendor/ace/mode-soy_template.js +4 -2
  158. data/assets/_vendor/ace/mode-space.js +1 -2
  159. data/assets/_vendor/ace/mode-sparql.js +2 -2
  160. data/assets/_vendor/ace/mode-sql.js +2 -3
  161. data/assets/_vendor/ace/mode-sqlserver.js +2 -2
  162. data/assets/_vendor/ace/mode-stylus.js +3 -2
  163. data/assets/_vendor/ace/mode-svg.js +2 -2
  164. data/assets/_vendor/ace/mode-swift.js +1 -2
  165. data/assets/_vendor/ace/mode-tcl.js +2 -2
  166. data/assets/_vendor/ace/mode-terraform.js +1 -2
  167. data/assets/_vendor/ace/mode-tex.js +2 -2
  168. data/assets/_vendor/ace/mode-text.js +1 -2
  169. data/assets/_vendor/ace/mode-textile.js +1 -2
  170. data/assets/_vendor/ace/mode-toml.js +1 -2
  171. data/assets/_vendor/ace/mode-tsx.js +2 -2
  172. data/assets/_vendor/ace/mode-turtle.js +2 -2
  173. data/assets/_vendor/ace/mode-twig.js +3 -2
  174. data/assets/_vendor/ace/mode-typescript.js +2 -2
  175. data/assets/_vendor/ace/mode-vala.js +2 -2
  176. data/assets/_vendor/ace/mode-vbscript.js +1 -2
  177. data/assets/_vendor/ace/mode-velocity.js +4 -2
  178. data/assets/_vendor/ace/mode-verilog.js +1 -2
  179. data/assets/_vendor/ace/mode-vhdl.js +1 -2
  180. data/assets/_vendor/ace/mode-visualforce.js +2641 -0
  181. data/assets/_vendor/ace/mode-wollok.js +3 -2
  182. data/assets/_vendor/ace/mode-xml.js +1 -2
  183. data/assets/_vendor/ace/mode-xquery.js +8 -2287
  184. data/assets/_vendor/ace/mode-yaml.js +1 -2
  185. data/assets/_vendor/ace/snippets/abap.js +2 -3
  186. data/assets/_vendor/ace/snippets/abc.js +1 -2
  187. data/assets/_vendor/ace/snippets/actionscript.js +1 -2
  188. data/assets/_vendor/ace/snippets/ada.js +2 -3
  189. data/assets/_vendor/ace/snippets/apache_conf.js +2 -3
  190. data/assets/_vendor/ace/snippets/apex.js +14 -0
  191. data/assets/_vendor/ace/snippets/applescript.js +2 -3
  192. data/assets/_vendor/ace/snippets/asciidoc.js +2 -3
  193. data/assets/_vendor/ace/snippets/asl.js +2 -3
  194. data/assets/_vendor/ace/snippets/assembly_x86.js +2 -3
  195. data/assets/_vendor/ace/snippets/autohotkey.js +2 -3
  196. data/assets/_vendor/ace/snippets/batchfile.js +2 -3
  197. data/assets/_vendor/ace/snippets/bro.js +1 -2
  198. data/assets/_vendor/ace/snippets/c9search.js +2 -3
  199. data/assets/_vendor/ace/snippets/c_cpp.js +1 -2
  200. data/assets/_vendor/ace/snippets/cirru.js +2 -3
  201. data/assets/_vendor/ace/snippets/clojure.js +1 -2
  202. data/assets/_vendor/ace/snippets/cobol.js +2 -3
  203. data/assets/_vendor/ace/snippets/coffee.js +1 -2
  204. data/assets/_vendor/ace/snippets/coldfusion.js +2 -3
  205. data/assets/_vendor/ace/snippets/csharp.js +2 -3
  206. data/assets/_vendor/ace/snippets/csound_document.js +1 -2
  207. data/assets/_vendor/ace/snippets/csound_orchestra.js +1 -2
  208. data/assets/_vendor/ace/snippets/csound_score.js +2 -3
  209. data/assets/_vendor/ace/snippets/csp.js +1 -2
  210. data/assets/_vendor/ace/snippets/css.js +1 -2
  211. data/assets/_vendor/ace/snippets/curly.js +2 -3
  212. data/assets/_vendor/ace/snippets/d.js +2 -3
  213. data/assets/_vendor/ace/snippets/dart.js +1 -2
  214. data/assets/_vendor/ace/snippets/diff.js +1 -2
  215. data/assets/_vendor/ace/snippets/django.js +1 -2
  216. data/assets/_vendor/ace/snippets/dockerfile.js +2 -3
  217. data/assets/_vendor/ace/snippets/dot.js +2 -3
  218. data/assets/_vendor/ace/snippets/drools.js +1 -2
  219. data/assets/_vendor/ace/snippets/edifact.js +1 -2
  220. data/assets/_vendor/ace/snippets/eiffel.js +2 -3
  221. data/assets/_vendor/ace/snippets/ejs.js +2 -3
  222. data/assets/_vendor/ace/snippets/elixir.js +1 -2
  223. data/assets/_vendor/ace/snippets/elm.js +2 -3
  224. data/assets/_vendor/ace/snippets/erlang.js +1 -2
  225. data/assets/_vendor/ace/snippets/forth.js +2 -3
  226. data/assets/_vendor/ace/snippets/fortran.js +2 -3
  227. data/assets/_vendor/ace/snippets/fsharp.js +2 -3
  228. data/assets/_vendor/ace/snippets/fsl.js +14 -0
  229. data/assets/_vendor/ace/snippets/ftl.js +2 -3
  230. data/assets/_vendor/ace/snippets/gcode.js +2 -3
  231. data/assets/_vendor/ace/snippets/gherkin.js +2 -3
  232. data/assets/_vendor/ace/snippets/gitignore.js +2 -3
  233. data/assets/_vendor/ace/snippets/glsl.js +2 -3
  234. data/assets/_vendor/ace/snippets/gobstones.js +1 -2
  235. data/assets/_vendor/ace/snippets/golang.js +2 -3
  236. data/assets/_vendor/ace/snippets/graphqlschema.js +1 -2
  237. data/assets/_vendor/ace/snippets/groovy.js +2 -3
  238. data/assets/_vendor/ace/snippets/haml.js +1 -2
  239. data/assets/_vendor/ace/snippets/handlebars.js +2 -3
  240. data/assets/_vendor/ace/snippets/haskell.js +1 -2
  241. data/assets/_vendor/ace/snippets/haskell_cabal.js +2 -3
  242. data/assets/_vendor/ace/snippets/haxe.js +2 -3
  243. data/assets/_vendor/ace/snippets/hjson.js +1 -2
  244. data/assets/_vendor/ace/snippets/html.js +1 -2
  245. data/assets/_vendor/ace/snippets/html_elixir.js +2 -3
  246. data/assets/_vendor/ace/snippets/html_ruby.js +2 -3
  247. data/assets/_vendor/ace/snippets/ini.js +2 -3
  248. data/assets/_vendor/ace/snippets/io.js +1 -2
  249. data/assets/_vendor/ace/snippets/jack.js +2 -3
  250. data/assets/_vendor/ace/snippets/jade.js +2 -3
  251. data/assets/_vendor/ace/snippets/java.js +1 -2
  252. data/assets/_vendor/ace/snippets/javascript.js +1 -2
  253. data/assets/_vendor/ace/snippets/json.js +2 -3
  254. data/assets/_vendor/ace/snippets/jsoniq.js +1 -2
  255. data/assets/_vendor/ace/snippets/jsp.js +1 -2
  256. data/assets/_vendor/ace/snippets/jssm.js +1 -2
  257. data/assets/_vendor/ace/snippets/jsx.js +2 -3
  258. data/assets/_vendor/ace/snippets/julia.js +2 -3
  259. data/assets/_vendor/ace/snippets/kotlin.js +1 -2
  260. data/assets/_vendor/ace/snippets/latex.js +2 -3
  261. data/assets/_vendor/ace/snippets/less.js +2 -3
  262. data/assets/_vendor/ace/snippets/liquid.js +883 -3
  263. data/assets/_vendor/ace/snippets/lisp.js +2 -3
  264. data/assets/_vendor/ace/snippets/livescript.js +2 -3
  265. data/assets/_vendor/ace/snippets/logiql.js +2 -3
  266. data/assets/_vendor/ace/snippets/logtalk.js +14 -0
  267. data/assets/_vendor/ace/snippets/lsl.js +1 -2
  268. data/assets/_vendor/ace/snippets/lua.js +1 -2
  269. data/assets/_vendor/ace/snippets/luapage.js +2 -3
  270. data/assets/_vendor/ace/snippets/lucene.js +2 -3
  271. data/assets/_vendor/ace/snippets/makefile.js +1 -2
  272. data/assets/_vendor/ace/snippets/markdown.js +1 -2
  273. data/assets/_vendor/ace/snippets/mask.js +2 -3
  274. data/assets/_vendor/ace/snippets/matlab.js +2 -3
  275. data/assets/_vendor/ace/snippets/maze.js +1 -2
  276. data/assets/_vendor/ace/snippets/mel.js +2 -3
  277. data/assets/_vendor/ace/snippets/mixal.js +2 -3
  278. data/assets/_vendor/ace/snippets/mushcode.js +2 -3
  279. data/assets/_vendor/ace/snippets/mysql.js +2 -3
  280. data/assets/_vendor/ace/snippets/nix.js +2 -3
  281. data/assets/_vendor/ace/snippets/nsis.js +1 -2
  282. data/assets/_vendor/ace/snippets/objectivec.js +2 -3
  283. data/assets/_vendor/ace/snippets/ocaml.js +2 -3
  284. data/assets/_vendor/ace/snippets/pascal.js +2 -3
  285. data/assets/_vendor/ace/snippets/perl.js +1 -2
  286. data/assets/_vendor/ace/snippets/perl6.js +14 -0
  287. data/assets/_vendor/ace/snippets/pgsql.js +2 -3
  288. data/assets/_vendor/ace/snippets/php.js +1 -2
  289. data/assets/_vendor/ace/snippets/php_laravel_blade.js +2 -3
  290. data/assets/_vendor/ace/snippets/pig.js +2 -3
  291. data/assets/_vendor/ace/snippets/plain_text.js +2 -3
  292. data/assets/_vendor/ace/snippets/powershell.js +2 -3
  293. data/assets/_vendor/ace/snippets/praat.js +2 -3
  294. data/assets/_vendor/ace/snippets/prolog.js +2 -3
  295. data/assets/_vendor/ace/snippets/properties.js +2 -3
  296. data/assets/_vendor/ace/snippets/protobuf.js +1 -2
  297. data/assets/_vendor/ace/snippets/puppet.js +2 -3
  298. data/assets/_vendor/ace/snippets/python.js +1 -2
  299. data/assets/_vendor/ace/snippets/r.js +1 -2
  300. data/assets/_vendor/ace/snippets/razor.js +1 -2
  301. data/assets/_vendor/ace/snippets/rdoc.js +2 -3
  302. data/assets/_vendor/ace/snippets/red.js +1 -2
  303. data/assets/_vendor/ace/snippets/redshift.js +2 -3
  304. data/assets/_vendor/ace/snippets/rhtml.js +2 -3
  305. data/assets/_vendor/ace/snippets/rst.js +1 -2
  306. data/assets/_vendor/ace/snippets/ruby.js +1 -2
  307. data/assets/_vendor/ace/snippets/rust.js +2 -3
  308. data/assets/_vendor/ace/snippets/sass.js +2 -3
  309. data/assets/_vendor/ace/snippets/scad.js +2 -3
  310. data/assets/_vendor/ace/snippets/scala.js +2 -3
  311. data/assets/_vendor/ace/snippets/scheme.js +2 -3
  312. data/assets/_vendor/ace/snippets/scss.js +2 -3
  313. data/assets/_vendor/ace/snippets/sh.js +1 -2
  314. data/assets/_vendor/ace/snippets/sjs.js +2 -3
  315. data/assets/_vendor/ace/snippets/slim.js +2 -3
  316. data/assets/_vendor/ace/snippets/smarty.js +2 -3
  317. data/assets/_vendor/ace/snippets/snippets.js +1 -2
  318. data/assets/_vendor/ace/snippets/soy_template.js +2 -3
  319. data/assets/_vendor/ace/snippets/space.js +2 -3
  320. data/assets/_vendor/ace/snippets/sparql.js +1 -2
  321. data/assets/_vendor/ace/snippets/sql.js +1 -2
  322. data/assets/_vendor/ace/snippets/sqlserver.js +1 -2
  323. data/assets/_vendor/ace/snippets/stylus.js +2 -3
  324. data/assets/_vendor/ace/snippets/svg.js +2 -3
  325. data/assets/_vendor/ace/snippets/swift.js +2 -3
  326. data/assets/_vendor/ace/snippets/tcl.js +1 -2
  327. data/assets/_vendor/ace/snippets/terraform.js +2 -3
  328. data/assets/_vendor/ace/snippets/tex.js +1 -2
  329. data/assets/_vendor/ace/snippets/text.js +2 -3
  330. data/assets/_vendor/ace/snippets/textile.js +1 -2
  331. data/assets/_vendor/ace/snippets/toml.js +2 -3
  332. data/assets/_vendor/ace/snippets/tsx.js +2 -3
  333. data/assets/_vendor/ace/snippets/turtle.js +1 -2
  334. data/assets/_vendor/ace/snippets/twig.js +2 -3
  335. data/assets/_vendor/ace/snippets/typescript.js +2 -3
  336. data/assets/_vendor/ace/snippets/vala.js +1 -2
  337. data/assets/_vendor/ace/snippets/vbscript.js +2 -3
  338. data/assets/_vendor/ace/snippets/velocity.js +1 -2
  339. data/assets/_vendor/ace/snippets/verilog.js +2 -3
  340. data/assets/_vendor/ace/snippets/vhdl.js +2 -3
  341. data/assets/_vendor/ace/snippets/visualforce.js +14 -0
  342. data/assets/_vendor/ace/snippets/wollok.js +1 -2
  343. data/assets/_vendor/ace/snippets/xml.js +2 -3
  344. data/assets/_vendor/ace/snippets/xquery.js +1 -2
  345. data/assets/_vendor/ace/snippets/yaml.js +2 -3
  346. data/assets/_vendor/ace/theme-ambiance.js +1 -2
  347. data/assets/_vendor/ace/theme-chaos.js +1 -2
  348. data/assets/_vendor/ace/theme-chrome.js +1 -2
  349. data/assets/_vendor/ace/theme-clouds.js +1 -2
  350. data/assets/_vendor/ace/theme-clouds_midnight.js +1 -2
  351. data/assets/_vendor/ace/theme-cobalt.js +1 -2
  352. data/assets/_vendor/ace/theme-crimson_editor.js +1 -2
  353. data/assets/_vendor/ace/theme-dawn.js +1 -2
  354. data/assets/_vendor/ace/theme-dracula.js +1 -2
  355. data/assets/_vendor/ace/theme-dreamweaver.js +1 -2
  356. data/assets/_vendor/ace/theme-eclipse.js +1 -2
  357. data/assets/_vendor/ace/theme-github.js +3 -3
  358. data/assets/_vendor/ace/theme-gob.js +1 -2
  359. data/assets/_vendor/ace/theme-gruvbox.js +1 -2
  360. data/assets/_vendor/ace/theme-idle_fingers.js +1 -2
  361. data/assets/_vendor/ace/theme-iplastic.js +1 -2
  362. data/assets/_vendor/ace/theme-katzenmilch.js +1 -2
  363. data/assets/_vendor/ace/theme-kr_theme.js +1 -2
  364. data/assets/_vendor/ace/theme-kuroir.js +1 -2
  365. data/assets/_vendor/ace/theme-merbivore.js +1 -2
  366. data/assets/_vendor/ace/theme-merbivore_soft.js +1 -2
  367. data/assets/_vendor/ace/theme-mono_industrial.js +1 -2
  368. data/assets/_vendor/ace/theme-monokai.js +1 -2
  369. data/assets/_vendor/ace/theme-pastel_on_dark.js +1 -2
  370. data/assets/_vendor/ace/theme-solarized_dark.js +1 -2
  371. data/assets/_vendor/ace/theme-solarized_light.js +1 -2
  372. data/assets/_vendor/ace/theme-sqlserver.js +1 -2
  373. data/assets/_vendor/ace/theme-terminal.js +1 -2
  374. data/assets/_vendor/ace/theme-textmate.js +1 -2
  375. data/assets/_vendor/ace/theme-tomorrow.js +1 -2
  376. data/assets/_vendor/ace/theme-tomorrow_night.js +1 -2
  377. data/assets/_vendor/ace/theme-tomorrow_night_blue.js +1 -2
  378. data/assets/_vendor/ace/theme-tomorrow_night_bright.js +1 -2
  379. data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +1 -2
  380. data/assets/_vendor/ace/theme-twilight.js +1 -2
  381. data/assets/_vendor/ace/theme-vibrant_ink.js +1 -2
  382. data/assets/_vendor/ace/theme-xcode.js +1 -2
  383. data/assets/_vendor/ace/worker-coffee.js +11 -20
  384. data/assets/_vendor/ace/worker-css.js +23 -20
  385. data/assets/_vendor/ace/worker-html.js +25 -31
  386. data/assets/_vendor/ace/worker-javascript.js +76 -36
  387. data/assets/_vendor/ace/worker-json.js +25 -20
  388. data/assets/_vendor/ace/worker-lua.js +68 -69
  389. data/assets/_vendor/ace/worker-php.js +12 -20
  390. data/assets/_vendor/ace/worker-xml.js +12 -22
  391. data/assets/_vendor/ace/worker-xquery.js +44 -12378
  392. data/assets/_vendor/tinymce/plugins/advlist/plugin.js +137 -137
  393. data/assets/_vendor/tinymce/plugins/anchor/plugin.js +102 -102
  394. data/assets/_vendor/tinymce/plugins/autolink/plugin.js +154 -154
  395. data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -145
  396. data/assets/_vendor/tinymce/plugins/autosave/plugin.js +207 -217
  397. data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
  398. data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +89 -89
  399. data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1246 -1246
  400. data/assets/_vendor/tinymce/plugins/code/plugin.js +80 -80
  401. data/assets/_vendor/tinymce/plugins/codesample/plugin.js +852 -852
  402. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +109 -109
  403. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +144 -144
  404. data/assets/_vendor/tinymce/plugins/directionality/plugin.js +53 -53
  405. data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +74 -74
  406. data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +464 -464
  407. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +152 -152
  408. data/assets/_vendor/tinymce/plugins/help/plugin.js +639 -678
  409. data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
  410. data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -29
  411. data/assets/_vendor/tinymce/plugins/image/plugin.js +1119 -1126
  412. data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
  413. data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3414 -3445
  414. data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -1
  415. data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -230
  416. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +152 -152
  417. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +193 -193
  418. data/assets/_vendor/tinymce/plugins/link/plugin.js +646 -646
  419. data/assets/_vendor/tinymce/plugins/lists/plugin.js +2103 -1037
  420. data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
  421. data/assets/_vendor/tinymce/plugins/media/plugin.js +1050 -1050
  422. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +69 -69
  423. data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +98 -98
  424. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +91 -91
  425. data/assets/_vendor/tinymce/plugins/paste/plugin.js +1725 -1364
  426. data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
  427. data/assets/_vendor/tinymce/plugins/preview/plugin.js +107 -107
  428. data/assets/_vendor/tinymce/plugins/print/plugin.js +28 -28
  429. data/assets/_vendor/tinymce/plugins/save/plugin.js +101 -101
  430. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +535 -537
  431. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  432. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +683 -681
  433. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
  434. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +95 -95
  435. data/assets/_vendor/tinymce/plugins/table/plugin.js +8927 -9805
  436. data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -1
  437. data/assets/_vendor/tinymce/plugins/template/plugin.js +305 -311
  438. data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
  439. data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +317 -317
  440. data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +575 -329
  441. data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
  442. data/assets/_vendor/tinymce/plugins/toc/plugin.js +201 -201
  443. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +113 -113
  444. data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +419 -471
  445. data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
  446. data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +371 -308
  447. data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
  448. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
  449. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -0
  450. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
  451. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
  452. data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
  453. data/assets/_vendor/tinymce/themes/inlite/theme.js +9272 -9686
  454. data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -1
  455. data/assets/_vendor/tinymce/themes/mobile/theme.js +12130 -13042
  456. data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -1
  457. data/assets/_vendor/tinymce/themes/modern/theme.js +9090 -9504
  458. data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -1
  459. data/assets/_vendor/tinymce/tinymce.js +24914 -25218
  460. data/assets/bedrock/js/bedrock.js +1 -1
  461. data/assets/bedrock/scss/components/no-content.scss +5 -0
  462. data/assets/bedrock/scss/components/select-box.scss +1 -1
  463. data/lib/bedrock_sass.rb +51 -16
  464. data/lib/bedrock_sass/engine.rb +3 -2
  465. data/lib/bedrock_sass/version.rb +1 -1
  466. metadata +17 -7
@@ -1,177 +1,177 @@
1
1
  (function () {
2
2
  var fullscreen = (function () {
3
- 'use strict';
3
+ 'use strict';
4
4
 
5
- var Cell = function (initial) {
6
- var value = initial;
7
- var get = function () {
8
- return value;
9
- };
10
- var set = function (v) {
11
- value = v;
12
- };
13
- var clone = function () {
14
- return Cell(get());
15
- };
16
- return {
17
- get: get,
18
- set: set,
19
- clone: clone
5
+ var Cell = function (initial) {
6
+ var value = initial;
7
+ var get = function () {
8
+ return value;
9
+ };
10
+ var set = function (v) {
11
+ value = v;
12
+ };
13
+ var clone = function () {
14
+ return Cell(get());
15
+ };
16
+ return {
17
+ get: get,
18
+ set: set,
19
+ clone: clone
20
+ };
20
21
  };
21
- };
22
22
 
23
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
23
+ var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
24
24
 
25
- var get = function (fullscreenState) {
26
- return {
27
- isFullscreen: function () {
28
- return fullscreenState.get() !== null;
29
- }
25
+ var get = function (fullscreenState) {
26
+ return {
27
+ isFullscreen: function () {
28
+ return fullscreenState.get() !== null;
29
+ }
30
+ };
30
31
  };
31
- };
32
- var $_g0y3pxcdjm0ofyib = { get: get };
33
-
34
- var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
32
+ var Api = { get: get };
35
33
 
36
- var fireFullscreenStateChanged = function (editor, state) {
37
- editor.fire('FullscreenStateChanged', { state: state });
38
- };
39
- var $_eg78hichjm0ofyig = { fireFullscreenStateChanged: fireFullscreenStateChanged };
34
+ var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
40
35
 
41
- var DOM = global$1.DOM;
42
- var getWindowSize = function () {
43
- var w;
44
- var h;
45
- var win = window;
46
- var doc = document;
47
- var body = doc.body;
48
- if (body.offsetWidth) {
49
- w = body.offsetWidth;
50
- h = body.offsetHeight;
51
- }
52
- if (win.innerWidth && win.innerHeight) {
53
- w = win.innerWidth;
54
- h = win.innerHeight;
55
- }
56
- return {
57
- w: w,
58
- h: h
36
+ var fireFullscreenStateChanged = function (editor, state) {
37
+ editor.fire('FullscreenStateChanged', { state: state });
59
38
  };
60
- };
61
- var getScrollPos = function () {
62
- var vp = DOM.getViewPort();
63
- return {
64
- x: vp.x,
65
- y: vp.y
39
+ var Events = { fireFullscreenStateChanged: fireFullscreenStateChanged };
40
+
41
+ var DOM = global$1.DOM;
42
+ var getWindowSize = function () {
43
+ var w;
44
+ var h;
45
+ var win = window;
46
+ var doc = document;
47
+ var body = doc.body;
48
+ if (body.offsetWidth) {
49
+ w = body.offsetWidth;
50
+ h = body.offsetHeight;
51
+ }
52
+ if (win.innerWidth && win.innerHeight) {
53
+ w = win.innerWidth;
54
+ h = win.innerHeight;
55
+ }
56
+ return {
57
+ w: w,
58
+ h: h
59
+ };
66
60
  };
67
- };
68
- var setScrollPos = function (pos) {
69
- window.scrollTo(pos.x, pos.y);
70
- };
71
- var toggleFullscreen = function (editor, fullscreenState) {
72
- var body = document.body;
73
- var documentElement = document.documentElement;
74
- var editorContainerStyle;
75
- var editorContainer, iframe, iframeStyle;
76
- var fullscreenInfo = fullscreenState.get();
77
- var resize = function () {
78
- DOM.setStyle(iframe, 'height', getWindowSize().h - (editorContainer.clientHeight - iframe.clientHeight));
61
+ var getScrollPos = function () {
62
+ var vp = DOM.getViewPort();
63
+ return {
64
+ x: vp.x,
65
+ y: vp.y
66
+ };
79
67
  };
80
- var removeResize = function () {
81
- DOM.unbind(window, 'resize', resize);
68
+ var setScrollPos = function (pos) {
69
+ window.scrollTo(pos.x, pos.y);
82
70
  };
83
- editorContainer = editor.getContainer();
84
- editorContainerStyle = editorContainer.style;
85
- iframe = editor.getContentAreaContainer().firstChild;
86
- iframeStyle = iframe.style;
87
- if (!fullscreenInfo) {
88
- var newFullScreenInfo = {
89
- scrollPos: getScrollPos(),
90
- containerWidth: editorContainerStyle.width,
91
- containerHeight: editorContainerStyle.height,
92
- iframeWidth: iframeStyle.width,
93
- iframeHeight: iframeStyle.height,
94
- resizeHandler: resize,
95
- removeHandler: removeResize
71
+ var toggleFullscreen = function (editor, fullscreenState) {
72
+ var body = document.body;
73
+ var documentElement = document.documentElement;
74
+ var editorContainerStyle;
75
+ var editorContainer, iframe, iframeStyle;
76
+ var fullscreenInfo = fullscreenState.get();
77
+ var resize = function () {
78
+ DOM.setStyle(iframe, 'height', getWindowSize().h - (editorContainer.clientHeight - iframe.clientHeight));
96
79
  };
97
- iframeStyle.width = iframeStyle.height = '100%';
98
- editorContainerStyle.width = editorContainerStyle.height = '';
99
- DOM.addClass(body, 'mce-fullscreen');
100
- DOM.addClass(documentElement, 'mce-fullscreen');
101
- DOM.addClass(editorContainer, 'mce-fullscreen');
102
- DOM.bind(window, 'resize', resize);
103
- editor.on('remove', removeResize);
104
- resize();
105
- fullscreenState.set(newFullScreenInfo);
106
- $_eg78hichjm0ofyig.fireFullscreenStateChanged(editor, true);
107
- } else {
108
- iframeStyle.width = fullscreenInfo.iframeWidth;
109
- iframeStyle.height = fullscreenInfo.iframeHeight;
110
- if (fullscreenInfo.containerWidth) {
111
- editorContainerStyle.width = fullscreenInfo.containerWidth;
112
- }
113
- if (fullscreenInfo.containerHeight) {
114
- editorContainerStyle.height = fullscreenInfo.containerHeight;
80
+ var removeResize = function () {
81
+ DOM.unbind(window, 'resize', resize);
82
+ };
83
+ editorContainer = editor.getContainer();
84
+ editorContainerStyle = editorContainer.style;
85
+ iframe = editor.getContentAreaContainer().firstChild;
86
+ iframeStyle = iframe.style;
87
+ if (!fullscreenInfo) {
88
+ var newFullScreenInfo = {
89
+ scrollPos: getScrollPos(),
90
+ containerWidth: editorContainerStyle.width,
91
+ containerHeight: editorContainerStyle.height,
92
+ iframeWidth: iframeStyle.width,
93
+ iframeHeight: iframeStyle.height,
94
+ resizeHandler: resize,
95
+ removeHandler: removeResize
96
+ };
97
+ iframeStyle.width = iframeStyle.height = '100%';
98
+ editorContainerStyle.width = editorContainerStyle.height = '';
99
+ DOM.addClass(body, 'mce-fullscreen');
100
+ DOM.addClass(documentElement, 'mce-fullscreen');
101
+ DOM.addClass(editorContainer, 'mce-fullscreen');
102
+ DOM.bind(window, 'resize', resize);
103
+ editor.on('remove', removeResize);
104
+ resize();
105
+ fullscreenState.set(newFullScreenInfo);
106
+ Events.fireFullscreenStateChanged(editor, true);
107
+ } else {
108
+ iframeStyle.width = fullscreenInfo.iframeWidth;
109
+ iframeStyle.height = fullscreenInfo.iframeHeight;
110
+ if (fullscreenInfo.containerWidth) {
111
+ editorContainerStyle.width = fullscreenInfo.containerWidth;
112
+ }
113
+ if (fullscreenInfo.containerHeight) {
114
+ editorContainerStyle.height = fullscreenInfo.containerHeight;
115
+ }
116
+ DOM.removeClass(body, 'mce-fullscreen');
117
+ DOM.removeClass(documentElement, 'mce-fullscreen');
118
+ DOM.removeClass(editorContainer, 'mce-fullscreen');
119
+ setScrollPos(fullscreenInfo.scrollPos);
120
+ DOM.unbind(window, 'resize', fullscreenInfo.resizeHandler);
121
+ editor.off('remove', fullscreenInfo.removeHandler);
122
+ fullscreenState.set(null);
123
+ Events.fireFullscreenStateChanged(editor, false);
115
124
  }
116
- DOM.removeClass(body, 'mce-fullscreen');
117
- DOM.removeClass(documentElement, 'mce-fullscreen');
118
- DOM.removeClass(editorContainer, 'mce-fullscreen');
119
- setScrollPos(fullscreenInfo.scrollPos);
120
- DOM.unbind(window, 'resize', fullscreenInfo.resizeHandler);
121
- editor.off('remove', fullscreenInfo.removeHandler);
122
- fullscreenState.set(null);
123
- $_eg78hichjm0ofyig.fireFullscreenStateChanged(editor, false);
124
- }
125
- };
126
- var $_c75kjycfjm0ofyid = { toggleFullscreen: toggleFullscreen };
125
+ };
126
+ var Actions = { toggleFullscreen: toggleFullscreen };
127
127
 
128
- var register = function (editor, fullscreenState) {
129
- editor.addCommand('mceFullScreen', function () {
130
- $_c75kjycfjm0ofyid.toggleFullscreen(editor, fullscreenState);
131
- });
132
- };
133
- var $_aoeniccejm0ofyic = { register: register };
128
+ var register = function (editor, fullscreenState) {
129
+ editor.addCommand('mceFullScreen', function () {
130
+ Actions.toggleFullscreen(editor, fullscreenState);
131
+ });
132
+ };
133
+ var Commands = { register: register };
134
134
 
135
- var postRender = function (editor) {
136
- return function (e) {
137
- var ctrl = e.control;
138
- editor.on('FullscreenStateChanged', function (e) {
139
- ctrl.active(e.state);
135
+ var postRender = function (editor) {
136
+ return function (e) {
137
+ var ctrl = e.control;
138
+ editor.on('FullscreenStateChanged', function (e) {
139
+ ctrl.active(e.state);
140
+ });
141
+ };
142
+ };
143
+ var register$1 = function (editor) {
144
+ editor.addMenuItem('fullscreen', {
145
+ text: 'Fullscreen',
146
+ shortcut: 'Ctrl+Shift+F',
147
+ selectable: true,
148
+ cmd: 'mceFullScreen',
149
+ onPostRender: postRender(editor),
150
+ context: 'view'
151
+ });
152
+ editor.addButton('fullscreen', {
153
+ active: false,
154
+ tooltip: 'Fullscreen',
155
+ cmd: 'mceFullScreen',
156
+ onPostRender: postRender(editor)
140
157
  });
141
158
  };
142
- };
143
- var register$1 = function (editor) {
144
- editor.addMenuItem('fullscreen', {
145
- text: 'Fullscreen',
146
- shortcut: 'Ctrl+Shift+F',
147
- selectable: true,
148
- cmd: 'mceFullScreen',
149
- onPostRender: postRender(editor),
150
- context: 'view'
151
- });
152
- editor.addButton('fullscreen', {
153
- active: false,
154
- tooltip: 'Fullscreen',
155
- cmd: 'mceFullScreen',
156
- onPostRender: postRender(editor)
157
- });
158
- };
159
- var $_fueg62cjjm0ofyiy = { register: register$1 };
159
+ var Buttons = { register: register$1 };
160
160
 
161
- global.add('fullscreen', function (editor) {
162
- var fullscreenState = Cell(null);
163
- if (editor.settings.inline) {
164
- return $_g0y3pxcdjm0ofyib.get(fullscreenState);
161
+ global.add('fullscreen', function (editor) {
162
+ var fullscreenState = Cell(null);
163
+ if (editor.settings.inline) {
164
+ return Api.get(fullscreenState);
165
+ }
166
+ Commands.register(editor, fullscreenState);
167
+ Buttons.register(editor);
168
+ editor.addShortcut('Ctrl+Shift+F', '', 'mceFullScreen');
169
+ return Api.get(fullscreenState);
170
+ });
171
+ function Plugin () {
165
172
  }
166
- $_aoeniccejm0ofyic.register(editor, fullscreenState);
167
- $_fueg62cjjm0ofyiy.register(editor);
168
- editor.addShortcut('Ctrl+Shift+F', '', 'mceFullScreen');
169
- return $_g0y3pxcdjm0ofyib.get(fullscreenState);
170
- });
171
- function Plugin () {
172
- }
173
173
 
174
- return Plugin;
174
+ return Plugin;
175
175
 
176
176
  }());
177
177
  })();
@@ -1,727 +1,688 @@
1
1
  (function () {
2
2
  var help = (function () {
3
- 'use strict';
3
+ 'use strict';
4
4
 
5
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
5
+ var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
6
6
 
7
- var constant = function (value) {
8
- return function () {
9
- return value;
7
+ var constant = function (value) {
8
+ return function () {
9
+ return value;
10
+ };
10
11
  };
11
- };
12
-
13
-
14
- var curry = function (f) {
15
- var x = [];
16
- for (var _i = 1; _i < arguments.length; _i++) {
17
- x[_i - 1] = arguments[_i];
18
- }
19
- var args = new Array(arguments.length - 1);
20
- for (var i = 1; i < arguments.length; i++)
21
- args[i - 1] = arguments[i];
22
- return function () {
23
- var x = [];
24
- for (var _i = 0; _i < arguments.length; _i++) {
25
- x[_i] = arguments[_i];
26
- }
27
- var newArgs = new Array(arguments.length);
28
- for (var j = 0; j < newArgs.length; j++)
29
- newArgs[j] = arguments[j];
30
- var all = args.concat(newArgs);
31
- return f.apply(null, all);
32
- };
33
- };
34
- var not = function (f) {
35
- return function () {
36
- var x = [];
37
- for (var _i = 0; _i < arguments.length; _i++) {
38
- x[_i] = arguments[_i];
12
+ function curry(fn) {
13
+ var initialArgs = [];
14
+ for (var _i = 1; _i < arguments.length; _i++) {
15
+ initialArgs[_i - 1] = arguments[_i];
39
16
  }
40
- return !f.apply(null, arguments);
17
+ return function () {
18
+ var restArgs = [];
19
+ for (var _i = 0; _i < arguments.length; _i++) {
20
+ restArgs[_i] = arguments[_i];
21
+ }
22
+ var all = initialArgs.concat(restArgs);
23
+ return fn.apply(null, all);
24
+ };
25
+ }
26
+ var not = function (f) {
27
+ return function () {
28
+ var args = [];
29
+ for (var _i = 0; _i < arguments.length; _i++) {
30
+ args[_i] = arguments[_i];
31
+ }
32
+ return !f.apply(null, args);
33
+ };
41
34
  };
42
- };
35
+ var never = constant(false);
36
+ var always = constant(true);
43
37
 
44
-
45
-
46
- var never = constant(false);
47
- var always = constant(true);
48
-
49
- var never$1 = never;
50
- var always$1 = always;
51
- var none = function () {
52
- return NONE;
53
- };
54
- var NONE = function () {
55
- var eq = function (o) {
56
- return o.isNone();
38
+ var never$1 = never;
39
+ var always$1 = always;
40
+ var none = function () {
41
+ return NONE;
57
42
  };
58
- var call$$1 = function (thunk) {
59
- return thunk();
43
+ var NONE = function () {
44
+ var eq = function (o) {
45
+ return o.isNone();
46
+ };
47
+ var call$$1 = function (thunk) {
48
+ return thunk();
49
+ };
50
+ var id = function (n) {
51
+ return n;
52
+ };
53
+ var noop$$1 = function () {
54
+ };
55
+ var nul = function () {
56
+ return null;
57
+ };
58
+ var undef = function () {
59
+ return undefined;
60
+ };
61
+ var me = {
62
+ fold: function (n, s) {
63
+ return n();
64
+ },
65
+ is: never$1,
66
+ isSome: never$1,
67
+ isNone: always$1,
68
+ getOr: id,
69
+ getOrThunk: call$$1,
70
+ getOrDie: function (msg) {
71
+ throw new Error(msg || 'error: getOrDie called on none.');
72
+ },
73
+ getOrNull: nul,
74
+ getOrUndefined: undef,
75
+ or: id,
76
+ orThunk: call$$1,
77
+ map: none,
78
+ ap: none,
79
+ each: noop$$1,
80
+ bind: none,
81
+ flatten: none,
82
+ exists: never$1,
83
+ forall: always$1,
84
+ filter: none,
85
+ equals: eq,
86
+ equals_: eq,
87
+ toArray: function () {
88
+ return [];
89
+ },
90
+ toString: constant('none()')
91
+ };
92
+ if (Object.freeze)
93
+ Object.freeze(me);
94
+ return me;
95
+ }();
96
+ var some = function (a) {
97
+ var constant_a = function () {
98
+ return a;
99
+ };
100
+ var self = function () {
101
+ return me;
102
+ };
103
+ var map = function (f) {
104
+ return some(f(a));
105
+ };
106
+ var bind = function (f) {
107
+ return f(a);
108
+ };
109
+ var me = {
110
+ fold: function (n, s) {
111
+ return s(a);
112
+ },
113
+ is: function (v) {
114
+ return a === v;
115
+ },
116
+ isSome: always$1,
117
+ isNone: never$1,
118
+ getOr: constant_a,
119
+ getOrThunk: constant_a,
120
+ getOrDie: constant_a,
121
+ getOrNull: constant_a,
122
+ getOrUndefined: constant_a,
123
+ or: self,
124
+ orThunk: self,
125
+ map: map,
126
+ ap: function (optfab) {
127
+ return optfab.fold(none, function (fab) {
128
+ return some(fab(a));
129
+ });
130
+ },
131
+ each: function (f) {
132
+ f(a);
133
+ },
134
+ bind: bind,
135
+ flatten: constant_a,
136
+ exists: bind,
137
+ forall: bind,
138
+ filter: function (f) {
139
+ return f(a) ? me : NONE;
140
+ },
141
+ equals: function (o) {
142
+ return o.is(a);
143
+ },
144
+ equals_: function (o, elementEq) {
145
+ return o.fold(never$1, function (b) {
146
+ return elementEq(a, b);
147
+ });
148
+ },
149
+ toArray: function () {
150
+ return [a];
151
+ },
152
+ toString: function () {
153
+ return 'some(' + a + ')';
154
+ }
155
+ };
156
+ return me;
60
157
  };
61
- var id = function (n) {
62
- return n;
158
+ var from = function (value) {
159
+ return value === null || value === undefined ? NONE : some(value);
63
160
  };
64
- var noop$$1 = function () {
161
+ var Option = {
162
+ some: some,
163
+ none: none,
164
+ from: from
65
165
  };
66
- var nul = function () {
67
- return null;
166
+
167
+ var typeOf = function (x) {
168
+ if (x === null)
169
+ return 'null';
170
+ var t = typeof x;
171
+ if (t === 'object' && Array.prototype.isPrototypeOf(x))
172
+ return 'array';
173
+ if (t === 'object' && String.prototype.isPrototypeOf(x))
174
+ return 'string';
175
+ return t;
68
176
  };
69
- var undef = function () {
70
- return undefined;
177
+ var isType = function (type) {
178
+ return function (value) {
179
+ return typeOf(value) === type;
180
+ };
71
181
  };
72
- var me = {
73
- fold: function (n, s) {
74
- return n();
75
- },
76
- is: never$1,
77
- isSome: never$1,
78
- isNone: always$1,
79
- getOr: id,
80
- getOrThunk: call$$1,
81
- getOrDie: function (msg) {
82
- throw new Error(msg || 'error: getOrDie called on none.');
83
- },
84
- getOrNull: nul,
85
- getOrUndefined: undef,
86
- or: id,
87
- orThunk: call$$1,
88
- map: none,
89
- ap: none,
90
- each: noop$$1,
91
- bind: none,
92
- flatten: none,
93
- exists: never$1,
94
- forall: always$1,
95
- filter: none,
96
- equals: eq,
97
- equals_: eq,
98
- toArray: function () {
99
- return [];
100
- },
101
- toString: constant('none()')
182
+ var isFunction = isType('function');
183
+
184
+ var rawIndexOf = function () {
185
+ var pIndexOf = Array.prototype.indexOf;
186
+ var fastIndex = function (xs, x) {
187
+ return pIndexOf.call(xs, x);
188
+ };
189
+ var slowIndex = function (xs, x) {
190
+ return slowIndexOf(xs, x);
191
+ };
192
+ return pIndexOf === undefined ? slowIndex : fastIndex;
193
+ }();
194
+ var contains = function (xs, x) {
195
+ return rawIndexOf(xs, x) > -1;
102
196
  };
103
- if (Object.freeze)
104
- Object.freeze(me);
105
- return me;
106
- }();
107
- var some = function (a) {
108
- var constant_a = function () {
109
- return a;
197
+ var map = function (xs, f) {
198
+ var len = xs.length;
199
+ var r = new Array(len);
200
+ for (var i = 0; i < len; i++) {
201
+ var x = xs[i];
202
+ r[i] = f(x, i, xs);
203
+ }
204
+ return r;
110
205
  };
111
- var self = function () {
112
- return me;
206
+ var filter = function (xs, pred) {
207
+ var r = [];
208
+ for (var i = 0, len = xs.length; i < len; i++) {
209
+ var x = xs[i];
210
+ if (pred(x, i, xs)) {
211
+ r.push(x);
212
+ }
213
+ }
214
+ return r;
215
+ };
216
+ var find = function (xs, pred) {
217
+ for (var i = 0, len = xs.length; i < len; i++) {
218
+ var x = xs[i];
219
+ if (pred(x, i, xs)) {
220
+ return Option.some(x);
221
+ }
222
+ }
223
+ return Option.none();
113
224
  };
114
- var map = function (f) {
115
- return some(f(a));
225
+ var slowIndexOf = function (xs, x) {
226
+ for (var i = 0, len = xs.length; i < len; ++i) {
227
+ if (xs[i] === x) {
228
+ return i;
229
+ }
230
+ }
231
+ return -1;
116
232
  };
117
- var bind = function (f) {
118
- return f(a);
233
+ var slice = Array.prototype.slice;
234
+ var from$1 = isFunction(Array.from) ? Array.from : function (x) {
235
+ return slice.call(x);
119
236
  };
120
- var me = {
121
- fold: function (n, s) {
122
- return s(a);
123
- },
124
- is: function (v) {
125
- return a === v;
126
- },
127
- isSome: always$1,
128
- isNone: never$1,
129
- getOr: constant_a,
130
- getOrThunk: constant_a,
131
- getOrDie: constant_a,
132
- getOrNull: constant_a,
133
- getOrUndefined: constant_a,
134
- or: self,
135
- orThunk: self,
136
- map: map,
137
- ap: function (optfab) {
138
- return optfab.fold(none, function (fab) {
139
- return some(fab(a));
140
- });
237
+
238
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.I18n');
239
+
240
+ var global$2 = tinymce.util.Tools.resolve('tinymce.Env');
241
+
242
+ var meta = global$2.mac ? '\u2318' : 'Ctrl';
243
+ var access = global$2.mac ? 'Ctrl + Alt' : 'Shift + Alt';
244
+ var shortcuts = [
245
+ {
246
+ shortcut: meta + ' + B',
247
+ action: 'Bold'
141
248
  },
142
- each: function (f) {
143
- f(a);
249
+ {
250
+ shortcut: meta + ' + I',
251
+ action: 'Italic'
144
252
  },
145
- bind: bind,
146
- flatten: constant_a,
147
- exists: bind,
148
- forall: bind,
149
- filter: function (f) {
150
- return f(a) ? me : NONE;
253
+ {
254
+ shortcut: meta + ' + U',
255
+ action: 'Underline'
151
256
  },
152
- equals: function (o) {
153
- return o.is(a);
257
+ {
258
+ shortcut: meta + ' + A',
259
+ action: 'Select all'
154
260
  },
155
- equals_: function (o, elementEq) {
156
- return o.fold(never$1, function (b) {
157
- return elementEq(a, b);
158
- });
261
+ {
262
+ shortcut: meta + ' + Y or ' + meta + ' + Shift + Z',
263
+ action: 'Redo'
264
+ },
265
+ {
266
+ shortcut: meta + ' + Z',
267
+ action: 'Undo'
159
268
  },
160
- toArray: function () {
161
- return [a];
269
+ {
270
+ shortcut: access + ' + 1',
271
+ action: 'Header 1'
162
272
  },
163
- toString: function () {
164
- return 'some(' + a + ')';
273
+ {
274
+ shortcut: access + ' + 2',
275
+ action: 'Header 2'
276
+ },
277
+ {
278
+ shortcut: access + ' + 3',
279
+ action: 'Header 3'
280
+ },
281
+ {
282
+ shortcut: access + ' + 4',
283
+ action: 'Header 4'
284
+ },
285
+ {
286
+ shortcut: access + ' + 5',
287
+ action: 'Header 5'
288
+ },
289
+ {
290
+ shortcut: access + ' + 6',
291
+ action: 'Header 6'
292
+ },
293
+ {
294
+ shortcut: access + ' + 7',
295
+ action: 'Paragraph'
296
+ },
297
+ {
298
+ shortcut: access + ' + 8',
299
+ action: 'Div'
300
+ },
301
+ {
302
+ shortcut: access + ' + 9',
303
+ action: 'Address'
304
+ },
305
+ {
306
+ shortcut: 'Alt + F9',
307
+ action: 'Focus to menubar'
308
+ },
309
+ {
310
+ shortcut: 'Alt + F10',
311
+ action: 'Focus to toolbar'
312
+ },
313
+ {
314
+ shortcut: 'Alt + F11',
315
+ action: 'Focus to element path'
316
+ },
317
+ {
318
+ shortcut: 'Ctrl + F9',
319
+ action: 'Focus to contextual toolbar'
320
+ },
321
+ {
322
+ shortcut: meta + ' + K',
323
+ action: 'Insert link (if link plugin activated)'
324
+ },
325
+ {
326
+ shortcut: meta + ' + S',
327
+ action: 'Save (if save plugin activated)'
328
+ },
329
+ {
330
+ shortcut: meta + ' + F',
331
+ action: 'Find (if searchreplace plugin activated)'
165
332
  }
333
+ ];
334
+ var KeyboardShortcuts = { shortcuts: shortcuts };
335
+
336
+ var makeTab = function () {
337
+ var makeAriaLabel = function (shortcut) {
338
+ return 'aria-label="Action: ' + shortcut.action + ', Shortcut: ' + shortcut.shortcut.replace(/Ctrl/g, 'Control') + '"';
339
+ };
340
+ var shortcutLisString = map(KeyboardShortcuts.shortcuts, function (shortcut) {
341
+ return '<tr data-mce-tabstop="1" tabindex="-1" ' + makeAriaLabel(shortcut) + '>' + '<td>' + global$1.translate(shortcut.action) + '</td>' + '<td>' + shortcut.shortcut + '</td>' + '</tr>';
342
+ }).join('');
343
+ return {
344
+ title: 'Handy Shortcuts',
345
+ type: 'container',
346
+ style: 'overflow-y: auto; overflow-x: hidden; max-height: 250px',
347
+ items: [{
348
+ type: 'container',
349
+ html: '<div>' + '<table class="mce-table-striped">' + '<thead>' + '<th>' + global$1.translate('Action') + '</th>' + '<th>' + global$1.translate('Shortcut') + '</th>' + '</thead>' + shortcutLisString + '</table>' + '</div>'
350
+ }]
351
+ };
166
352
  };
167
- return me;
168
- };
169
- var from = function (value) {
170
- return value === null || value === undefined ? NONE : some(value);
171
- };
172
- var Option = {
173
- some: some,
174
- none: none,
175
- from: from
176
- };
177
-
178
- var typeOf = function (x) {
179
- if (x === null)
180
- return 'null';
181
- var t = typeof x;
182
- if (t === 'object' && Array.prototype.isPrototypeOf(x))
183
- return 'array';
184
- if (t === 'object' && String.prototype.isPrototypeOf(x))
185
- return 'string';
186
- return t;
187
- };
188
- var isType = function (type) {
189
- return function (value) {
190
- return typeOf(value) === type;
353
+ var KeyboardShortcutsTab = { makeTab: makeTab };
354
+
355
+ var keys = Object.keys;
356
+
357
+ var supplant = function (str, obj) {
358
+ var isStringOrNumber = function (a) {
359
+ var t = typeof a;
360
+ return t === 'string' || t === 'number';
361
+ };
362
+ return str.replace(/\$\{([^{}]*)\}/g, function (fullMatch, key) {
363
+ var value = obj[key];
364
+ return isStringOrNumber(value) ? value.toString() : fullMatch;
365
+ });
191
366
  };
192
- };
193
-
194
-
195
-
196
-
197
367
 
198
-
199
- var isFunction = isType('function');
200
-
201
- var rawIndexOf = function () {
202
- var pIndexOf = Array.prototype.indexOf;
203
- var fastIndex = function (xs, x) {
204
- return pIndexOf.call(xs, x);
368
+ var urls = [
369
+ {
370
+ key: 'advlist',
371
+ name: 'Advanced List'
372
+ },
373
+ {
374
+ key: 'anchor',
375
+ name: 'Anchor'
376
+ },
377
+ {
378
+ key: 'autolink',
379
+ name: 'Autolink'
380
+ },
381
+ {
382
+ key: 'autoresize',
383
+ name: 'Autoresize'
384
+ },
385
+ {
386
+ key: 'autosave',
387
+ name: 'Autosave'
388
+ },
389
+ {
390
+ key: 'bbcode',
391
+ name: 'BBCode'
392
+ },
393
+ {
394
+ key: 'charmap',
395
+ name: 'Character Map'
396
+ },
397
+ {
398
+ key: 'code',
399
+ name: 'Code'
400
+ },
401
+ {
402
+ key: 'codesample',
403
+ name: 'Code Sample'
404
+ },
405
+ {
406
+ key: 'colorpicker',
407
+ name: 'Color Picker'
408
+ },
409
+ {
410
+ key: 'compat3x',
411
+ name: '3.x Compatibility'
412
+ },
413
+ {
414
+ key: 'contextmenu',
415
+ name: 'Context Menu'
416
+ },
417
+ {
418
+ key: 'directionality',
419
+ name: 'Directionality'
420
+ },
421
+ {
422
+ key: 'emoticons',
423
+ name: 'Emoticons'
424
+ },
425
+ {
426
+ key: 'fullpage',
427
+ name: 'Full Page'
428
+ },
429
+ {
430
+ key: 'fullscreen',
431
+ name: 'Full Screen'
432
+ },
433
+ {
434
+ key: 'help',
435
+ name: 'Help'
436
+ },
437
+ {
438
+ key: 'hr',
439
+ name: 'Horizontal Rule'
440
+ },
441
+ {
442
+ key: 'image',
443
+ name: 'Image'
444
+ },
445
+ {
446
+ key: 'imagetools',
447
+ name: 'Image Tools'
448
+ },
449
+ {
450
+ key: 'importcss',
451
+ name: 'Import CSS'
452
+ },
453
+ {
454
+ key: 'insertdatetime',
455
+ name: 'Insert Date/Time'
456
+ },
457
+ {
458
+ key: 'legacyoutput',
459
+ name: 'Legacy Output'
460
+ },
461
+ {
462
+ key: 'link',
463
+ name: 'Link'
464
+ },
465
+ {
466
+ key: 'lists',
467
+ name: 'Lists'
468
+ },
469
+ {
470
+ key: 'media',
471
+ name: 'Media'
472
+ },
473
+ {
474
+ key: 'nonbreaking',
475
+ name: 'Nonbreaking'
476
+ },
477
+ {
478
+ key: 'noneditable',
479
+ name: 'Noneditable'
480
+ },
481
+ {
482
+ key: 'pagebreak',
483
+ name: 'Page Break'
484
+ },
485
+ {
486
+ key: 'paste',
487
+ name: 'Paste'
488
+ },
489
+ {
490
+ key: 'preview',
491
+ name: 'Preview'
492
+ },
493
+ {
494
+ key: 'print',
495
+ name: 'Print'
496
+ },
497
+ {
498
+ key: 'save',
499
+ name: 'Save'
500
+ },
501
+ {
502
+ key: 'searchreplace',
503
+ name: 'Search and Replace'
504
+ },
505
+ {
506
+ key: 'spellchecker',
507
+ name: 'Spell Checker'
508
+ },
509
+ {
510
+ key: 'tabfocus',
511
+ name: 'Tab Focus'
512
+ },
513
+ {
514
+ key: 'table',
515
+ name: 'Table'
516
+ },
517
+ {
518
+ key: 'template',
519
+ name: 'Template'
520
+ },
521
+ {
522
+ key: 'textcolor',
523
+ name: 'Text Color'
524
+ },
525
+ {
526
+ key: 'textpattern',
527
+ name: 'Text Pattern'
528
+ },
529
+ {
530
+ key: 'toc',
531
+ name: 'Table of Contents'
532
+ },
533
+ {
534
+ key: 'visualblocks',
535
+ name: 'Visual Blocks'
536
+ },
537
+ {
538
+ key: 'visualchars',
539
+ name: 'Visual Characters'
540
+ },
541
+ {
542
+ key: 'wordcount',
543
+ name: 'Word Count'
544
+ }
545
+ ];
546
+ var PluginUrls = { urls: urls };
547
+
548
+ var makeLink = curry(supplant, '<a href="${url}" target="_blank" rel="noopener">${name}</a>');
549
+ var maybeUrlize = function (editor, key) {
550
+ return find(PluginUrls.urls, function (x) {
551
+ return x.key === key;
552
+ }).fold(function () {
553
+ var getMetadata = editor.plugins[key].getMetadata;
554
+ return typeof getMetadata === 'function' ? makeLink(getMetadata()) : key;
555
+ }, function (x) {
556
+ return makeLink({
557
+ name: x.name,
558
+ url: 'https://www.tinymce.com/docs/plugins/' + x.key
559
+ });
560
+ });
205
561
  };
206
- var slowIndex = function (xs, x) {
207
- return slowIndexOf(xs, x);
562
+ var getPluginKeys = function (editor) {
563
+ var keys$$1 = keys(editor.plugins);
564
+ return editor.settings.forced_plugins === undefined ? keys$$1 : filter(keys$$1, not(curry(contains, editor.settings.forced_plugins)));
208
565
  };
209
- return pIndexOf === undefined ? slowIndex : fastIndex;
210
- }();
211
-
212
- var contains = function (xs, x) {
213
- return rawIndexOf(xs, x) > -1;
214
- };
215
-
216
-
217
-
218
- var map = function (xs, f) {
219
- var len = xs.length;
220
- var r = new Array(len);
221
- for (var i = 0; i < len; i++) {
222
- var x = xs[i];
223
- r[i] = f(x, i, xs);
224
- }
225
- return r;
226
- };
227
-
228
-
229
-
230
- var filter = function (xs, pred) {
231
- var r = [];
232
- for (var i = 0, len = xs.length; i < len; i++) {
233
- var x = xs[i];
234
- if (pred(x, i, xs)) {
235
- r.push(x);
236
- }
237
- }
238
- return r;
239
- };
240
-
241
-
242
-
243
- var find = function (xs, pred) {
244
- for (var i = 0, len = xs.length; i < len; i++) {
245
- var x = xs[i];
246
- if (pred(x, i, xs)) {
247
- return Option.some(x);
248
- }
249
- }
250
- return Option.none();
251
- };
252
-
253
- var slowIndexOf = function (xs, x) {
254
- for (var i = 0, len = xs.length; i < len; ++i) {
255
- if (xs[i] === x) {
256
- return i;
257
- }
258
- }
259
- return -1;
260
- };
261
-
262
-
263
-
264
-
265
- var slice = Array.prototype.slice;
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
- var from$1 = isFunction(Array.from) ? Array.from : function (x) {
274
- return slice.call(x);
275
- };
276
-
277
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.I18n');
278
-
279
- var global$2 = tinymce.util.Tools.resolve('tinymce.Env');
280
-
281
- var meta = global$2.mac ? '\u2318' : 'Ctrl';
282
- var access = global$2.mac ? 'Ctrl + Alt' : 'Shift + Alt';
283
- var shortcuts = [
284
- {
285
- shortcut: meta + ' + B',
286
- action: 'Bold'
287
- },
288
- {
289
- shortcut: meta + ' + I',
290
- action: 'Italic'
291
- },
292
- {
293
- shortcut: meta + ' + U',
294
- action: 'Underline'
295
- },
296
- {
297
- shortcut: meta + ' + A',
298
- action: 'Select all'
299
- },
300
- {
301
- shortcut: meta + ' + Y or ' + meta + ' + Shift + Z',
302
- action: 'Redo'
303
- },
304
- {
305
- shortcut: meta + ' + Z',
306
- action: 'Undo'
307
- },
308
- {
309
- shortcut: access + ' + 1',
310
- action: 'Header 1'
311
- },
312
- {
313
- shortcut: access + ' + 2',
314
- action: 'Header 2'
315
- },
316
- {
317
- shortcut: access + ' + 3',
318
- action: 'Header 3'
319
- },
320
- {
321
- shortcut: access + ' + 4',
322
- action: 'Header 4'
323
- },
324
- {
325
- shortcut: access + ' + 5',
326
- action: 'Header 5'
327
- },
328
- {
329
- shortcut: access + ' + 6',
330
- action: 'Header 6'
331
- },
332
- {
333
- shortcut: access + ' + 7',
334
- action: 'Paragraph'
335
- },
336
- {
337
- shortcut: access + ' + 8',
338
- action: 'Div'
339
- },
340
- {
341
- shortcut: access + ' + 9',
342
- action: 'Address'
343
- },
344
- {
345
- shortcut: 'Alt + F9',
346
- action: 'Focus to menubar'
347
- },
348
- {
349
- shortcut: 'Alt + F10',
350
- action: 'Focus to toolbar'
351
- },
352
- {
353
- shortcut: 'Alt + F11',
354
- action: 'Focus to element path'
355
- },
356
- {
357
- shortcut: 'Ctrl + Shift + P > Ctrl + Shift + P',
358
- action: 'Focus to contextual toolbar'
359
- },
360
- {
361
- shortcut: meta + ' + K',
362
- action: 'Insert link (if link plugin activated)'
363
- },
364
- {
365
- shortcut: meta + ' + S',
366
- action: 'Save (if save plugin activated)'
367
- },
368
- {
369
- shortcut: meta + ' + F',
370
- action: 'Find (if searchreplace plugin activated)'
371
- }
372
- ];
373
- var $_ciny08bljm0ofydr = { shortcuts: shortcuts };
374
-
375
- var makeTab = function () {
376
- var makeAriaLabel = function (shortcut) {
377
- return 'aria-label="Action: ' + shortcut.action + ', Shortcut: ' + shortcut.shortcut.replace(/Ctrl/g, 'Control') + '"';
566
+ var pluginLister = function (editor) {
567
+ var pluginKeys = getPluginKeys(editor);
568
+ var pluginLis = map(pluginKeys, function (key) {
569
+ return '<li>' + maybeUrlize(editor, key) + '</li>';
570
+ });
571
+ var count = pluginLis.length;
572
+ var pluginsString = pluginLis.join('');
573
+ return '<p><b>' + global$1.translate([
574
+ 'Plugins installed ({0}):',
575
+ count
576
+ ]) + '</b></p>' + '<ul>' + pluginsString + '</ul>';
378
577
  };
379
- var shortcutLisString = map($_ciny08bljm0ofydr.shortcuts, function (shortcut) {
380
- return '<tr data-mce-tabstop="1" tabindex="-1" ' + makeAriaLabel(shortcut) + '>' + '<td>' + global$1.translate(shortcut.action) + '</td>' + '<td>' + shortcut.shortcut + '</td>' + '</tr>';
381
- }).join('');
382
- return {
383
- title: 'Handy Shortcuts',
384
- type: 'container',
385
- style: 'overflow-y: auto; overflow-x: hidden; max-height: 250px',
386
- items: [{
387
- type: 'container',
388
- html: '<div>' + '<table class="mce-table-striped">' + '<thead>' + '<th>' + global$1.translate('Action') + '</th>' + '<th>' + global$1.translate('Shortcut') + '</th>' + '</thead>' + shortcutLisString + '</table>' + '</div>'
389
- }]
578
+ var installedPlugins = function (editor) {
579
+ return {
580
+ type: 'container',
581
+ html: '<div style="overflow-y: auto; overflow-x: hidden; max-height: 230px; height: 230px;" data-mce-tabstop="1" tabindex="-1">' + pluginLister(editor) + '</div>',
582
+ flex: 1
583
+ };
390
584
  };
391
- };
392
- var $_bgmpnabfjm0ofycz = { makeTab: makeTab };
393
-
394
- var keys = Object.keys;
395
-
396
- var supplant = function (str, obj) {
397
- var isStringOrNumber = function (a) {
398
- var t = typeof a;
399
- return t === 'string' || t === 'number';
585
+ var availablePlugins = function () {
586
+ return {
587
+ type: 'container',
588
+ html: '<div style="padding: 10px; background: #e3e7f4; height: 100%;" data-mce-tabstop="1" tabindex="-1">' + '<p><b>' + global$1.translate('Premium plugins:') + '</b></p>' + '<ul>' + '<li>PowerPaste</li>' + '<li>Spell Checker Pro</li>' + '<li>Accessibility Checker</li>' + '<li>Advanced Code Editor</li>' + '<li>Enhanced Media Embed</li>' + '<li>Link Checker</li>' + '</ul><br />' + '<p style="float: right;"><a href="https://www.tinymce.com/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">' + global$1.translate('Learn more...') + '</a></p>' + '</div>',
589
+ flex: 1
590
+ };
400
591
  };
401
- return str.replace(/\$\{([^{}]*)\}/g, function (fullMatch, key) {
402
- var value = obj[key];
403
- return isStringOrNumber(value) ? value.toString() : fullMatch;
404
- });
405
- };
592
+ var makeTab$1 = function (editor) {
593
+ return {
594
+ title: 'Plugins',
595
+ type: 'container',
596
+ style: 'overflow-y: auto; overflow-x: hidden;',
597
+ layout: 'flex',
598
+ padding: 10,
599
+ spacing: 10,
600
+ items: [
601
+ installedPlugins(editor),
602
+ availablePlugins()
603
+ ]
604
+ };
605
+ };
606
+ var PluginsTab = { makeTab: makeTab$1 };
406
607
 
407
- var urls = [
408
- {
409
- key: 'advlist',
410
- name: 'Advanced List'
411
- },
412
- {
413
- key: 'anchor',
414
- name: 'Anchor'
415
- },
416
- {
417
- key: 'autolink',
418
- name: 'Autolink'
419
- },
420
- {
421
- key: 'autoresize',
422
- name: 'Autoresize'
423
- },
424
- {
425
- key: 'autosave',
426
- name: 'Autosave'
427
- },
428
- {
429
- key: 'bbcode',
430
- name: 'BBCode'
431
- },
432
- {
433
- key: 'charmap',
434
- name: 'Character Map'
435
- },
436
- {
437
- key: 'code',
438
- name: 'Code'
439
- },
440
- {
441
- key: 'codesample',
442
- name: 'Code Sample'
443
- },
444
- {
445
- key: 'colorpicker',
446
- name: 'Color Picker'
447
- },
448
- {
449
- key: 'compat3x',
450
- name: '3.x Compatibility'
451
- },
452
- {
453
- key: 'contextmenu',
454
- name: 'Context Menu'
455
- },
456
- {
457
- key: 'directionality',
458
- name: 'Directionality'
459
- },
460
- {
461
- key: 'emoticons',
462
- name: 'Emoticons'
463
- },
464
- {
465
- key: 'fullpage',
466
- name: 'Full Page'
467
- },
468
- {
469
- key: 'fullscreen',
470
- name: 'Full Screen'
471
- },
472
- {
473
- key: 'help',
474
- name: 'Help'
475
- },
476
- {
477
- key: 'hr',
478
- name: 'Horizontal Rule'
479
- },
480
- {
481
- key: 'image',
482
- name: 'Image'
483
- },
484
- {
485
- key: 'imagetools',
486
- name: 'Image Tools'
487
- },
488
- {
489
- key: 'importcss',
490
- name: 'Import CSS'
491
- },
492
- {
493
- key: 'insertdatetime',
494
- name: 'Insert Date/Time'
495
- },
496
- {
497
- key: 'legacyoutput',
498
- name: 'Legacy Output'
499
- },
500
- {
501
- key: 'link',
502
- name: 'Link'
503
- },
504
- {
505
- key: 'lists',
506
- name: 'Lists'
507
- },
508
- {
509
- key: 'media',
510
- name: 'Media'
511
- },
512
- {
513
- key: 'nonbreaking',
514
- name: 'Nonbreaking'
515
- },
516
- {
517
- key: 'noneditable',
518
- name: 'Noneditable'
519
- },
520
- {
521
- key: 'pagebreak',
522
- name: 'Page Break'
523
- },
524
- {
525
- key: 'paste',
526
- name: 'Paste'
527
- },
528
- {
529
- key: 'preview',
530
- name: 'Preview'
531
- },
532
- {
533
- key: 'print',
534
- name: 'Print'
535
- },
536
- {
537
- key: 'save',
538
- name: 'Save'
539
- },
540
- {
541
- key: 'searchreplace',
542
- name: 'Search and Replace'
543
- },
544
- {
545
- key: 'spellchecker',
546
- name: 'Spell Checker'
547
- },
548
- {
549
- key: 'tabfocus',
550
- name: 'Tab Focus'
551
- },
552
- {
553
- key: 'table',
554
- name: 'Table'
555
- },
556
- {
557
- key: 'template',
558
- name: 'Template'
559
- },
560
- {
561
- key: 'textcolor',
562
- name: 'Text Color'
563
- },
564
- {
565
- key: 'textpattern',
566
- name: 'Text Pattern'
567
- },
568
- {
569
- key: 'toc',
570
- name: 'Table of Contents'
571
- },
572
- {
573
- key: 'visualblocks',
574
- name: 'Visual Blocks'
575
- },
576
- {
577
- key: 'visualchars',
578
- name: 'Visual Characters'
579
- },
580
- {
581
- key: 'wordcount',
582
- name: 'Word Count'
583
- }
584
- ];
585
- var $_1q9da0bsjm0ofyec = { urls: urls };
608
+ var global$3 = tinymce.util.Tools.resolve('tinymce.EditorManager');
586
609
 
587
- var makeLink = curry(supplant, '<a href="${url}" target="_blank" rel="noopener">${name}</a>');
588
- var maybeUrlize = function (editor, key) {
589
- return find($_1q9da0bsjm0ofyec.urls, function (x) {
590
- return x.key === key;
591
- }).fold(function () {
592
- var getMetadata = editor.plugins[key].getMetadata;
593
- return typeof getMetadata === 'function' ? makeLink(getMetadata()) : key;
594
- }, function (x) {
595
- return makeLink({
596
- name: x.name,
597
- url: 'https://www.tinymce.com/docs/plugins/' + x.key
598
- });
599
- });
600
- };
601
- var getPluginKeys = function (editor) {
602
- var keys$$1 = keys(editor.plugins);
603
- return editor.settings.forced_plugins === undefined ? keys$$1 : filter(keys$$1, not(curry(contains, editor.settings.forced_plugins)));
604
- };
605
- var pluginLister = function (editor) {
606
- var pluginKeys = getPluginKeys(editor);
607
- var pluginLis = map(pluginKeys, function (key) {
608
- return '<li>' + maybeUrlize(editor, key) + '</li>';
609
- });
610
- var count = pluginLis.length;
611
- var pluginsString = pluginLis.join('');
612
- return '<p><b>' + global$1.translate([
613
- 'Plugins installed ({0}):',
614
- count
615
- ]) + '</b></p>' + '<ul>' + pluginsString + '</ul>';
616
- };
617
- var installedPlugins = function (editor) {
618
- return {
619
- type: 'container',
620
- html: '<div style="overflow-y: auto; overflow-x: hidden; max-height: 230px; height: 230px;" data-mce-tabstop="1" tabindex="-1">' + pluginLister(editor) + '</div>',
621
- flex: 1
610
+ var getVersion = function (major, minor) {
611
+ return major.indexOf('@') === 0 ? 'X.X.X' : major + '.' + minor;
622
612
  };
623
- };
624
- var availablePlugins = function () {
625
- return {
626
- type: 'container',
627
- html: '<div style="padding: 10px; background: #e3e7f4; height: 100%;" data-mce-tabstop="1" tabindex="-1">' + '<p><b>' + global$1.translate('Premium plugins:') + '</b></p>' + '<ul>' + '<li>PowerPaste</li>' + '<li>Spell Checker Pro</li>' + '<li>Accessibility Checker</li>' + '<li>Advanced Code Editor</li>' + '<li>Enhanced Media Embed</li>' + '<li>Link Checker</li>' + '</ul><br />' + '<p style="float: right;"><a href="https://www.tinymce.com/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">' + global$1.translate('Learn more...') + '</a></p>' + '</div>',
628
- flex: 1
613
+ var makeRow = function () {
614
+ var version = getVersion(global$3.majorVersion, global$3.minorVersion);
615
+ var changeLogLink = '<a href="https://www.tinymce.com/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE ' + version + '</a>';
616
+ return [
617
+ {
618
+ type: 'label',
619
+ html: global$1.translate([
620
+ 'You are using {0}',
621
+ changeLogLink
622
+ ])
623
+ },
624
+ {
625
+ type: 'spacer',
626
+ flex: 1
627
+ },
628
+ {
629
+ text: 'Close',
630
+ onclick: function () {
631
+ this.parent().parent().close();
632
+ }
633
+ }
634
+ ];
629
635
  };
630
- };
631
- var makeTab$1 = function (editor) {
632
- return {
633
- title: 'Plugins',
634
- type: 'container',
635
- style: 'overflow-y: auto; overflow-x: hidden;',
636
- layout: 'flex',
637
- padding: 10,
638
- spacing: 10,
639
- items: [
640
- installedPlugins(editor),
641
- availablePlugins()
642
- ]
636
+ var ButtonsRow = { makeRow: makeRow };
637
+
638
+ var open = function (editor, pluginUrl) {
639
+ return function () {
640
+ editor.windowManager.open({
641
+ title: 'Help',
642
+ bodyType: 'tabpanel',
643
+ layout: 'flex',
644
+ body: [
645
+ KeyboardShortcutsTab.makeTab(),
646
+ PluginsTab.makeTab(editor)
647
+ ],
648
+ buttons: ButtonsRow.makeRow(),
649
+ onPostRender: function () {
650
+ var title = this.getEl('title');
651
+ title.innerHTML = '<img src="' + pluginUrl + '/img/logo.png" alt="TinyMCE Logo" style="display: inline-block; width: 200px; height: 50px">';
652
+ }
653
+ });
654
+ };
643
655
  };
644
- };
645
- var $_7c7uswbnjm0ofydt = { makeTab: makeTab$1 };
646
-
647
- var global$3 = tinymce.util.Tools.resolve('tinymce.EditorManager');
656
+ var Dialog = { open: open };
648
657
 
649
- var getVersion = function (major, minor) {
650
- return major.indexOf('@') === 0 ? 'X.X.X' : major + '.' + minor;
651
- };
652
- var makeRow = function () {
653
- var version = getVersion(global$3.majorVersion, global$3.minorVersion);
654
- var changeLogLink = '<a href="https://www.tinymce.com/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE ' + version + '</a>';
655
- return [
656
- {
657
- type: 'label',
658
- html: global$1.translate([
659
- 'You are using {0}',
660
- changeLogLink
661
- ])
662
- },
663
- {
664
- type: 'spacer',
665
- flex: 1
666
- },
667
- {
668
- text: 'Close',
669
- onclick: function () {
670
- this.parent().parent().close();
671
- }
672
- }
673
- ];
674
- };
675
- var $_ccv9ybtjm0ofyej = { makeRow: makeRow };
658
+ var register = function (editor, pluginUrl) {
659
+ editor.addCommand('mceHelp', Dialog.open(editor, pluginUrl));
660
+ };
661
+ var Commands = { register: register };
676
662
 
677
- var open = function (editor, pluginUrl) {
678
- return function () {
679
- editor.windowManager.open({
680
- title: 'Help',
681
- bodyType: 'tabpanel',
682
- layout: 'flex',
683
- body: [
684
- $_bgmpnabfjm0ofycz.makeTab(),
685
- $_7c7uswbnjm0ofydt.makeTab(editor)
686
- ],
687
- buttons: $_ccv9ybtjm0ofyej.makeRow(),
688
- onPostRender: function () {
689
- var title = this.getEl('title');
690
- title.innerHTML = '<img src="' + pluginUrl + '/img/logo.png" alt="TinyMCE Logo" style="display: inline-block; width: 200px; height: 50px">';
691
- }
663
+ var register$1 = function (editor, pluginUrl) {
664
+ editor.addButton('help', {
665
+ icon: 'help',
666
+ onclick: Dialog.open(editor, pluginUrl)
667
+ });
668
+ editor.addMenuItem('help', {
669
+ text: 'Help',
670
+ icon: 'help',
671
+ context: 'help',
672
+ onclick: Dialog.open(editor, pluginUrl)
692
673
  });
693
674
  };
694
- };
695
- var $_dw5f8zbejm0ofycy = { open: open };
696
-
697
- var register = function (editor, pluginUrl) {
698
- editor.addCommand('mceHelp', $_dw5f8zbejm0ofycy.open(editor, pluginUrl));
699
- };
700
- var $_90r24gbdjm0ofycx = { register: register };
675
+ var Buttons = { register: register$1 };
701
676
 
702
- var register$1 = function (editor, pluginUrl) {
703
- editor.addButton('help', {
704
- icon: 'help',
705
- onclick: $_dw5f8zbejm0ofycy.open(editor, pluginUrl)
677
+ global.add('help', function (editor, pluginUrl) {
678
+ Buttons.register(editor, pluginUrl);
679
+ Commands.register(editor, pluginUrl);
680
+ editor.shortcuts.add('Alt+0', 'Open help dialog', 'mceHelp');
706
681
  });
707
- editor.addMenuItem('help', {
708
- text: 'Help',
709
- icon: 'help',
710
- context: 'help',
711
- onclick: $_dw5f8zbejm0ofycy.open(editor, pluginUrl)
712
- });
713
- };
714
- var $_7vf5iebvjm0ofyel = { register: register$1 };
715
-
716
- global.add('help', function (editor, pluginUrl) {
717
- $_7vf5iebvjm0ofyel.register(editor, pluginUrl);
718
- $_90r24gbdjm0ofycx.register(editor, pluginUrl);
719
- editor.shortcuts.add('Alt+0', 'Open help dialog', 'mceHelp');
720
- });
721
- function Plugin () {
722
- }
682
+ function Plugin () {
683
+ }
723
684
 
724
- return Plugin;
685
+ return Plugin;
725
686
 
726
687
  }());
727
688
  })();