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,370 +1,616 @@
|
|
1
1
|
(function () {
|
2
2
|
var textpattern = (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
|
-
|
11
|
-
|
22
|
+
|
23
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
24
|
+
|
25
|
+
var constant = function (value) {
|
26
|
+
return function () {
|
27
|
+
return value;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
var never = constant(false);
|
31
|
+
var always = constant(true);
|
32
|
+
|
33
|
+
var never$1 = never;
|
34
|
+
var always$1 = always;
|
35
|
+
var none = function () {
|
36
|
+
return NONE;
|
37
|
+
};
|
38
|
+
var NONE = function () {
|
39
|
+
var eq = function (o) {
|
40
|
+
return o.isNone();
|
41
|
+
};
|
42
|
+
var call$$1 = function (thunk) {
|
43
|
+
return thunk();
|
44
|
+
};
|
45
|
+
var id = function (n) {
|
46
|
+
return n;
|
47
|
+
};
|
48
|
+
var noop$$1 = function () {
|
49
|
+
};
|
50
|
+
var nul = function () {
|
51
|
+
return null;
|
52
|
+
};
|
53
|
+
var undef = function () {
|
54
|
+
return undefined;
|
55
|
+
};
|
56
|
+
var me = {
|
57
|
+
fold: function (n, s) {
|
58
|
+
return n();
|
59
|
+
},
|
60
|
+
is: never$1,
|
61
|
+
isSome: never$1,
|
62
|
+
isNone: always$1,
|
63
|
+
getOr: id,
|
64
|
+
getOrThunk: call$$1,
|
65
|
+
getOrDie: function (msg) {
|
66
|
+
throw new Error(msg || 'error: getOrDie called on none.');
|
67
|
+
},
|
68
|
+
getOrNull: nul,
|
69
|
+
getOrUndefined: undef,
|
70
|
+
or: id,
|
71
|
+
orThunk: call$$1,
|
72
|
+
map: none,
|
73
|
+
ap: none,
|
74
|
+
each: noop$$1,
|
75
|
+
bind: none,
|
76
|
+
flatten: none,
|
77
|
+
exists: never$1,
|
78
|
+
forall: always$1,
|
79
|
+
filter: none,
|
80
|
+
equals: eq,
|
81
|
+
equals_: eq,
|
82
|
+
toArray: function () {
|
83
|
+
return [];
|
84
|
+
},
|
85
|
+
toString: constant('none()')
|
86
|
+
};
|
87
|
+
if (Object.freeze)
|
88
|
+
Object.freeze(me);
|
89
|
+
return me;
|
90
|
+
}();
|
91
|
+
var some = function (a) {
|
92
|
+
var constant_a = function () {
|
93
|
+
return a;
|
94
|
+
};
|
95
|
+
var self = function () {
|
96
|
+
return me;
|
97
|
+
};
|
98
|
+
var map = function (f) {
|
99
|
+
return some(f(a));
|
100
|
+
};
|
101
|
+
var bind = function (f) {
|
102
|
+
return f(a);
|
103
|
+
};
|
104
|
+
var me = {
|
105
|
+
fold: function (n, s) {
|
106
|
+
return s(a);
|
107
|
+
},
|
108
|
+
is: function (v) {
|
109
|
+
return a === v;
|
110
|
+
},
|
111
|
+
isSome: always$1,
|
112
|
+
isNone: never$1,
|
113
|
+
getOr: constant_a,
|
114
|
+
getOrThunk: constant_a,
|
115
|
+
getOrDie: constant_a,
|
116
|
+
getOrNull: constant_a,
|
117
|
+
getOrUndefined: constant_a,
|
118
|
+
or: self,
|
119
|
+
orThunk: self,
|
120
|
+
map: map,
|
121
|
+
ap: function (optfab) {
|
122
|
+
return optfab.fold(none, function (fab) {
|
123
|
+
return some(fab(a));
|
124
|
+
});
|
125
|
+
},
|
126
|
+
each: function (f) {
|
127
|
+
f(a);
|
128
|
+
},
|
129
|
+
bind: bind,
|
130
|
+
flatten: constant_a,
|
131
|
+
exists: bind,
|
132
|
+
forall: bind,
|
133
|
+
filter: function (f) {
|
134
|
+
return f(a) ? me : NONE;
|
135
|
+
},
|
136
|
+
equals: function (o) {
|
137
|
+
return o.is(a);
|
138
|
+
},
|
139
|
+
equals_: function (o, elementEq) {
|
140
|
+
return o.fold(never$1, function (b) {
|
141
|
+
return elementEq(a, b);
|
142
|
+
});
|
143
|
+
},
|
144
|
+
toArray: function () {
|
145
|
+
return [a];
|
146
|
+
},
|
147
|
+
toString: function () {
|
148
|
+
return 'some(' + a + ')';
|
149
|
+
}
|
150
|
+
};
|
151
|
+
return me;
|
12
152
|
};
|
13
|
-
var
|
14
|
-
return
|
153
|
+
var from = function (value) {
|
154
|
+
return value === null || value === undefined ? NONE : some(value);
|
15
155
|
};
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
156
|
+
var Option = {
|
157
|
+
some: some,
|
158
|
+
none: none,
|
159
|
+
from: from
|
20
160
|
};
|
21
|
-
};
|
22
161
|
|
23
|
-
|
162
|
+
var typeOf = function (x) {
|
163
|
+
if (x === null)
|
164
|
+
return 'null';
|
165
|
+
var t = typeof x;
|
166
|
+
if (t === 'object' && Array.prototype.isPrototypeOf(x))
|
167
|
+
return 'array';
|
168
|
+
if (t === 'object' && String.prototype.isPrototypeOf(x))
|
169
|
+
return 'string';
|
170
|
+
return t;
|
171
|
+
};
|
172
|
+
var isType = function (type) {
|
173
|
+
return function (value) {
|
174
|
+
return typeOf(value) === type;
|
175
|
+
};
|
176
|
+
};
|
177
|
+
var isFunction = isType('function');
|
24
178
|
|
25
|
-
|
26
|
-
|
27
|
-
|
179
|
+
var filter = function (xs, pred) {
|
180
|
+
var r = [];
|
181
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
182
|
+
var x = xs[i];
|
183
|
+
if (pred(x, i, xs)) {
|
184
|
+
r.push(x);
|
185
|
+
}
|
186
|
+
}
|
187
|
+
return r;
|
28
188
|
};
|
29
|
-
var
|
30
|
-
|
189
|
+
var slice = Array.prototype.slice;
|
190
|
+
var sort = function (xs, comparator) {
|
191
|
+
var copy = slice.call(xs, 0);
|
192
|
+
copy.sort(comparator);
|
193
|
+
return copy;
|
31
194
|
};
|
32
|
-
|
33
|
-
|
34
|
-
getPatterns: getPatterns
|
195
|
+
var from$1 = isFunction(Array.from) ? Array.from : function (x) {
|
196
|
+
return slice.call(x);
|
35
197
|
};
|
36
|
-
};
|
37
|
-
var $_fahwbkrrjm0og24j = { get: get };
|
38
198
|
|
39
|
-
|
40
|
-
{
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
}
|
50
|
-
{
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
199
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
200
|
+
var get = function (obj, key) {
|
201
|
+
return has(obj, key) ? Option.some(obj[key]) : Option.none();
|
202
|
+
};
|
203
|
+
var has = function (obj, key) {
|
204
|
+
return hasOwnProperty.call(obj, key);
|
205
|
+
};
|
206
|
+
|
207
|
+
var isInlinePattern = function (pattern) {
|
208
|
+
return has(pattern, 'start') && has(pattern, 'end');
|
209
|
+
};
|
210
|
+
var isBlockPattern = function (pattern) {
|
211
|
+
return !has(pattern, 'end') && !has(pattern, 'replacement');
|
212
|
+
};
|
213
|
+
var isReplacementPattern = function (pattern) {
|
214
|
+
return has(pattern, 'replacement');
|
215
|
+
};
|
216
|
+
var sortPatterns = function (patterns) {
|
217
|
+
return sort(patterns, function (a, b) {
|
218
|
+
if (a.start.length === b.start.length) {
|
219
|
+
return 0;
|
220
|
+
}
|
221
|
+
return a.start.length > b.start.length ? -1 : 1;
|
222
|
+
});
|
223
|
+
};
|
224
|
+
var createPatternSet = function (patterns) {
|
225
|
+
return {
|
226
|
+
inlinePatterns: sortPatterns(filter(patterns, isInlinePattern)),
|
227
|
+
blockPatterns: sortPatterns(filter(patterns, isBlockPattern)),
|
228
|
+
replacementPatterns: filter(patterns, isReplacementPattern)
|
229
|
+
};
|
230
|
+
};
|
231
|
+
|
232
|
+
var get$1 = function (patternsState) {
|
233
|
+
var setPatterns = function (newPatterns) {
|
234
|
+
patternsState.set(createPatternSet(newPatterns));
|
235
|
+
};
|
236
|
+
var getPatterns = function () {
|
237
|
+
return patternsState.get().inlinePatterns.concat(patternsState.get().blockPatterns, patternsState.get().replacementPatterns);
|
238
|
+
};
|
239
|
+
return {
|
240
|
+
setPatterns: setPatterns,
|
241
|
+
getPatterns: getPatterns
|
242
|
+
};
|
243
|
+
};
|
244
|
+
var Api = { get: get$1 };
|
245
|
+
|
246
|
+
var defaultPatterns = [
|
247
|
+
{
|
248
|
+
start: '*',
|
249
|
+
end: '*',
|
250
|
+
format: 'italic'
|
251
|
+
},
|
252
|
+
{
|
253
|
+
start: '**',
|
254
|
+
end: '**',
|
255
|
+
format: 'bold'
|
256
|
+
},
|
257
|
+
{
|
258
|
+
start: '***',
|
259
|
+
end: '***',
|
260
|
+
format: [
|
261
|
+
'bold',
|
262
|
+
'italic'
|
263
|
+
]
|
264
|
+
},
|
265
|
+
{
|
266
|
+
start: '#',
|
267
|
+
format: 'h1'
|
268
|
+
},
|
269
|
+
{
|
270
|
+
start: '##',
|
271
|
+
format: 'h2'
|
272
|
+
},
|
273
|
+
{
|
274
|
+
start: '###',
|
275
|
+
format: 'h3'
|
276
|
+
},
|
277
|
+
{
|
278
|
+
start: '####',
|
279
|
+
format: 'h4'
|
280
|
+
},
|
281
|
+
{
|
282
|
+
start: '#####',
|
283
|
+
format: 'h5'
|
284
|
+
},
|
285
|
+
{
|
286
|
+
start: '######',
|
287
|
+
format: 'h6'
|
288
|
+
},
|
289
|
+
{
|
290
|
+
start: '1. ',
|
291
|
+
cmd: 'InsertOrderedList'
|
292
|
+
},
|
293
|
+
{
|
294
|
+
start: '* ',
|
295
|
+
cmd: 'InsertUnorderedList'
|
296
|
+
},
|
297
|
+
{
|
298
|
+
start: '- ',
|
299
|
+
cmd: 'InsertUnorderedList'
|
300
|
+
}
|
301
|
+
];
|
302
|
+
var getPatternSet = function (editorSettings) {
|
303
|
+
var patterns = get(editorSettings, 'textpattern_patterns').getOr(defaultPatterns);
|
304
|
+
return createPatternSet(patterns);
|
305
|
+
};
|
99
306
|
|
100
|
-
|
307
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
101
308
|
|
102
|
-
|
309
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.VK');
|
103
310
|
|
104
|
-
|
311
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
|
105
312
|
|
106
|
-
|
313
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
107
314
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
315
|
+
var findPattern = function (patterns, text) {
|
316
|
+
for (var i = 0; i < patterns.length; i++) {
|
317
|
+
var pattern = patterns[i];
|
318
|
+
if (text.indexOf(pattern.start) !== 0) {
|
319
|
+
continue;
|
320
|
+
}
|
321
|
+
if (pattern.end && text.lastIndexOf(pattern.end) !== text.length - pattern.end.length) {
|
322
|
+
continue;
|
323
|
+
}
|
324
|
+
return pattern;
|
112
325
|
}
|
113
|
-
|
114
|
-
|
326
|
+
};
|
327
|
+
var isMatchingPattern = function (pattern, text, offset, delta) {
|
328
|
+
var textEnd = text.substr(offset - pattern.end.length - delta, pattern.end.length);
|
329
|
+
return textEnd === pattern.end;
|
330
|
+
};
|
331
|
+
var hasContent = function (offset, delta, pattern) {
|
332
|
+
return offset - delta - pattern.end.length - pattern.start.length > 0;
|
333
|
+
};
|
334
|
+
var findEndPattern = function (patterns, text, offset, delta) {
|
335
|
+
var pattern, i;
|
336
|
+
for (i = 0; i < patterns.length; i++) {
|
337
|
+
pattern = patterns[i];
|
338
|
+
if (pattern.end !== undefined && isMatchingPattern(pattern, text, offset, delta) && hasContent(offset, delta, pattern)) {
|
339
|
+
return pattern;
|
340
|
+
}
|
115
341
|
}
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
for (var i = 0; i < patterns.length; i++) {
|
121
|
-
if (text.indexOf(patterns[i].start) !== 0) {
|
122
|
-
continue;
|
342
|
+
};
|
343
|
+
var findInlinePattern = function (patterns, rng, space) {
|
344
|
+
if (rng.collapsed === false) {
|
345
|
+
return;
|
123
346
|
}
|
124
|
-
|
125
|
-
|
347
|
+
var container = rng.startContainer;
|
348
|
+
var text = container.data;
|
349
|
+
var delta = space === true ? 1 : 0;
|
350
|
+
if (container.nodeType !== 3) {
|
351
|
+
return;
|
126
352
|
}
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
var isMatchingPattern = function (pattern, text, offset, delta) {
|
131
|
-
var textEnd = text.substr(offset - pattern.end.length - delta, pattern.end.length);
|
132
|
-
return textEnd === pattern.end;
|
133
|
-
};
|
134
|
-
var hasContent = function (offset, delta, pattern) {
|
135
|
-
return offset - delta - pattern.end.length - pattern.start.length > 0;
|
136
|
-
};
|
137
|
-
var findEndPattern = function (patterns, text, offset, delta) {
|
138
|
-
var pattern, i;
|
139
|
-
var sortedPatterns = sortPatterns(patterns);
|
140
|
-
for (i = 0; i < sortedPatterns.length; i++) {
|
141
|
-
pattern = sortedPatterns[i];
|
142
|
-
if (pattern.end !== undefined && isMatchingPattern(pattern, text, offset, delta) && hasContent(offset, delta, pattern)) {
|
143
|
-
return pattern;
|
353
|
+
var endPattern = findEndPattern(patterns, text, rng.startOffset, delta);
|
354
|
+
if (endPattern === undefined) {
|
355
|
+
return;
|
144
356
|
}
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
357
|
+
var endOffset = text.lastIndexOf(endPattern.end, rng.startOffset - delta);
|
358
|
+
var startOffset = text.lastIndexOf(endPattern.start, endOffset - endPattern.end.length);
|
359
|
+
endOffset = text.indexOf(endPattern.end, startOffset + endPattern.start.length);
|
360
|
+
if (startOffset === -1) {
|
361
|
+
return;
|
362
|
+
}
|
363
|
+
var patternRng = document.createRange();
|
364
|
+
patternRng.setStart(container, startOffset);
|
365
|
+
patternRng.setEnd(container, endOffset + endPattern.end.length);
|
366
|
+
var startPattern = findPattern(patterns, patternRng.toString());
|
367
|
+
if (endPattern === undefined || startPattern !== endPattern || container.data.length <= endPattern.start.length + endPattern.end.length) {
|
368
|
+
return;
|
369
|
+
}
|
370
|
+
return {
|
371
|
+
pattern: endPattern,
|
372
|
+
startOffset: startOffset,
|
373
|
+
endOffset: endOffset
|
374
|
+
};
|
375
|
+
};
|
376
|
+
var findReplacementPattern = function (patterns, startSearch, text) {
|
377
|
+
for (var i = 0; i < patterns.length; i++) {
|
378
|
+
var index = text.lastIndexOf(patterns[i].start, startSearch);
|
379
|
+
if (index !== -1) {
|
380
|
+
return Option.some({
|
381
|
+
pattern: patterns[i],
|
382
|
+
startOffset: index
|
383
|
+
});
|
384
|
+
}
|
385
|
+
}
|
386
|
+
return Option.none();
|
387
|
+
};
|
151
388
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
if (endPattern === undefined || startPattern !== endPattern || container.data.length <= endPattern.start.length + endPattern.end.length) {
|
184
|
-
return;
|
185
|
-
}
|
186
|
-
return {
|
187
|
-
pattern: endPattern,
|
188
|
-
startOffset: startOffset,
|
189
|
-
endOffset: endOffset
|
190
|
-
};
|
191
|
-
};
|
192
|
-
var splitAndApply = function (editor, container, found, space) {
|
193
|
-
var formatArray = global$4.isArray(found.pattern.format) ? found.pattern.format : [found.pattern.format];
|
194
|
-
var validFormats = global$4.grep(formatArray, function (formatName) {
|
195
|
-
var format = editor.formatter.get(formatName);
|
196
|
-
return format && format[0].inline;
|
197
|
-
});
|
198
|
-
if (validFormats.length !== 0) {
|
199
|
-
editor.undoManager.transact(function () {
|
200
|
-
container = splitContainer(container, found.pattern, found.endOffset, found.startOffset, space);
|
201
|
-
formatArray.forEach(function (format) {
|
202
|
-
editor.formatter.apply(format, {}, container);
|
389
|
+
var isText = function (node) {
|
390
|
+
return node && node.nodeType === 3;
|
391
|
+
};
|
392
|
+
var setSelection = function (editor, textNode, offset) {
|
393
|
+
var newRng = editor.dom.createRng();
|
394
|
+
newRng.setStart(textNode, offset);
|
395
|
+
newRng.setEnd(textNode, offset);
|
396
|
+
editor.selection.setRng(newRng);
|
397
|
+
};
|
398
|
+
var splitContainer = function (container, pattern, endOffset, startOffset) {
|
399
|
+
container = startOffset > 0 ? container.splitText(startOffset) : container;
|
400
|
+
container.splitText(endOffset - startOffset + pattern.end.length);
|
401
|
+
container.deleteData(0, pattern.start.length);
|
402
|
+
container.deleteData(container.data.length - pattern.end.length, pattern.end.length);
|
403
|
+
return container;
|
404
|
+
};
|
405
|
+
var splitAndApply = function (editor, container, found, inline) {
|
406
|
+
var formatArray = global$4.isArray(found.pattern.format) ? found.pattern.format : [found.pattern.format];
|
407
|
+
var validFormats = global$4.grep(formatArray, function (formatName) {
|
408
|
+
var format = editor.formatter.get(formatName);
|
409
|
+
return format && format[0].inline;
|
410
|
+
});
|
411
|
+
if (validFormats.length !== 0) {
|
412
|
+
editor.undoManager.transact(function () {
|
413
|
+
container = splitContainer(container, found.pattern, found.endOffset, found.startOffset);
|
414
|
+
if (inline) {
|
415
|
+
editor.selection.setCursorLocation(container.nextSibling, 1);
|
416
|
+
}
|
417
|
+
formatArray.forEach(function (format) {
|
418
|
+
editor.formatter.apply(format, {}, container);
|
419
|
+
});
|
203
420
|
});
|
421
|
+
return container;
|
422
|
+
}
|
423
|
+
};
|
424
|
+
var applyInlinePattern = function (editor, patterns, inline) {
|
425
|
+
var rng = editor.selection.getRng();
|
426
|
+
return Option.from(findInlinePattern(patterns, rng, inline)).map(function (foundPattern) {
|
427
|
+
return splitAndApply(editor, rng.startContainer, foundPattern, inline);
|
204
428
|
});
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
};
|
215
|
-
var applyInlineFormatSpace = function (editor, patterns) {
|
216
|
-
return doApplyInlineFormat(editor, patterns, true);
|
217
|
-
};
|
218
|
-
var applyInlineFormatEnter = function (editor, patterns) {
|
219
|
-
return doApplyInlineFormat(editor, patterns, false);
|
220
|
-
};
|
221
|
-
var applyBlockFormat = function (editor, patterns) {
|
222
|
-
var selection, dom, container, firstTextNode, node, format, textBlockElm, pattern, walker, rng, offset;
|
223
|
-
selection = editor.selection;
|
224
|
-
dom = editor.dom;
|
225
|
-
if (!selection.isCollapsed()) {
|
226
|
-
return;
|
227
|
-
}
|
228
|
-
textBlockElm = dom.getParent(selection.getStart(), 'p');
|
229
|
-
if (textBlockElm) {
|
230
|
-
walker = new global$3(textBlockElm, textBlockElm);
|
231
|
-
while (node = walker.next()) {
|
232
|
-
if (node.nodeType === 3) {
|
233
|
-
firstTextNode = node;
|
234
|
-
break;
|
429
|
+
};
|
430
|
+
var applyInlinePatternSpace = function (editor, patterns) {
|
431
|
+
applyInlinePattern(editor, patterns, true).each(function (wrappedTextNode) {
|
432
|
+
var lastChar = wrappedTextNode.data.slice(-1);
|
433
|
+
if (/[\u00a0 ]/.test(lastChar)) {
|
434
|
+
wrappedTextNode.deleteData(wrappedTextNode.data.length - 1, 1);
|
435
|
+
var lastCharNode = editor.dom.doc.createTextNode(lastChar);
|
436
|
+
editor.dom.insertAfter(lastCharNode, wrappedTextNode.parentNode);
|
437
|
+
setSelection(editor, lastCharNode, 1);
|
235
438
|
}
|
439
|
+
});
|
440
|
+
};
|
441
|
+
var applyInlinePatternEnter = function (editor, patterns) {
|
442
|
+
applyInlinePattern(editor, patterns, false).each(function (wrappedTextNode) {
|
443
|
+
setSelection(editor, wrappedTextNode, wrappedTextNode.data.length);
|
444
|
+
});
|
445
|
+
};
|
446
|
+
var applyBlockPattern = function (editor, patterns) {
|
447
|
+
var selection, dom, container, firstTextNode, node, format, textBlockElm, pattern, walker, rng, offset;
|
448
|
+
selection = editor.selection;
|
449
|
+
dom = editor.dom;
|
450
|
+
if (!selection.isCollapsed()) {
|
451
|
+
return;
|
236
452
|
}
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
offset = rng.startOffset;
|
245
|
-
if (firstTextNode === container) {
|
246
|
-
offset = Math.max(0, offset - pattern.start.length);
|
247
|
-
}
|
248
|
-
if (global$4.trim(firstTextNode.data).length === pattern.start.length) {
|
249
|
-
return;
|
250
|
-
}
|
251
|
-
if (pattern.format) {
|
252
|
-
format = editor.formatter.get(pattern.format);
|
253
|
-
if (format && format[0].block) {
|
254
|
-
firstTextNode.deleteData(0, pattern.start.length);
|
255
|
-
editor.formatter.apply(pattern.format, {}, firstTextNode);
|
256
|
-
rng.setStart(container, offset);
|
257
|
-
rng.collapse(true);
|
258
|
-
selection.setRng(rng);
|
453
|
+
textBlockElm = dom.getParent(selection.getStart(), 'p');
|
454
|
+
if (textBlockElm) {
|
455
|
+
walker = new global$3(textBlockElm, textBlockElm);
|
456
|
+
while (node = walker.next()) {
|
457
|
+
if (isText(node)) {
|
458
|
+
firstTextNode = node;
|
459
|
+
break;
|
259
460
|
}
|
260
461
|
}
|
261
|
-
if (
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
}
|
462
|
+
if (firstTextNode) {
|
463
|
+
pattern = findPattern(patterns, firstTextNode.data);
|
464
|
+
if (!pattern) {
|
465
|
+
return;
|
466
|
+
}
|
467
|
+
rng = selection.getRng(true);
|
468
|
+
container = rng.startContainer;
|
469
|
+
offset = rng.startOffset;
|
470
|
+
if (firstTextNode === container) {
|
471
|
+
offset = Math.max(0, offset - pattern.start.length);
|
472
|
+
}
|
473
|
+
if (global$4.trim(firstTextNode.data).length === pattern.start.length) {
|
474
|
+
return;
|
475
|
+
}
|
476
|
+
if (pattern.format) {
|
477
|
+
format = editor.formatter.get(pattern.format);
|
478
|
+
if (format && format[0].block) {
|
479
|
+
firstTextNode.deleteData(0, pattern.start.length);
|
480
|
+
editor.formatter.apply(pattern.format, {}, firstTextNode);
|
481
|
+
rng.setStart(container, offset);
|
482
|
+
rng.collapse(true);
|
483
|
+
selection.setRng(rng);
|
484
|
+
}
|
485
|
+
}
|
486
|
+
if (pattern.cmd) {
|
487
|
+
editor.undoManager.transact(function () {
|
488
|
+
firstTextNode.deleteData(0, pattern.start.length);
|
489
|
+
editor.execCommand(pattern.cmd);
|
490
|
+
});
|
491
|
+
}
|
266
492
|
}
|
267
493
|
}
|
268
|
-
}
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
if (wrappedTextNode) {
|
281
|
-
rng = editor.dom.createRng();
|
282
|
-
rng.setStart(wrappedTextNode, wrappedTextNode.data.length);
|
283
|
-
rng.setEnd(wrappedTextNode, wrappedTextNode.data.length);
|
284
|
-
editor.selection.setRng(rng);
|
285
|
-
}
|
286
|
-
$_bmyseirxjm0og24s.applyBlockFormat(editor, patterns);
|
287
|
-
}
|
288
|
-
function handleInlineKey(editor, patterns) {
|
289
|
-
var wrappedTextNode, lastChar, lastCharNode, rng, dom;
|
290
|
-
wrappedTextNode = $_bmyseirxjm0og24s.applyInlineFormatSpace(editor, patterns);
|
291
|
-
if (wrappedTextNode) {
|
292
|
-
dom = editor.dom;
|
293
|
-
lastChar = wrappedTextNode.data.slice(-1);
|
294
|
-
if (/[\u00a0 ]/.test(lastChar)) {
|
295
|
-
wrappedTextNode.deleteData(wrappedTextNode.data.length - 1, 1);
|
296
|
-
lastCharNode = dom.doc.createTextNode(lastChar);
|
297
|
-
dom.insertAfter(lastCharNode, wrappedTextNode.parentNode);
|
298
|
-
rng = dom.createRng();
|
299
|
-
rng.setStart(lastCharNode, 1);
|
300
|
-
rng.setEnd(lastCharNode, 1);
|
301
|
-
editor.selection.setRng(rng);
|
494
|
+
};
|
495
|
+
var selectionInsertText = function (editor, string) {
|
496
|
+
var rng = editor.selection.getRng();
|
497
|
+
var container = rng.startContainer;
|
498
|
+
if (isText(container)) {
|
499
|
+
var offset = rng.startOffset;
|
500
|
+
container.insertData(offset, string);
|
501
|
+
setSelection(editor, container, offset + string.length);
|
502
|
+
} else {
|
503
|
+
var newNode = editor.dom.doc.createTextNode(string);
|
504
|
+
rng.insertNode(newNode);
|
505
|
+
setSelection(editor, newNode, newNode.length);
|
302
506
|
}
|
303
|
-
}
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
507
|
+
};
|
508
|
+
var applyReplacement = function (editor, target, match) {
|
509
|
+
target.deleteData(match.startOffset, match.pattern.start.length);
|
510
|
+
editor.insertContent(match.pattern.replacement);
|
511
|
+
Option.from(target.nextSibling).filter(isText).each(function (nextSibling) {
|
512
|
+
nextSibling.insertData(0, target.data);
|
513
|
+
editor.dom.remove(target);
|
514
|
+
});
|
515
|
+
};
|
516
|
+
var extractChar = function (node, match) {
|
517
|
+
var offset = match.startOffset + match.pattern.start.length;
|
518
|
+
var char = node.data.slice(offset, offset + 1);
|
519
|
+
node.deleteData(offset, 1);
|
520
|
+
return char;
|
521
|
+
};
|
522
|
+
var applyReplacementPattern = function (editor, patterns, inline) {
|
523
|
+
var rng = editor.selection.getRng();
|
524
|
+
var container = rng.startContainer;
|
525
|
+
if (rng.collapsed && isText(container)) {
|
526
|
+
findReplacementPattern(patterns, rng.startOffset, container.data).each(function (match) {
|
527
|
+
var char = inline ? Option.some(extractChar(container, match)) : Option.none();
|
528
|
+
applyReplacement(editor, container, match);
|
529
|
+
char.each(function (ch) {
|
530
|
+
return selectionInsertText(editor, ch);
|
531
|
+
});
|
532
|
+
});
|
309
533
|
}
|
310
|
-
}
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
var checkCharCode = function (chars, event) {
|
318
|
-
return checkKeyEvent(chars, event, function (chr, event) {
|
319
|
-
return chr.charCodeAt(0) === event.charCode;
|
320
|
-
});
|
321
|
-
};
|
322
|
-
var $_7ay2cvrwjm0og24o = {
|
323
|
-
handleEnter: handleEnter,
|
324
|
-
handleInlineKey: handleInlineKey,
|
325
|
-
checkCharCode: checkCharCode,
|
326
|
-
checkKeyCode: checkKeyCode
|
327
|
-
};
|
534
|
+
};
|
535
|
+
var applyReplacementPatternSpace = function (editor, patterns) {
|
536
|
+
applyReplacementPattern(editor, patterns, true);
|
537
|
+
};
|
538
|
+
var applyReplacementPatternEnter = function (editor, patterns) {
|
539
|
+
applyReplacementPattern(editor, patterns, false);
|
540
|
+
};
|
328
541
|
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
var
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
}, true);
|
344
|
-
editor.on('keyup', function (e) {
|
345
|
-
if ($_7ay2cvrwjm0og24o.checkKeyCode(keyCodes, e)) {
|
346
|
-
$_7ay2cvrwjm0og24o.handleInlineKey(editor, patternsState.get());
|
347
|
-
}
|
348
|
-
});
|
349
|
-
editor.on('keypress', function (e) {
|
350
|
-
if ($_7ay2cvrwjm0og24o.checkCharCode(charCodes, e)) {
|
351
|
-
global$1.setEditorTimeout(editor, function () {
|
352
|
-
$_7ay2cvrwjm0og24o.handleInlineKey(editor, patternsState.get());
|
353
|
-
});
|
542
|
+
var handleEnter = function (editor, patternSet) {
|
543
|
+
applyReplacementPatternEnter(editor, patternSet.replacementPatterns);
|
544
|
+
applyInlinePatternEnter(editor, patternSet.inlinePatterns);
|
545
|
+
applyBlockPattern(editor, patternSet.blockPatterns);
|
546
|
+
};
|
547
|
+
var handleInlineKey = function (editor, patternSet) {
|
548
|
+
applyReplacementPatternSpace(editor, patternSet.replacementPatterns);
|
549
|
+
applyInlinePatternSpace(editor, patternSet.inlinePatterns);
|
550
|
+
};
|
551
|
+
var checkKeyEvent = function (codes, event, predicate) {
|
552
|
+
for (var i = 0; i < codes.length; i++) {
|
553
|
+
if (predicate(codes[i], event)) {
|
554
|
+
return true;
|
555
|
+
}
|
354
556
|
}
|
355
|
-
}
|
356
|
-
|
357
|
-
|
557
|
+
};
|
558
|
+
var checkKeyCode = function (codes, event) {
|
559
|
+
return checkKeyEvent(codes, event, function (code, event) {
|
560
|
+
return code === event.keyCode && global$2.modifierPressed(event) === false;
|
561
|
+
});
|
562
|
+
};
|
563
|
+
var checkCharCode = function (chars, event) {
|
564
|
+
return checkKeyEvent(chars, event, function (chr, event) {
|
565
|
+
return chr.charCodeAt(0) === event.charCode;
|
566
|
+
});
|
567
|
+
};
|
568
|
+
var KeyHandler = {
|
569
|
+
handleEnter: handleEnter,
|
570
|
+
handleInlineKey: handleInlineKey,
|
571
|
+
checkCharCode: checkCharCode,
|
572
|
+
checkKeyCode: checkKeyCode
|
573
|
+
};
|
358
574
|
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
575
|
+
var setup = function (editor, patternsState) {
|
576
|
+
var charCodes = [
|
577
|
+
',',
|
578
|
+
'.',
|
579
|
+
';',
|
580
|
+
':',
|
581
|
+
'!',
|
582
|
+
'?'
|
583
|
+
];
|
584
|
+
var keyCodes = [32];
|
585
|
+
editor.on('keydown', function (e) {
|
586
|
+
if (e.keyCode === 13 && !global$2.modifierPressed(e)) {
|
587
|
+
KeyHandler.handleEnter(editor, patternsState.get());
|
588
|
+
}
|
589
|
+
}, true);
|
590
|
+
editor.on('keyup', function (e) {
|
591
|
+
if (KeyHandler.checkKeyCode(keyCodes, e)) {
|
592
|
+
KeyHandler.handleInlineKey(editor, patternsState.get());
|
593
|
+
}
|
594
|
+
});
|
595
|
+
editor.on('keypress', function (e) {
|
596
|
+
if (KeyHandler.checkCharCode(charCodes, e)) {
|
597
|
+
global$1.setEditorTimeout(editor, function () {
|
598
|
+
KeyHandler.handleInlineKey(editor, patternsState.get());
|
599
|
+
});
|
600
|
+
}
|
601
|
+
});
|
602
|
+
};
|
603
|
+
var Keyboard = { setup: setup };
|
604
|
+
|
605
|
+
global.add('textpattern', function (editor) {
|
606
|
+
var patternsState = Cell(getPatternSet(editor.settings));
|
607
|
+
Keyboard.setup(editor, patternsState);
|
608
|
+
return Api.get(patternsState);
|
609
|
+
});
|
610
|
+
function Plugin () {
|
611
|
+
}
|
366
612
|
|
367
|
-
|
613
|
+
return Plugin;
|
368
614
|
|
369
615
|
}());
|
370
616
|
})();
|