bedrock_sass 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (534) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -5
  3. data/assets/_vendor/ace/ace.js +21635 -0
  4. data/assets/_vendor/ace/ext-beautify.js +318 -0
  5. data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
  6. data/assets/_vendor/ace/ext-emmet.js +1226 -0
  7. data/assets/_vendor/ace/ext-error_marker.js +10 -0
  8. data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
  9. data/assets/_vendor/ace/ext-language_tools.js +1997 -0
  10. data/assets/_vendor/ace/ext-linking.js +65 -0
  11. data/assets/_vendor/ace/ext-modelist.js +228 -0
  12. data/assets/_vendor/ace/ext-options.js +750 -0
  13. data/assets/_vendor/ace/ext-rtl.js +110 -0
  14. data/assets/_vendor/ace/ext-searchbox.js +512 -0
  15. data/assets/_vendor/ace/ext-settings_menu.js +771 -0
  16. data/assets/_vendor/ace/ext-spellcheck.js +75 -0
  17. data/assets/_vendor/ace/ext-split.js +208 -0
  18. data/assets/_vendor/ace/ext-static_highlight.js +226 -0
  19. data/assets/_vendor/ace/ext-statusbar.js +57 -0
  20. data/assets/_vendor/ace/ext-textarea.js +567 -0
  21. data/assets/_vendor/ace/ext-themelist.js +67 -0
  22. data/assets/_vendor/ace/ext-whitespace.js +210 -0
  23. data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
  24. data/assets/_vendor/ace/keybinding-vim.js +5673 -0
  25. data/assets/_vendor/ace/mode-abap.js +222 -0
  26. data/assets/_vendor/ace/mode-abc.js +267 -0
  27. data/assets/_vendor/ace/mode-actionscript.js +274 -0
  28. data/assets/_vendor/ace/mode-ada.js +138 -0
  29. data/assets/_vendor/ace/mode-apache_conf.js +363 -0
  30. data/assets/_vendor/ace/mode-applescript.js +279 -0
  31. data/assets/_vendor/ace/mode-asciidoc.js +349 -0
  32. data/assets/_vendor/ace/mode-asl.js +422 -0
  33. data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
  34. data/assets/_vendor/ace/mode-autohotkey.js +243 -0
  35. data/assets/_vendor/ace/mode-batchfile.js +230 -0
  36. data/assets/_vendor/ace/mode-bro.js +334 -0
  37. data/assets/_vendor/ace/mode-c9search.js +294 -0
  38. data/assets/_vendor/ace/mode-c_cpp.js +502 -0
  39. data/assets/_vendor/ace/mode-cirru.js +211 -0
  40. data/assets/_vendor/ace/mode-clojure.js +314 -0
  41. data/assets/_vendor/ace/mode-cobol.js +102 -0
  42. data/assets/_vendor/ace/mode-coffee.js +400 -0
  43. data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
  44. data/assets/_vendor/ace/mode-csharp.js +502 -0
  45. data/assets/_vendor/ace/mode-csound_document.js +3749 -0
  46. data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
  47. data/assets/_vendor/ace/mode-csound_score.js +454 -0
  48. data/assets/_vendor/ace/mode-csp.js +60 -0
  49. data/assets/_vendor/ace/mode-css.js +723 -0
  50. data/assets/_vendor/ace/mode-curly.js +2564 -0
  51. data/assets/_vendor/ace/mode-d.js +520 -0
  52. data/assets/_vendor/ace/mode-dart.js +703 -0
  53. data/assets/_vendor/ace/mode-diff.js +146 -0
  54. data/assets/_vendor/ace/mode-django.js +2594 -0
  55. data/assets/_vendor/ace/mode-dockerfile.js +498 -0
  56. data/assets/_vendor/ace/mode-dot.js +418 -0
  57. data/assets/_vendor/ace/mode-drools.js +496 -0
  58. data/assets/_vendor/ace/mode-edifact.js +165 -0
  59. data/assets/_vendor/ace/mode-eiffel.js +136 -0
  60. data/assets/_vendor/ace/mode-ejs.js +3026 -0
  61. data/assets/_vendor/ace/mode-elixir.js +501 -0
  62. data/assets/_vendor/ace/mode-elm.js +307 -0
  63. data/assets/_vendor/ace/mode-erlang.js +1009 -0
  64. data/assets/_vendor/ace/mode-forth.js +297 -0
  65. data/assets/_vendor/ace/mode-fortran.js +431 -0
  66. data/assets/_vendor/ace/mode-fsharp.js +314 -0
  67. data/assets/_vendor/ace/mode-ftl.js +1192 -0
  68. data/assets/_vendor/ace/mode-gcode.js +94 -0
  69. data/assets/_vendor/ace/mode-gherkin.js +172 -0
  70. data/assets/_vendor/ace/mode-gitignore.js +60 -0
  71. data/assets/_vendor/ace/mode-glsl.js +579 -0
  72. data/assets/_vendor/ace/mode-gobstones.js +929 -0
  73. data/assets/_vendor/ace/mode-golang.js +414 -0
  74. data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
  75. data/assets/_vendor/ace/mode-groovy.js +986 -0
  76. data/assets/_vendor/ace/mode-haml.js +1555 -0
  77. data/assets/_vendor/ace/mode-handlebars.js +2622 -0
  78. data/assets/_vendor/ace/mode-haskell.js +379 -0
  79. data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
  80. data/assets/_vendor/ace/mode-haxe.js +386 -0
  81. data/assets/_vendor/ace/mode-hjson.js +353 -0
  82. data/assets/_vendor/ace/mode-html.js +2509 -0
  83. data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
  84. data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
  85. data/assets/_vendor/ace/mode-ini.js +163 -0
  86. data/assets/_vendor/ace/mode-io.js +253 -0
  87. data/assets/_vendor/ace/mode-jack.js +347 -0
  88. data/assets/_vendor/ace/mode-jade.js +2126 -0
  89. data/assets/_vendor/ace/mode-java.js +975 -0
  90. data/assets/_vendor/ace/mode-javascript.js +797 -0
  91. data/assets/_vendor/ace/mode-json.js +327 -0
  92. data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
  93. data/assets/_vendor/ace/mode-jsp.js +1430 -0
  94. data/assets/_vendor/ace/mode-jssm.js +325 -0
  95. data/assets/_vendor/ace/mode-jsx.js +412 -0
  96. data/assets/_vendor/ace/mode-julia.js +303 -0
  97. data/assets/_vendor/ace/mode-kotlin.js +795 -0
  98. data/assets/_vendor/ace/mode-latex.js +297 -0
  99. data/assets/_vendor/ace/mode-less.js +841 -0
  100. data/assets/_vendor/ace/mode-liquid.js +1193 -0
  101. data/assets/_vendor/ace/mode-lisp.js +112 -0
  102. data/assets/_vendor/ace/mode-livescript.js +280 -0
  103. data/assets/_vendor/ace/mode-logiql.js +317 -0
  104. data/assets/_vendor/ace/mode-lsl.js +343 -0
  105. data/assets/_vendor/ace/mode-lua.js +432 -0
  106. data/assets/_vendor/ace/mode-luapage.js +3007 -0
  107. data/assets/_vendor/ace/mode-lucene.js +87 -0
  108. data/assets/_vendor/ace/mode-makefile.js +410 -0
  109. data/assets/_vendor/ace/mode-markdown.js +3189 -0
  110. data/assets/_vendor/ace/mode-mask.js +1802 -0
  111. data/assets/_vendor/ace/mode-matlab.js +264 -0
  112. data/assets/_vendor/ace/mode-maze.js +291 -0
  113. data/assets/_vendor/ace/mode-mel.js +263 -0
  114. data/assets/_vendor/ace/mode-mixal.js +123 -0
  115. data/assets/_vendor/ace/mode-mushcode.js +681 -0
  116. data/assets/_vendor/ace/mode-mysql.js +168 -0
  117. data/assets/_vendor/ace/mode-nix.js +646 -0
  118. data/assets/_vendor/ace/mode-nsis.js +312 -0
  119. data/assets/_vendor/ace/mode-objectivec.js +739 -0
  120. data/assets/_vendor/ace/mode-ocaml.js +422 -0
  121. data/assets/_vendor/ace/mode-pascal.js +205 -0
  122. data/assets/_vendor/ace/mode-perl.js +380 -0
  123. data/assets/_vendor/ace/mode-pgsql.js +1508 -0
  124. data/assets/_vendor/ace/mode-php.js +13088 -0
  125. data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
  126. data/assets/_vendor/ace/mode-pig.js +310 -0
  127. data/assets/_vendor/ace/mode-plain_text.js +33 -0
  128. data/assets/_vendor/ace/mode-powershell.js +418 -0
  129. data/assets/_vendor/ace/mode-praat.js +478 -0
  130. data/assets/_vendor/ace/mode-prolog.js +371 -0
  131. data/assets/_vendor/ace/mode-properties.js +81 -0
  132. data/assets/_vendor/ace/mode-protobuf.js +592 -0
  133. data/assets/_vendor/ace/mode-puppet.js +370 -0
  134. data/assets/_vendor/ace/mode-python.js +273 -0
  135. data/assets/_vendor/ace/mode-r.js +310 -0
  136. data/assets/_vendor/ace/mode-razor.js +2869 -0
  137. data/assets/_vendor/ace/mode-rdoc.js +243 -0
  138. data/assets/_vendor/ace/mode-red.js +450 -0
  139. data/assets/_vendor/ace/mode-redshift.js +361 -0
  140. data/assets/_vendor/ace/mode-rhtml.js +2806 -0
  141. data/assets/_vendor/ace/mode-rst.js +257 -0
  142. data/assets/_vendor/ace/mode-ruby.js +497 -0
  143. data/assets/_vendor/ace/mode-rust.js +279 -0
  144. data/assets/_vendor/ace/mode-sass.js +441 -0
  145. data/assets/_vendor/ace/mode-scad.js +414 -0
  146. data/assets/_vendor/ace/mode-scala.js +982 -0
  147. data/assets/_vendor/ace/mode-scheme.js +232 -0
  148. data/assets/_vendor/ace/mode-scss.js +606 -0
  149. data/assets/_vendor/ace/mode-sh.js +447 -0
  150. data/assets/_vendor/ace/mode-sjs.js +1014 -0
  151. data/assets/_vendor/ace/mode-slim.js +4736 -0
  152. data/assets/_vendor/ace/mode-smarty.js +2635 -0
  153. data/assets/_vendor/ace/mode-snippets.js +207 -0
  154. data/assets/_vendor/ace/mode-soy_template.js +2847 -0
  155. data/assets/_vendor/ace/mode-space.js +168 -0
  156. data/assets/_vendor/ace/mode-sparql.js +320 -0
  157. data/assets/_vendor/ace/mode-sql.js +111 -0
  158. data/assets/_vendor/ace/mode-sqlserver.js +444 -0
  159. data/assets/_vendor/ace/mode-stylus.js +471 -0
  160. data/assets/_vendor/ace/mode-svg.js +1581 -0
  161. data/assets/_vendor/ace/mode-swift.js +390 -0
  162. data/assets/_vendor/ace/mode-tcl.js +383 -0
  163. data/assets/_vendor/ace/mode-terraform.js +398 -0
  164. data/assets/_vendor/ace/mode-tex.js +159 -0
  165. data/assets/_vendor/ace/mode-text.js +10 -0
  166. data/assets/_vendor/ace/mode-textile.js +150 -0
  167. data/assets/_vendor/ace/mode-toml.js +154 -0
  168. data/assets/_vendor/ace/mode-tsx.js +887 -0
  169. data/assets/_vendor/ace/mode-turtle.js +296 -0
  170. data/assets/_vendor/ace/mode-twig.js +2693 -0
  171. data/assets/_vendor/ace/mode-typescript.js +868 -0
  172. data/assets/_vendor/ace/mode-vala.js +676 -0
  173. data/assets/_vendor/ace/mode-vbscript.js +207 -0
  174. data/assets/_vendor/ace/mode-velocity.js +2790 -0
  175. data/assets/_vendor/ace/mode-verilog.js +119 -0
  176. data/assets/_vendor/ace/mode-vhdl.js +118 -0
  177. data/assets/_vendor/ace/mode-wollok.js +911 -0
  178. data/assets/_vendor/ace/mode-xml.js +677 -0
  179. data/assets/_vendor/ace/mode-xquery.js +4922 -0
  180. data/assets/_vendor/ace/mode-yaml.js +300 -0
  181. data/assets/_vendor/ace/snippets/abap.js +15 -0
  182. data/assets/_vendor/ace/snippets/abc.js +46 -0
  183. data/assets/_vendor/ace/snippets/actionscript.js +172 -0
  184. data/assets/_vendor/ace/snippets/ada.js +15 -0
  185. data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
  186. data/assets/_vendor/ace/snippets/applescript.js +15 -0
  187. data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
  188. data/assets/_vendor/ace/snippets/asl.js +14 -0
  189. data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
  190. data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
  191. data/assets/_vendor/ace/snippets/batchfile.js +15 -0
  192. data/assets/_vendor/ace/snippets/bro.js +15 -0
  193. data/assets/_vendor/ace/snippets/c9search.js +15 -0
  194. data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
  195. data/assets/_vendor/ace/snippets/cirru.js +15 -0
  196. data/assets/_vendor/ace/snippets/clojure.js +105 -0
  197. data/assets/_vendor/ace/snippets/cobol.js +15 -0
  198. data/assets/_vendor/ace/snippets/coffee.js +110 -0
  199. data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
  200. data/assets/_vendor/ace/snippets/csharp.js +15 -0
  201. data/assets/_vendor/ace/snippets/csound_document.js +25 -0
  202. data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
  203. data/assets/_vendor/ace/snippets/csound_score.js +15 -0
  204. data/assets/_vendor/ace/snippets/csp.js +15 -0
  205. data/assets/_vendor/ace/snippets/css.js +982 -0
  206. data/assets/_vendor/ace/snippets/curly.js +15 -0
  207. data/assets/_vendor/ace/snippets/d.js +15 -0
  208. data/assets/_vendor/ace/snippets/dart.js +98 -0
  209. data/assets/_vendor/ace/snippets/diff.js +26 -0
  210. data/assets/_vendor/ace/snippets/django.js +123 -0
  211. data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
  212. data/assets/_vendor/ace/snippets/dot.js +15 -0
  213. data/assets/_vendor/ace/snippets/drools.js +34 -0
  214. data/assets/_vendor/ace/snippets/edifact.js +255 -0
  215. data/assets/_vendor/ace/snippets/eiffel.js +15 -0
  216. data/assets/_vendor/ace/snippets/ejs.js +15 -0
  217. data/assets/_vendor/ace/snippets/elixir.js +15 -0
  218. data/assets/_vendor/ace/snippets/elm.js +15 -0
  219. data/assets/_vendor/ace/snippets/erlang.js +175 -0
  220. data/assets/_vendor/ace/snippets/forth.js +15 -0
  221. data/assets/_vendor/ace/snippets/fortran.js +15 -0
  222. data/assets/_vendor/ace/snippets/fsharp.js +15 -0
  223. data/assets/_vendor/ace/snippets/ftl.js +15 -0
  224. data/assets/_vendor/ace/snippets/gcode.js +15 -0
  225. data/assets/_vendor/ace/snippets/gherkin.js +15 -0
  226. data/assets/_vendor/ace/snippets/gitignore.js +15 -0
  227. data/assets/_vendor/ace/snippets/glsl.js +15 -0
  228. data/assets/_vendor/ace/snippets/gobstones.js +49 -0
  229. data/assets/_vendor/ace/snippets/golang.js +15 -0
  230. data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
  231. data/assets/_vendor/ace/snippets/groovy.js +15 -0
  232. data/assets/_vendor/ace/snippets/haml.js +35 -0
  233. data/assets/_vendor/ace/snippets/handlebars.js +15 -0
  234. data/assets/_vendor/ace/snippets/haskell.js +97 -0
  235. data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
  236. data/assets/_vendor/ace/snippets/haxe.js +15 -0
  237. data/assets/_vendor/ace/snippets/hjson.js +15 -0
  238. data/assets/_vendor/ace/snippets/html.js +870 -0
  239. data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
  240. data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
  241. data/assets/_vendor/ace/snippets/ini.js +15 -0
  242. data/assets/_vendor/ace/snippets/io.js +77 -0
  243. data/assets/_vendor/ace/snippets/jack.js +15 -0
  244. data/assets/_vendor/ace/snippets/jade.js +15 -0
  245. data/assets/_vendor/ace/snippets/java.js +255 -0
  246. data/assets/_vendor/ace/snippets/javascript.js +210 -0
  247. data/assets/_vendor/ace/snippets/json.js +15 -0
  248. data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
  249. data/assets/_vendor/ace/snippets/jsp.js +114 -0
  250. data/assets/_vendor/ace/snippets/jssm.js +15 -0
  251. data/assets/_vendor/ace/snippets/jsx.js +15 -0
  252. data/assets/_vendor/ace/snippets/julia.js +15 -0
  253. data/assets/_vendor/ace/snippets/kotlin.js +15 -0
  254. data/assets/_vendor/ace/snippets/latex.js +15 -0
  255. data/assets/_vendor/ace/snippets/less.js +15 -0
  256. data/assets/_vendor/ace/snippets/liquid.js +15 -0
  257. data/assets/_vendor/ace/snippets/lisp.js +15 -0
  258. data/assets/_vendor/ace/snippets/livescript.js +15 -0
  259. data/assets/_vendor/ace/snippets/logiql.js +15 -0
  260. data/assets/_vendor/ace/snippets/lsl.js +1247 -0
  261. data/assets/_vendor/ace/snippets/lua.js +36 -0
  262. data/assets/_vendor/ace/snippets/luapage.js +15 -0
  263. data/assets/_vendor/ace/snippets/lucene.js +15 -0
  264. data/assets/_vendor/ace/snippets/makefile.js +19 -0
  265. data/assets/_vendor/ace/snippets/markdown.js +103 -0
  266. data/assets/_vendor/ace/snippets/mask.js +15 -0
  267. data/assets/_vendor/ace/snippets/matlab.js +15 -0
  268. data/assets/_vendor/ace/snippets/maze.js +24 -0
  269. data/assets/_vendor/ace/snippets/mel.js +15 -0
  270. data/assets/_vendor/ace/snippets/mixal.js +15 -0
  271. data/assets/_vendor/ace/snippets/mushcode.js +15 -0
  272. data/assets/_vendor/ace/snippets/mysql.js +15 -0
  273. data/assets/_vendor/ace/snippets/nix.js +15 -0
  274. data/assets/_vendor/ace/snippets/nsis.js +15 -0
  275. data/assets/_vendor/ace/snippets/objectivec.js +15 -0
  276. data/assets/_vendor/ace/snippets/ocaml.js +15 -0
  277. data/assets/_vendor/ace/snippets/pascal.js +15 -0
  278. data/assets/_vendor/ace/snippets/perl.js +362 -0
  279. data/assets/_vendor/ace/snippets/pgsql.js +15 -0
  280. data/assets/_vendor/ace/snippets/php.js +398 -0
  281. data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
  282. data/assets/_vendor/ace/snippets/pig.js +15 -0
  283. data/assets/_vendor/ace/snippets/plain_text.js +15 -0
  284. data/assets/_vendor/ace/snippets/powershell.js +15 -0
  285. data/assets/_vendor/ace/snippets/praat.js +15 -0
  286. data/assets/_vendor/ace/snippets/prolog.js +15 -0
  287. data/assets/_vendor/ace/snippets/properties.js +15 -0
  288. data/assets/_vendor/ace/snippets/protobuf.js +15 -0
  289. data/assets/_vendor/ace/snippets/puppet.js +15 -0
  290. data/assets/_vendor/ace/snippets/python.js +173 -0
  291. data/assets/_vendor/ace/snippets/r.js +136 -0
  292. data/assets/_vendor/ace/snippets/razor.js +18 -0
  293. data/assets/_vendor/ace/snippets/rdoc.js +15 -0
  294. data/assets/_vendor/ace/snippets/red.js +15 -0
  295. data/assets/_vendor/ace/snippets/redshift.js +15 -0
  296. data/assets/_vendor/ace/snippets/rhtml.js +15 -0
  297. data/assets/_vendor/ace/snippets/rst.js +37 -0
  298. data/assets/_vendor/ace/snippets/ruby.js +943 -0
  299. data/assets/_vendor/ace/snippets/rust.js +15 -0
  300. data/assets/_vendor/ace/snippets/sass.js +15 -0
  301. data/assets/_vendor/ace/snippets/scad.js +15 -0
  302. data/assets/_vendor/ace/snippets/scala.js +15 -0
  303. data/assets/_vendor/ace/snippets/scheme.js +15 -0
  304. data/assets/_vendor/ace/snippets/scss.js +15 -0
  305. data/assets/_vendor/ace/snippets/sh.js +98 -0
  306. data/assets/_vendor/ace/snippets/sjs.js +15 -0
  307. data/assets/_vendor/ace/snippets/slim.js +15 -0
  308. data/assets/_vendor/ace/snippets/smarty.js +15 -0
  309. data/assets/_vendor/ace/snippets/snippets.js +24 -0
  310. data/assets/_vendor/ace/snippets/soy_template.js +15 -0
  311. data/assets/_vendor/ace/snippets/space.js +15 -0
  312. data/assets/_vendor/ace/snippets/sparql.js +15 -0
  313. data/assets/_vendor/ace/snippets/sql.js +41 -0
  314. data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
  315. data/assets/_vendor/ace/snippets/stylus.js +15 -0
  316. data/assets/_vendor/ace/snippets/svg.js +15 -0
  317. data/assets/_vendor/ace/snippets/swift.js +15 -0
  318. data/assets/_vendor/ace/snippets/tcl.js +107 -0
  319. data/assets/_vendor/ace/snippets/terraform.js +15 -0
  320. data/assets/_vendor/ace/snippets/tex.js +205 -0
  321. data/assets/_vendor/ace/snippets/text.js +15 -0
  322. data/assets/_vendor/ace/snippets/textile.js +45 -0
  323. data/assets/_vendor/ace/snippets/toml.js +15 -0
  324. data/assets/_vendor/ace/snippets/tsx.js +15 -0
  325. data/assets/_vendor/ace/snippets/turtle.js +15 -0
  326. data/assets/_vendor/ace/snippets/twig.js +15 -0
  327. data/assets/_vendor/ace/snippets/typescript.js +15 -0
  328. data/assets/_vendor/ace/snippets/vala.js +201 -0
  329. data/assets/_vendor/ace/snippets/vbscript.js +15 -0
  330. data/assets/_vendor/ace/snippets/velocity.js +44 -0
  331. data/assets/_vendor/ace/snippets/verilog.js +15 -0
  332. data/assets/_vendor/ace/snippets/vhdl.js +15 -0
  333. data/assets/_vendor/ace/snippets/wollok.js +99 -0
  334. data/assets/_vendor/ace/snippets/xml.js +15 -0
  335. data/assets/_vendor/ace/snippets/xquery.js +76 -0
  336. data/assets/_vendor/ace/snippets/yaml.js +15 -0
  337. data/assets/_vendor/ace/theme-ambiance.js +185 -0
  338. data/assets/_vendor/ace/theme-chaos.js +164 -0
  339. data/assets/_vendor/ace/theme-chrome.js +136 -0
  340. data/assets/_vendor/ace/theme-clouds.js +103 -0
  341. data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
  342. data/assets/_vendor/ace/theme-cobalt.js +121 -0
  343. data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
  344. data/assets/_vendor/ace/theme-dawn.js +116 -0
  345. data/assets/_vendor/ace/theme-dracula.js +136 -0
  346. data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
  347. data/assets/_vendor/ace/theme-eclipse.js +106 -0
  348. data/assets/_vendor/ace/theme-github.js +110 -0
  349. data/assets/_vendor/ace/theme-gob.js +120 -0
  350. data/assets/_vendor/ace/theme-gruvbox.js +90 -0
  351. data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
  352. data/assets/_vendor/ace/theme-iplastic.js +129 -0
  353. data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
  354. data/assets/_vendor/ace/theme-kr_theme.js +112 -0
  355. data/assets/_vendor/ace/theme-kuroir.js +69 -0
  356. data/assets/_vendor/ace/theme-merbivore.js +103 -0
  357. data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
  358. data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
  359. data/assets/_vendor/ace/theme-monokai.js +113 -0
  360. data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
  361. data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
  362. data/assets/_vendor/ace/theme-solarized_light.js +99 -0
  363. data/assets/_vendor/ace/theme-sqlserver.js +146 -0
  364. data/assets/_vendor/ace/theme-terminal.js +122 -0
  365. data/assets/_vendor/ace/theme-textmate.js +138 -0
  366. data/assets/_vendor/ace/theme-tomorrow.js +116 -0
  367. data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
  368. data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
  369. data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
  370. data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
  371. data/assets/_vendor/ace/theme-twilight.js +117 -0
  372. data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
  373. data/assets/_vendor/ace/theme-xcode.js +96 -0
  374. data/assets/_vendor/ace/worker-coffee.js +2165 -0
  375. data/assets/_vendor/ace/worker-css.js +8764 -0
  376. data/assets/_vendor/ace/worker-html.js +11614 -0
  377. data/assets/_vendor/ace/worker-javascript.js +12491 -0
  378. data/assets/_vendor/ace/worker-json.js +2396 -0
  379. data/assets/_vendor/ace/worker-lua.js +3637 -0
  380. data/assets/_vendor/ace/worker-php.js +4313 -0
  381. data/assets/_vendor/ace/worker-xml.js +3899 -0
  382. data/assets/_vendor/ace/worker-xquery.js +70688 -0
  383. data/assets/_vendor/motion-ui/_settings.scss +1 -0
  384. data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
  385. data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
  386. data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
  387. data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
  388. data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
  389. data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
  390. data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
  391. data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
  392. data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
  393. data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
  394. data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
  395. data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
  396. data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
  397. data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
  398. data/assets/_vendor/motion-ui/util/_args.scss +2 -2
  399. data/assets/_vendor/motion-ui/util/_function.scss +94 -0
  400. data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
  401. data/assets/_vendor/motion-ui/util/_series.scss +20 -17
  402. data/assets/_vendor/motion-ui/util/_string.scss +36 -0
  403. data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
  404. data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
  405. data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
  406. data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
  407. data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
  408. data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
  409. data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
  410. data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
  411. data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
  412. data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
  413. data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
  414. data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
  415. data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
  416. data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
  417. data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
  418. data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
  419. data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
  420. data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
  421. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
  422. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
  423. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
  424. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
  425. data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
  426. data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
  427. data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
  428. data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
  429. data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
  430. data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
  431. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
  432. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
  433. data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
  434. data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
  435. data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
  436. data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
  437. data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
  438. data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
  439. data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
  440. data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
  441. data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
  442. data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
  443. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
  444. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
  445. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
  446. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
  447. data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
  448. data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
  449. data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
  450. data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
  451. data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
  452. data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
  453. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
  454. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
  455. data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
  456. data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
  457. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
  458. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
  459. data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
  460. data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
  461. data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
  462. data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
  463. data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
  464. data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
  465. data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
  466. data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
  467. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
  468. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  469. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
  470. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
  471. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
  472. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
  473. data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
  474. data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
  475. data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
  476. data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
  477. data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
  478. data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
  479. data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
  480. data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
  481. data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
  482. data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
  483. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
  484. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
  485. data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
  486. data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
  487. data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
  488. data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
  489. data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
  490. data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
  491. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
  492. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
  493. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
  494. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
  495. data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
  496. data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
  497. data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
  498. data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
  499. data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
  500. data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
  501. data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
  502. data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
  503. data/assets/_vendor/tinymce/tinymce.js +25087 -42606
  504. data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
  505. data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
  506. data/assets/bedrock/js/bedrock.js +1 -71697
  507. data/assets/bedrock/scss/_bedrock-components.scss +20 -0
  508. data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
  509. data/assets/bedrock/scss/_foundation-settings.scss +4 -2
  510. data/assets/bedrock/scss/components/ace-editor.scss +21 -0
  511. data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
  512. data/assets/bedrock/scss/components/date-picker.scss +146 -0
  513. data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
  514. data/assets/bedrock/scss/components/file-input.scss +7 -0
  515. data/assets/bedrock/scss/components/file-preview.scss +36 -0
  516. data/assets/bedrock/scss/components/frame-embed.scss +23 -0
  517. data/assets/bedrock/scss/components/global.scss +27 -0
  518. data/assets/bedrock/scss/components/helper-classes.scss +1 -0
  519. data/assets/bedrock/scss/components/icon-box.scss +38 -0
  520. data/assets/bedrock/scss/components/item-list.scss +66 -0
  521. data/assets/bedrock/scss/components/lists.scss +58 -0
  522. data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
  523. data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
  524. data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
  525. data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
  526. data/assets/bedrock/scss/components/select-box.scss +1 -0
  527. data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
  528. data/assets/bedrock/scss/components/textarea.scss +14 -2
  529. data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
  530. data/lib/bedrock_sass.rb +5 -0
  531. data/lib/bedrock_sass/version.rb +1 -1
  532. data/lib/tasks/before_assets_precompile.rake +1 -0
  533. metadata +395 -4
  534. data/CODE_OF_CONDUCT.md +0 -74
@@ -1 +1 @@
1
- !function(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};g("1",[],function(){var a=function(b){var c=b,d=function(){return c},e=function(a){c=a},f=function(){return a(d())};return{get:d,set:e,clone:f}};return a}),h("6",tinymce.util.Tools.resolve),g("2",["6"],function(a){return a("tinymce.PluginManager")}),h("c",setInterval),g("d",["6"],function(a){return a("tinymce.util.LocalStorage")}),g("a",["6"],function(a){return a("tinymce.util.Tools")}),g("e",[],function(){var a=function(a){return a.fire("RestoreDraft")},b=function(a){return a.fire("StoreDraft")},c=function(a){return a.fire("RemoveDraft")};return{fireRestoreDraft:a,fireStoreDraft:b,fireRemoveDraft:c}}),h("f",document),g("g",[],function(){var a=function(a,b){var c={s:1e3,m:6e4};return a=/^(\d+)([ms]?)$/.exec(""+(a||b)),(a[2]?c[a[2]]:1)*parseInt(a,10)};return{parse:a}}),g("b",["f","g"],function(a,b){var c=function(a){return a.getParam("autosave_ask_before_unload",!0)},d=function(b){var c=b.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-");return c=c.replace(/\{path\}/g,a.location.pathname),c=c.replace(/\{query\}/g,a.location.search),c=c.replace(/\{hash\}/g,a.location.hash),c=c.replace(/\{id\}/g,b.id)},e=function(a){return a.getParam("autosave_restore_when_empty",!1)},f=function(a){return b.parse(a.settings.autosave_interval,"30s")},g=function(a){return b.parse(a.settings.autosave_retention,"20m")};return{shouldAskBeforeUnload:c,getAutoSavePrefix:d,shouldRestoreWhenEmpty:e,getAutoSaveInterval:f,getAutoSaveRetention:g}}),g("7",["c","d","a","e","b"],function(a,b,c,d,e){var f=function(a,b){var d=a.settings.forced_root_block;return b=c.trim("undefined"==typeof b?a.getBody().innerHTML:b),""===b||new RegExp("^<"+d+"[^>]*>((\xa0|&nbsp;|[ \t]|<br[^>]*>)+?|)</"+d+">|<br>$","i").test(b)},g=function(a){var c=parseInt(b.getItem(e.getAutoSavePrefix(a)+"time"),10)||0;return!((new Date).getTime()-c>e.getAutoSaveRetention(a))||(h(a,!1),!1)},h=function(a,c){var f=e.getAutoSavePrefix(a);b.removeItem(f+"draft"),b.removeItem(f+"time"),c!==!1&&d.fireRemoveDraft(a)},i=function(a){var c=e.getAutoSavePrefix(a);!f(a)&&a.isDirty()&&(b.setItem(c+"draft",a.getContent({format:"raw",no_events:!0})),b.setItem(c+"time",(new Date).getTime()),d.fireStoreDraft(a))},j=function(a){var c=e.getAutoSavePrefix(a);g(a)&&(a.setContent(b.getItem(c+"draft"),{format:"raw"}),d.fireRestoreDraft(a))},k=function(b,c){var d=e.getAutoSaveInterval(b);c.get()||(a(function(){b.removed||i(b)},d),c.set(!0))},l=function(a){a.undoManager.transact(function(){j(a),h(a)}),a.focus()};return{isEmpty:f,hasDraft:g,removeDraft:h,storeDraft:i,restoreDraft:j,startStoreDraft:k,restoreLastDraft:l}}),g("3",["7"],function(a){var b=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return a.apply(null,[b].concat(c))}},c=function(c){return{hasDraft:b(a.hasDraft,c),storeDraft:b(a.storeDraft,c),restoreDraft:b(a.restoreDraft,c),removeDraft:b(a.removeDraft,c),isEmpty:b(a.isEmpty,c)}};return{get:c}}),h("8",window),g("9",["6"],function(a){return a("tinymce.EditorManager")}),g("4",["8","9","a","b"],function(a,b,c,d){b._beforeUnloadHandler=function(){var a;return c.each(b.get(),function(b){b.plugins.autosave&&b.plugins.autosave.storeDraft(),!a&&b.isDirty()&&d.shouldAskBeforeUnload(b)&&(a=b.translate("You have unsaved changes are you sure you want to navigate away?"))}),a};var e=function(c){a.onbeforeunload=b._beforeUnloadHandler};return{setup:e}}),g("5",["7"],function(a){var b=function(b,c){return function(d){var e=d.control;e.disabled(!a.hasDraft(b)),b.on("StoreDraft RestoreDraft RemoveDraft",function(){e.disabled(!a.hasDraft(b))}),a.startStoreDraft(b,c)}},c=function(c,d){c.addButton("restoredraft",{title:"Restore last draft",onclick:function(){a.restoreLastDraft(c)},onPostRender:b(c,d)}),c.addMenuItem("restoredraft",{text:"Restore last draft",onclick:function(){a.restoreLastDraft(c)},onPostRender:b(c,d),context:"file"})};return{register:c}}),g("0",["1","2","3","4","5"],function(a,b,c,d,e){return b.add("autosave",function(b){var f=a(!1);return d.setup(b),e.register(b,f),c.get(b)}),function(){}}),d("0")()}();
1
+ !function(){"use strict";var n=function(t){var e=t,r=function(){return e};return{get:r,set:function(t){e=t},clone:function(){return n(r())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(t){return t.fire("RestoreDraft")},i=function(t){return t.fire("StoreDraft")},s=function(t){return t.fire("RemoveDraft")},e=function(t,e){return((t=/^(\d+)([ms]?)$/.exec(""+(t||e)))[2]?{s:1e3,m:6e4}[t[2]]:1)*parseInt(t,10)},u=function(t){return t.getParam("autosave_ask_before_unload",!0)},f=function(t){var e=t.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-");return e=(e=(e=(e=e.replace(/\{path\}/g,document.location.pathname)).replace(/\{query\}/g,document.location.search)).replace(/\{hash\}/g,document.location.hash)).replace(/\{id\}/g,t.id)},c=function(t){return e(t.settings.autosave_interval,"30s")},l=function(t){return e(t.settings.autosave_retention,"20m")},m=function(t,e){var r=t.settings.forced_root_block;return""===(e=o.trim(void 0===e?t.getBody().innerHTML:e))||new RegExp("^<"+r+"[^>]*>((\xa0|&nbsp;|[ \t]|<br[^>]*>)+?|)</"+r+">|<br>$","i").test(e)},v=function(t){var e=parseInt(a.getItem(f(t)+"time"),10)||0;return!((new Date).getTime()-e>l(t)&&(d(t,!1),1))},d=function(t,e){var r=f(t);a.removeItem(r+"draft"),a.removeItem(r+"time"),!1!==e&&s(t)},D=function(t){var e=f(t);!m(t)&&t.isDirty()&&(a.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),a.setItem(e+"time",(new Date).getTime().toString()),i(t))},g=function(t){var e=f(t);v(t)&&(t.setContent(a.getItem(e+"draft"),{format:"raw"}),r(t))},y={isEmpty:m,hasDraft:v,removeDraft:d,storeDraft:D,restoreDraft:g,startStoreDraft:function(t,e){var r=c(t);e.get()||(setInterval(function(){t.removed||D(t)},r),e.set(!0))},restoreLastDraft:function(t){t.undoManager.transact(function(){g(t),d(t)}),t.focus()}},p=function(e,r){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[r].concat(t))}},h=function(t){return{hasDraft:p(y.hasDraft,t),storeDraft:p(y.storeDraft,t),restoreDraft:p(y.restoreDraft,t),removeDraft:p(y.removeDraft,t),isEmpty:p(y.isEmpty,t)}},_=tinymce.util.Tools.resolve("tinymce.EditorManager");_._beforeUnloadHandler=function(){var e;return o.each(_.get(),function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&u(t)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e};var b=function(t){window.onbeforeunload=_._beforeUnloadHandler},I=function(r,n){return function(t){var e=t.control;e.disabled(!y.hasDraft(r)),r.on("StoreDraft RestoreDraft RemoveDraft",function(){e.disabled(!y.hasDraft(r))}),y.startStoreDraft(r,n)}},w=function(t,e){t.addButton("restoredraft",{title:"Restore last draft",onclick:function(){y.restoreLastDraft(t)},onPostRender:I(t,e)}),t.addMenuItem("restoredraft",{text:"Restore last draft",onclick:function(){y.restoreLastDraft(t)},onPostRender:I(t,e),context:"file"})};t.add("autosave",function(t){var e=n(!1);return b(t),w(t,e),h(t)})}();
@@ -1,264 +1,101 @@
1
1
  (function () {
2
+ var bbcode = (function () {
3
+ 'use strict';
2
4
 
3
- var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
5
+ var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
4
6
 
5
- // Used when there is no 'main' module.
6
- // The name is probably (hopefully) unique so minification removes for releases.
7
- var register_3795 = function (id) {
8
- var module = dem(id);
9
- var fragments = id.split('.');
10
- var target = Function('return this;')();
11
- for (var i = 0; i < fragments.length - 1; ++i) {
12
- if (target[fragments[i]] === undefined)
13
- target[fragments[i]] = {};
14
- target = target[fragments[i]];
15
- }
16
- target[fragments[fragments.length - 1]] = module;
17
- };
18
-
19
- var instantiate = function (id) {
20
- var actual = defs[id];
21
- var dependencies = actual.deps;
22
- var definition = actual.defn;
23
- var len = dependencies.length;
24
- var instances = new Array(len);
25
- for (var i = 0; i < len; ++i)
26
- instances[i] = dem(dependencies[i]);
27
- var defResult = definition.apply(null, instances);
28
- if (defResult === undefined)
29
- throw 'module [' + id + '] returned undefined';
30
- actual.instance = defResult;
31
- };
32
-
33
- var def = function (id, dependencies, definition) {
34
- if (typeof id !== 'string')
35
- throw 'module id must be a string';
36
- else if (dependencies === undefined)
37
- throw 'no dependencies for ' + id;
38
- else if (definition === undefined)
39
- throw 'no definition function for ' + id;
40
- defs[id] = {
41
- deps: dependencies,
42
- defn: definition,
43
- instance: undefined
44
- };
45
- };
46
-
47
- var dem = function (id) {
48
- var actual = defs[id];
49
- if (actual === undefined)
50
- throw 'module [' + id + '] was undefined';
51
- else if (actual.instance === undefined)
52
- instantiate(id);
53
- return actual.instance;
54
- };
55
-
56
- var req = function (ids, callback) {
57
- var len = ids.length;
58
- var instances = new Array(len);
59
- for (var i = 0; i < len; ++i)
60
- instances[i] = dem(ids[i]);
61
- callback.apply(null, instances);
62
- };
63
-
64
- var ephox = {};
65
-
66
- ephox.bolt = {
67
- module: {
68
- api: {
69
- define: def,
70
- require: req,
71
- demand: dem
72
- }
73
- }
74
- };
75
-
76
- var define = def;
77
- var require = req;
78
- var demand = dem;
79
- // this helps with minification when using a lot of global references
80
- var defineGlobal = function (id, ref) {
81
- define(id, [], function () { return ref; });
82
- };
83
- /*jsc
84
- ["tinymce.plugins.bbcode.Plugin","tinymce.core.PluginManager","tinymce.plugins.bbcode.core.Convert","global!tinymce.util.Tools.resolve","tinymce.core.util.Tools"]
85
- jsc*/
86
- defineGlobal("global!tinymce.util.Tools.resolve", tinymce.util.Tools.resolve);
87
- /**
88
- * ResolveGlobal.js
89
- *
90
- * Released under LGPL License.
91
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
92
- *
93
- * License: http://www.tinymce.com/license
94
- * Contributing: http://www.tinymce.com/contributing
95
- */
96
-
97
- define(
98
- 'tinymce.core.PluginManager',
99
- [
100
- 'global!tinymce.util.Tools.resolve'
101
- ],
102
- function (resolve) {
103
- return resolve('tinymce.PluginManager');
104
- }
105
- );
106
-
107
- /**
108
- * ResolveGlobal.js
109
- *
110
- * Released under LGPL License.
111
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
112
- *
113
- * License: http://www.tinymce.com/license
114
- * Contributing: http://www.tinymce.com/contributing
115
- */
116
-
117
- define(
118
- 'tinymce.core.util.Tools',
119
- [
120
- 'global!tinymce.util.Tools.resolve'
121
- ],
122
- function (resolve) {
123
- return resolve('tinymce.util.Tools');
124
- }
125
- );
7
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
126
8
 
127
- /**
128
- * Convert.js
129
- *
130
- * Released under LGPL License.
131
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
132
- *
133
- * License: http://www.tinymce.com/license
134
- * Contributing: http://www.tinymce.com/contributing
135
- */
136
-
137
- define(
138
- 'tinymce.plugins.bbcode.core.Convert',
139
- [
140
- 'tinymce.core.util.Tools'
141
- ],
142
- function (Tools) {
143
- var html2bbcode = function (s) {
144
- s = Tools.trim(s);
145
-
146
- var rep = function (re, str) {
147
- s = s.replace(re, str);
148
- };
149
-
150
- // example: <strong> to [b]
151
- rep(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi, "[url=$1]$2[/url]");
152
- rep(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi, "[code][color=$1]$2[/color][/code]");
153
- rep(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi, "[quote][color=$1]$2[/color][/quote]");
154
- rep(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, "[code][color=$1]$2[/color][/code]");
155
- rep(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, "[quote][color=$1]$2[/color][/quote]");
156
- rep(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi, "[color=$1]$2[/color]");
157
- rep(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, "[color=$1]$2[/color]");
158
- rep(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi, "[size=$1]$2[/size]");
159
- rep(/<font>(.*?)<\/font>/gi, "$1");
160
- rep(/<img.*?src=\"(.*?)\".*?\/>/gi, "[img]$1[/img]");
161
- rep(/<span class=\"codeStyle\">(.*?)<\/span>/gi, "[code]$1[/code]");
162
- rep(/<span class=\"quoteStyle\">(.*?)<\/span>/gi, "[quote]$1[/quote]");
163
- rep(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi, "[code][b]$1[/b][/code]");
164
- rep(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi, "[quote][b]$1[/b][/quote]");
165
- rep(/<em class=\"codeStyle\">(.*?)<\/em>/gi, "[code][i]$1[/i][/code]");
166
- rep(/<em class=\"quoteStyle\">(.*?)<\/em>/gi, "[quote][i]$1[/i][/quote]");
167
- rep(/<u class=\"codeStyle\">(.*?)<\/u>/gi, "[code][u]$1[/u][/code]");
168
- rep(/<u class=\"quoteStyle\">(.*?)<\/u>/gi, "[quote][u]$1[/u][/quote]");
169
- rep(/<\/(strong|b)>/gi, "[/b]");
170
- rep(/<(strong|b)>/gi, "[b]");
171
- rep(/<\/(em|i)>/gi, "[/i]");
172
- rep(/<(em|i)>/gi, "[i]");
173
- rep(/<\/u>/gi, "[/u]");
174
- rep(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi, "[u]$1[/u]");
175
- rep(/<u>/gi, "[u]");
176
- rep(/<blockquote[^>]*>/gi, "[quote]");
177
- rep(/<\/blockquote>/gi, "[/quote]");
178
- rep(/<br \/>/gi, "\n");
179
- rep(/<br\/>/gi, "\n");
180
- rep(/<br>/gi, "\n");
181
- rep(/<p>/gi, "");
182
- rep(/<\/p>/gi, "\n");
183
- rep(/&nbsp;|\u00a0/gi, " ");
184
- rep(/&quot;/gi, "\"");
185
- rep(/&lt;/gi, "<");
186
- rep(/&gt;/gi, ">");
187
- rep(/&amp;/gi, "&");
188
-
189
- return s;
9
+ var html2bbcode = function (s) {
10
+ s = global$1.trim(s);
11
+ var rep = function (re, str) {
12
+ s = s.replace(re, str);
190
13
  };
191
-
192
- var bbcode2html = function (s) {
193
- s = Tools.trim(s);
194
-
195
- var rep = function (re, str) {
196
- s = s.replace(re, str);
197
- };
198
-
199
- // example: [b] to <strong>
200
- rep(/\n/gi, "<br />");
201
- rep(/\[b\]/gi, "<strong>");
202
- rep(/\[\/b\]/gi, "</strong>");
203
- rep(/\[i\]/gi, "<em>");
204
- rep(/\[\/i\]/gi, "</em>");
205
- rep(/\[u\]/gi, "<u>");
206
- rep(/\[\/u\]/gi, "</u>");
207
- rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi, "<a href=\"$1\">$2</a>");
208
- rep(/\[url\](.*?)\[\/url\]/gi, "<a href=\"$1\">$1</a>");
209
- rep(/\[img\](.*?)\[\/img\]/gi, "<img src=\"$1\" />");
210
- rep(/\[color=(.*?)\](.*?)\[\/color\]/gi, "<font color=\"$1\">$2</font>");
211
- rep(/\[code\](.*?)\[\/code\]/gi, "<span class=\"codeStyle\">$1</span>&nbsp;");
212
- rep(/\[quote.*?\](.*?)\[\/quote\]/gi, "<span class=\"quoteStyle\">$1</span>&nbsp;");
213
-
214
- return s;
14
+ rep(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi, '[url=$1]$2[/url]');
15
+ rep(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi, '[code][color=$1]$2[/color][/code]');
16
+ rep(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi, '[quote][color=$1]$2[/color][/quote]');
17
+ rep(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, '[code][color=$1]$2[/color][/code]');
18
+ rep(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, '[quote][color=$1]$2[/color][/quote]');
19
+ rep(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi, '[color=$1]$2[/color]');
20
+ rep(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, '[color=$1]$2[/color]');
21
+ rep(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi, '[size=$1]$2[/size]');
22
+ rep(/<font>(.*?)<\/font>/gi, '$1');
23
+ rep(/<img.*?src=\"(.*?)\".*?\/>/gi, '[img]$1[/img]');
24
+ rep(/<span class=\"codeStyle\">(.*?)<\/span>/gi, '[code]$1[/code]');
25
+ rep(/<span class=\"quoteStyle\">(.*?)<\/span>/gi, '[quote]$1[/quote]');
26
+ rep(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi, '[code][b]$1[/b][/code]');
27
+ rep(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi, '[quote][b]$1[/b][/quote]');
28
+ rep(/<em class=\"codeStyle\">(.*?)<\/em>/gi, '[code][i]$1[/i][/code]');
29
+ rep(/<em class=\"quoteStyle\">(.*?)<\/em>/gi, '[quote][i]$1[/i][/quote]');
30
+ rep(/<u class=\"codeStyle\">(.*?)<\/u>/gi, '[code][u]$1[/u][/code]');
31
+ rep(/<u class=\"quoteStyle\">(.*?)<\/u>/gi, '[quote][u]$1[/u][/quote]');
32
+ rep(/<\/(strong|b)>/gi, '[/b]');
33
+ rep(/<(strong|b)>/gi, '[b]');
34
+ rep(/<\/(em|i)>/gi, '[/i]');
35
+ rep(/<(em|i)>/gi, '[i]');
36
+ rep(/<\/u>/gi, '[/u]');
37
+ rep(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi, '[u]$1[/u]');
38
+ rep(/<u>/gi, '[u]');
39
+ rep(/<blockquote[^>]*>/gi, '[quote]');
40
+ rep(/<\/blockquote>/gi, '[/quote]');
41
+ rep(/<br \/>/gi, '\n');
42
+ rep(/<br\/>/gi, '\n');
43
+ rep(/<br>/gi, '\n');
44
+ rep(/<p>/gi, '');
45
+ rep(/<\/p>/gi, '\n');
46
+ rep(/&nbsp;|\u00a0/gi, ' ');
47
+ rep(/&quot;/gi, '"');
48
+ rep(/&lt;/gi, '<');
49
+ rep(/&gt;/gi, '>');
50
+ rep(/&amp;/gi, '&');
51
+ return s;
52
+ };
53
+ var bbcode2html = function (s) {
54
+ s = global$1.trim(s);
55
+ var rep = function (re, str) {
56
+ s = s.replace(re, str);
215
57
  };
58
+ rep(/\n/gi, '<br />');
59
+ rep(/\[b\]/gi, '<strong>');
60
+ rep(/\[\/b\]/gi, '</strong>');
61
+ rep(/\[i\]/gi, '<em>');
62
+ rep(/\[\/i\]/gi, '</em>');
63
+ rep(/\[u\]/gi, '<u>');
64
+ rep(/\[\/u\]/gi, '</u>');
65
+ rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi, '<a href="$1">$2</a>');
66
+ rep(/\[url\](.*?)\[\/url\]/gi, '<a href="$1">$1</a>');
67
+ rep(/\[img\](.*?)\[\/img\]/gi, '<img src="$1" />');
68
+ rep(/\[color=(.*?)\](.*?)\[\/color\]/gi, '<font color="$1">$2</font>');
69
+ rep(/\[code\](.*?)\[\/code\]/gi, '<span class="codeStyle">$1</span>&nbsp;');
70
+ rep(/\[quote.*?\](.*?)\[\/quote\]/gi, '<span class="quoteStyle">$1</span>&nbsp;');
71
+ return s;
72
+ };
73
+ var $_b7wb9k9jjm0ofy57 = {
74
+ html2bbcode: html2bbcode,
75
+ bbcode2html: bbcode2html
76
+ };
216
77
 
78
+ global.add('bbcode', function () {
217
79
  return {
218
- html2bbcode: html2bbcode,
219
- bbcode2html: bbcode2html
80
+ init: function (editor) {
81
+ editor.on('beforeSetContent', function (e) {
82
+ e.content = $_b7wb9k9jjm0ofy57.bbcode2html(e.content);
83
+ });
84
+ editor.on('postProcess', function (e) {
85
+ if (e.set) {
86
+ e.content = $_b7wb9k9jjm0ofy57.bbcode2html(e.content);
87
+ }
88
+ if (e.get) {
89
+ e.content = $_b7wb9k9jjm0ofy57.html2bbcode(e.content);
90
+ }
91
+ });
92
+ }
220
93
  };
94
+ });
95
+ function Plugin () {
221
96
  }
222
- );
223
- /**
224
- * Plugin.js
225
- *
226
- * Released under LGPL License.
227
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
228
- *
229
- * License: http://www.tinymce.com/license
230
- * Contributing: http://www.tinymce.com/contributing
231
- */
232
97
 
233
- define(
234
- 'tinymce.plugins.bbcode.Plugin',
235
- [
236
- 'tinymce.core.PluginManager',
237
- 'tinymce.plugins.bbcode.core.Convert'
238
- ],
239
- function (PluginManager, Convert) {
240
- PluginManager.add('bbcode', function () {
241
- return {
242
- init: function (editor) {
243
- editor.on('beforeSetContent', function (e) {
244
- e.content = Convert.bbcode2html(e.content);
245
- });
98
+ return Plugin;
246
99
 
247
- editor.on('postProcess', function (e) {
248
- if (e.set) {
249
- e.content = Convert.bbcode2html(e.content);
250
- }
251
-
252
- if (e.get) {
253
- e.content = Convert.html2bbcode(e.content);
254
- }
255
- });
256
- }
257
- };
258
- });
259
-
260
- return function () { };
261
- }
262
- );
263
- dem('tinymce.plugins.bbcode.Plugin')();
100
+ }());
264
101
  })();
@@ -1 +1 @@
1
- !function(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("3",tinymce.util.Tools.resolve),g("1",["3"],function(a){return a("tinymce.PluginManager")}),g("4",["3"],function(a){return a("tinymce.util.Tools")}),g("2",["4"],function(a){var b=function(b){b=a.trim(b);var c=function(a,c){b=b.replace(a,c)};return c(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),c(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),c(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),c(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),c(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),c(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),c(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),c(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),c(/<font>(.*?)<\/font>/gi,"$1"),c(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),c(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),c(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),c(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),c(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),c(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),c(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),c(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),c(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),c(/<\/(strong|b)>/gi,"[/b]"),c(/<(strong|b)>/gi,"[b]"),c(/<\/(em|i)>/gi,"[/i]"),c(/<(em|i)>/gi,"[i]"),c(/<\/u>/gi,"[/u]"),c(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),c(/<u>/gi,"[u]"),c(/<blockquote[^>]*>/gi,"[quote]"),c(/<\/blockquote>/gi,"[/quote]"),c(/<br \/>/gi,"\n"),c(/<br\/>/gi,"\n"),c(/<br>/gi,"\n"),c(/<p>/gi,""),c(/<\/p>/gi,"\n"),c(/&nbsp;|\u00a0/gi," "),c(/&quot;/gi,'"'),c(/&lt;/gi,"<"),c(/&gt;/gi,">"),c(/&amp;/gi,"&"),b},c=function(b){b=a.trim(b);var c=function(a,c){b=b.replace(a,c)};return c(/\n/gi,"<br />"),c(/\[b\]/gi,"<strong>"),c(/\[\/b\]/gi,"</strong>"),c(/\[i\]/gi,"<em>"),c(/\[\/i\]/gi,"</em>"),c(/\[u\]/gi,"<u>"),c(/\[\/u\]/gi,"</u>"),c(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),c(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),c(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),c(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),c(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;'),c(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;'),b};return{html2bbcode:b,bbcode2html:c}}),g("0",["1","2"],function(a,b){return a.add("bbcode",function(){return{init:function(a){a.on("beforeSetContent",function(a){a.content=b.bbcode2html(a.content)}),a.on("postProcess",function(a){a.set&&(a.content=b.bbcode2html(a.content)),a.get&&(a.content=b.html2bbcode(a.content))})}}}),function(){}}),d("0")()}();
1
+ !function(){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Tools"),e=function(e){e=t.trim(e);var o=function(o,t){e=e.replace(o,t)};return o(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),o(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),o(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),o(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),o(/<font>(.*?)<\/font>/gi,"$1"),o(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),o(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),o(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),o(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),o(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),o(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),o(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),o(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),o(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),o(/<\/(strong|b)>/gi,"[/b]"),o(/<(strong|b)>/gi,"[b]"),o(/<\/(em|i)>/gi,"[/i]"),o(/<(em|i)>/gi,"[i]"),o(/<\/u>/gi,"[/u]"),o(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),o(/<u>/gi,"[u]"),o(/<blockquote[^>]*>/gi,"[quote]"),o(/<\/blockquote>/gi,"[/quote]"),o(/<br \/>/gi,"\n"),o(/<br\/>/gi,"\n"),o(/<br>/gi,"\n"),o(/<p>/gi,""),o(/<\/p>/gi,"\n"),o(/&nbsp;|\u00a0/gi," "),o(/&quot;/gi,'"'),o(/&lt;/gi,"<"),o(/&gt;/gi,">"),o(/&amp;/gi,"&"),e},i=function(e){e=t.trim(e);var o=function(o,t){e=e.replace(o,t)};return o(/\n/gi,"<br />"),o(/\[b\]/gi,"<strong>"),o(/\[\/b\]/gi,"</strong>"),o(/\[i\]/gi,"<em>"),o(/\[\/i\]/gi,"</em>"),o(/\[u\]/gi,"<u>"),o(/\[\/u\]/gi,"</u>"),o(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),o(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),o(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),o(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),o(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;'),o(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;'),e};o.add("bbcode",function(){return{init:function(o){o.on("beforeSetContent",function(o){o.content=i(o.content)}),o.on("postProcess",function(o){o.set&&(o.content=i(o.content)),o.get&&(o.content=e(o.content))})}}})}();
@@ -1,850 +1,1275 @@
1
1
  (function () {
2
+ var charmap = (function () {
3
+ 'use strict';
2
4
 
3
- var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
5
+ var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
4
6
 
5
- // Used when there is no 'main' module.
6
- // The name is probably (hopefully) unique so minification removes for releases.
7
- var register_3795 = function (id) {
8
- var module = dem(id);
9
- var fragments = id.split('.');
10
- var target = Function('return this;')();
11
- for (var i = 0; i < fragments.length - 1; ++i) {
12
- if (target[fragments[i]] === undefined)
13
- target[fragments[i]] = {};
14
- target = target[fragments[i]];
15
- }
16
- target[fragments[fragments.length - 1]] = module;
17
- };
18
-
19
- var instantiate = function (id) {
20
- var actual = defs[id];
21
- var dependencies = actual.deps;
22
- var definition = actual.defn;
23
- var len = dependencies.length;
24
- var instances = new Array(len);
25
- for (var i = 0; i < len; ++i)
26
- instances[i] = dem(dependencies[i]);
27
- var defResult = definition.apply(null, instances);
28
- if (defResult === undefined)
29
- throw 'module [' + id + '] returned undefined';
30
- actual.instance = defResult;
31
- };
32
-
33
- var def = function (id, dependencies, definition) {
34
- if (typeof id !== 'string')
35
- throw 'module id must be a string';
36
- else if (dependencies === undefined)
37
- throw 'no dependencies for ' + id;
38
- else if (definition === undefined)
39
- throw 'no definition function for ' + id;
40
- defs[id] = {
41
- deps: dependencies,
42
- defn: definition,
43
- instance: undefined
7
+ var fireInsertCustomChar = function (editor, chr) {
8
+ return editor.fire('insertCustomChar', { chr: chr });
44
9
  };
45
- };
10
+ var $_1lh8ev9pjm0ofy5m = { fireInsertCustomChar: fireInsertCustomChar };
46
11
 
47
- var dem = function (id) {
48
- var actual = defs[id];
49
- if (actual === undefined)
50
- throw 'module [' + id + '] was undefined';
51
- else if (actual.instance === undefined)
52
- instantiate(id);
53
- return actual.instance;
54
- };
12
+ var insertChar = function (editor, chr) {
13
+ var evtChr = $_1lh8ev9pjm0ofy5m.fireInsertCustomChar(editor, chr).chr;
14
+ editor.execCommand('mceInsertContent', false, evtChr);
15
+ };
16
+ var $_4kycsa9ojm0ofy5l = { insertChar: insertChar };
55
17
 
56
- var req = function (ids, callback) {
57
- var len = ids.length;
58
- var instances = new Array(len);
59
- for (var i = 0; i < len; ++i)
60
- instances[i] = dem(ids[i]);
61
- callback.apply(null, instances);
62
- };
18
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
63
19
 
64
- var ephox = {};
20
+ var getCharMap = function (editor) {
21
+ return editor.settings.charmap;
22
+ };
23
+ var getCharMapAppend = function (editor) {
24
+ return editor.settings.charmap_append;
25
+ };
26
+ var $_aw1nk89sjm0ofy5t = {
27
+ getCharMap: getCharMap,
28
+ getCharMapAppend: getCharMapAppend
29
+ };
65
30
 
66
- ephox.bolt = {
67
- module: {
68
- api: {
69
- define: def,
70
- require: req,
71
- demand: dem
31
+ var isArray = global$1.isArray;
32
+ var getDefaultCharMap = function () {
33
+ return [
34
+ [
35
+ '160',
36
+ 'no-break space'
37
+ ],
38
+ [
39
+ '173',
40
+ 'soft hyphen'
41
+ ],
42
+ [
43
+ '34',
44
+ 'quotation mark'
45
+ ],
46
+ [
47
+ '162',
48
+ 'cent sign'
49
+ ],
50
+ [
51
+ '8364',
52
+ 'euro sign'
53
+ ],
54
+ [
55
+ '163',
56
+ 'pound sign'
57
+ ],
58
+ [
59
+ '165',
60
+ 'yen sign'
61
+ ],
62
+ [
63
+ '169',
64
+ 'copyright sign'
65
+ ],
66
+ [
67
+ '174',
68
+ 'registered sign'
69
+ ],
70
+ [
71
+ '8482',
72
+ 'trade mark sign'
73
+ ],
74
+ [
75
+ '8240',
76
+ 'per mille sign'
77
+ ],
78
+ [
79
+ '181',
80
+ 'micro sign'
81
+ ],
82
+ [
83
+ '183',
84
+ 'middle dot'
85
+ ],
86
+ [
87
+ '8226',
88
+ 'bullet'
89
+ ],
90
+ [
91
+ '8230',
92
+ 'three dot leader'
93
+ ],
94
+ [
95
+ '8242',
96
+ 'minutes / feet'
97
+ ],
98
+ [
99
+ '8243',
100
+ 'seconds / inches'
101
+ ],
102
+ [
103
+ '167',
104
+ 'section sign'
105
+ ],
106
+ [
107
+ '182',
108
+ 'paragraph sign'
109
+ ],
110
+ [
111
+ '223',
112
+ 'sharp s / ess-zed'
113
+ ],
114
+ [
115
+ '8249',
116
+ 'single left-pointing angle quotation mark'
117
+ ],
118
+ [
119
+ '8250',
120
+ 'single right-pointing angle quotation mark'
121
+ ],
122
+ [
123
+ '171',
124
+ 'left pointing guillemet'
125
+ ],
126
+ [
127
+ '187',
128
+ 'right pointing guillemet'
129
+ ],
130
+ [
131
+ '8216',
132
+ 'left single quotation mark'
133
+ ],
134
+ [
135
+ '8217',
136
+ 'right single quotation mark'
137
+ ],
138
+ [
139
+ '8220',
140
+ 'left double quotation mark'
141
+ ],
142
+ [
143
+ '8221',
144
+ 'right double quotation mark'
145
+ ],
146
+ [
147
+ '8218',
148
+ 'single low-9 quotation mark'
149
+ ],
150
+ [
151
+ '8222',
152
+ 'double low-9 quotation mark'
153
+ ],
154
+ [
155
+ '60',
156
+ 'less-than sign'
157
+ ],
158
+ [
159
+ '62',
160
+ 'greater-than sign'
161
+ ],
162
+ [
163
+ '8804',
164
+ 'less-than or equal to'
165
+ ],
166
+ [
167
+ '8805',
168
+ 'greater-than or equal to'
169
+ ],
170
+ [
171
+ '8211',
172
+ 'en dash'
173
+ ],
174
+ [
175
+ '8212',
176
+ 'em dash'
177
+ ],
178
+ [
179
+ '175',
180
+ 'macron'
181
+ ],
182
+ [
183
+ '8254',
184
+ 'overline'
185
+ ],
186
+ [
187
+ '164',
188
+ 'currency sign'
189
+ ],
190
+ [
191
+ '166',
192
+ 'broken bar'
193
+ ],
194
+ [
195
+ '168',
196
+ 'diaeresis'
197
+ ],
198
+ [
199
+ '161',
200
+ 'inverted exclamation mark'
201
+ ],
202
+ [
203
+ '191',
204
+ 'turned question mark'
205
+ ],
206
+ [
207
+ '710',
208
+ 'circumflex accent'
209
+ ],
210
+ [
211
+ '732',
212
+ 'small tilde'
213
+ ],
214
+ [
215
+ '176',
216
+ 'degree sign'
217
+ ],
218
+ [
219
+ '8722',
220
+ 'minus sign'
221
+ ],
222
+ [
223
+ '177',
224
+ 'plus-minus sign'
225
+ ],
226
+ [
227
+ '247',
228
+ 'division sign'
229
+ ],
230
+ [
231
+ '8260',
232
+ 'fraction slash'
233
+ ],
234
+ [
235
+ '215',
236
+ 'multiplication sign'
237
+ ],
238
+ [
239
+ '185',
240
+ 'superscript one'
241
+ ],
242
+ [
243
+ '178',
244
+ 'superscript two'
245
+ ],
246
+ [
247
+ '179',
248
+ 'superscript three'
249
+ ],
250
+ [
251
+ '188',
252
+ 'fraction one quarter'
253
+ ],
254
+ [
255
+ '189',
256
+ 'fraction one half'
257
+ ],
258
+ [
259
+ '190',
260
+ 'fraction three quarters'
261
+ ],
262
+ [
263
+ '402',
264
+ 'function / florin'
265
+ ],
266
+ [
267
+ '8747',
268
+ 'integral'
269
+ ],
270
+ [
271
+ '8721',
272
+ 'n-ary sumation'
273
+ ],
274
+ [
275
+ '8734',
276
+ 'infinity'
277
+ ],
278
+ [
279
+ '8730',
280
+ 'square root'
281
+ ],
282
+ [
283
+ '8764',
284
+ 'similar to'
285
+ ],
286
+ [
287
+ '8773',
288
+ 'approximately equal to'
289
+ ],
290
+ [
291
+ '8776',
292
+ 'almost equal to'
293
+ ],
294
+ [
295
+ '8800',
296
+ 'not equal to'
297
+ ],
298
+ [
299
+ '8801',
300
+ 'identical to'
301
+ ],
302
+ [
303
+ '8712',
304
+ 'element of'
305
+ ],
306
+ [
307
+ '8713',
308
+ 'not an element of'
309
+ ],
310
+ [
311
+ '8715',
312
+ 'contains as member'
313
+ ],
314
+ [
315
+ '8719',
316
+ 'n-ary product'
317
+ ],
318
+ [
319
+ '8743',
320
+ 'logical and'
321
+ ],
322
+ [
323
+ '8744',
324
+ 'logical or'
325
+ ],
326
+ [
327
+ '172',
328
+ 'not sign'
329
+ ],
330
+ [
331
+ '8745',
332
+ 'intersection'
333
+ ],
334
+ [
335
+ '8746',
336
+ 'union'
337
+ ],
338
+ [
339
+ '8706',
340
+ 'partial differential'
341
+ ],
342
+ [
343
+ '8704',
344
+ 'for all'
345
+ ],
346
+ [
347
+ '8707',
348
+ 'there exists'
349
+ ],
350
+ [
351
+ '8709',
352
+ 'diameter'
353
+ ],
354
+ [
355
+ '8711',
356
+ 'backward difference'
357
+ ],
358
+ [
359
+ '8727',
360
+ 'asterisk operator'
361
+ ],
362
+ [
363
+ '8733',
364
+ 'proportional to'
365
+ ],
366
+ [
367
+ '8736',
368
+ 'angle'
369
+ ],
370
+ [
371
+ '180',
372
+ 'acute accent'
373
+ ],
374
+ [
375
+ '184',
376
+ 'cedilla'
377
+ ],
378
+ [
379
+ '170',
380
+ 'feminine ordinal indicator'
381
+ ],
382
+ [
383
+ '186',
384
+ 'masculine ordinal indicator'
385
+ ],
386
+ [
387
+ '8224',
388
+ 'dagger'
389
+ ],
390
+ [
391
+ '8225',
392
+ 'double dagger'
393
+ ],
394
+ [
395
+ '192',
396
+ 'A - grave'
397
+ ],
398
+ [
399
+ '193',
400
+ 'A - acute'
401
+ ],
402
+ [
403
+ '194',
404
+ 'A - circumflex'
405
+ ],
406
+ [
407
+ '195',
408
+ 'A - tilde'
409
+ ],
410
+ [
411
+ '196',
412
+ 'A - diaeresis'
413
+ ],
414
+ [
415
+ '197',
416
+ 'A - ring above'
417
+ ],
418
+ [
419
+ '256',
420
+ 'A - macron'
421
+ ],
422
+ [
423
+ '198',
424
+ 'ligature AE'
425
+ ],
426
+ [
427
+ '199',
428
+ 'C - cedilla'
429
+ ],
430
+ [
431
+ '200',
432
+ 'E - grave'
433
+ ],
434
+ [
435
+ '201',
436
+ 'E - acute'
437
+ ],
438
+ [
439
+ '202',
440
+ 'E - circumflex'
441
+ ],
442
+ [
443
+ '203',
444
+ 'E - diaeresis'
445
+ ],
446
+ [
447
+ '274',
448
+ 'E - macron'
449
+ ],
450
+ [
451
+ '204',
452
+ 'I - grave'
453
+ ],
454
+ [
455
+ '205',
456
+ 'I - acute'
457
+ ],
458
+ [
459
+ '206',
460
+ 'I - circumflex'
461
+ ],
462
+ [
463
+ '207',
464
+ 'I - diaeresis'
465
+ ],
466
+ [
467
+ '298',
468
+ 'I - macron'
469
+ ],
470
+ [
471
+ '208',
472
+ 'ETH'
473
+ ],
474
+ [
475
+ '209',
476
+ 'N - tilde'
477
+ ],
478
+ [
479
+ '210',
480
+ 'O - grave'
481
+ ],
482
+ [
483
+ '211',
484
+ 'O - acute'
485
+ ],
486
+ [
487
+ '212',
488
+ 'O - circumflex'
489
+ ],
490
+ [
491
+ '213',
492
+ 'O - tilde'
493
+ ],
494
+ [
495
+ '214',
496
+ 'O - diaeresis'
497
+ ],
498
+ [
499
+ '216',
500
+ 'O - slash'
501
+ ],
502
+ [
503
+ '332',
504
+ 'O - macron'
505
+ ],
506
+ [
507
+ '338',
508
+ 'ligature OE'
509
+ ],
510
+ [
511
+ '352',
512
+ 'S - caron'
513
+ ],
514
+ [
515
+ '217',
516
+ 'U - grave'
517
+ ],
518
+ [
519
+ '218',
520
+ 'U - acute'
521
+ ],
522
+ [
523
+ '219',
524
+ 'U - circumflex'
525
+ ],
526
+ [
527
+ '220',
528
+ 'U - diaeresis'
529
+ ],
530
+ [
531
+ '362',
532
+ 'U - macron'
533
+ ],
534
+ [
535
+ '221',
536
+ 'Y - acute'
537
+ ],
538
+ [
539
+ '376',
540
+ 'Y - diaeresis'
541
+ ],
542
+ [
543
+ '562',
544
+ 'Y - macron'
545
+ ],
546
+ [
547
+ '222',
548
+ 'THORN'
549
+ ],
550
+ [
551
+ '224',
552
+ 'a - grave'
553
+ ],
554
+ [
555
+ '225',
556
+ 'a - acute'
557
+ ],
558
+ [
559
+ '226',
560
+ 'a - circumflex'
561
+ ],
562
+ [
563
+ '227',
564
+ 'a - tilde'
565
+ ],
566
+ [
567
+ '228',
568
+ 'a - diaeresis'
569
+ ],
570
+ [
571
+ '229',
572
+ 'a - ring above'
573
+ ],
574
+ [
575
+ '257',
576
+ 'a - macron'
577
+ ],
578
+ [
579
+ '230',
580
+ 'ligature ae'
581
+ ],
582
+ [
583
+ '231',
584
+ 'c - cedilla'
585
+ ],
586
+ [
587
+ '232',
588
+ 'e - grave'
589
+ ],
590
+ [
591
+ '233',
592
+ 'e - acute'
593
+ ],
594
+ [
595
+ '234',
596
+ 'e - circumflex'
597
+ ],
598
+ [
599
+ '235',
600
+ 'e - diaeresis'
601
+ ],
602
+ [
603
+ '275',
604
+ 'e - macron'
605
+ ],
606
+ [
607
+ '236',
608
+ 'i - grave'
609
+ ],
610
+ [
611
+ '237',
612
+ 'i - acute'
613
+ ],
614
+ [
615
+ '238',
616
+ 'i - circumflex'
617
+ ],
618
+ [
619
+ '239',
620
+ 'i - diaeresis'
621
+ ],
622
+ [
623
+ '299',
624
+ 'i - macron'
625
+ ],
626
+ [
627
+ '240',
628
+ 'eth'
629
+ ],
630
+ [
631
+ '241',
632
+ 'n - tilde'
633
+ ],
634
+ [
635
+ '242',
636
+ 'o - grave'
637
+ ],
638
+ [
639
+ '243',
640
+ 'o - acute'
641
+ ],
642
+ [
643
+ '244',
644
+ 'o - circumflex'
645
+ ],
646
+ [
647
+ '245',
648
+ 'o - tilde'
649
+ ],
650
+ [
651
+ '246',
652
+ 'o - diaeresis'
653
+ ],
654
+ [
655
+ '248',
656
+ 'o slash'
657
+ ],
658
+ [
659
+ '333',
660
+ 'o macron'
661
+ ],
662
+ [
663
+ '339',
664
+ 'ligature oe'
665
+ ],
666
+ [
667
+ '353',
668
+ 's - caron'
669
+ ],
670
+ [
671
+ '249',
672
+ 'u - grave'
673
+ ],
674
+ [
675
+ '250',
676
+ 'u - acute'
677
+ ],
678
+ [
679
+ '251',
680
+ 'u - circumflex'
681
+ ],
682
+ [
683
+ '252',
684
+ 'u - diaeresis'
685
+ ],
686
+ [
687
+ '363',
688
+ 'u - macron'
689
+ ],
690
+ [
691
+ '253',
692
+ 'y - acute'
693
+ ],
694
+ [
695
+ '254',
696
+ 'thorn'
697
+ ],
698
+ [
699
+ '255',
700
+ 'y - diaeresis'
701
+ ],
702
+ [
703
+ '563',
704
+ 'y - macron'
705
+ ],
706
+ [
707
+ '913',
708
+ 'Alpha'
709
+ ],
710
+ [
711
+ '914',
712
+ 'Beta'
713
+ ],
714
+ [
715
+ '915',
716
+ 'Gamma'
717
+ ],
718
+ [
719
+ '916',
720
+ 'Delta'
721
+ ],
722
+ [
723
+ '917',
724
+ 'Epsilon'
725
+ ],
726
+ [
727
+ '918',
728
+ 'Zeta'
729
+ ],
730
+ [
731
+ '919',
732
+ 'Eta'
733
+ ],
734
+ [
735
+ '920',
736
+ 'Theta'
737
+ ],
738
+ [
739
+ '921',
740
+ 'Iota'
741
+ ],
742
+ [
743
+ '922',
744
+ 'Kappa'
745
+ ],
746
+ [
747
+ '923',
748
+ 'Lambda'
749
+ ],
750
+ [
751
+ '924',
752
+ 'Mu'
753
+ ],
754
+ [
755
+ '925',
756
+ 'Nu'
757
+ ],
758
+ [
759
+ '926',
760
+ 'Xi'
761
+ ],
762
+ [
763
+ '927',
764
+ 'Omicron'
765
+ ],
766
+ [
767
+ '928',
768
+ 'Pi'
769
+ ],
770
+ [
771
+ '929',
772
+ 'Rho'
773
+ ],
774
+ [
775
+ '931',
776
+ 'Sigma'
777
+ ],
778
+ [
779
+ '932',
780
+ 'Tau'
781
+ ],
782
+ [
783
+ '933',
784
+ 'Upsilon'
785
+ ],
786
+ [
787
+ '934',
788
+ 'Phi'
789
+ ],
790
+ [
791
+ '935',
792
+ 'Chi'
793
+ ],
794
+ [
795
+ '936',
796
+ 'Psi'
797
+ ],
798
+ [
799
+ '937',
800
+ 'Omega'
801
+ ],
802
+ [
803
+ '945',
804
+ 'alpha'
805
+ ],
806
+ [
807
+ '946',
808
+ 'beta'
809
+ ],
810
+ [
811
+ '947',
812
+ 'gamma'
813
+ ],
814
+ [
815
+ '948',
816
+ 'delta'
817
+ ],
818
+ [
819
+ '949',
820
+ 'epsilon'
821
+ ],
822
+ [
823
+ '950',
824
+ 'zeta'
825
+ ],
826
+ [
827
+ '951',
828
+ 'eta'
829
+ ],
830
+ [
831
+ '952',
832
+ 'theta'
833
+ ],
834
+ [
835
+ '953',
836
+ 'iota'
837
+ ],
838
+ [
839
+ '954',
840
+ 'kappa'
841
+ ],
842
+ [
843
+ '955',
844
+ 'lambda'
845
+ ],
846
+ [
847
+ '956',
848
+ 'mu'
849
+ ],
850
+ [
851
+ '957',
852
+ 'nu'
853
+ ],
854
+ [
855
+ '958',
856
+ 'xi'
857
+ ],
858
+ [
859
+ '959',
860
+ 'omicron'
861
+ ],
862
+ [
863
+ '960',
864
+ 'pi'
865
+ ],
866
+ [
867
+ '961',
868
+ 'rho'
869
+ ],
870
+ [
871
+ '962',
872
+ 'final sigma'
873
+ ],
874
+ [
875
+ '963',
876
+ 'sigma'
877
+ ],
878
+ [
879
+ '964',
880
+ 'tau'
881
+ ],
882
+ [
883
+ '965',
884
+ 'upsilon'
885
+ ],
886
+ [
887
+ '966',
888
+ 'phi'
889
+ ],
890
+ [
891
+ '967',
892
+ 'chi'
893
+ ],
894
+ [
895
+ '968',
896
+ 'psi'
897
+ ],
898
+ [
899
+ '969',
900
+ 'omega'
901
+ ],
902
+ [
903
+ '8501',
904
+ 'alef symbol'
905
+ ],
906
+ [
907
+ '982',
908
+ 'pi symbol'
909
+ ],
910
+ [
911
+ '8476',
912
+ 'real part symbol'
913
+ ],
914
+ [
915
+ '978',
916
+ 'upsilon - hook symbol'
917
+ ],
918
+ [
919
+ '8472',
920
+ 'Weierstrass p'
921
+ ],
922
+ [
923
+ '8465',
924
+ 'imaginary part'
925
+ ],
926
+ [
927
+ '8592',
928
+ 'leftwards arrow'
929
+ ],
930
+ [
931
+ '8593',
932
+ 'upwards arrow'
933
+ ],
934
+ [
935
+ '8594',
936
+ 'rightwards arrow'
937
+ ],
938
+ [
939
+ '8595',
940
+ 'downwards arrow'
941
+ ],
942
+ [
943
+ '8596',
944
+ 'left right arrow'
945
+ ],
946
+ [
947
+ '8629',
948
+ 'carriage return'
949
+ ],
950
+ [
951
+ '8656',
952
+ 'leftwards double arrow'
953
+ ],
954
+ [
955
+ '8657',
956
+ 'upwards double arrow'
957
+ ],
958
+ [
959
+ '8658',
960
+ 'rightwards double arrow'
961
+ ],
962
+ [
963
+ '8659',
964
+ 'downwards double arrow'
965
+ ],
966
+ [
967
+ '8660',
968
+ 'left right double arrow'
969
+ ],
970
+ [
971
+ '8756',
972
+ 'therefore'
973
+ ],
974
+ [
975
+ '8834',
976
+ 'subset of'
977
+ ],
978
+ [
979
+ '8835',
980
+ 'superset of'
981
+ ],
982
+ [
983
+ '8836',
984
+ 'not a subset of'
985
+ ],
986
+ [
987
+ '8838',
988
+ 'subset of or equal to'
989
+ ],
990
+ [
991
+ '8839',
992
+ 'superset of or equal to'
993
+ ],
994
+ [
995
+ '8853',
996
+ 'circled plus'
997
+ ],
998
+ [
999
+ '8855',
1000
+ 'circled times'
1001
+ ],
1002
+ [
1003
+ '8869',
1004
+ 'perpendicular'
1005
+ ],
1006
+ [
1007
+ '8901',
1008
+ 'dot operator'
1009
+ ],
1010
+ [
1011
+ '8968',
1012
+ 'left ceiling'
1013
+ ],
1014
+ [
1015
+ '8969',
1016
+ 'right ceiling'
1017
+ ],
1018
+ [
1019
+ '8970',
1020
+ 'left floor'
1021
+ ],
1022
+ [
1023
+ '8971',
1024
+ 'right floor'
1025
+ ],
1026
+ [
1027
+ '9001',
1028
+ 'left-pointing angle bracket'
1029
+ ],
1030
+ [
1031
+ '9002',
1032
+ 'right-pointing angle bracket'
1033
+ ],
1034
+ [
1035
+ '9674',
1036
+ 'lozenge'
1037
+ ],
1038
+ [
1039
+ '9824',
1040
+ 'black spade suit'
1041
+ ],
1042
+ [
1043
+ '9827',
1044
+ 'black club suit'
1045
+ ],
1046
+ [
1047
+ '9829',
1048
+ 'black heart suit'
1049
+ ],
1050
+ [
1051
+ '9830',
1052
+ 'black diamond suit'
1053
+ ],
1054
+ [
1055
+ '8194',
1056
+ 'en space'
1057
+ ],
1058
+ [
1059
+ '8195',
1060
+ 'em space'
1061
+ ],
1062
+ [
1063
+ '8201',
1064
+ 'thin space'
1065
+ ],
1066
+ [
1067
+ '8204',
1068
+ 'zero width non-joiner'
1069
+ ],
1070
+ [
1071
+ '8205',
1072
+ 'zero width joiner'
1073
+ ],
1074
+ [
1075
+ '8206',
1076
+ 'left-to-right mark'
1077
+ ],
1078
+ [
1079
+ '8207',
1080
+ 'right-to-left mark'
1081
+ ]
1082
+ ];
1083
+ };
1084
+ var charmapFilter = function (charmap) {
1085
+ return global$1.grep(charmap, function (item) {
1086
+ return isArray(item) && item.length === 2;
1087
+ });
1088
+ };
1089
+ var getCharsFromSetting = function (settingValue) {
1090
+ if (isArray(settingValue)) {
1091
+ return [].concat(charmapFilter(settingValue));
72
1092
  }
73
- }
74
- };
75
-
76
- var define = def;
77
- var require = req;
78
- var demand = dem;
79
- // this helps with minification when using a lot of global references
80
- var defineGlobal = function (id, ref) {
81
- define(id, [], function () { return ref; });
82
- };
83
- /*jsc
84
- ["tinymce.plugins.charmap.Plugin","tinymce.core.PluginManager","tinymce.plugins.charmap.api.Api","tinymce.plugins.charmap.api.Commands","tinymce.plugins.charmap.ui.Buttons","global!tinymce.util.Tools.resolve","tinymce.plugins.charmap.core.Actions","tinymce.plugins.charmap.core.CharMap","tinymce.plugins.charmap.ui.Dialog","tinymce.plugins.charmap.api.Events","tinymce.core.util.Tools","tinymce.plugins.charmap.api.Settings","tinymce.plugins.charmap.ui.GridHtml"]
85
- jsc*/
86
- defineGlobal("global!tinymce.util.Tools.resolve", tinymce.util.Tools.resolve);
87
- /**
88
- * ResolveGlobal.js
89
- *
90
- * Released under LGPL License.
91
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
92
- *
93
- * License: http://www.tinymce.com/license
94
- * Contributing: http://www.tinymce.com/contributing
95
- */
96
-
97
- define(
98
- 'tinymce.core.PluginManager',
99
- [
100
- 'global!tinymce.util.Tools.resolve'
101
- ],
102
- function (resolve) {
103
- return resolve('tinymce.PluginManager');
104
- }
105
- );
106
-
107
- /**
108
- * Events.js
109
- *
110
- * Released under LGPL License.
111
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
112
- *
113
- * License: http://www.tinymce.com/license
114
- * Contributing: http://www.tinymce.com/contributing
115
- */
116
-
117
- define(
118
- 'tinymce.plugins.charmap.api.Events',
119
- [
120
- ],
121
- function () {
122
- var fireInsertCustomChar = function (editor, chr) {
123
- return editor.fire('insertCustomChar', { chr: chr });
124
- };
125
-
126
- return {
127
- fireInsertCustomChar: fireInsertCustomChar
128
- };
129
- }
130
- );
131
-
132
- /**
133
- * Actions.js
134
- *
135
- * Released under LGPL License.
136
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
137
- *
138
- * License: http://www.tinymce.com/license
139
- * Contributing: http://www.tinymce.com/contributing
140
- */
141
-
142
- define(
143
- 'tinymce.plugins.charmap.core.Actions',
144
- [
145
- 'tinymce.plugins.charmap.api.Events'
146
- ],
147
- function (Events) {
148
- var insertChar = function (editor, chr) {
149
- var evtChr = Events.fireInsertCustomChar(editor, chr).chr;
150
- editor.execCommand('mceInsertContent', false, evtChr);
151
- };
152
-
153
- return {
154
- insertChar: insertChar
155
- };
156
- }
157
- );
158
- /**
159
- * ResolveGlobal.js
160
- *
161
- * Released under LGPL License.
162
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
163
- *
164
- * License: http://www.tinymce.com/license
165
- * Contributing: http://www.tinymce.com/contributing
166
- */
167
-
168
- define(
169
- 'tinymce.core.util.Tools',
170
- [
171
- 'global!tinymce.util.Tools.resolve'
172
- ],
173
- function (resolve) {
174
- return resolve('tinymce.util.Tools');
175
- }
176
- );
177
-
178
- /**
179
- * Settings.js
180
- *
181
- * Released under LGPL License.
182
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
183
- *
184
- * License: http://www.tinymce.com/license
185
- * Contributing: http://www.tinymce.com/contributing
186
- */
1093
+ if (typeof settingValue === 'function') {
1094
+ return settingValue();
1095
+ }
1096
+ return [];
1097
+ };
1098
+ var extendCharMap = function (editor, charmap) {
1099
+ var userCharMap = $_aw1nk89sjm0ofy5t.getCharMap(editor);
1100
+ if (userCharMap) {
1101
+ charmap = getCharsFromSetting(userCharMap);
1102
+ }
1103
+ var userCharMapAppend = $_aw1nk89sjm0ofy5t.getCharMapAppend(editor);
1104
+ if (userCharMapAppend) {
1105
+ return [].concat(charmap).concat(getCharsFromSetting(userCharMapAppend));
1106
+ }
1107
+ return charmap;
1108
+ };
1109
+ var getCharMap$1 = function (editor) {
1110
+ return extendCharMap(editor, getDefaultCharMap());
1111
+ };
1112
+ var $_chveh89qjm0ofy5o = { getCharMap: getCharMap$1 };
187
1113
 
188
- define(
189
- 'tinymce.plugins.charmap.api.Settings',
190
- [
191
- ],
192
- function () {
193
- var getCharMap = function (editor) {
194
- return editor.settings.charmap;
1114
+ var get = function (editor) {
1115
+ var getCharMap = function () {
1116
+ return $_chveh89qjm0ofy5o.getCharMap(editor);
195
1117
  };
196
-
197
- var getCharMapAppend = function (editor) {
198
- return editor.settings.charmap_append;
1118
+ var insertChar = function (chr) {
1119
+ $_4kycsa9ojm0ofy5l.insertChar(editor, chr);
199
1120
  };
200
-
201
1121
  return {
202
1122
  getCharMap: getCharMap,
203
- getCharMapAppend: getCharMapAppend
204
- };
205
- }
206
- );
207
- /**
208
- * CharMap.js
209
- *
210
- * Released under LGPL License.
211
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
212
- *
213
- * License: http://www.tinymce.com/license
214
- * Contributing: http://www.tinymce.com/contributing
215
- */
216
-
217
- define(
218
- 'tinymce.plugins.charmap.core.CharMap',
219
- [
220
- 'tinymce.core.util.Tools',
221
- 'tinymce.plugins.charmap.api.Settings'
222
- ],
223
- function (Tools, Settings) {
224
- var isArray = Tools.isArray;
225
-
226
- var getDefaultCharMap = function () {
227
- return [
228
- ['160', 'no-break space'],
229
- ['173', 'soft hyphen'],
230
- ['34', 'quotation mark'],
231
- // finance
232
- ['162', 'cent sign'],
233
- ['8364', 'euro sign'],
234
- ['163', 'pound sign'],
235
- ['165', 'yen sign'],
236
- // signs
237
- ['169', 'copyright sign'],
238
- ['174', 'registered sign'],
239
- ['8482', 'trade mark sign'],
240
- ['8240', 'per mille sign'],
241
- ['181', 'micro sign'],
242
- ['183', 'middle dot'],
243
- ['8226', 'bullet'],
244
- ['8230', 'three dot leader'],
245
- ['8242', 'minutes / feet'],
246
- ['8243', 'seconds / inches'],
247
- ['167', 'section sign'],
248
- ['182', 'paragraph sign'],
249
- ['223', 'sharp s / ess-zed'],
250
- // quotations
251
- ['8249', 'single left-pointing angle quotation mark'],
252
- ['8250', 'single right-pointing angle quotation mark'],
253
- ['171', 'left pointing guillemet'],
254
- ['187', 'right pointing guillemet'],
255
- ['8216', 'left single quotation mark'],
256
- ['8217', 'right single quotation mark'],
257
- ['8220', 'left double quotation mark'],
258
- ['8221', 'right double quotation mark'],
259
- ['8218', 'single low-9 quotation mark'],
260
- ['8222', 'double low-9 quotation mark'],
261
- ['60', 'less-than sign'],
262
- ['62', 'greater-than sign'],
263
- ['8804', 'less-than or equal to'],
264
- ['8805', 'greater-than or equal to'],
265
- ['8211', 'en dash'],
266
- ['8212', 'em dash'],
267
- ['175', 'macron'],
268
- ['8254', 'overline'],
269
- ['164', 'currency sign'],
270
- ['166', 'broken bar'],
271
- ['168', 'diaeresis'],
272
- ['161', 'inverted exclamation mark'],
273
- ['191', 'turned question mark'],
274
- ['710', 'circumflex accent'],
275
- ['732', 'small tilde'],
276
- ['176', 'degree sign'],
277
- ['8722', 'minus sign'],
278
- ['177', 'plus-minus sign'],
279
- ['247', 'division sign'],
280
- ['8260', 'fraction slash'],
281
- ['215', 'multiplication sign'],
282
- ['185', 'superscript one'],
283
- ['178', 'superscript two'],
284
- ['179', 'superscript three'],
285
- ['188', 'fraction one quarter'],
286
- ['189', 'fraction one half'],
287
- ['190', 'fraction three quarters'],
288
- // math / logical
289
- ['402', 'function / florin'],
290
- ['8747', 'integral'],
291
- ['8721', 'n-ary sumation'],
292
- ['8734', 'infinity'],
293
- ['8730', 'square root'],
294
- ['8764', 'similar to'],
295
- ['8773', 'approximately equal to'],
296
- ['8776', 'almost equal to'],
297
- ['8800', 'not equal to'],
298
- ['8801', 'identical to'],
299
- ['8712', 'element of'],
300
- ['8713', 'not an element of'],
301
- ['8715', 'contains as member'],
302
- ['8719', 'n-ary product'],
303
- ['8743', 'logical and'],
304
- ['8744', 'logical or'],
305
- ['172', 'not sign'],
306
- ['8745', 'intersection'],
307
- ['8746', 'union'],
308
- ['8706', 'partial differential'],
309
- ['8704', 'for all'],
310
- ['8707', 'there exists'],
311
- ['8709', 'diameter'],
312
- ['8711', 'backward difference'],
313
- ['8727', 'asterisk operator'],
314
- ['8733', 'proportional to'],
315
- ['8736', 'angle'],
316
- // undefined
317
- ['180', 'acute accent'],
318
- ['184', 'cedilla'],
319
- ['170', 'feminine ordinal indicator'],
320
- ['186', 'masculine ordinal indicator'],
321
- ['8224', 'dagger'],
322
- ['8225', 'double dagger'],
323
- // alphabetical special chars
324
- ['192', 'A - grave'],
325
- ['193', 'A - acute'],
326
- ['194', 'A - circumflex'],
327
- ['195', 'A - tilde'],
328
- ['196', 'A - diaeresis'],
329
- ['197', 'A - ring above'],
330
- ['256', 'A - macron'],
331
- ['198', 'ligature AE'],
332
- ['199', 'C - cedilla'],
333
- ['200', 'E - grave'],
334
- ['201', 'E - acute'],
335
- ['202', 'E - circumflex'],
336
- ['203', 'E - diaeresis'],
337
- ['274', 'E - macron'],
338
- ['204', 'I - grave'],
339
- ['205', 'I - acute'],
340
- ['206', 'I - circumflex'],
341
- ['207', 'I - diaeresis'],
342
- ['298', 'I - macron'],
343
- ['208', 'ETH'],
344
- ['209', 'N - tilde'],
345
- ['210', 'O - grave'],
346
- ['211', 'O - acute'],
347
- ['212', 'O - circumflex'],
348
- ['213', 'O - tilde'],
349
- ['214', 'O - diaeresis'],
350
- ['216', 'O - slash'],
351
- ['332', 'O - macron'],
352
- ['338', 'ligature OE'],
353
- ['352', 'S - caron'],
354
- ['217', 'U - grave'],
355
- ['218', 'U - acute'],
356
- ['219', 'U - circumflex'],
357
- ['220', 'U - diaeresis'],
358
- ['362', 'U - macron'],
359
- ['221', 'Y - acute'],
360
- ['376', 'Y - diaeresis'],
361
- ['562', 'Y - macron'],
362
- ['222', 'THORN'],
363
- ['224', 'a - grave'],
364
- ['225', 'a - acute'],
365
- ['226', 'a - circumflex'],
366
- ['227', 'a - tilde'],
367
- ['228', 'a - diaeresis'],
368
- ['229', 'a - ring above'],
369
- ['257', 'a - macron'],
370
- ['230', 'ligature ae'],
371
- ['231', 'c - cedilla'],
372
- ['232', 'e - grave'],
373
- ['233', 'e - acute'],
374
- ['234', 'e - circumflex'],
375
- ['235', 'e - diaeresis'],
376
- ['275', 'e - macron'],
377
- ['236', 'i - grave'],
378
- ['237', 'i - acute'],
379
- ['238', 'i - circumflex'],
380
- ['239', 'i - diaeresis'],
381
- ['299', 'i - macron'],
382
- ['240', 'eth'],
383
- ['241', 'n - tilde'],
384
- ['242', 'o - grave'],
385
- ['243', 'o - acute'],
386
- ['244', 'o - circumflex'],
387
- ['245', 'o - tilde'],
388
- ['246', 'o - diaeresis'],
389
- ['248', 'o slash'],
390
- ['333', 'o macron'],
391
- ['339', 'ligature oe'],
392
- ['353', 's - caron'],
393
- ['249', 'u - grave'],
394
- ['250', 'u - acute'],
395
- ['251', 'u - circumflex'],
396
- ['252', 'u - diaeresis'],
397
- ['363', 'u - macron'],
398
- ['253', 'y - acute'],
399
- ['254', 'thorn'],
400
- ['255', 'y - diaeresis'],
401
- ['563', 'y - macron'],
402
- ['913', 'Alpha'],
403
- ['914', 'Beta'],
404
- ['915', 'Gamma'],
405
- ['916', 'Delta'],
406
- ['917', 'Epsilon'],
407
- ['918', 'Zeta'],
408
- ['919', 'Eta'],
409
- ['920', 'Theta'],
410
- ['921', 'Iota'],
411
- ['922', 'Kappa'],
412
- ['923', 'Lambda'],
413
- ['924', 'Mu'],
414
- ['925', 'Nu'],
415
- ['926', 'Xi'],
416
- ['927', 'Omicron'],
417
- ['928', 'Pi'],
418
- ['929', 'Rho'],
419
- ['931', 'Sigma'],
420
- ['932', 'Tau'],
421
- ['933', 'Upsilon'],
422
- ['934', 'Phi'],
423
- ['935', 'Chi'],
424
- ['936', 'Psi'],
425
- ['937', 'Omega'],
426
- ['945', 'alpha'],
427
- ['946', 'beta'],
428
- ['947', 'gamma'],
429
- ['948', 'delta'],
430
- ['949', 'epsilon'],
431
- ['950', 'zeta'],
432
- ['951', 'eta'],
433
- ['952', 'theta'],
434
- ['953', 'iota'],
435
- ['954', 'kappa'],
436
- ['955', 'lambda'],
437
- ['956', 'mu'],
438
- ['957', 'nu'],
439
- ['958', 'xi'],
440
- ['959', 'omicron'],
441
- ['960', 'pi'],
442
- ['961', 'rho'],
443
- ['962', 'final sigma'],
444
- ['963', 'sigma'],
445
- ['964', 'tau'],
446
- ['965', 'upsilon'],
447
- ['966', 'phi'],
448
- ['967', 'chi'],
449
- ['968', 'psi'],
450
- ['969', 'omega'],
451
- // symbols
452
- ['8501', 'alef symbol'],
453
- ['982', 'pi symbol'],
454
- ['8476', 'real part symbol'],
455
- ['978', 'upsilon - hook symbol'],
456
- ['8472', 'Weierstrass p'],
457
- ['8465', 'imaginary part'],
458
- // arrows
459
- ['8592', 'leftwards arrow'],
460
- ['8593', 'upwards arrow'],
461
- ['8594', 'rightwards arrow'],
462
- ['8595', 'downwards arrow'],
463
- ['8596', 'left right arrow'],
464
- ['8629', 'carriage return'],
465
- ['8656', 'leftwards double arrow'],
466
- ['8657', 'upwards double arrow'],
467
- ['8658', 'rightwards double arrow'],
468
- ['8659', 'downwards double arrow'],
469
- ['8660', 'left right double arrow'],
470
- ['8756', 'therefore'],
471
- ['8834', 'subset of'],
472
- ['8835', 'superset of'],
473
- ['8836', 'not a subset of'],
474
- ['8838', 'subset of or equal to'],
475
- ['8839', 'superset of or equal to'],
476
- ['8853', 'circled plus'],
477
- ['8855', 'circled times'],
478
- ['8869', 'perpendicular'],
479
- ['8901', 'dot operator'],
480
- ['8968', 'left ceiling'],
481
- ['8969', 'right ceiling'],
482
- ['8970', 'left floor'],
483
- ['8971', 'right floor'],
484
- ['9001', 'left-pointing angle bracket'],
485
- ['9002', 'right-pointing angle bracket'],
486
- ['9674', 'lozenge'],
487
- ['9824', 'black spade suit'],
488
- ['9827', 'black club suit'],
489
- ['9829', 'black heart suit'],
490
- ['9830', 'black diamond suit'],
491
- ['8194', 'en space'],
492
- ['8195', 'em space'],
493
- ['8201', 'thin space'],
494
- ['8204', 'zero width non-joiner'],
495
- ['8205', 'zero width joiner'],
496
- ['8206', 'left-to-right mark'],
497
- ['8207', 'right-to-left mark']
498
- ];
499
- };
500
-
501
- var charmapFilter = function (charmap) {
502
- return Tools.grep(charmap, function (item) {
503
- return isArray(item) && item.length === 2;
504
- });
505
- };
506
-
507
- var getCharsFromSetting = function (settingValue) {
508
- if (isArray(settingValue)) {
509
- return [].concat(charmapFilter(settingValue));
510
- }
511
-
512
- if (typeof settingValue === "function") {
513
- return settingValue();
514
- }
515
-
516
- return [];
1123
+ insertChar: insertChar
517
1124
  };
518
-
519
- var extendCharMap = function (editor, charmap) {
520
- var userCharMap = Settings.getCharMap(editor);
521
- if (userCharMap) {
522
- charmap = getCharsFromSetting(userCharMap);
1125
+ };
1126
+ var $_11mull9njm0ofy5k = { get: get };
1127
+
1128
+ var getHtml = function (charmap) {
1129
+ var gridHtml, x, y;
1130
+ var width = Math.min(charmap.length, 25);
1131
+ var height = Math.ceil(charmap.length / width);
1132
+ gridHtml = '<table role="presentation" cellspacing="0" class="mce-charmap"><tbody>';
1133
+ for (y = 0; y < height; y++) {
1134
+ gridHtml += '<tr>';
1135
+ for (x = 0; x < width; x++) {
1136
+ var index = y * width + x;
1137
+ if (index < charmap.length) {
1138
+ var chr = charmap[index];
1139
+ var charCode = parseInt(chr[0], 10);
1140
+ var chrText = chr ? String.fromCharCode(charCode) : '&nbsp;';
1141
+ gridHtml += '<td title="' + chr[1] + '">' + '<div tabindex="-1" title="' + chr[1] + '" role="button" data-chr="' + charCode + '">' + chrText + '</div>' + '</td>';
1142
+ } else {
1143
+ gridHtml += '<td />';
1144
+ }
523
1145
  }
1146
+ gridHtml += '</tr>';
1147
+ }
1148
+ gridHtml += '</tbody></table>';
1149
+ return gridHtml;
1150
+ };
1151
+ var $_eyauk69vjm0ofy64 = { getHtml: getHtml };
524
1152
 
525
- var userCharMapAppend = Settings.getCharMapAppend(editor);
526
- if (userCharMapAppend) {
527
- return [].concat(charmap).concat(getCharsFromSetting(userCharMapAppend));
1153
+ var getParentTd = function (elm) {
1154
+ while (elm) {
1155
+ if (elm.nodeName === 'TD') {
1156
+ return elm;
528
1157
  }
529
-
530
- return charmap;
531
- };
532
-
533
- var getCharMap = function (editor) {
534
- return extendCharMap(editor, getDefaultCharMap());
535
- };
536
-
537
- return {
538
- getCharMap: getCharMap
539
- };
540
- }
541
- );
542
- /**
543
- * Api.js
544
- *
545
- * Released under LGPL License.
546
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
547
- *
548
- * License: http://www.tinymce.com/license
549
- * Contributing: http://www.tinymce.com/contributing
550
- */
551
-
552
- define(
553
- 'tinymce.plugins.charmap.api.Api',
554
- [
555
- 'tinymce.plugins.charmap.core.Actions',
556
- 'tinymce.plugins.charmap.core.CharMap'
557
- ],
558
- function (Actions, CharMap) {
559
- var get = function (editor) {
560
- var getCharMap = function () {
561
- return CharMap.getCharMap(editor);
562
- };
563
-
564
- var insertChar = function (chr) {
565
- Actions.insertChar(editor, chr);
566
- };
567
-
568
- return {
569
- getCharMap: getCharMap,
570
- insertChar: insertChar
571
- };
572
- };
573
-
574
- return {
575
- get: get
576
- };
577
- }
578
- );
579
-
580
-
581
- /**
582
- * GridHtml.js
583
- *
584
- * Released under LGPL License.
585
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
586
- *
587
- * License: http://www.tinymce.com/license
588
- * Contributing: http://www.tinymce.com/contributing
589
- */
590
-
591
- define(
592
- 'tinymce.plugins.charmap.ui.GridHtml',
593
- [
594
- ],
595
- function () {
596
- var getHtml = function (charmap) {
597
- var gridHtml, x, y;
598
- var width = Math.min(charmap.length, 25);
599
- var height = Math.ceil(charmap.length / width);
600
-
601
- gridHtml = '<table role="presentation" cellspacing="0" class="mce-charmap"><tbody>';
602
-
603
- for (y = 0; y < height; y++) {
604
- gridHtml += '<tr>';
605
-
606
- for (x = 0; x < width; x++) {
607
- var index = y * width + x;
608
- if (index < charmap.length) {
609
- var chr = charmap[index];
610
- var charCode = parseInt(chr[0], 10);
611
- var chrText = chr ? String.fromCharCode(charCode) : '&nbsp;';
612
-
613
- gridHtml += (
614
- '<td title="' + chr[1] + '">' +
615
- '<div tabindex="-1" title="' + chr[1] + '" role="button" data-chr="' + charCode + '">' +
616
- chrText +
617
- '</div>' +
618
- '</td>'
619
- );
620
- } else {
621
- gridHtml += '<td />';
1158
+ elm = elm.parentNode;
1159
+ }
1160
+ };
1161
+ var open = function (editor) {
1162
+ var win;
1163
+ var charMapPanel = {
1164
+ type: 'container',
1165
+ html: $_eyauk69vjm0ofy64.getHtml($_chveh89qjm0ofy5o.getCharMap(editor)),
1166
+ onclick: function (e) {
1167
+ var target = e.target;
1168
+ if (/^(TD|DIV)$/.test(target.nodeName)) {
1169
+ var charDiv = getParentTd(target).firstChild;
1170
+ if (charDiv && charDiv.hasAttribute('data-chr')) {
1171
+ var charCodeString = charDiv.getAttribute('data-chr');
1172
+ var charCode = parseInt(charCodeString, 10);
1173
+ if (!isNaN(charCode)) {
1174
+ $_4kycsa9ojm0ofy5l.insertChar(editor, String.fromCharCode(charCode));
1175
+ }
1176
+ if (!e.ctrlKey) {
1177
+ win.close();
1178
+ }
622
1179
  }
623
1180
  }
624
-
625
- gridHtml += '</tr>';
626
- }
627
-
628
- gridHtml += '</tbody></table>';
629
-
630
- return gridHtml;
631
- };
632
-
633
- return {
634
- getHtml: getHtml
635
- };
636
- }
637
- );
638
- /**
639
- * Dialog.js
640
- *
641
- * Released under LGPL License.
642
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
643
- *
644
- * License: http://www.tinymce.com/license
645
- * Contributing: http://www.tinymce.com/contributing
646
- */
647
-
648
- define(
649
- 'tinymce.plugins.charmap.ui.Dialog',
650
- [
651
- 'tinymce.plugins.charmap.core.Actions',
652
- 'tinymce.plugins.charmap.core.CharMap',
653
- 'tinymce.plugins.charmap.ui.GridHtml'
654
- ],
655
- function (Actions, CharMap, GridHtml) {
656
- var getParentTd = function (elm) {
657
- while (elm) {
658
- if (elm.nodeName === 'TD') {
659
- return elm;
1181
+ },
1182
+ onmouseover: function (e) {
1183
+ var td = getParentTd(e.target);
1184
+ if (td && td.firstChild) {
1185
+ win.find('#preview').text(td.firstChild.firstChild.data);
1186
+ win.find('#previewTitle').text(td.title);
1187
+ } else {
1188
+ win.find('#preview').text(' ');
1189
+ win.find('#previewTitle').text(' ');
660
1190
  }
661
-
662
- elm = elm.parentNode;
663
1191
  }
664
1192
  };
665
-
666
- var open = function (editor) {
667
- var win;
668
-
669
- var charMapPanel = {
670
- type: 'container',
671
- html: GridHtml.getHtml(CharMap.getCharMap(editor)),
672
- onclick: function (e) {
673
- var target = e.target;
674
-
675
- if (/^(TD|DIV)$/.test(target.nodeName)) {
676
- var charDiv = getParentTd(target).firstChild;
677
- if (charDiv && charDiv.hasAttribute('data-chr')) {
678
- var charCodeString = charDiv.getAttribute('data-chr');
679
- var charCode = parseInt(charCodeString, 10);
680
-
681
- if (!isNaN(charCode)) {
682
- Actions.insertChar(editor, String.fromCharCode(charCode));
683
- }
684
-
685
- if (!e.ctrlKey) {
686
- win.close();
687
- }
1193
+ win = editor.windowManager.open({
1194
+ title: 'Special character',
1195
+ spacing: 10,
1196
+ padding: 10,
1197
+ items: [
1198
+ charMapPanel,
1199
+ {
1200
+ type: 'container',
1201
+ layout: 'flex',
1202
+ direction: 'column',
1203
+ align: 'center',
1204
+ spacing: 5,
1205
+ minWidth: 160,
1206
+ minHeight: 160,
1207
+ items: [
1208
+ {
1209
+ type: 'label',
1210
+ name: 'preview',
1211
+ text: ' ',
1212
+ style: 'font-size: 40px; text-align: center',
1213
+ border: 1,
1214
+ minWidth: 140,
1215
+ minHeight: 80
1216
+ },
1217
+ {
1218
+ type: 'spacer',
1219
+ minHeight: 20
1220
+ },
1221
+ {
1222
+ type: 'label',
1223
+ name: 'previewTitle',
1224
+ text: ' ',
1225
+ style: 'white-space: pre-wrap;',
1226
+ border: 1,
1227
+ minWidth: 140
688
1228
  }
689
- }
690
- },
691
- onmouseover: function (e) {
692
- var td = getParentTd(e.target);
693
-
694
- if (td && td.firstChild) {
695
- win.find('#preview').text(td.firstChild.firstChild.data);
696
- win.find('#previewTitle').text(td.title);
697
- } else {
698
- win.find('#preview').text(' ');
699
- win.find('#previewTitle').text(' ');
700
- }
1229
+ ]
701
1230
  }
702
- };
703
-
704
- win = editor.windowManager.open({
705
- title: "Special character",
706
- spacing: 10,
707
- padding: 10,
708
- items: [
709
- charMapPanel,
710
- {
711
- type: 'container',
712
- layout: 'flex',
713
- direction: 'column',
714
- align: 'center',
715
- spacing: 5,
716
- minWidth: 160,
717
- minHeight: 160,
718
- items: [
719
- {
720
- type: 'label',
721
- name: 'preview',
722
- text: ' ',
723
- style: 'font-size: 40px; text-align: center',
724
- border: 1,
725
- minWidth: 140,
726
- minHeight: 80
727
- },
728
- {
729
- type: 'spacer',
730
- minHeight: 20
731
- },
732
- {
733
- type: 'label',
734
- name: 'previewTitle',
735
- text: ' ',
736
- style: 'white-space: pre-wrap;',
737
- border: 1,
738
- minWidth: 140
739
- }
740
- ]
1231
+ ],
1232
+ buttons: [{
1233
+ text: 'Close',
1234
+ onclick: function () {
1235
+ win.close();
741
1236
  }
742
- ],
743
- buttons: [
744
- {
745
- text: "Close", onclick: function () {
746
- win.close();
747
- }
748
- }
749
- ]
750
- });
751
- };
752
-
753
- return {
754
- open: open
755
- };
756
- }
757
- );
758
- /**
759
- * Commands.js
760
- *
761
- * Released under LGPL License.
762
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
763
- *
764
- * License: http://www.tinymce.com/license
765
- * Contributing: http://www.tinymce.com/contributing
766
- */
767
-
768
- define(
769
- 'tinymce.plugins.charmap.api.Commands',
770
- [
771
- 'tinymce.plugins.charmap.ui.Dialog'
772
- ],
773
- function (Dialog) {
774
- var register = function (editor) {
775
- editor.addCommand('mceShowCharmap', function () {
776
- Dialog.open(editor);
777
- });
778
- };
779
-
780
- return {
781
- register: register
782
- };
783
- }
784
- );
785
- /**
786
- * Buttons.js
787
- *
788
- * Released under LGPL License.
789
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
790
- *
791
- * License: http://www.tinymce.com/license
792
- * Contributing: http://www.tinymce.com/contributing
793
- */
794
-
795
- define(
796
- 'tinymce.plugins.charmap.ui.Buttons',
797
- [
798
- ],
799
- function () {
800
- var register = function (editor) {
801
- editor.addButton('charmap', {
802
- icon: 'charmap',
803
- tooltip: 'Special character',
804
- cmd: 'mceShowCharmap'
805
- });
1237
+ }]
1238
+ });
1239
+ };
1240
+ var $_c6j7vw9ujm0ofy5v = { open: open };
806
1241
 
807
- editor.addMenuItem('charmap', {
808
- icon: 'charmap',
809
- text: 'Special character',
810
- cmd: 'mceShowCharmap',
811
- context: 'insert'
812
- });
813
- };
1242
+ var register = function (editor) {
1243
+ editor.addCommand('mceShowCharmap', function () {
1244
+ $_c6j7vw9ujm0ofy5v.open(editor);
1245
+ });
1246
+ };
1247
+ var $_1bywb99tjm0ofy5u = { register: register };
814
1248
 
815
- return {
816
- register: register
817
- };
1249
+ var register$1 = function (editor) {
1250
+ editor.addButton('charmap', {
1251
+ icon: 'charmap',
1252
+ tooltip: 'Special character',
1253
+ cmd: 'mceShowCharmap'
1254
+ });
1255
+ editor.addMenuItem('charmap', {
1256
+ icon: 'charmap',
1257
+ text: 'Special character',
1258
+ cmd: 'mceShowCharmap',
1259
+ context: 'insert'
1260
+ });
1261
+ };
1262
+ var $_39lae9wjm0ofy65 = { register: register$1 };
1263
+
1264
+ global.add('charmap', function (editor) {
1265
+ $_1bywb99tjm0ofy5u.register(editor);
1266
+ $_39lae9wjm0ofy65.register(editor);
1267
+ return $_11mull9njm0ofy5k.get(editor);
1268
+ });
1269
+ function Plugin () {
818
1270
  }
819
- );
820
- /**
821
- * Plugin.js
822
- *
823
- * Released under LGPL License.
824
- * Copyright (c) 1999-2017 Ephox Corp. All rights reserved
825
- *
826
- * License: http://www.tinymce.com/license
827
- * Contributing: http://www.tinymce.com/contributing
828
- */
829
-
830
- define(
831
- 'tinymce.plugins.charmap.Plugin',
832
- [
833
- 'tinymce.core.PluginManager',
834
- 'tinymce.plugins.charmap.api.Api',
835
- 'tinymce.plugins.charmap.api.Commands',
836
- 'tinymce.plugins.charmap.ui.Buttons'
837
- ],
838
- function (PluginManager, Api, Commands, Buttons) {
839
- PluginManager.add('charmap', function (editor) {
840
- Commands.register(editor);
841
- Buttons.register(editor);
842
1271
 
843
- return Api.get(editor);
844
- });
1272
+ return Plugin;
845
1273
 
846
- return function () { };
847
- }
848
- );
849
- dem('tinymce.plugins.charmap.Plugin')();
1274
+ }());
850
1275
  })();