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.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/assets/_vendor/ace/ace.js +21635 -0
- data/assets/_vendor/ace/ext-beautify.js +318 -0
- data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
- data/assets/_vendor/ace/ext-emmet.js +1226 -0
- data/assets/_vendor/ace/ext-error_marker.js +10 -0
- data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
- data/assets/_vendor/ace/ext-language_tools.js +1997 -0
- data/assets/_vendor/ace/ext-linking.js +65 -0
- data/assets/_vendor/ace/ext-modelist.js +228 -0
- data/assets/_vendor/ace/ext-options.js +750 -0
- data/assets/_vendor/ace/ext-rtl.js +110 -0
- data/assets/_vendor/ace/ext-searchbox.js +512 -0
- data/assets/_vendor/ace/ext-settings_menu.js +771 -0
- data/assets/_vendor/ace/ext-spellcheck.js +75 -0
- data/assets/_vendor/ace/ext-split.js +208 -0
- data/assets/_vendor/ace/ext-static_highlight.js +226 -0
- data/assets/_vendor/ace/ext-statusbar.js +57 -0
- data/assets/_vendor/ace/ext-textarea.js +567 -0
- data/assets/_vendor/ace/ext-themelist.js +67 -0
- data/assets/_vendor/ace/ext-whitespace.js +210 -0
- data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
- data/assets/_vendor/ace/keybinding-vim.js +5673 -0
- data/assets/_vendor/ace/mode-abap.js +222 -0
- data/assets/_vendor/ace/mode-abc.js +267 -0
- data/assets/_vendor/ace/mode-actionscript.js +274 -0
- data/assets/_vendor/ace/mode-ada.js +138 -0
- data/assets/_vendor/ace/mode-apache_conf.js +363 -0
- data/assets/_vendor/ace/mode-applescript.js +279 -0
- data/assets/_vendor/ace/mode-asciidoc.js +349 -0
- data/assets/_vendor/ace/mode-asl.js +422 -0
- data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
- data/assets/_vendor/ace/mode-autohotkey.js +243 -0
- data/assets/_vendor/ace/mode-batchfile.js +230 -0
- data/assets/_vendor/ace/mode-bro.js +334 -0
- data/assets/_vendor/ace/mode-c9search.js +294 -0
- data/assets/_vendor/ace/mode-c_cpp.js +502 -0
- data/assets/_vendor/ace/mode-cirru.js +211 -0
- data/assets/_vendor/ace/mode-clojure.js +314 -0
- data/assets/_vendor/ace/mode-cobol.js +102 -0
- data/assets/_vendor/ace/mode-coffee.js +400 -0
- data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
- data/assets/_vendor/ace/mode-csharp.js +502 -0
- data/assets/_vendor/ace/mode-csound_document.js +3749 -0
- data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
- data/assets/_vendor/ace/mode-csound_score.js +454 -0
- data/assets/_vendor/ace/mode-csp.js +60 -0
- data/assets/_vendor/ace/mode-css.js +723 -0
- data/assets/_vendor/ace/mode-curly.js +2564 -0
- data/assets/_vendor/ace/mode-d.js +520 -0
- data/assets/_vendor/ace/mode-dart.js +703 -0
- data/assets/_vendor/ace/mode-diff.js +146 -0
- data/assets/_vendor/ace/mode-django.js +2594 -0
- data/assets/_vendor/ace/mode-dockerfile.js +498 -0
- data/assets/_vendor/ace/mode-dot.js +418 -0
- data/assets/_vendor/ace/mode-drools.js +496 -0
- data/assets/_vendor/ace/mode-edifact.js +165 -0
- data/assets/_vendor/ace/mode-eiffel.js +136 -0
- data/assets/_vendor/ace/mode-ejs.js +3026 -0
- data/assets/_vendor/ace/mode-elixir.js +501 -0
- data/assets/_vendor/ace/mode-elm.js +307 -0
- data/assets/_vendor/ace/mode-erlang.js +1009 -0
- data/assets/_vendor/ace/mode-forth.js +297 -0
- data/assets/_vendor/ace/mode-fortran.js +431 -0
- data/assets/_vendor/ace/mode-fsharp.js +314 -0
- data/assets/_vendor/ace/mode-ftl.js +1192 -0
- data/assets/_vendor/ace/mode-gcode.js +94 -0
- data/assets/_vendor/ace/mode-gherkin.js +172 -0
- data/assets/_vendor/ace/mode-gitignore.js +60 -0
- data/assets/_vendor/ace/mode-glsl.js +579 -0
- data/assets/_vendor/ace/mode-gobstones.js +929 -0
- data/assets/_vendor/ace/mode-golang.js +414 -0
- data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
- data/assets/_vendor/ace/mode-groovy.js +986 -0
- data/assets/_vendor/ace/mode-haml.js +1555 -0
- data/assets/_vendor/ace/mode-handlebars.js +2622 -0
- data/assets/_vendor/ace/mode-haskell.js +379 -0
- data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
- data/assets/_vendor/ace/mode-haxe.js +386 -0
- data/assets/_vendor/ace/mode-hjson.js +353 -0
- data/assets/_vendor/ace/mode-html.js +2509 -0
- data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
- data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
- data/assets/_vendor/ace/mode-ini.js +163 -0
- data/assets/_vendor/ace/mode-io.js +253 -0
- data/assets/_vendor/ace/mode-jack.js +347 -0
- data/assets/_vendor/ace/mode-jade.js +2126 -0
- data/assets/_vendor/ace/mode-java.js +975 -0
- data/assets/_vendor/ace/mode-javascript.js +797 -0
- data/assets/_vendor/ace/mode-json.js +327 -0
- data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
- data/assets/_vendor/ace/mode-jsp.js +1430 -0
- data/assets/_vendor/ace/mode-jssm.js +325 -0
- data/assets/_vendor/ace/mode-jsx.js +412 -0
- data/assets/_vendor/ace/mode-julia.js +303 -0
- data/assets/_vendor/ace/mode-kotlin.js +795 -0
- data/assets/_vendor/ace/mode-latex.js +297 -0
- data/assets/_vendor/ace/mode-less.js +841 -0
- data/assets/_vendor/ace/mode-liquid.js +1193 -0
- data/assets/_vendor/ace/mode-lisp.js +112 -0
- data/assets/_vendor/ace/mode-livescript.js +280 -0
- data/assets/_vendor/ace/mode-logiql.js +317 -0
- data/assets/_vendor/ace/mode-lsl.js +343 -0
- data/assets/_vendor/ace/mode-lua.js +432 -0
- data/assets/_vendor/ace/mode-luapage.js +3007 -0
- data/assets/_vendor/ace/mode-lucene.js +87 -0
- data/assets/_vendor/ace/mode-makefile.js +410 -0
- data/assets/_vendor/ace/mode-markdown.js +3189 -0
- data/assets/_vendor/ace/mode-mask.js +1802 -0
- data/assets/_vendor/ace/mode-matlab.js +264 -0
- data/assets/_vendor/ace/mode-maze.js +291 -0
- data/assets/_vendor/ace/mode-mel.js +263 -0
- data/assets/_vendor/ace/mode-mixal.js +123 -0
- data/assets/_vendor/ace/mode-mushcode.js +681 -0
- data/assets/_vendor/ace/mode-mysql.js +168 -0
- data/assets/_vendor/ace/mode-nix.js +646 -0
- data/assets/_vendor/ace/mode-nsis.js +312 -0
- data/assets/_vendor/ace/mode-objectivec.js +739 -0
- data/assets/_vendor/ace/mode-ocaml.js +422 -0
- data/assets/_vendor/ace/mode-pascal.js +205 -0
- data/assets/_vendor/ace/mode-perl.js +380 -0
- data/assets/_vendor/ace/mode-pgsql.js +1508 -0
- data/assets/_vendor/ace/mode-php.js +13088 -0
- data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
- data/assets/_vendor/ace/mode-pig.js +310 -0
- data/assets/_vendor/ace/mode-plain_text.js +33 -0
- data/assets/_vendor/ace/mode-powershell.js +418 -0
- data/assets/_vendor/ace/mode-praat.js +478 -0
- data/assets/_vendor/ace/mode-prolog.js +371 -0
- data/assets/_vendor/ace/mode-properties.js +81 -0
- data/assets/_vendor/ace/mode-protobuf.js +592 -0
- data/assets/_vendor/ace/mode-puppet.js +370 -0
- data/assets/_vendor/ace/mode-python.js +273 -0
- data/assets/_vendor/ace/mode-r.js +310 -0
- data/assets/_vendor/ace/mode-razor.js +2869 -0
- data/assets/_vendor/ace/mode-rdoc.js +243 -0
- data/assets/_vendor/ace/mode-red.js +450 -0
- data/assets/_vendor/ace/mode-redshift.js +361 -0
- data/assets/_vendor/ace/mode-rhtml.js +2806 -0
- data/assets/_vendor/ace/mode-rst.js +257 -0
- data/assets/_vendor/ace/mode-ruby.js +497 -0
- data/assets/_vendor/ace/mode-rust.js +279 -0
- data/assets/_vendor/ace/mode-sass.js +441 -0
- data/assets/_vendor/ace/mode-scad.js +414 -0
- data/assets/_vendor/ace/mode-scala.js +982 -0
- data/assets/_vendor/ace/mode-scheme.js +232 -0
- data/assets/_vendor/ace/mode-scss.js +606 -0
- data/assets/_vendor/ace/mode-sh.js +447 -0
- data/assets/_vendor/ace/mode-sjs.js +1014 -0
- data/assets/_vendor/ace/mode-slim.js +4736 -0
- data/assets/_vendor/ace/mode-smarty.js +2635 -0
- data/assets/_vendor/ace/mode-snippets.js +207 -0
- data/assets/_vendor/ace/mode-soy_template.js +2847 -0
- data/assets/_vendor/ace/mode-space.js +168 -0
- data/assets/_vendor/ace/mode-sparql.js +320 -0
- data/assets/_vendor/ace/mode-sql.js +111 -0
- data/assets/_vendor/ace/mode-sqlserver.js +444 -0
- data/assets/_vendor/ace/mode-stylus.js +471 -0
- data/assets/_vendor/ace/mode-svg.js +1581 -0
- data/assets/_vendor/ace/mode-swift.js +390 -0
- data/assets/_vendor/ace/mode-tcl.js +383 -0
- data/assets/_vendor/ace/mode-terraform.js +398 -0
- data/assets/_vendor/ace/mode-tex.js +159 -0
- data/assets/_vendor/ace/mode-text.js +10 -0
- data/assets/_vendor/ace/mode-textile.js +150 -0
- data/assets/_vendor/ace/mode-toml.js +154 -0
- data/assets/_vendor/ace/mode-tsx.js +887 -0
- data/assets/_vendor/ace/mode-turtle.js +296 -0
- data/assets/_vendor/ace/mode-twig.js +2693 -0
- data/assets/_vendor/ace/mode-typescript.js +868 -0
- data/assets/_vendor/ace/mode-vala.js +676 -0
- data/assets/_vendor/ace/mode-vbscript.js +207 -0
- data/assets/_vendor/ace/mode-velocity.js +2790 -0
- data/assets/_vendor/ace/mode-verilog.js +119 -0
- data/assets/_vendor/ace/mode-vhdl.js +118 -0
- data/assets/_vendor/ace/mode-wollok.js +911 -0
- data/assets/_vendor/ace/mode-xml.js +677 -0
- data/assets/_vendor/ace/mode-xquery.js +4922 -0
- data/assets/_vendor/ace/mode-yaml.js +300 -0
- data/assets/_vendor/ace/snippets/abap.js +15 -0
- data/assets/_vendor/ace/snippets/abc.js +46 -0
- data/assets/_vendor/ace/snippets/actionscript.js +172 -0
- data/assets/_vendor/ace/snippets/ada.js +15 -0
- data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
- data/assets/_vendor/ace/snippets/applescript.js +15 -0
- data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
- data/assets/_vendor/ace/snippets/asl.js +14 -0
- data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
- data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
- data/assets/_vendor/ace/snippets/batchfile.js +15 -0
- data/assets/_vendor/ace/snippets/bro.js +15 -0
- data/assets/_vendor/ace/snippets/c9search.js +15 -0
- data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
- data/assets/_vendor/ace/snippets/cirru.js +15 -0
- data/assets/_vendor/ace/snippets/clojure.js +105 -0
- data/assets/_vendor/ace/snippets/cobol.js +15 -0
- data/assets/_vendor/ace/snippets/coffee.js +110 -0
- data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
- data/assets/_vendor/ace/snippets/csharp.js +15 -0
- data/assets/_vendor/ace/snippets/csound_document.js +25 -0
- data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
- data/assets/_vendor/ace/snippets/csound_score.js +15 -0
- data/assets/_vendor/ace/snippets/csp.js +15 -0
- data/assets/_vendor/ace/snippets/css.js +982 -0
- data/assets/_vendor/ace/snippets/curly.js +15 -0
- data/assets/_vendor/ace/snippets/d.js +15 -0
- data/assets/_vendor/ace/snippets/dart.js +98 -0
- data/assets/_vendor/ace/snippets/diff.js +26 -0
- data/assets/_vendor/ace/snippets/django.js +123 -0
- data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
- data/assets/_vendor/ace/snippets/dot.js +15 -0
- data/assets/_vendor/ace/snippets/drools.js +34 -0
- data/assets/_vendor/ace/snippets/edifact.js +255 -0
- data/assets/_vendor/ace/snippets/eiffel.js +15 -0
- data/assets/_vendor/ace/snippets/ejs.js +15 -0
- data/assets/_vendor/ace/snippets/elixir.js +15 -0
- data/assets/_vendor/ace/snippets/elm.js +15 -0
- data/assets/_vendor/ace/snippets/erlang.js +175 -0
- data/assets/_vendor/ace/snippets/forth.js +15 -0
- data/assets/_vendor/ace/snippets/fortran.js +15 -0
- data/assets/_vendor/ace/snippets/fsharp.js +15 -0
- data/assets/_vendor/ace/snippets/ftl.js +15 -0
- data/assets/_vendor/ace/snippets/gcode.js +15 -0
- data/assets/_vendor/ace/snippets/gherkin.js +15 -0
- data/assets/_vendor/ace/snippets/gitignore.js +15 -0
- data/assets/_vendor/ace/snippets/glsl.js +15 -0
- data/assets/_vendor/ace/snippets/gobstones.js +49 -0
- data/assets/_vendor/ace/snippets/golang.js +15 -0
- data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
- data/assets/_vendor/ace/snippets/groovy.js +15 -0
- data/assets/_vendor/ace/snippets/haml.js +35 -0
- data/assets/_vendor/ace/snippets/handlebars.js +15 -0
- data/assets/_vendor/ace/snippets/haskell.js +97 -0
- data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
- data/assets/_vendor/ace/snippets/haxe.js +15 -0
- data/assets/_vendor/ace/snippets/hjson.js +15 -0
- data/assets/_vendor/ace/snippets/html.js +870 -0
- data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
- data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
- data/assets/_vendor/ace/snippets/ini.js +15 -0
- data/assets/_vendor/ace/snippets/io.js +77 -0
- data/assets/_vendor/ace/snippets/jack.js +15 -0
- data/assets/_vendor/ace/snippets/jade.js +15 -0
- data/assets/_vendor/ace/snippets/java.js +255 -0
- data/assets/_vendor/ace/snippets/javascript.js +210 -0
- data/assets/_vendor/ace/snippets/json.js +15 -0
- data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
- data/assets/_vendor/ace/snippets/jsp.js +114 -0
- data/assets/_vendor/ace/snippets/jssm.js +15 -0
- data/assets/_vendor/ace/snippets/jsx.js +15 -0
- data/assets/_vendor/ace/snippets/julia.js +15 -0
- data/assets/_vendor/ace/snippets/kotlin.js +15 -0
- data/assets/_vendor/ace/snippets/latex.js +15 -0
- data/assets/_vendor/ace/snippets/less.js +15 -0
- data/assets/_vendor/ace/snippets/liquid.js +15 -0
- data/assets/_vendor/ace/snippets/lisp.js +15 -0
- data/assets/_vendor/ace/snippets/livescript.js +15 -0
- data/assets/_vendor/ace/snippets/logiql.js +15 -0
- data/assets/_vendor/ace/snippets/lsl.js +1247 -0
- data/assets/_vendor/ace/snippets/lua.js +36 -0
- data/assets/_vendor/ace/snippets/luapage.js +15 -0
- data/assets/_vendor/ace/snippets/lucene.js +15 -0
- data/assets/_vendor/ace/snippets/makefile.js +19 -0
- data/assets/_vendor/ace/snippets/markdown.js +103 -0
- data/assets/_vendor/ace/snippets/mask.js +15 -0
- data/assets/_vendor/ace/snippets/matlab.js +15 -0
- data/assets/_vendor/ace/snippets/maze.js +24 -0
- data/assets/_vendor/ace/snippets/mel.js +15 -0
- data/assets/_vendor/ace/snippets/mixal.js +15 -0
- data/assets/_vendor/ace/snippets/mushcode.js +15 -0
- data/assets/_vendor/ace/snippets/mysql.js +15 -0
- data/assets/_vendor/ace/snippets/nix.js +15 -0
- data/assets/_vendor/ace/snippets/nsis.js +15 -0
- data/assets/_vendor/ace/snippets/objectivec.js +15 -0
- data/assets/_vendor/ace/snippets/ocaml.js +15 -0
- data/assets/_vendor/ace/snippets/pascal.js +15 -0
- data/assets/_vendor/ace/snippets/perl.js +362 -0
- data/assets/_vendor/ace/snippets/pgsql.js +15 -0
- data/assets/_vendor/ace/snippets/php.js +398 -0
- data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
- data/assets/_vendor/ace/snippets/pig.js +15 -0
- data/assets/_vendor/ace/snippets/plain_text.js +15 -0
- data/assets/_vendor/ace/snippets/powershell.js +15 -0
- data/assets/_vendor/ace/snippets/praat.js +15 -0
- data/assets/_vendor/ace/snippets/prolog.js +15 -0
- data/assets/_vendor/ace/snippets/properties.js +15 -0
- data/assets/_vendor/ace/snippets/protobuf.js +15 -0
- data/assets/_vendor/ace/snippets/puppet.js +15 -0
- data/assets/_vendor/ace/snippets/python.js +173 -0
- data/assets/_vendor/ace/snippets/r.js +136 -0
- data/assets/_vendor/ace/snippets/razor.js +18 -0
- data/assets/_vendor/ace/snippets/rdoc.js +15 -0
- data/assets/_vendor/ace/snippets/red.js +15 -0
- data/assets/_vendor/ace/snippets/redshift.js +15 -0
- data/assets/_vendor/ace/snippets/rhtml.js +15 -0
- data/assets/_vendor/ace/snippets/rst.js +37 -0
- data/assets/_vendor/ace/snippets/ruby.js +943 -0
- data/assets/_vendor/ace/snippets/rust.js +15 -0
- data/assets/_vendor/ace/snippets/sass.js +15 -0
- data/assets/_vendor/ace/snippets/scad.js +15 -0
- data/assets/_vendor/ace/snippets/scala.js +15 -0
- data/assets/_vendor/ace/snippets/scheme.js +15 -0
- data/assets/_vendor/ace/snippets/scss.js +15 -0
- data/assets/_vendor/ace/snippets/sh.js +98 -0
- data/assets/_vendor/ace/snippets/sjs.js +15 -0
- data/assets/_vendor/ace/snippets/slim.js +15 -0
- data/assets/_vendor/ace/snippets/smarty.js +15 -0
- data/assets/_vendor/ace/snippets/snippets.js +24 -0
- data/assets/_vendor/ace/snippets/soy_template.js +15 -0
- data/assets/_vendor/ace/snippets/space.js +15 -0
- data/assets/_vendor/ace/snippets/sparql.js +15 -0
- data/assets/_vendor/ace/snippets/sql.js +41 -0
- data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
- data/assets/_vendor/ace/snippets/stylus.js +15 -0
- data/assets/_vendor/ace/snippets/svg.js +15 -0
- data/assets/_vendor/ace/snippets/swift.js +15 -0
- data/assets/_vendor/ace/snippets/tcl.js +107 -0
- data/assets/_vendor/ace/snippets/terraform.js +15 -0
- data/assets/_vendor/ace/snippets/tex.js +205 -0
- data/assets/_vendor/ace/snippets/text.js +15 -0
- data/assets/_vendor/ace/snippets/textile.js +45 -0
- data/assets/_vendor/ace/snippets/toml.js +15 -0
- data/assets/_vendor/ace/snippets/tsx.js +15 -0
- data/assets/_vendor/ace/snippets/turtle.js +15 -0
- data/assets/_vendor/ace/snippets/twig.js +15 -0
- data/assets/_vendor/ace/snippets/typescript.js +15 -0
- data/assets/_vendor/ace/snippets/vala.js +201 -0
- data/assets/_vendor/ace/snippets/vbscript.js +15 -0
- data/assets/_vendor/ace/snippets/velocity.js +44 -0
- data/assets/_vendor/ace/snippets/verilog.js +15 -0
- data/assets/_vendor/ace/snippets/vhdl.js +15 -0
- data/assets/_vendor/ace/snippets/wollok.js +99 -0
- data/assets/_vendor/ace/snippets/xml.js +15 -0
- data/assets/_vendor/ace/snippets/xquery.js +76 -0
- data/assets/_vendor/ace/snippets/yaml.js +15 -0
- data/assets/_vendor/ace/theme-ambiance.js +185 -0
- data/assets/_vendor/ace/theme-chaos.js +164 -0
- data/assets/_vendor/ace/theme-chrome.js +136 -0
- data/assets/_vendor/ace/theme-clouds.js +103 -0
- data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
- data/assets/_vendor/ace/theme-cobalt.js +121 -0
- data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
- data/assets/_vendor/ace/theme-dawn.js +116 -0
- data/assets/_vendor/ace/theme-dracula.js +136 -0
- data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
- data/assets/_vendor/ace/theme-eclipse.js +106 -0
- data/assets/_vendor/ace/theme-github.js +110 -0
- data/assets/_vendor/ace/theme-gob.js +120 -0
- data/assets/_vendor/ace/theme-gruvbox.js +90 -0
- data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
- data/assets/_vendor/ace/theme-iplastic.js +129 -0
- data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
- data/assets/_vendor/ace/theme-kr_theme.js +112 -0
- data/assets/_vendor/ace/theme-kuroir.js +69 -0
- data/assets/_vendor/ace/theme-merbivore.js +103 -0
- data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
- data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
- data/assets/_vendor/ace/theme-monokai.js +113 -0
- data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
- data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
- data/assets/_vendor/ace/theme-solarized_light.js +99 -0
- data/assets/_vendor/ace/theme-sqlserver.js +146 -0
- data/assets/_vendor/ace/theme-terminal.js +122 -0
- data/assets/_vendor/ace/theme-textmate.js +138 -0
- data/assets/_vendor/ace/theme-tomorrow.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
- data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
- data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
- data/assets/_vendor/ace/theme-twilight.js +117 -0
- data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
- data/assets/_vendor/ace/theme-xcode.js +96 -0
- data/assets/_vendor/ace/worker-coffee.js +2165 -0
- data/assets/_vendor/ace/worker-css.js +8764 -0
- data/assets/_vendor/ace/worker-html.js +11614 -0
- data/assets/_vendor/ace/worker-javascript.js +12491 -0
- data/assets/_vendor/ace/worker-json.js +2396 -0
- data/assets/_vendor/ace/worker-lua.js +3637 -0
- data/assets/_vendor/ace/worker-php.js +4313 -0
- data/assets/_vendor/ace/worker-xml.js +3899 -0
- data/assets/_vendor/ace/worker-xquery.js +70688 -0
- data/assets/_vendor/motion-ui/_settings.scss +1 -0
- data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
- data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
- data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
- data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
- data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
- data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
- data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
- data/assets/_vendor/motion-ui/util/_args.scss +2 -2
- data/assets/_vendor/motion-ui/util/_function.scss +94 -0
- data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
- data/assets/_vendor/motion-ui/util/_series.scss +20 -17
- data/assets/_vendor/motion-ui/util/_string.scss +36 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
- data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
- data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
- data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
- data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
- data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
- data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
- data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
- data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
- data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
- data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
- data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
- data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
- data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
- data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
- data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
- data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
- data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
- data/assets/_vendor/tinymce/tinymce.js +25087 -42606
- data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
- data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
- data/assets/bedrock/js/bedrock.js +1 -71697
- data/assets/bedrock/scss/_bedrock-components.scss +20 -0
- data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
- data/assets/bedrock/scss/_foundation-settings.scss +4 -2
- data/assets/bedrock/scss/components/ace-editor.scss +21 -0
- data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
- data/assets/bedrock/scss/components/date-picker.scss +146 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
- data/assets/bedrock/scss/components/file-input.scss +7 -0
- data/assets/bedrock/scss/components/file-preview.scss +36 -0
- data/assets/bedrock/scss/components/frame-embed.scss +23 -0
- data/assets/bedrock/scss/components/global.scss +27 -0
- data/assets/bedrock/scss/components/helper-classes.scss +1 -0
- data/assets/bedrock/scss/components/icon-box.scss +38 -0
- data/assets/bedrock/scss/components/item-list.scss +66 -0
- data/assets/bedrock/scss/components/lists.scss +58 -0
- data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
- data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
- data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
- data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
- data/assets/bedrock/scss/components/select-box.scss +1 -0
- data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
- data/assets/bedrock/scss/components/textarea.scss +14 -2
- data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
- data/lib/bedrock_sass.rb +5 -0
- data/lib/bedrock_sass/version.rb +1 -1
- data/lib/tasks/before_assets_precompile.rake +1 -0
- metadata +395 -4
- data/CODE_OF_CONDUCT.md +0 -74
@@ -1 +1 @@
|
|
1
|
-
!function(){
|
1
|
+
!function(){"use strict";var r=function(t){var e=t,n=function(){return e};return{get:n,set:function(t){e=t},clone:function(){return r(n())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{setPatterns:function(t){e.set(t)},getPatterns:function(){return e.get()}}},e=[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"***",end:"***",format:["bold","italic"]},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}],a=function(t){return t.textpattern_patterns!==undefined?t.textpattern_patterns:e},o=tinymce.util.Tools.resolve("tinymce.util.Delay"),i=tinymce.util.Tools.resolve("tinymce.util.VK"),g=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),h=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=function(t,e){for(var n=0;n<t.length;n++)if(0===e.indexOf(t[n].start)&&(!t[n].end||e.lastIndexOf(t[n].end)===e.length-t[n].end.length))return t[n]},c=function(t,e,n,r){var a,o,i,s,d,f,l=t.sort(function(t,e){return t.start.length>e.start.length?-1:t.start.length<e.start.length?1:0});for(o=0;o<l.length;o++)if((a=l[o]).end!==undefined&&(s=a,d=n,f=r,e.substr(d-s.end.length-f,s.end.length)===s.end)&&0<n-r-(i=a).end.length-i.start.length)return a},s=function(t,e,n){if(!1!==e.collapsed){var r=e.startContainer,a=r.data,o=!0===n?1:0;if(3===r.nodeType){var i=c(t,a,e.startOffset,o);if(i!==undefined){var s=a.lastIndexOf(i.end,e.startOffset-o),d=a.lastIndexOf(i.start,s-i.end.length);if(s=a.indexOf(i.end,d+i.start.length),-1!==d){var f=document.createRange();f.setStart(r,d),f.setEnd(r,s+i.end.length);var l=m(t,f.toString());if(!(i===undefined||l!==i||r.data.length<=i.start.length+i.end.length))return{pattern:i,startOffset:d,endOffset:s}}}}}},d=function(t,e,n){var r=t.selection.getRng(!0),a=s(e,r,n);if(a)return function(a,o,i,t){var s=h.isArray(i.pattern.format)?i.pattern.format:[i.pattern.format];if(0!==h.grep(s,function(t){var e=a.formatter.get(t);return e&&e[0].inline}).length)return a.undoManager.transact(function(){var t,e,n,r;t=o,e=i.pattern,n=i.endOffset,r=i.startOffset,(t=0<r?t.splitText(r):t).splitText(n-r+e.end.length),t.deleteData(0,e.start.length),t.deleteData(t.data.length-e.end.length,e.end.length),o=t,s.forEach(function(t){a.formatter.apply(t,{},o)})}),o}(t,r.startContainer,a)},f=function(t,e){return d(t,e,!0)},l=function(t,e){return d(t,e,!1)},u=function(t,e){var n,r,a,o,i,s,d,f,l,c,u;if(n=t.selection,r=t.dom,n.isCollapsed()&&(d=r.getParent(n.getStart(),"p"))){for(l=new g(d,d);i=l.next();)if(3===i.nodeType){o=i;break}if(o){if(!(f=m(e,o.data)))return;if(a=(c=n.getRng(!0)).startContainer,u=c.startOffset,o===a&&(u=Math.max(0,u-f.start.length)),h.trim(o.data).length===f.start.length)return;f.format&&(s=t.formatter.get(f.format))&&s[0].block&&(o.deleteData(0,f.start.length),t.formatter.apply(f.format,{},o),c.setStart(a,u),c.collapse(!0),n.setRng(c)),f.cmd&&t.undoManager.transact(function(){o.deleteData(0,f.start.length),t.execCommand(f.cmd)})}}},p=function(t,e,n){for(var r=0;r<t.length;r++)if(n(t[r],e))return!0},y={handleEnter:function(t,e){var n,r;(n=l(t,e))&&((r=t.dom.createRng()).setStart(n,n.data.length),r.setEnd(n,n.data.length),t.selection.setRng(r)),u(t,e)},handleInlineKey:function(t,e){var n,r,a,o,i;(n=f(t,e))&&(i=t.dom,r=n.data.slice(-1),/[\u00a0 ]/.test(r)&&(n.deleteData(n.data.length-1,1),a=i.doc.createTextNode(r),i.insertAfter(a,n.parentNode),(o=i.createRng()).setStart(a,1),o.setEnd(a,1),t.selection.setRng(o)))},checkCharCode:function(t,e){return p(t,e,function(t,e){return t.charCodeAt(0)===e.charCode})},checkKeyCode:function(t,e){return p(t,e,function(t,e){return t===e.keyCode&&!1===i.modifierPressed(e)})}},v=function(e,n){var r=[",",".",";",":","!","?"],a=[32];e.on("keydown",function(t){13!==t.keyCode||i.modifierPressed(t)||y.handleEnter(e,n.get())},!0),e.on("keyup",function(t){y.checkKeyCode(a,t)&&y.handleInlineKey(e,n.get())}),e.on("keypress",function(t){y.checkCharCode(r,t)&&o.setEditorTimeout(e,function(){y.handleInlineKey(e,n.get())})})};t.add("textpattern",function(t){var e=r(a(t.settings));return v(t,e),n(e)})}();
|
@@ -1,559 +1,228 @@
|
|
1
1
|
(function () {
|
2
|
+
var toc = (function () {
|
3
|
+
'use strict';
|
2
4
|
|
3
|
-
var
|
5
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
4
6
|
|
5
|
-
|
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.toc.Plugin","tinymce.core.PluginManager","tinymce.plugins.toc.api.Commands","tinymce.plugins.toc.api.Settings","tinymce.plugins.toc.core.FilterContent","tinymce.plugins.toc.ui.Buttons","global!tinymce.util.Tools.resolve","tinymce.plugins.toc.core.Toc","tinymce.core.dom.DOMUtils","tinymce.core.util.I18n","tinymce.core.util.Tools","tinymce.plugins.toc.core.Guid"]
|
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.dom.DOMUtils',
|
119
|
-
[
|
120
|
-
'global!tinymce.util.Tools.resolve'
|
121
|
-
],
|
122
|
-
function (resolve) {
|
123
|
-
return resolve('tinymce.dom.DOMUtils');
|
124
|
-
}
|
125
|
-
);
|
126
|
-
|
127
|
-
/**
|
128
|
-
* ResolveGlobal.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.core.util.I18n',
|
139
|
-
[
|
140
|
-
'global!tinymce.util.Tools.resolve'
|
141
|
-
],
|
142
|
-
function (resolve) {
|
143
|
-
return resolve('tinymce.util.I18n');
|
144
|
-
}
|
145
|
-
);
|
7
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
146
8
|
|
147
|
-
|
148
|
-
* ResolveGlobal.js
|
149
|
-
*
|
150
|
-
* Released under LGPL License.
|
151
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
152
|
-
*
|
153
|
-
* License: http://www.tinymce.com/license
|
154
|
-
* Contributing: http://www.tinymce.com/contributing
|
155
|
-
*/
|
9
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.I18n');
|
156
10
|
|
157
|
-
|
158
|
-
'tinymce.core.util.Tools',
|
159
|
-
[
|
160
|
-
'global!tinymce.util.Tools.resolve'
|
161
|
-
],
|
162
|
-
function (resolve) {
|
163
|
-
return resolve('tinymce.util.Tools');
|
164
|
-
}
|
165
|
-
);
|
166
|
-
|
167
|
-
/**
|
168
|
-
* Settings.js
|
169
|
-
*
|
170
|
-
* Released under LGPL License.
|
171
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
172
|
-
*
|
173
|
-
* License: http://www.tinymce.com/license
|
174
|
-
* Contributing: http://www.tinymce.com/contributing
|
175
|
-
*/
|
176
|
-
|
177
|
-
define(
|
178
|
-
'tinymce.plugins.toc.api.Settings',
|
179
|
-
[
|
180
|
-
],
|
181
|
-
function () {
|
182
|
-
var getTocClass = function (editor) {
|
183
|
-
return editor.getParam('toc_class', 'mce-toc');
|
184
|
-
};
|
185
|
-
|
186
|
-
var getTocHeader = function (editor) {
|
187
|
-
var tagName = editor.getParam('toc_header', 'h2');
|
188
|
-
return /^h[1-6]$/.test(tagName) ? tagName : 'h2';
|
189
|
-
};
|
11
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
190
12
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
13
|
+
var getTocClass = function (editor) {
|
14
|
+
return editor.getParam('toc_class', 'mce-toc');
|
15
|
+
};
|
16
|
+
var getTocHeader = function (editor) {
|
17
|
+
var tagName = editor.getParam('toc_header', 'h2');
|
18
|
+
return /^h[1-6]$/.test(tagName) ? tagName : 'h2';
|
19
|
+
};
|
20
|
+
var getTocDepth = function (editor) {
|
21
|
+
var depth = parseInt(editor.getParam('toc_depth', '3'), 10);
|
22
|
+
return depth >= 1 && depth <= 9 ? depth : 3;
|
23
|
+
};
|
24
|
+
var $_10iupbs9jm0og26v = {
|
25
|
+
getTocClass: getTocClass,
|
26
|
+
getTocHeader: getTocHeader,
|
27
|
+
getTocDepth: getTocDepth
|
28
|
+
};
|
195
29
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
30
|
+
var create = function (prefix) {
|
31
|
+
var counter = 0;
|
32
|
+
return function () {
|
33
|
+
var guid = new Date().getTime().toString(32);
|
34
|
+
return prefix + guid + (counter++).toString(32);
|
200
35
|
};
|
201
|
-
}
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
var
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
36
|
+
};
|
37
|
+
var $_cgm5p3sajm0og26x = { create: create };
|
38
|
+
|
39
|
+
var tocId = $_cgm5p3sajm0og26x.create('mcetoc_');
|
40
|
+
var generateSelector = function generateSelector(depth) {
|
41
|
+
var i;
|
42
|
+
var selector = [];
|
43
|
+
for (i = 1; i <= depth; i++) {
|
44
|
+
selector.push('h' + i);
|
45
|
+
}
|
46
|
+
return selector.join(',');
|
47
|
+
};
|
48
|
+
var hasHeaders = function (editor) {
|
49
|
+
return readHeaders(editor).length > 0;
|
50
|
+
};
|
51
|
+
var readHeaders = function (editor) {
|
52
|
+
var tocClass = $_10iupbs9jm0og26v.getTocClass(editor);
|
53
|
+
var headerTag = $_10iupbs9jm0og26v.getTocHeader(editor);
|
54
|
+
var selector = generateSelector($_10iupbs9jm0og26v.getTocDepth(editor));
|
55
|
+
var headers = editor.$(selector);
|
56
|
+
if (headers.length && /^h[1-9]$/i.test(headerTag)) {
|
57
|
+
headers = headers.filter(function (i, el) {
|
58
|
+
return !editor.dom.hasClass(el.parentNode, tocClass);
|
59
|
+
});
|
60
|
+
}
|
61
|
+
return global$3.map(headers, function (h) {
|
62
|
+
return {
|
63
|
+
id: h.id ? h.id : tocId(),
|
64
|
+
level: parseInt(h.nodeName.replace(/^H/i, ''), 10),
|
65
|
+
title: editor.$.text(h),
|
66
|
+
element: h
|
225
67
|
};
|
226
|
-
};
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
/**
|
234
|
-
* Toc.js
|
235
|
-
*
|
236
|
-
* Released under LGPL License.
|
237
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
238
|
-
*
|
239
|
-
* License: http://www.tinymce.com/license
|
240
|
-
* Contributing: http://www.tinymce.com/contributing
|
241
|
-
*/
|
242
|
-
|
243
|
-
define(
|
244
|
-
'tinymce.plugins.toc.core.Toc',
|
245
|
-
[
|
246
|
-
'tinymce.core.dom.DOMUtils',
|
247
|
-
'tinymce.core.util.I18n',
|
248
|
-
'tinymce.core.util.Tools',
|
249
|
-
'tinymce.plugins.toc.api.Settings',
|
250
|
-
'tinymce.plugins.toc.core.Guid'
|
251
|
-
],
|
252
|
-
function (DOMUtils, I18n, Tools, Settings, Guid) {
|
253
|
-
var tocId = Guid.create('mcetoc_');
|
254
|
-
|
255
|
-
var generateSelector = function generateSelector(depth) {
|
256
|
-
var i, selector = [];
|
257
|
-
for (i = 1; i <= depth; i++) {
|
258
|
-
selector.push('h' + i);
|
68
|
+
});
|
69
|
+
};
|
70
|
+
var getMinLevel = function (headers) {
|
71
|
+
var i, minLevel = 9;
|
72
|
+
for (i = 0; i < headers.length; i++) {
|
73
|
+
if (headers[i].level < minLevel) {
|
74
|
+
minLevel = headers[i].level;
|
259
75
|
}
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
var hasHeaders = function (editor) {
|
264
|
-
return readHeaders(editor).length > 0;
|
265
|
-
};
|
266
|
-
|
267
|
-
var readHeaders = function (editor) {
|
268
|
-
var tocClass = Settings.getTocClass(editor);
|
269
|
-
var headerTag = Settings.getTocHeader(editor);
|
270
|
-
var selector = generateSelector(Settings.getTocDepth(editor));
|
271
|
-
var headers = editor.$(selector);
|
272
|
-
|
273
|
-
// if headerTag is one of h1-9, we need to filter it out from the set
|
274
|
-
if (headers.length && /^h[1-9]$/i.test(headerTag)) {
|
275
|
-
headers = headers.filter(function (i, el) {
|
276
|
-
return !editor.dom.hasClass(el.parentNode, tocClass);
|
277
|
-
});
|
76
|
+
if (minLevel === 1) {
|
77
|
+
return minLevel;
|
278
78
|
}
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
79
|
+
}
|
80
|
+
return minLevel;
|
81
|
+
};
|
82
|
+
var generateTitle = function (tag, title) {
|
83
|
+
var openTag = '<' + tag + ' contenteditable="true">';
|
84
|
+
var closeTag = '</' + tag + '>';
|
85
|
+
return openTag + global$1.DOM.encode(title) + closeTag;
|
86
|
+
};
|
87
|
+
var generateTocHtml = function (editor) {
|
88
|
+
var html = generateTocContentHtml(editor);
|
89
|
+
return '<div class="' + editor.dom.encode($_10iupbs9jm0og26v.getTocClass(editor)) + '" contenteditable="false">' + html + '</div>';
|
90
|
+
};
|
91
|
+
var generateTocContentHtml = function (editor) {
|
92
|
+
var html = '';
|
93
|
+
var headers = readHeaders(editor);
|
94
|
+
var prevLevel = getMinLevel(headers) - 1;
|
95
|
+
var i, ii, h, nextLevel;
|
96
|
+
if (!headers.length) {
|
97
|
+
return '';
|
98
|
+
}
|
99
|
+
html += generateTitle($_10iupbs9jm0og26v.getTocHeader(editor), global$2.translate('Table of Contents'));
|
100
|
+
for (i = 0; i < headers.length; i++) {
|
101
|
+
h = headers[i];
|
102
|
+
h.element.id = h.id;
|
103
|
+
nextLevel = headers[i + 1] && headers[i + 1].level;
|
104
|
+
if (prevLevel === h.level) {
|
105
|
+
html += '<li>';
|
106
|
+
} else {
|
107
|
+
for (ii = prevLevel; ii < h.level; ii++) {
|
108
|
+
html += '<ul><li>';
|
301
109
|
}
|
302
110
|
}
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
var closeTag = '</' + tag + '>';
|
309
|
-
return openTag + DOMUtils.DOM.encode(title) + closeTag;
|
310
|
-
};
|
311
|
-
|
312
|
-
var generateTocHtml = function (editor) {
|
313
|
-
var html = generateTocContentHtml(editor);
|
314
|
-
return '<div class="' + editor.dom.encode(Settings.getTocClass(editor)) + '" contenteditable="false">' + html + '</div>';
|
315
|
-
};
|
316
|
-
|
317
|
-
var generateTocContentHtml = function (editor) {
|
318
|
-
var html = '';
|
319
|
-
var headers = readHeaders(editor);
|
320
|
-
var prevLevel = getMinLevel(headers) - 1;
|
321
|
-
var i, ii, h, nextLevel;
|
322
|
-
|
323
|
-
if (!headers.length) {
|
324
|
-
return '';
|
325
|
-
}
|
326
|
-
|
327
|
-
html += generateTitle(Settings.getTocHeader(editor), I18n.translate('Table of Contents'));
|
328
|
-
|
329
|
-
for (i = 0; i < headers.length; i++) {
|
330
|
-
h = headers[i];
|
331
|
-
h.element.id = h.id;
|
332
|
-
nextLevel = headers[i + 1] && headers[i + 1].level;
|
333
|
-
|
334
|
-
if (prevLevel === h.level) {
|
335
|
-
html += '<li>';
|
336
|
-
} else {
|
337
|
-
for (ii = prevLevel; ii < h.level; ii++) {
|
338
|
-
html += '<ul><li>';
|
339
|
-
}
|
111
|
+
html += '<a href="#' + h.id + '">' + h.title + '</a>';
|
112
|
+
if (nextLevel === h.level || !nextLevel) {
|
113
|
+
html += '</li>';
|
114
|
+
if (!nextLevel) {
|
115
|
+
html += '</ul>';
|
340
116
|
}
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
if (nextLevel === h.level || !nextLevel) {
|
345
|
-
html += '</li>';
|
346
|
-
|
347
|
-
if (!nextLevel) {
|
348
|
-
html += '</ul>';
|
349
|
-
}
|
350
|
-
} else {
|
351
|
-
for (ii = h.level; ii > nextLevel; ii--) {
|
352
|
-
html += '</li></ul><li>';
|
353
|
-
}
|
117
|
+
} else {
|
118
|
+
for (ii = h.level; ii > nextLevel; ii--) {
|
119
|
+
html += '</li></ul><li>';
|
354
120
|
}
|
355
|
-
|
356
|
-
prevLevel = h.level;
|
357
121
|
}
|
122
|
+
prevLevel = h.level;
|
123
|
+
}
|
124
|
+
return html;
|
125
|
+
};
|
126
|
+
var isEmptyOrOffscren = function (editor, nodes) {
|
127
|
+
return !nodes.length || editor.dom.getParents(nodes[0], '.mce-offscreen-selection').length > 0;
|
128
|
+
};
|
129
|
+
var insertToc = function (editor) {
|
130
|
+
var tocClass = $_10iupbs9jm0og26v.getTocClass(editor);
|
131
|
+
var $tocElm = editor.$('.' + tocClass);
|
132
|
+
if (isEmptyOrOffscren(editor, $tocElm)) {
|
133
|
+
editor.insertContent(generateTocHtml(editor));
|
134
|
+
} else {
|
135
|
+
updateToc(editor);
|
136
|
+
}
|
137
|
+
};
|
138
|
+
var updateToc = function (editor) {
|
139
|
+
var tocClass = $_10iupbs9jm0og26v.getTocClass(editor);
|
140
|
+
var $tocElm = editor.$('.' + tocClass);
|
141
|
+
if ($tocElm.length) {
|
142
|
+
editor.undoManager.transact(function () {
|
143
|
+
$tocElm.html(generateTocContentHtml(editor));
|
144
|
+
});
|
145
|
+
}
|
146
|
+
};
|
147
|
+
var $_ecfll1s5jm0og26r = {
|
148
|
+
hasHeaders: hasHeaders,
|
149
|
+
insertToc: insertToc,
|
150
|
+
updateToc: updateToc
|
151
|
+
};
|
358
152
|
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
var $tocElm = editor.$('.' + tocClass);
|
153
|
+
var register = function (editor) {
|
154
|
+
editor.addCommand('mceInsertToc', function () {
|
155
|
+
$_ecfll1s5jm0og26r.insertToc(editor);
|
156
|
+
});
|
157
|
+
editor.addCommand('mceUpdateToc', function () {
|
158
|
+
$_ecfll1s5jm0og26r.updateToc(editor);
|
159
|
+
});
|
160
|
+
};
|
161
|
+
var $_xhivzs4jm0og26p = { register: register };
|
369
162
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
163
|
+
var setup = function (editor) {
|
164
|
+
var $ = editor.$, tocClass = $_10iupbs9jm0og26v.getTocClass(editor);
|
165
|
+
editor.on('PreProcess', function (e) {
|
166
|
+
var $tocElm = $('.' + tocClass, e.node);
|
167
|
+
if ($tocElm.length) {
|
168
|
+
$tocElm.removeAttr('contentEditable');
|
169
|
+
$tocElm.find('[contenteditable]').removeAttr('contentEditable');
|
374
170
|
}
|
375
|
-
};
|
376
|
-
|
377
|
-
|
378
|
-
var tocClass = Settings.getTocClass(editor);
|
379
|
-
var $tocElm = editor.$('.' + tocClass);
|
380
|
-
|
171
|
+
});
|
172
|
+
editor.on('SetContent', function () {
|
173
|
+
var $tocElm = $('.' + tocClass);
|
381
174
|
if ($tocElm.length) {
|
382
|
-
|
383
|
-
|
384
|
-
});
|
175
|
+
$tocElm.attr('contentEditable', false);
|
176
|
+
$tocElm.children(':first-child').attr('contentEditable', true);
|
385
177
|
}
|
386
|
-
};
|
387
|
-
|
388
|
-
|
389
|
-
hasHeaders: hasHeaders,
|
390
|
-
insertToc: insertToc,
|
391
|
-
updateToc: updateToc
|
392
|
-
};
|
393
|
-
}
|
394
|
-
);
|
395
|
-
/**
|
396
|
-
* Commands.js
|
397
|
-
*
|
398
|
-
* Released under LGPL License.
|
399
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
400
|
-
*
|
401
|
-
* License: http://www.tinymce.com/license
|
402
|
-
* Contributing: http://www.tinymce.com/contributing
|
403
|
-
*/
|
404
|
-
|
405
|
-
define(
|
406
|
-
'tinymce.plugins.toc.api.Commands',
|
407
|
-
[
|
408
|
-
'tinymce.plugins.toc.core.Toc'
|
409
|
-
],
|
410
|
-
function (Toc) {
|
411
|
-
var register = function (editor) {
|
412
|
-
editor.addCommand('mceInsertToc', function () {
|
413
|
-
Toc.insertToc(editor);
|
414
|
-
});
|
415
|
-
|
416
|
-
editor.addCommand('mceUpdateToc', function () {
|
417
|
-
Toc.updateToc(editor);
|
418
|
-
});
|
419
|
-
};
|
420
|
-
|
421
|
-
return {
|
422
|
-
register: register
|
423
|
-
};
|
424
|
-
}
|
425
|
-
);
|
426
|
-
/**
|
427
|
-
* FilterContent.js
|
428
|
-
*
|
429
|
-
* Released under LGPL License.
|
430
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
431
|
-
*
|
432
|
-
* License: http://www.tinymce.com/license
|
433
|
-
* Contributing: http://www.tinymce.com/contributing
|
434
|
-
*/
|
435
|
-
|
436
|
-
define(
|
437
|
-
'tinymce.plugins.toc.core.FilterContent',
|
438
|
-
[
|
439
|
-
'tinymce.plugins.toc.api.Settings'
|
440
|
-
],
|
441
|
-
function (Settings) {
|
442
|
-
var setup = function (editor) {
|
443
|
-
var $ = editor.$, tocClass = Settings.getTocClass(editor);
|
444
|
-
|
445
|
-
editor.on('PreProcess', function (e) {
|
446
|
-
var $tocElm = $('.' + tocClass, e.node);
|
447
|
-
if ($tocElm.length) {
|
448
|
-
$tocElm.removeAttr('contentEditable');
|
449
|
-
$tocElm.find('[contenteditable]').removeAttr('contentEditable');
|
450
|
-
}
|
451
|
-
});
|
452
|
-
|
453
|
-
editor.on('SetContent', function () {
|
454
|
-
var $tocElm = $('.' + tocClass);
|
455
|
-
if ($tocElm.length) {
|
456
|
-
$tocElm.attr('contentEditable', false);
|
457
|
-
$tocElm.children(':first-child').attr('contentEditable', true);
|
458
|
-
}
|
459
|
-
});
|
460
|
-
};
|
461
|
-
|
462
|
-
return {
|
463
|
-
setup: setup
|
464
|
-
};
|
465
|
-
}
|
466
|
-
);
|
467
|
-
/**
|
468
|
-
* Buttons.js
|
469
|
-
*
|
470
|
-
* Released under LGPL License.
|
471
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
472
|
-
*
|
473
|
-
* License: http://www.tinymce.com/license
|
474
|
-
* Contributing: http://www.tinymce.com/contributing
|
475
|
-
*/
|
476
|
-
|
477
|
-
define(
|
478
|
-
'tinymce.plugins.toc.ui.Buttons',
|
479
|
-
[
|
480
|
-
'tinymce.plugins.toc.api.Settings',
|
481
|
-
'tinymce.plugins.toc.core.Toc'
|
482
|
-
],
|
483
|
-
function (Settings, Toc) {
|
484
|
-
var toggleState = function (editor) {
|
485
|
-
return function (e) {
|
486
|
-
var ctrl = e.control;
|
487
|
-
|
488
|
-
editor.on('LoadContent SetContent change', function () {
|
489
|
-
ctrl.disabled(editor.readonly || !Toc.hasHeaders(editor));
|
490
|
-
});
|
491
|
-
};
|
492
|
-
};
|
493
|
-
|
494
|
-
var isToc = function (editor) {
|
495
|
-
return function (elm) {
|
496
|
-
return elm && editor.dom.is(elm, '.' + Settings.getTocClass(editor)) && editor.getBody().contains(elm);
|
497
|
-
};
|
498
|
-
};
|
499
|
-
|
500
|
-
var register = function (editor) {
|
501
|
-
editor.addButton('toc', {
|
502
|
-
tooltip: 'Table of Contents',
|
503
|
-
cmd: 'mceInsertToc',
|
504
|
-
icon: 'toc',
|
505
|
-
onPostRender: toggleState(editor)
|
506
|
-
});
|
507
|
-
|
508
|
-
editor.addButton('tocupdate', {
|
509
|
-
tooltip: 'Update',
|
510
|
-
cmd: 'mceUpdateToc',
|
511
|
-
icon: 'reload'
|
512
|
-
});
|
178
|
+
});
|
179
|
+
};
|
180
|
+
var $_5ujz8tsbjm0og26z = { setup: setup };
|
513
181
|
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
182
|
+
var toggleState = function (editor) {
|
183
|
+
return function (e) {
|
184
|
+
var ctrl = e.control;
|
185
|
+
editor.on('LoadContent SetContent change', function () {
|
186
|
+
ctrl.disabled(editor.readonly || !$_ecfll1s5jm0og26r.hasHeaders(editor));
|
519
187
|
});
|
520
|
-
|
521
|
-
editor.addContextToolbar(isToc(editor), 'tocupdate');
|
522
188
|
};
|
523
|
-
|
524
|
-
|
525
|
-
|
189
|
+
};
|
190
|
+
var isToc = function (editor) {
|
191
|
+
return function (elm) {
|
192
|
+
return elm && editor.dom.is(elm, '.' + $_10iupbs9jm0og26v.getTocClass(editor)) && editor.getBody().contains(elm);
|
526
193
|
};
|
194
|
+
};
|
195
|
+
var register$1 = function (editor) {
|
196
|
+
editor.addButton('toc', {
|
197
|
+
tooltip: 'Table of Contents',
|
198
|
+
cmd: 'mceInsertToc',
|
199
|
+
icon: 'toc',
|
200
|
+
onPostRender: toggleState(editor)
|
201
|
+
});
|
202
|
+
editor.addButton('tocupdate', {
|
203
|
+
tooltip: 'Update',
|
204
|
+
cmd: 'mceUpdateToc',
|
205
|
+
icon: 'reload'
|
206
|
+
});
|
207
|
+
editor.addMenuItem('toc', {
|
208
|
+
text: 'Table of Contents',
|
209
|
+
context: 'insert',
|
210
|
+
cmd: 'mceInsertToc',
|
211
|
+
onPostRender: toggleState(editor)
|
212
|
+
});
|
213
|
+
editor.addContextToolbar(isToc(editor), 'tocupdate');
|
214
|
+
};
|
215
|
+
var $_dt2k8nscjm0og270 = { register: register$1 };
|
216
|
+
|
217
|
+
global.add('toc', function (editor) {
|
218
|
+
$_xhivzs4jm0og26p.register(editor);
|
219
|
+
$_dt2k8nscjm0og270.register(editor);
|
220
|
+
$_5ujz8tsbjm0og26z.setup(editor);
|
221
|
+
});
|
222
|
+
function Plugin () {
|
527
223
|
}
|
528
|
-
);
|
529
|
-
/**
|
530
|
-
* Plugin.js
|
531
|
-
*
|
532
|
-
* Released under LGPL License.
|
533
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
534
|
-
*
|
535
|
-
* License: http://www.tinymce.com/license
|
536
|
-
* Contributing: http://www.tinymce.com/contributing
|
537
|
-
*/
|
538
224
|
|
539
|
-
|
540
|
-
'tinymce.plugins.toc.Plugin',
|
541
|
-
[
|
542
|
-
'tinymce.core.PluginManager',
|
543
|
-
'tinymce.plugins.toc.api.Commands',
|
544
|
-
'tinymce.plugins.toc.api.Settings',
|
545
|
-
'tinymce.plugins.toc.core.FilterContent',
|
546
|
-
'tinymce.plugins.toc.ui.Buttons'
|
547
|
-
],
|
548
|
-
function (PluginManager, Commands, Settings, FilterContent, Buttons) {
|
549
|
-
PluginManager.add('toc', function (editor) {
|
550
|
-
Commands.register(editor);
|
551
|
-
Buttons.register(editor);
|
552
|
-
FilterContent.setup(editor);
|
553
|
-
});
|
225
|
+
return Plugin;
|
554
226
|
|
555
|
-
|
556
|
-
}
|
557
|
-
);
|
558
|
-
dem('tinymce.plugins.toc.Plugin')();
|
227
|
+
}());
|
559
228
|
})();
|