bedrock_sass 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/_vendor/ace/ace.js +255 -589
- data/assets/_vendor/ace/ext-beautify.js +1 -2
- data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +2 -2
- data/assets/_vendor/ace/ext-emmet.js +4 -4
- data/assets/_vendor/ace/ext-error_marker.js +1 -2
- data/assets/_vendor/ace/ext-keybinding_menu.js +1 -2
- data/assets/_vendor/ace/ext-language_tools.js +5 -9
- data/assets/_vendor/ace/ext-linking.js +1 -2
- data/assets/_vendor/ace/ext-modelist.js +9 -5
- data/assets/_vendor/ace/ext-options.js +10 -7
- data/assets/_vendor/ace/ext-rtl.js +1 -2
- data/assets/_vendor/ace/ext-searchbox.js +8 -4
- data/assets/_vendor/ace/ext-settings_menu.js +10 -7
- data/assets/_vendor/ace/ext-spellcheck.js +1 -2
- data/assets/_vendor/ace/ext-split.js +1 -2
- data/assets/_vendor/ace/ext-static_highlight.js +11 -8
- data/assets/_vendor/ace/ext-statusbar.js +1 -2
- data/assets/_vendor/ace/ext-textarea.js +1 -5
- data/assets/_vendor/ace/ext-themelist.js +2 -4
- data/assets/_vendor/ace/ext-whitespace.js +1 -2
- data/assets/_vendor/ace/keybinding-emacs.js +6 -2
- data/assets/_vendor/ace/keybinding-vim.js +13 -25
- data/assets/_vendor/ace/mode-abap.js +2 -3
- data/assets/_vendor/ace/mode-abc.js +3 -2
- data/assets/_vendor/ace/mode-actionscript.js +2 -2
- data/assets/_vendor/ace/mode-ada.js +1 -2
- data/assets/_vendor/ace/mode-apache_conf.js +2 -2
- data/assets/_vendor/ace/mode-apex.js +457 -0
- data/assets/_vendor/ace/mode-applescript.js +1 -2
- data/assets/_vendor/ace/mode-asciidoc.js +2 -2
- data/assets/_vendor/ace/mode-asl.js +1 -2
- data/assets/_vendor/ace/mode-assembly_x86.js +2 -2
- data/assets/_vendor/ace/mode-autohotkey.js +1 -2
- data/assets/_vendor/ace/mode-batchfile.js +2 -2
- data/assets/_vendor/ace/mode-bro.js +2 -2
- data/assets/_vendor/ace/mode-c9search.js +1 -2
- data/assets/_vendor/ace/mode-c_cpp.js +2 -2
- data/assets/_vendor/ace/mode-cirru.js +1 -2
- data/assets/_vendor/ace/mode-clojure.js +2 -2
- data/assets/_vendor/ace/mode-cobol.js +1 -2
- data/assets/_vendor/ace/mode-coffee.js +1 -2
- data/assets/_vendor/ace/mode-coldfusion.js +3 -2
- data/assets/_vendor/ace/mode-csharp.js +3 -3
- data/assets/_vendor/ace/mode-csound_document.js +319 -80
- data/assets/_vendor/ace/mode-csound_orchestra.js +323 -86
- data/assets/_vendor/ace/mode-csound_score.js +1 -2
- data/assets/_vendor/ace/mode-csp.js +1 -2
- data/assets/_vendor/ace/mode-css.js +2 -2
- data/assets/_vendor/ace/mode-curly.js +3 -2
- data/assets/_vendor/ace/mode-d.js +2 -2
- data/assets/_vendor/ace/mode-dart.js +24 -14
- data/assets/_vendor/ace/mode-diff.js +4 -4
- data/assets/_vendor/ace/mode-django.js +3 -2
- data/assets/_vendor/ace/mode-dockerfile.js +3 -2
- data/assets/_vendor/ace/mode-dot.js +1 -2
- data/assets/_vendor/ace/mode-drools.js +3 -2
- data/assets/_vendor/ace/mode-edifact.js +2 -2
- data/assets/_vendor/ace/mode-eiffel.js +1 -2
- data/assets/_vendor/ace/mode-ejs.js +5 -2
- data/assets/_vendor/ace/mode-elixir.js +2 -2
- data/assets/_vendor/ace/mode-elm.js +1 -2
- data/assets/_vendor/ace/mode-erlang.js +2 -2
- data/assets/_vendor/ace/mode-forth.js +2 -2
- data/assets/_vendor/ace/mode-fortran.js +1 -2
- data/assets/_vendor/ace/mode-fsharp.js +1 -2
- data/assets/_vendor/ace/mode-fsl.js +258 -0
- data/assets/_vendor/ace/mode-ftl.js +3 -2
- data/assets/_vendor/ace/mode-gcode.js +1 -2
- data/assets/_vendor/ace/mode-gherkin.js +2 -4
- data/assets/_vendor/ace/mode-gitignore.js +1 -2
- data/assets/_vendor/ace/mode-glsl.js +2 -2
- data/assets/_vendor/ace/mode-gobstones.js +3 -2
- data/assets/_vendor/ace/mode-golang.js +1 -2
- data/assets/_vendor/ace/mode-graphqlschema.js +1 -2
- data/assets/_vendor/ace/mode-groovy.js +4 -2
- data/assets/_vendor/ace/mode-haml.js +5 -2
- data/assets/_vendor/ace/mode-handlebars.js +3 -2
- data/assets/_vendor/ace/mode-haskell.js +2 -2
- data/assets/_vendor/ace/mode-haskell_cabal.js +1 -2
- data/assets/_vendor/ace/mode-haxe.js +2 -2
- data/assets/_vendor/ace/mode-hjson.js +2 -2
- data/assets/_vendor/ace/mode-html.js +3 -2
- data/assets/_vendor/ace/mode-html_elixir.js +4 -2
- data/assets/_vendor/ace/mode-html_ruby.js +5 -2
- data/assets/_vendor/ace/mode-ini.js +1 -2
- data/assets/_vendor/ace/mode-io.js +2 -2
- data/assets/_vendor/ace/mode-jack.js +1 -2
- data/assets/_vendor/ace/mode-jade.js +14 -115
- data/assets/_vendor/ace/mode-java.js +64 -3
- data/assets/_vendor/ace/mode-javascript.js +2 -2
- data/assets/_vendor/ace/mode-json.js +1 -2
- data/assets/_vendor/ace/mode-jsoniq.js +8 -2317
- data/assets/_vendor/ace/mode-jsp.js +4 -2
- data/assets/_vendor/ace/mode-jssm.js +2 -2
- data/assets/_vendor/ace/mode-jsx.js +1 -2
- data/assets/_vendor/ace/mode-julia.js +2 -2
- data/assets/_vendor/ace/mode-kotlin.js +2 -2
- data/assets/_vendor/ace/mode-latex.js +1 -2
- data/assets/_vendor/ace/mode-less.js +4 -2
- data/assets/_vendor/ace/mode-liquid.js +2026 -477
- data/assets/_vendor/ace/mode-lisp.js +2 -2
- data/assets/_vendor/ace/mode-livescript.js +1 -2
- data/assets/_vendor/ace/mode-logiql.js +2 -2
- data/assets/_vendor/ace/mode-logtalk.js +352 -0
- data/assets/_vendor/ace/mode-lsl.js +1 -2
- data/assets/_vendor/ace/mode-lua.js +1 -2
- data/assets/_vendor/ace/mode-luapage.js +3 -2
- data/assets/_vendor/ace/mode-lucene.js +2 -3
- data/assets/_vendor/ace/mode-makefile.js +3 -2
- data/assets/_vendor/ace/mode-markdown.js +5 -2
- data/assets/_vendor/ace/mode-mask.js +3 -2
- data/assets/_vendor/ace/mode-matlab.js +1 -2
- data/assets/_vendor/ace/mode-maze.js +2 -2
- data/assets/_vendor/ace/mode-mel.js +2 -2
- data/assets/_vendor/ace/mode-mixal.js +1 -2
- data/assets/_vendor/ace/mode-mushcode.js +2 -2
- data/assets/_vendor/ace/mode-mysql.js +3 -4
- data/assets/_vendor/ace/mode-nix.js +2 -2
- data/assets/_vendor/ace/mode-nsis.js +2 -2
- data/assets/_vendor/ace/mode-objectivec.js +3 -2
- data/assets/_vendor/ace/mode-ocaml.js +1 -2
- data/assets/_vendor/ace/mode-pascal.js +2 -2
- data/assets/_vendor/ace/mode-perl.js +2 -2
- data/assets/_vendor/ace/mode-perl6.js +593 -0
- data/assets/_vendor/ace/mode-pgsql.js +304 -69
- data/assets/_vendor/ace/mode-php.js +844 -1029
- data/assets/_vendor/ace/mode-php_laravel_blade.js +844 -1029
- data/assets/_vendor/ace/mode-pig.js +2 -2
- data/assets/_vendor/ace/mode-plain_text.js +1 -2
- data/assets/_vendor/ace/mode-powershell.js +2 -2
- data/assets/_vendor/ace/mode-praat.js +2 -2
- data/assets/_vendor/ace/mode-prolog.js +2 -2
- data/assets/_vendor/ace/mode-properties.js +1 -2
- data/assets/_vendor/ace/mode-protobuf.js +2 -2
- data/assets/_vendor/ace/mode-puppet.js +1 -2
- data/assets/_vendor/ace/mode-python.js +297 -63
- data/assets/_vendor/ace/mode-r.js +3 -2
- data/assets/_vendor/ace/mode-razor.js +9 -3
- data/assets/_vendor/ace/mode-rdoc.js +2 -2
- data/assets/_vendor/ace/mode-red.js +2 -2
- data/assets/_vendor/ace/mode-redshift.js +1 -2
- data/assets/_vendor/ace/mode-rhtml.js +5 -2
- data/assets/_vendor/ace/mode-rst.js +1 -2
- data/assets/_vendor/ace/mode-ruby.js +3 -2
- data/assets/_vendor/ace/mode-rust.js +2 -2
- data/assets/_vendor/ace/mode-sass.js +205 -117
- data/assets/_vendor/ace/mode-scad.js +2 -2
- data/assets/_vendor/ace/mode-scala.js +3 -2
- data/assets/_vendor/ace/mode-scheme.js +2 -2
- data/assets/_vendor/ace/mode-scss.js +204 -115
- data/assets/_vendor/ace/mode-sh.js +3 -2
- data/assets/_vendor/ace/mode-sjs.js +2 -2
- data/assets/_vendor/ace/mode-slim.js +18 -117
- data/assets/_vendor/ace/mode-smarty.js +3 -2
- data/assets/_vendor/ace/mode-snippets.js +1 -2
- data/assets/_vendor/ace/mode-soy_template.js +4 -2
- data/assets/_vendor/ace/mode-space.js +1 -2
- data/assets/_vendor/ace/mode-sparql.js +2 -2
- data/assets/_vendor/ace/mode-sql.js +2 -3
- data/assets/_vendor/ace/mode-sqlserver.js +2 -2
- data/assets/_vendor/ace/mode-stylus.js +3 -2
- data/assets/_vendor/ace/mode-svg.js +2 -2
- data/assets/_vendor/ace/mode-swift.js +1 -2
- data/assets/_vendor/ace/mode-tcl.js +2 -2
- data/assets/_vendor/ace/mode-terraform.js +1 -2
- data/assets/_vendor/ace/mode-tex.js +2 -2
- data/assets/_vendor/ace/mode-text.js +1 -2
- data/assets/_vendor/ace/mode-textile.js +1 -2
- data/assets/_vendor/ace/mode-toml.js +1 -2
- data/assets/_vendor/ace/mode-tsx.js +2 -2
- data/assets/_vendor/ace/mode-turtle.js +2 -2
- data/assets/_vendor/ace/mode-twig.js +3 -2
- data/assets/_vendor/ace/mode-typescript.js +2 -2
- data/assets/_vendor/ace/mode-vala.js +2 -2
- data/assets/_vendor/ace/mode-vbscript.js +1 -2
- data/assets/_vendor/ace/mode-velocity.js +4 -2
- data/assets/_vendor/ace/mode-verilog.js +1 -2
- data/assets/_vendor/ace/mode-vhdl.js +1 -2
- data/assets/_vendor/ace/mode-visualforce.js +2641 -0
- data/assets/_vendor/ace/mode-wollok.js +3 -2
- data/assets/_vendor/ace/mode-xml.js +1 -2
- data/assets/_vendor/ace/mode-xquery.js +8 -2287
- data/assets/_vendor/ace/mode-yaml.js +1 -2
- data/assets/_vendor/ace/snippets/abap.js +2 -3
- data/assets/_vendor/ace/snippets/abc.js +1 -2
- data/assets/_vendor/ace/snippets/actionscript.js +1 -2
- data/assets/_vendor/ace/snippets/ada.js +2 -3
- data/assets/_vendor/ace/snippets/apache_conf.js +2 -3
- data/assets/_vendor/ace/snippets/apex.js +14 -0
- data/assets/_vendor/ace/snippets/applescript.js +2 -3
- data/assets/_vendor/ace/snippets/asciidoc.js +2 -3
- data/assets/_vendor/ace/snippets/asl.js +2 -3
- data/assets/_vendor/ace/snippets/assembly_x86.js +2 -3
- data/assets/_vendor/ace/snippets/autohotkey.js +2 -3
- data/assets/_vendor/ace/snippets/batchfile.js +2 -3
- data/assets/_vendor/ace/snippets/bro.js +1 -2
- data/assets/_vendor/ace/snippets/c9search.js +2 -3
- data/assets/_vendor/ace/snippets/c_cpp.js +1 -2
- data/assets/_vendor/ace/snippets/cirru.js +2 -3
- data/assets/_vendor/ace/snippets/clojure.js +1 -2
- data/assets/_vendor/ace/snippets/cobol.js +2 -3
- data/assets/_vendor/ace/snippets/coffee.js +1 -2
- data/assets/_vendor/ace/snippets/coldfusion.js +2 -3
- data/assets/_vendor/ace/snippets/csharp.js +2 -3
- data/assets/_vendor/ace/snippets/csound_document.js +1 -2
- data/assets/_vendor/ace/snippets/csound_orchestra.js +1 -2
- data/assets/_vendor/ace/snippets/csound_score.js +2 -3
- data/assets/_vendor/ace/snippets/csp.js +1 -2
- data/assets/_vendor/ace/snippets/css.js +1 -2
- data/assets/_vendor/ace/snippets/curly.js +2 -3
- data/assets/_vendor/ace/snippets/d.js +2 -3
- data/assets/_vendor/ace/snippets/dart.js +1 -2
- data/assets/_vendor/ace/snippets/diff.js +1 -2
- data/assets/_vendor/ace/snippets/django.js +1 -2
- data/assets/_vendor/ace/snippets/dockerfile.js +2 -3
- data/assets/_vendor/ace/snippets/dot.js +2 -3
- data/assets/_vendor/ace/snippets/drools.js +1 -2
- data/assets/_vendor/ace/snippets/edifact.js +1 -2
- data/assets/_vendor/ace/snippets/eiffel.js +2 -3
- data/assets/_vendor/ace/snippets/ejs.js +2 -3
- data/assets/_vendor/ace/snippets/elixir.js +1 -2
- data/assets/_vendor/ace/snippets/elm.js +2 -3
- data/assets/_vendor/ace/snippets/erlang.js +1 -2
- data/assets/_vendor/ace/snippets/forth.js +2 -3
- data/assets/_vendor/ace/snippets/fortran.js +2 -3
- data/assets/_vendor/ace/snippets/fsharp.js +2 -3
- data/assets/_vendor/ace/snippets/fsl.js +14 -0
- data/assets/_vendor/ace/snippets/ftl.js +2 -3
- data/assets/_vendor/ace/snippets/gcode.js +2 -3
- data/assets/_vendor/ace/snippets/gherkin.js +2 -3
- data/assets/_vendor/ace/snippets/gitignore.js +2 -3
- data/assets/_vendor/ace/snippets/glsl.js +2 -3
- data/assets/_vendor/ace/snippets/gobstones.js +1 -2
- data/assets/_vendor/ace/snippets/golang.js +2 -3
- data/assets/_vendor/ace/snippets/graphqlschema.js +1 -2
- data/assets/_vendor/ace/snippets/groovy.js +2 -3
- data/assets/_vendor/ace/snippets/haml.js +1 -2
- data/assets/_vendor/ace/snippets/handlebars.js +2 -3
- data/assets/_vendor/ace/snippets/haskell.js +1 -2
- data/assets/_vendor/ace/snippets/haskell_cabal.js +2 -3
- data/assets/_vendor/ace/snippets/haxe.js +2 -3
- data/assets/_vendor/ace/snippets/hjson.js +1 -2
- data/assets/_vendor/ace/snippets/html.js +1 -2
- data/assets/_vendor/ace/snippets/html_elixir.js +2 -3
- data/assets/_vendor/ace/snippets/html_ruby.js +2 -3
- data/assets/_vendor/ace/snippets/ini.js +2 -3
- data/assets/_vendor/ace/snippets/io.js +1 -2
- data/assets/_vendor/ace/snippets/jack.js +2 -3
- data/assets/_vendor/ace/snippets/jade.js +2 -3
- data/assets/_vendor/ace/snippets/java.js +1 -2
- data/assets/_vendor/ace/snippets/javascript.js +1 -2
- data/assets/_vendor/ace/snippets/json.js +2 -3
- data/assets/_vendor/ace/snippets/jsoniq.js +1 -2
- data/assets/_vendor/ace/snippets/jsp.js +1 -2
- data/assets/_vendor/ace/snippets/jssm.js +1 -2
- data/assets/_vendor/ace/snippets/jsx.js +2 -3
- data/assets/_vendor/ace/snippets/julia.js +2 -3
- data/assets/_vendor/ace/snippets/kotlin.js +1 -2
- data/assets/_vendor/ace/snippets/latex.js +2 -3
- data/assets/_vendor/ace/snippets/less.js +2 -3
- data/assets/_vendor/ace/snippets/liquid.js +883 -3
- data/assets/_vendor/ace/snippets/lisp.js +2 -3
- data/assets/_vendor/ace/snippets/livescript.js +2 -3
- data/assets/_vendor/ace/snippets/logiql.js +2 -3
- data/assets/_vendor/ace/snippets/logtalk.js +14 -0
- data/assets/_vendor/ace/snippets/lsl.js +1 -2
- data/assets/_vendor/ace/snippets/lua.js +1 -2
- data/assets/_vendor/ace/snippets/luapage.js +2 -3
- data/assets/_vendor/ace/snippets/lucene.js +2 -3
- data/assets/_vendor/ace/snippets/makefile.js +1 -2
- data/assets/_vendor/ace/snippets/markdown.js +1 -2
- data/assets/_vendor/ace/snippets/mask.js +2 -3
- data/assets/_vendor/ace/snippets/matlab.js +2 -3
- data/assets/_vendor/ace/snippets/maze.js +1 -2
- data/assets/_vendor/ace/snippets/mel.js +2 -3
- data/assets/_vendor/ace/snippets/mixal.js +2 -3
- data/assets/_vendor/ace/snippets/mushcode.js +2 -3
- data/assets/_vendor/ace/snippets/mysql.js +2 -3
- data/assets/_vendor/ace/snippets/nix.js +2 -3
- data/assets/_vendor/ace/snippets/nsis.js +1 -2
- data/assets/_vendor/ace/snippets/objectivec.js +2 -3
- data/assets/_vendor/ace/snippets/ocaml.js +2 -3
- data/assets/_vendor/ace/snippets/pascal.js +2 -3
- data/assets/_vendor/ace/snippets/perl.js +1 -2
- data/assets/_vendor/ace/snippets/perl6.js +14 -0
- data/assets/_vendor/ace/snippets/pgsql.js +2 -3
- data/assets/_vendor/ace/snippets/php.js +1 -2
- data/assets/_vendor/ace/snippets/php_laravel_blade.js +2 -3
- data/assets/_vendor/ace/snippets/pig.js +2 -3
- data/assets/_vendor/ace/snippets/plain_text.js +2 -3
- data/assets/_vendor/ace/snippets/powershell.js +2 -3
- data/assets/_vendor/ace/snippets/praat.js +2 -3
- data/assets/_vendor/ace/snippets/prolog.js +2 -3
- data/assets/_vendor/ace/snippets/properties.js +2 -3
- data/assets/_vendor/ace/snippets/protobuf.js +1 -2
- data/assets/_vendor/ace/snippets/puppet.js +2 -3
- data/assets/_vendor/ace/snippets/python.js +1 -2
- data/assets/_vendor/ace/snippets/r.js +1 -2
- data/assets/_vendor/ace/snippets/razor.js +1 -2
- data/assets/_vendor/ace/snippets/rdoc.js +2 -3
- data/assets/_vendor/ace/snippets/red.js +1 -2
- data/assets/_vendor/ace/snippets/redshift.js +2 -3
- data/assets/_vendor/ace/snippets/rhtml.js +2 -3
- data/assets/_vendor/ace/snippets/rst.js +1 -2
- data/assets/_vendor/ace/snippets/ruby.js +1 -2
- data/assets/_vendor/ace/snippets/rust.js +2 -3
- data/assets/_vendor/ace/snippets/sass.js +2 -3
- data/assets/_vendor/ace/snippets/scad.js +2 -3
- data/assets/_vendor/ace/snippets/scala.js +2 -3
- data/assets/_vendor/ace/snippets/scheme.js +2 -3
- data/assets/_vendor/ace/snippets/scss.js +2 -3
- data/assets/_vendor/ace/snippets/sh.js +1 -2
- data/assets/_vendor/ace/snippets/sjs.js +2 -3
- data/assets/_vendor/ace/snippets/slim.js +2 -3
- data/assets/_vendor/ace/snippets/smarty.js +2 -3
- data/assets/_vendor/ace/snippets/snippets.js +1 -2
- data/assets/_vendor/ace/snippets/soy_template.js +2 -3
- data/assets/_vendor/ace/snippets/space.js +2 -3
- data/assets/_vendor/ace/snippets/sparql.js +1 -2
- data/assets/_vendor/ace/snippets/sql.js +1 -2
- data/assets/_vendor/ace/snippets/sqlserver.js +1 -2
- data/assets/_vendor/ace/snippets/stylus.js +2 -3
- data/assets/_vendor/ace/snippets/svg.js +2 -3
- data/assets/_vendor/ace/snippets/swift.js +2 -3
- data/assets/_vendor/ace/snippets/tcl.js +1 -2
- data/assets/_vendor/ace/snippets/terraform.js +2 -3
- data/assets/_vendor/ace/snippets/tex.js +1 -2
- data/assets/_vendor/ace/snippets/text.js +2 -3
- data/assets/_vendor/ace/snippets/textile.js +1 -2
- data/assets/_vendor/ace/snippets/toml.js +2 -3
- data/assets/_vendor/ace/snippets/tsx.js +2 -3
- data/assets/_vendor/ace/snippets/turtle.js +1 -2
- data/assets/_vendor/ace/snippets/twig.js +2 -3
- data/assets/_vendor/ace/snippets/typescript.js +2 -3
- data/assets/_vendor/ace/snippets/vala.js +1 -2
- data/assets/_vendor/ace/snippets/vbscript.js +2 -3
- data/assets/_vendor/ace/snippets/velocity.js +1 -2
- data/assets/_vendor/ace/snippets/verilog.js +2 -3
- data/assets/_vendor/ace/snippets/vhdl.js +2 -3
- data/assets/_vendor/ace/snippets/visualforce.js +14 -0
- data/assets/_vendor/ace/snippets/wollok.js +1 -2
- data/assets/_vendor/ace/snippets/xml.js +2 -3
- data/assets/_vendor/ace/snippets/xquery.js +1 -2
- data/assets/_vendor/ace/snippets/yaml.js +2 -3
- data/assets/_vendor/ace/theme-ambiance.js +1 -2
- data/assets/_vendor/ace/theme-chaos.js +1 -2
- data/assets/_vendor/ace/theme-chrome.js +1 -2
- data/assets/_vendor/ace/theme-clouds.js +1 -2
- data/assets/_vendor/ace/theme-clouds_midnight.js +1 -2
- data/assets/_vendor/ace/theme-cobalt.js +1 -2
- data/assets/_vendor/ace/theme-crimson_editor.js +1 -2
- data/assets/_vendor/ace/theme-dawn.js +1 -2
- data/assets/_vendor/ace/theme-dracula.js +1 -2
- data/assets/_vendor/ace/theme-dreamweaver.js +1 -2
- data/assets/_vendor/ace/theme-eclipse.js +1 -2
- data/assets/_vendor/ace/theme-github.js +3 -3
- data/assets/_vendor/ace/theme-gob.js +1 -2
- data/assets/_vendor/ace/theme-gruvbox.js +1 -2
- data/assets/_vendor/ace/theme-idle_fingers.js +1 -2
- data/assets/_vendor/ace/theme-iplastic.js +1 -2
- data/assets/_vendor/ace/theme-katzenmilch.js +1 -2
- data/assets/_vendor/ace/theme-kr_theme.js +1 -2
- data/assets/_vendor/ace/theme-kuroir.js +1 -2
- data/assets/_vendor/ace/theme-merbivore.js +1 -2
- data/assets/_vendor/ace/theme-merbivore_soft.js +1 -2
- data/assets/_vendor/ace/theme-mono_industrial.js +1 -2
- data/assets/_vendor/ace/theme-monokai.js +1 -2
- data/assets/_vendor/ace/theme-pastel_on_dark.js +1 -2
- data/assets/_vendor/ace/theme-solarized_dark.js +1 -2
- data/assets/_vendor/ace/theme-solarized_light.js +1 -2
- data/assets/_vendor/ace/theme-sqlserver.js +1 -2
- data/assets/_vendor/ace/theme-terminal.js +1 -2
- data/assets/_vendor/ace/theme-textmate.js +1 -2
- data/assets/_vendor/ace/theme-tomorrow.js +1 -2
- data/assets/_vendor/ace/theme-tomorrow_night.js +1 -2
- data/assets/_vendor/ace/theme-tomorrow_night_blue.js +1 -2
- data/assets/_vendor/ace/theme-tomorrow_night_bright.js +1 -2
- data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +1 -2
- data/assets/_vendor/ace/theme-twilight.js +1 -2
- data/assets/_vendor/ace/theme-vibrant_ink.js +1 -2
- data/assets/_vendor/ace/theme-xcode.js +1 -2
- data/assets/_vendor/ace/worker-coffee.js +11 -20
- data/assets/_vendor/ace/worker-css.js +23 -20
- data/assets/_vendor/ace/worker-html.js +25 -31
- data/assets/_vendor/ace/worker-javascript.js +76 -36
- data/assets/_vendor/ace/worker-json.js +25 -20
- data/assets/_vendor/ace/worker-lua.js +68 -69
- data/assets/_vendor/ace/worker-php.js +12 -20
- data/assets/_vendor/ace/worker-xml.js +12 -22
- data/assets/_vendor/ace/worker-xquery.js +44 -12378
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +137 -137
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +102 -102
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +154 -154
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -145
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +207 -217
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +89 -89
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1246 -1246
- data/assets/_vendor/tinymce/plugins/code/plugin.js +80 -80
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +852 -852
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +109 -109
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +144 -144
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +53 -53
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +74 -74
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +464 -464
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +152 -152
- data/assets/_vendor/tinymce/plugins/help/plugin.js +639 -678
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -29
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1119 -1126
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3414 -3445
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -230
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +152 -152
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +193 -193
- data/assets/_vendor/tinymce/plugins/link/plugin.js +646 -646
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +2103 -1037
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/media/plugin.js +1050 -1050
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +69 -69
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +98 -98
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +91 -91
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +1725 -1364
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +107 -107
- data/assets/_vendor/tinymce/plugins/print/plugin.js +28 -28
- data/assets/_vendor/tinymce/plugins/save/plugin.js +101 -101
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +535 -537
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +683 -681
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +95 -95
- data/assets/_vendor/tinymce/plugins/table/plugin.js +8927 -9805
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/template/plugin.js +305 -311
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +317 -317
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +575 -329
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +201 -201
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +113 -113
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +419 -471
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +371 -308
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -0
- 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/themes/inlite/theme.js +9272 -9686
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -1
- data/assets/_vendor/tinymce/themes/mobile/theme.js +12130 -13042
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -1
- data/assets/_vendor/tinymce/themes/modern/theme.js +9090 -9504
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -1
- data/assets/_vendor/tinymce/tinymce.js +24914 -25218
- data/assets/bedrock/js/bedrock.js +1 -1
- data/assets/bedrock/scss/components/no-content.scss +5 -0
- data/assets/bedrock/scss/components/select-box.scss +1 -1
- data/lib/bedrock_sass.rb +51 -16
- data/lib/bedrock_sass/engine.rb +3 -2
- data/lib/bedrock_sass/version.rb +1 -1
- metadata +17 -7
@@ -1 +1 @@
|
|
1
|
-
!function(){"use strict";var r=function(t){var
|
1
|
+
!function(){"use strict";var t,n,e,r,a,o=function(t){var n=t,e=function(){return n};return{get:e,set:function(t){n=t},clone:function(){return o(e())}}},i=tinymce.util.Tools.resolve("tinymce.PluginManager"),f=function(t){return function(){return t}},u=f(!1),s=f(!0),c=u,l=s,d=function(){return g},g=(r={fold:function(t,n){return t()},is:c,isSome:c,isNone:l,getOr:e=function(t){return t},getOrThunk:n=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:e,orThunk:n,map:d,ap:d,each:function(){},bind:d,flatten:d,exists:c,forall:l,filter:d,equals:t=function(t){return t.isNone()},equals_:t,toArray:function(){return[]},toString:f("none()")},Object.freeze&&Object.freeze(r),r),m=function(e){var t=function(){return e},n=function(){return a},r=function(t){return t(e)},a={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:l,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},ap:function(t){return t.fold(d,function(t){return m(t(e))})},each:function(t){t(e)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){return t(e)?a:g},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,function(t){return n(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return a},h={some:m,none:d,from:function(t){return null===t||t===undefined?g:m(t)}},p=(a="function",function(t){return function(t){if(null===t)return"null";var n=typeof t;return"object"===n&&Array.prototype.isPrototypeOf(t)?"array":"object"===n&&String.prototype.isPrototypeOf(t)?"string":n}(t)===a}),v=function(t,n){for(var e=[],r=0,a=t.length;r<a;r++){var o=t[r];n(o,r,t)&&e.push(o)}return e},O=Array.prototype.slice,y=(p(Array.from)&&Array.from,Object.hasOwnProperty),P=function(t,n){return y.call(t,n)},x=function(t){return P(t,"start")&&P(t,"end")},T=function(t){return!P(t,"end")&&!P(t,"replacement")},b=function(t){return P(t,"replacement")},k=function(t){return n=t,e=function(t,n){return t.start.length===n.start.length?0:t.start.length>n.start.length?-1:1},(r=O.call(n,0)).sort(e),r;var n,e,r},C=function(t){return{inlinePatterns:k(v(t,x)),blockPatterns:k(v(t,T)),replacementPatterns:v(t,b)}},D=function(n){return{setPatterns:function(t){n.set(C(t))},getPatterns:function(){return n.get().inlinePatterns.concat(n.get().blockPatterns,n.get().replacementPatterns)}}},S=[{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){var n,e,r=(n=t,e="textpattern_patterns",P(n,e)?h.some(n[e]):h.none()).getOr(S);return C(r)},N=tinymce.util.Tools.resolve("tinymce.util.Delay"),R=tinymce.util.Tools.resolve("tinymce.util.VK"),I=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),j=tinymce.util.Tools.resolve("tinymce.util.Tools"),w=function(t,n){for(var e=0;e<t.length;e++){var r=t[e];if(0===n.indexOf(r.start)&&(!r.end||n.lastIndexOf(r.end)===n.length-r.end.length))return r}},E=function(t,n,e){if(!1!==n.collapsed){var r=n.startContainer,a=r.data,o=!0===e?1:0;if(3===r.nodeType){var i=function(t,n,e,r){var a,o,i,f,u,s;for(o=0;o<t.length;o++)if((a=t[o]).end!==undefined&&(f=a,u=e,s=r,n.substr(u-f.end.length-s,f.end.length)===f.end)&&0<e-r-(i=a).end.length-i.start.length)return a}(t,a,n.startOffset,o);if(i!==undefined){var f=a.lastIndexOf(i.end,n.startOffset-o),u=a.lastIndexOf(i.start,f-i.end.length);if(f=a.indexOf(i.end,u+i.start.length),-1!==u){var s=document.createRange();s.setStart(r,u),s.setEnd(r,f+i.end.length);var c=w(t,s.toString());if(!(i===undefined||c!==i||r.data.length<=i.start.length+i.end.length))return{pattern:i,startOffset:u,endOffset:f}}}}}},q=function(t){return t&&3===t.nodeType},L=function(t,n,e){var r=t.dom.createRng();r.setStart(n,e),r.setEnd(n,e),t.selection.setRng(r)},M=function(n,t,e){var r=n.selection.getRng();return h.from(E(t,r,e)).map(function(t){return function(a,o,i,f){var u=j.isArray(i.pattern.format)?i.pattern.format:[i.pattern.format];if(0!==j.grep(u,function(t){var n=a.formatter.get(t);return n&&n[0].inline}).length)return a.undoManager.transact(function(){var t,n,e,r;t=o,n=i.pattern,e=i.endOffset,r=i.startOffset,(t=0<r?t.splitText(r):t).splitText(e-r+n.end.length),t.deleteData(0,n.start.length),t.deleteData(t.data.length-n.end.length,n.end.length),o=t,f&&a.selection.setCursorLocation(o.nextSibling,1),u.forEach(function(t){a.formatter.apply(t,{},o)})}),o}(n,r.startContainer,t,e)})},U=function(s,t,c){var n=s.selection.getRng(),l=n.startContainer;n.collapsed&&q(l)&&function(t,n,e){for(var r=0;r<t.length;r++){var a=e.lastIndexOf(t[r].start,n);if(-1!==a)return h.some({pattern:t[r],startOffset:a})}return h.none()}(t,n.startOffset,l.data).each(function(t){var n,e,r,a,o,i,f,u=c?h.some((n=l,r=(e=t).startOffset+e.pattern.start.length,a=n.data.slice(r,r+1),n.deleteData(r,1),a)):h.none();o=s,f=t,(i=l).deleteData(f.startOffset,f.pattern.start.length),o.insertContent(f.pattern.replacement),h.from(i.nextSibling).filter(q).each(function(t){t.insertData(0,i.data),o.dom.remove(i)}),u.each(function(t){return function(t,n){var e=t.selection.getRng(),r=e.startContainer;if(q(r)){var a=e.startOffset;r.insertData(a,n),L(t,r,a+n.length)}else{var o=t.dom.doc.createTextNode(n);e.insertNode(o),L(t,o,o.length)}}(s,t)})})},_=function(t,n,e){for(var r=0;r<t.length;r++)if(e(t[r],n))return!0},z=function(t,n){var e,r,a,o;e=t,r=n.replacementPatterns,U(e,r,!1),a=t,o=n.inlinePatterns,M(a,o,!1).each(function(t){L(a,t,t.data.length)}),function(t,n){var e,r,a,o,i,f,u,s,c,l,d;if(e=t.selection,r=t.dom,e.isCollapsed()&&(u=r.getParent(e.getStart(),"p"))){for(c=new I(u,u);i=c.next();)if(q(i)){o=i;break}if(o){if(!(s=w(n,o.data)))return;if(a=(l=e.getRng(!0)).startContainer,d=l.startOffset,o===a&&(d=Math.max(0,d-s.start.length)),j.trim(o.data).length===s.start.length)return;s.format&&(f=t.formatter.get(s.format))&&f[0].block&&(o.deleteData(0,s.start.length),t.formatter.apply(s.format,{},o),l.setStart(a,d),l.collapse(!0),e.setRng(l)),s.cmd&&t.undoManager.transact(function(){o.deleteData(0,s.start.length),t.execCommand(s.cmd)})}}}(t,n.blockPatterns)},K=function(t,n){var e,r,a,o;e=t,r=n.replacementPatterns,U(e,r,!0),a=t,o=n.inlinePatterns,M(a,o,!0).each(function(t){var n=t.data.slice(-1);if(/[\u00a0 ]/.test(n)){t.deleteData(t.data.length-1,1);var e=a.dom.doc.createTextNode(n);a.dom.insertAfter(e,t.parentNode),L(a,e,1)}})},V=function(t,n){return _(t,n,function(t,n){return t.charCodeAt(0)===n.charCode})},W=function(t,n){return _(t,n,function(t,n){return t===n.keyCode&&!1===R.modifierPressed(n)})},B=function(n,e){var r=[",",".",";",":","!","?"],a=[32];n.on("keydown",function(t){13!==t.keyCode||R.modifierPressed(t)||z(n,e.get())},!0),n.on("keyup",function(t){W(a,t)&&K(n,e.get())}),n.on("keypress",function(t){V(r,t)&&N.setEditorTimeout(n,function(){K(n,e.get())})})};i.add("textpattern",function(t){var n=o(A(t.settings));return B(t,n),D(n)})}();
|
@@ -1,228 +1,228 @@
|
|
1
1
|
(function () {
|
2
2
|
var toc = (function () {
|
3
|
-
|
3
|
+
'use strict';
|
4
4
|
|
5
|
-
|
5
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
6
6
|
|
7
|
-
|
7
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
8
8
|
|
9
|
-
|
9
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.I18n');
|
10
10
|
|
11
|
-
|
11
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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);
|
35
|
-
};
|
36
|
-
};
|
37
|
-
var $_cgm5p3sajm0og26x = { create: create };
|
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 Settings = {
|
25
|
+
getTocClass: getTocClass,
|
26
|
+
getTocHeader: getTocHeader,
|
27
|
+
getTocDepth: getTocDepth
|
28
|
+
};
|
38
29
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
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);
|
67
35
|
};
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
var
|
72
|
-
|
73
|
-
|
74
|
-
|
36
|
+
};
|
37
|
+
var Guid = { create: create };
|
38
|
+
|
39
|
+
var tocId = Guid.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);
|
75
45
|
}
|
76
|
-
|
77
|
-
|
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 = Settings.getTocClass(editor);
|
53
|
+
var headerTag = Settings.getTocHeader(editor);
|
54
|
+
var selector = generateSelector(Settings.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
|
+
});
|
78
60
|
}
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
var
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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>';
|
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
|
67
|
+
};
|
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;
|
109
75
|
}
|
76
|
+
if (minLevel === 1) {
|
77
|
+
return minLevel;
|
78
|
+
}
|
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(Settings.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 '';
|
110
98
|
}
|
111
|
-
html +=
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
99
|
+
html += generateTitle(Settings.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>';
|
109
|
+
}
|
116
110
|
}
|
117
|
-
|
118
|
-
|
119
|
-
html += '</li
|
111
|
+
html += '<a href="#' + h.id + '">' + h.title + '</a>';
|
112
|
+
if (nextLevel === h.level || !nextLevel) {
|
113
|
+
html += '</li>';
|
114
|
+
if (!nextLevel) {
|
115
|
+
html += '</ul>';
|
116
|
+
}
|
117
|
+
} else {
|
118
|
+
for (ii = h.level; ii > nextLevel; ii--) {
|
119
|
+
html += '</li></ul><li>';
|
120
|
+
}
|
120
121
|
}
|
122
|
+
prevLevel = h.level;
|
121
123
|
}
|
122
|
-
|
123
|
-
}
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|
-
};
|
152
|
-
|
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 };
|
162
|
-
|
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');
|
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 = Settings.getTocClass(editor);
|
131
|
+
var $tocElm = editor.$('.' + tocClass);
|
132
|
+
if (isEmptyOrOffscren(editor, $tocElm)) {
|
133
|
+
editor.insertContent(generateTocHtml(editor));
|
134
|
+
} else {
|
135
|
+
updateToc(editor);
|
170
136
|
}
|
171
|
-
}
|
172
|
-
|
173
|
-
var
|
137
|
+
};
|
138
|
+
var updateToc = function (editor) {
|
139
|
+
var tocClass = Settings.getTocClass(editor);
|
140
|
+
var $tocElm = editor.$('.' + tocClass);
|
174
141
|
if ($tocElm.length) {
|
175
|
-
|
176
|
-
|
142
|
+
editor.undoManager.transact(function () {
|
143
|
+
$tocElm.html(generateTocContentHtml(editor));
|
144
|
+
});
|
177
145
|
}
|
178
|
-
}
|
179
|
-
|
180
|
-
|
146
|
+
};
|
147
|
+
var Toc = {
|
148
|
+
hasHeaders: hasHeaders,
|
149
|
+
insertToc: insertToc,
|
150
|
+
updateToc: updateToc
|
151
|
+
};
|
181
152
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
153
|
+
var register = function (editor) {
|
154
|
+
editor.addCommand('mceInsertToc', function () {
|
155
|
+
Toc.insertToc(editor);
|
156
|
+
});
|
157
|
+
editor.addCommand('mceUpdateToc', function () {
|
158
|
+
Toc.updateToc(editor);
|
187
159
|
});
|
188
160
|
};
|
189
|
-
|
190
|
-
var isToc = function (editor) {
|
191
|
-
return function (elm) {
|
192
|
-
return elm && editor.dom.is(elm, '.' + $_10iupbs9jm0og26v.getTocClass(editor)) && editor.getBody().contains(elm);
|
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 };
|
161
|
+
var Commands = { register: register };
|
216
162
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
163
|
+
var setup = function (editor) {
|
164
|
+
var $ = editor.$, tocClass = Settings.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');
|
170
|
+
}
|
171
|
+
});
|
172
|
+
editor.on('SetContent', function () {
|
173
|
+
var $tocElm = $('.' + tocClass);
|
174
|
+
if ($tocElm.length) {
|
175
|
+
$tocElm.attr('contentEditable', false);
|
176
|
+
$tocElm.children(':first-child').attr('contentEditable', true);
|
177
|
+
}
|
178
|
+
});
|
179
|
+
};
|
180
|
+
var FilterContent = { setup: setup };
|
181
|
+
|
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 || !Toc.hasHeaders(editor));
|
187
|
+
});
|
188
|
+
};
|
189
|
+
};
|
190
|
+
var isToc = function (editor) {
|
191
|
+
return function (elm) {
|
192
|
+
return elm && editor.dom.is(elm, '.' + Settings.getTocClass(editor)) && editor.getBody().contains(elm);
|
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 Buttons = { register: register$1 };
|
216
|
+
|
217
|
+
global.add('toc', function (editor) {
|
218
|
+
Commands.register(editor);
|
219
|
+
Buttons.register(editor);
|
220
|
+
FilterContent.setup(editor);
|
221
|
+
});
|
222
|
+
function Plugin () {
|
223
|
+
}
|
224
224
|
|
225
|
-
|
225
|
+
return Plugin;
|
226
226
|
|
227
227
|
}());
|
228
228
|
})();
|
@@ -1,135 +1,135 @@
|
|
1
1
|
(function () {
|
2
2
|
var visualblocks = (function () {
|
3
|
-
|
3
|
+
'use strict';
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
var Cell = function (initial) {
|
6
|
+
var value = initial;
|
7
|
+
var get = function () {
|
8
|
+
return value;
|
9
|
+
};
|
10
|
+
var set = function (v) {
|
11
|
+
value = v;
|
12
|
+
};
|
13
|
+
var clone = function () {
|
14
|
+
return Cell(get());
|
15
|
+
};
|
16
|
+
return {
|
17
|
+
get: get,
|
18
|
+
set: set,
|
19
|
+
clone: clone
|
20
|
+
};
|
9
21
|
};
|
10
|
-
var set = function (v) {
|
11
|
-
value = v;
|
12
|
-
};
|
13
|
-
var clone = function () {
|
14
|
-
return Cell(get());
|
15
|
-
};
|
16
|
-
return {
|
17
|
-
get: get,
|
18
|
-
set: set,
|
19
|
-
clone: clone
|
20
|
-
};
|
21
|
-
};
|
22
22
|
|
23
|
-
|
23
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
var fireVisualBlocks = function (editor, state) {
|
26
|
+
editor.fire('VisualBlocks', { state: state });
|
27
|
+
};
|
28
|
+
var Events = { fireVisualBlocks: fireVisualBlocks };
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
30
|
+
var isEnabledByDefault = function (editor) {
|
31
|
+
return editor.getParam('visualblocks_default_state', false);
|
32
|
+
};
|
33
|
+
var getContentCss = function (editor) {
|
34
|
+
return editor.settings.visualblocks_content_css;
|
35
|
+
};
|
36
|
+
var Settings = {
|
37
|
+
isEnabledByDefault: isEnabledByDefault,
|
38
|
+
getContentCss: getContentCss
|
39
|
+
};
|
40
40
|
|
41
|
-
|
41
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
42
42
|
|
43
|
-
|
43
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
});
|
51
|
-
if (matchingLinkElms.length === 0) {
|
52
|
-
var linkElm = global$1.DOM.create('link', {
|
53
|
-
id: cssId,
|
54
|
-
rel: 'stylesheet',
|
55
|
-
href: url
|
45
|
+
var cssId = global$1.DOM.uniqueId();
|
46
|
+
var load = function (doc, url) {
|
47
|
+
var linkElements = global$2.toArray(doc.getElementsByTagName('link'));
|
48
|
+
var matchingLinkElms = global$2.grep(linkElements, function (head) {
|
49
|
+
return head.id === cssId;
|
56
50
|
});
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
51
|
+
if (matchingLinkElms.length === 0) {
|
52
|
+
var linkElm = global$1.DOM.create('link', {
|
53
|
+
id: cssId,
|
54
|
+
rel: 'stylesheet',
|
55
|
+
href: url
|
56
|
+
});
|
57
|
+
doc.getElementsByTagName('head')[0].appendChild(linkElm);
|
58
|
+
}
|
59
|
+
};
|
60
|
+
var LoadCss = { load: load };
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
62
|
+
var toggleVisualBlocks = function (editor, pluginUrl, enabledState) {
|
63
|
+
var dom = editor.dom;
|
64
|
+
var contentCss = Settings.getContentCss(editor);
|
65
|
+
LoadCss.load(editor.getDoc(), contentCss ? contentCss : pluginUrl + '/css/visualblocks.css');
|
66
|
+
dom.toggleClass(editor.getBody(), 'mce-visualblocks');
|
67
|
+
enabledState.set(!enabledState.get());
|
68
|
+
Events.fireVisualBlocks(editor, enabledState.get());
|
69
|
+
};
|
70
|
+
var VisualBlocks = { toggleVisualBlocks: toggleVisualBlocks };
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
72
|
+
var register = function (editor, pluginUrl, enabledState) {
|
73
|
+
editor.addCommand('mceVisualBlocks', function () {
|
74
|
+
VisualBlocks.toggleVisualBlocks(editor, pluginUrl, enabledState);
|
75
|
+
});
|
76
|
+
};
|
77
|
+
var Commands = { register: register };
|
78
78
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
79
|
+
var setup = function (editor, pluginUrl, enabledState) {
|
80
|
+
editor.on('PreviewFormats AfterPreviewFormats', function (e) {
|
81
|
+
if (enabledState.get()) {
|
82
|
+
editor.dom.toggleClass(editor.getBody(), 'mce-visualblocks', e.type === 'afterpreviewformats');
|
83
|
+
}
|
84
|
+
});
|
85
|
+
editor.on('init', function () {
|
86
|
+
if (Settings.isEnabledByDefault(editor)) {
|
87
|
+
VisualBlocks.toggleVisualBlocks(editor, pluginUrl, enabledState);
|
88
|
+
}
|
89
|
+
});
|
90
|
+
editor.on('remove', function () {
|
91
|
+
editor.dom.removeClass(editor.getBody(), 'mce-visualblocks');
|
92
|
+
});
|
93
|
+
};
|
94
|
+
var Bindings = { setup: setup };
|
95
95
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
96
|
+
var toggleActiveState = function (editor, enabledState) {
|
97
|
+
return function (e) {
|
98
|
+
var ctrl = e.control;
|
99
|
+
ctrl.active(enabledState.get());
|
100
|
+
editor.on('VisualBlocks', function (e) {
|
101
|
+
ctrl.active(e.state);
|
102
|
+
});
|
103
|
+
};
|
104
|
+
};
|
105
|
+
var register$1 = function (editor, enabledState) {
|
106
|
+
editor.addButton('visualblocks', {
|
107
|
+
active: false,
|
108
|
+
title: 'Show blocks',
|
109
|
+
cmd: 'mceVisualBlocks',
|
110
|
+
onPostRender: toggleActiveState(editor, enabledState)
|
111
|
+
});
|
112
|
+
editor.addMenuItem('visualblocks', {
|
113
|
+
text: 'Show blocks',
|
114
|
+
cmd: 'mceVisualBlocks',
|
115
|
+
onPostRender: toggleActiveState(editor, enabledState),
|
116
|
+
selectable: true,
|
117
|
+
context: 'view',
|
118
|
+
prependToContext: true
|
102
119
|
});
|
103
120
|
};
|
104
|
-
|
105
|
-
var register$1 = function (editor, enabledState) {
|
106
|
-
editor.addButton('visualblocks', {
|
107
|
-
active: false,
|
108
|
-
title: 'Show blocks',
|
109
|
-
cmd: 'mceVisualBlocks',
|
110
|
-
onPostRender: toggleActiveState(editor, enabledState)
|
111
|
-
});
|
112
|
-
editor.addMenuItem('visualblocks', {
|
113
|
-
text: 'Show blocks',
|
114
|
-
cmd: 'mceVisualBlocks',
|
115
|
-
onPostRender: toggleActiveState(editor, enabledState),
|
116
|
-
selectable: true,
|
117
|
-
context: 'view',
|
118
|
-
prependToContext: true
|
119
|
-
});
|
120
|
-
};
|
121
|
-
var $_8lbte1sojm0og27u = { register: register$1 };
|
121
|
+
var Buttons = { register: register$1 };
|
122
122
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
123
|
+
global.add('visualblocks', function (editor, pluginUrl) {
|
124
|
+
var enabledState = Cell(false);
|
125
|
+
Commands.register(editor, pluginUrl, enabledState);
|
126
|
+
Buttons.register(editor, enabledState);
|
127
|
+
Bindings.setup(editor, pluginUrl, enabledState);
|
128
|
+
});
|
129
|
+
function Plugin () {
|
130
|
+
}
|
131
131
|
|
132
|
-
|
132
|
+
return Plugin;
|
133
133
|
|
134
134
|
}());
|
135
135
|
})();
|