bedrock_sass 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/assets/_vendor/ace/ace.js +21635 -0
- data/assets/_vendor/ace/ext-beautify.js +318 -0
- data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
- data/assets/_vendor/ace/ext-emmet.js +1226 -0
- data/assets/_vendor/ace/ext-error_marker.js +10 -0
- data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
- data/assets/_vendor/ace/ext-language_tools.js +1997 -0
- data/assets/_vendor/ace/ext-linking.js +65 -0
- data/assets/_vendor/ace/ext-modelist.js +228 -0
- data/assets/_vendor/ace/ext-options.js +750 -0
- data/assets/_vendor/ace/ext-rtl.js +110 -0
- data/assets/_vendor/ace/ext-searchbox.js +512 -0
- data/assets/_vendor/ace/ext-settings_menu.js +771 -0
- data/assets/_vendor/ace/ext-spellcheck.js +75 -0
- data/assets/_vendor/ace/ext-split.js +208 -0
- data/assets/_vendor/ace/ext-static_highlight.js +226 -0
- data/assets/_vendor/ace/ext-statusbar.js +57 -0
- data/assets/_vendor/ace/ext-textarea.js +567 -0
- data/assets/_vendor/ace/ext-themelist.js +67 -0
- data/assets/_vendor/ace/ext-whitespace.js +210 -0
- data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
- data/assets/_vendor/ace/keybinding-vim.js +5673 -0
- data/assets/_vendor/ace/mode-abap.js +222 -0
- data/assets/_vendor/ace/mode-abc.js +267 -0
- data/assets/_vendor/ace/mode-actionscript.js +274 -0
- data/assets/_vendor/ace/mode-ada.js +138 -0
- data/assets/_vendor/ace/mode-apache_conf.js +363 -0
- data/assets/_vendor/ace/mode-applescript.js +279 -0
- data/assets/_vendor/ace/mode-asciidoc.js +349 -0
- data/assets/_vendor/ace/mode-asl.js +422 -0
- data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
- data/assets/_vendor/ace/mode-autohotkey.js +243 -0
- data/assets/_vendor/ace/mode-batchfile.js +230 -0
- data/assets/_vendor/ace/mode-bro.js +334 -0
- data/assets/_vendor/ace/mode-c9search.js +294 -0
- data/assets/_vendor/ace/mode-c_cpp.js +502 -0
- data/assets/_vendor/ace/mode-cirru.js +211 -0
- data/assets/_vendor/ace/mode-clojure.js +314 -0
- data/assets/_vendor/ace/mode-cobol.js +102 -0
- data/assets/_vendor/ace/mode-coffee.js +400 -0
- data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
- data/assets/_vendor/ace/mode-csharp.js +502 -0
- data/assets/_vendor/ace/mode-csound_document.js +3749 -0
- data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
- data/assets/_vendor/ace/mode-csound_score.js +454 -0
- data/assets/_vendor/ace/mode-csp.js +60 -0
- data/assets/_vendor/ace/mode-css.js +723 -0
- data/assets/_vendor/ace/mode-curly.js +2564 -0
- data/assets/_vendor/ace/mode-d.js +520 -0
- data/assets/_vendor/ace/mode-dart.js +703 -0
- data/assets/_vendor/ace/mode-diff.js +146 -0
- data/assets/_vendor/ace/mode-django.js +2594 -0
- data/assets/_vendor/ace/mode-dockerfile.js +498 -0
- data/assets/_vendor/ace/mode-dot.js +418 -0
- data/assets/_vendor/ace/mode-drools.js +496 -0
- data/assets/_vendor/ace/mode-edifact.js +165 -0
- data/assets/_vendor/ace/mode-eiffel.js +136 -0
- data/assets/_vendor/ace/mode-ejs.js +3026 -0
- data/assets/_vendor/ace/mode-elixir.js +501 -0
- data/assets/_vendor/ace/mode-elm.js +307 -0
- data/assets/_vendor/ace/mode-erlang.js +1009 -0
- data/assets/_vendor/ace/mode-forth.js +297 -0
- data/assets/_vendor/ace/mode-fortran.js +431 -0
- data/assets/_vendor/ace/mode-fsharp.js +314 -0
- data/assets/_vendor/ace/mode-ftl.js +1192 -0
- data/assets/_vendor/ace/mode-gcode.js +94 -0
- data/assets/_vendor/ace/mode-gherkin.js +172 -0
- data/assets/_vendor/ace/mode-gitignore.js +60 -0
- data/assets/_vendor/ace/mode-glsl.js +579 -0
- data/assets/_vendor/ace/mode-gobstones.js +929 -0
- data/assets/_vendor/ace/mode-golang.js +414 -0
- data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
- data/assets/_vendor/ace/mode-groovy.js +986 -0
- data/assets/_vendor/ace/mode-haml.js +1555 -0
- data/assets/_vendor/ace/mode-handlebars.js +2622 -0
- data/assets/_vendor/ace/mode-haskell.js +379 -0
- data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
- data/assets/_vendor/ace/mode-haxe.js +386 -0
- data/assets/_vendor/ace/mode-hjson.js +353 -0
- data/assets/_vendor/ace/mode-html.js +2509 -0
- data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
- data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
- data/assets/_vendor/ace/mode-ini.js +163 -0
- data/assets/_vendor/ace/mode-io.js +253 -0
- data/assets/_vendor/ace/mode-jack.js +347 -0
- data/assets/_vendor/ace/mode-jade.js +2126 -0
- data/assets/_vendor/ace/mode-java.js +975 -0
- data/assets/_vendor/ace/mode-javascript.js +797 -0
- data/assets/_vendor/ace/mode-json.js +327 -0
- data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
- data/assets/_vendor/ace/mode-jsp.js +1430 -0
- data/assets/_vendor/ace/mode-jssm.js +325 -0
- data/assets/_vendor/ace/mode-jsx.js +412 -0
- data/assets/_vendor/ace/mode-julia.js +303 -0
- data/assets/_vendor/ace/mode-kotlin.js +795 -0
- data/assets/_vendor/ace/mode-latex.js +297 -0
- data/assets/_vendor/ace/mode-less.js +841 -0
- data/assets/_vendor/ace/mode-liquid.js +1193 -0
- data/assets/_vendor/ace/mode-lisp.js +112 -0
- data/assets/_vendor/ace/mode-livescript.js +280 -0
- data/assets/_vendor/ace/mode-logiql.js +317 -0
- data/assets/_vendor/ace/mode-lsl.js +343 -0
- data/assets/_vendor/ace/mode-lua.js +432 -0
- data/assets/_vendor/ace/mode-luapage.js +3007 -0
- data/assets/_vendor/ace/mode-lucene.js +87 -0
- data/assets/_vendor/ace/mode-makefile.js +410 -0
- data/assets/_vendor/ace/mode-markdown.js +3189 -0
- data/assets/_vendor/ace/mode-mask.js +1802 -0
- data/assets/_vendor/ace/mode-matlab.js +264 -0
- data/assets/_vendor/ace/mode-maze.js +291 -0
- data/assets/_vendor/ace/mode-mel.js +263 -0
- data/assets/_vendor/ace/mode-mixal.js +123 -0
- data/assets/_vendor/ace/mode-mushcode.js +681 -0
- data/assets/_vendor/ace/mode-mysql.js +168 -0
- data/assets/_vendor/ace/mode-nix.js +646 -0
- data/assets/_vendor/ace/mode-nsis.js +312 -0
- data/assets/_vendor/ace/mode-objectivec.js +739 -0
- data/assets/_vendor/ace/mode-ocaml.js +422 -0
- data/assets/_vendor/ace/mode-pascal.js +205 -0
- data/assets/_vendor/ace/mode-perl.js +380 -0
- data/assets/_vendor/ace/mode-pgsql.js +1508 -0
- data/assets/_vendor/ace/mode-php.js +13088 -0
- data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
- data/assets/_vendor/ace/mode-pig.js +310 -0
- data/assets/_vendor/ace/mode-plain_text.js +33 -0
- data/assets/_vendor/ace/mode-powershell.js +418 -0
- data/assets/_vendor/ace/mode-praat.js +478 -0
- data/assets/_vendor/ace/mode-prolog.js +371 -0
- data/assets/_vendor/ace/mode-properties.js +81 -0
- data/assets/_vendor/ace/mode-protobuf.js +592 -0
- data/assets/_vendor/ace/mode-puppet.js +370 -0
- data/assets/_vendor/ace/mode-python.js +273 -0
- data/assets/_vendor/ace/mode-r.js +310 -0
- data/assets/_vendor/ace/mode-razor.js +2869 -0
- data/assets/_vendor/ace/mode-rdoc.js +243 -0
- data/assets/_vendor/ace/mode-red.js +450 -0
- data/assets/_vendor/ace/mode-redshift.js +361 -0
- data/assets/_vendor/ace/mode-rhtml.js +2806 -0
- data/assets/_vendor/ace/mode-rst.js +257 -0
- data/assets/_vendor/ace/mode-ruby.js +497 -0
- data/assets/_vendor/ace/mode-rust.js +279 -0
- data/assets/_vendor/ace/mode-sass.js +441 -0
- data/assets/_vendor/ace/mode-scad.js +414 -0
- data/assets/_vendor/ace/mode-scala.js +982 -0
- data/assets/_vendor/ace/mode-scheme.js +232 -0
- data/assets/_vendor/ace/mode-scss.js +606 -0
- data/assets/_vendor/ace/mode-sh.js +447 -0
- data/assets/_vendor/ace/mode-sjs.js +1014 -0
- data/assets/_vendor/ace/mode-slim.js +4736 -0
- data/assets/_vendor/ace/mode-smarty.js +2635 -0
- data/assets/_vendor/ace/mode-snippets.js +207 -0
- data/assets/_vendor/ace/mode-soy_template.js +2847 -0
- data/assets/_vendor/ace/mode-space.js +168 -0
- data/assets/_vendor/ace/mode-sparql.js +320 -0
- data/assets/_vendor/ace/mode-sql.js +111 -0
- data/assets/_vendor/ace/mode-sqlserver.js +444 -0
- data/assets/_vendor/ace/mode-stylus.js +471 -0
- data/assets/_vendor/ace/mode-svg.js +1581 -0
- data/assets/_vendor/ace/mode-swift.js +390 -0
- data/assets/_vendor/ace/mode-tcl.js +383 -0
- data/assets/_vendor/ace/mode-terraform.js +398 -0
- data/assets/_vendor/ace/mode-tex.js +159 -0
- data/assets/_vendor/ace/mode-text.js +10 -0
- data/assets/_vendor/ace/mode-textile.js +150 -0
- data/assets/_vendor/ace/mode-toml.js +154 -0
- data/assets/_vendor/ace/mode-tsx.js +887 -0
- data/assets/_vendor/ace/mode-turtle.js +296 -0
- data/assets/_vendor/ace/mode-twig.js +2693 -0
- data/assets/_vendor/ace/mode-typescript.js +868 -0
- data/assets/_vendor/ace/mode-vala.js +676 -0
- data/assets/_vendor/ace/mode-vbscript.js +207 -0
- data/assets/_vendor/ace/mode-velocity.js +2790 -0
- data/assets/_vendor/ace/mode-verilog.js +119 -0
- data/assets/_vendor/ace/mode-vhdl.js +118 -0
- data/assets/_vendor/ace/mode-wollok.js +911 -0
- data/assets/_vendor/ace/mode-xml.js +677 -0
- data/assets/_vendor/ace/mode-xquery.js +4922 -0
- data/assets/_vendor/ace/mode-yaml.js +300 -0
- data/assets/_vendor/ace/snippets/abap.js +15 -0
- data/assets/_vendor/ace/snippets/abc.js +46 -0
- data/assets/_vendor/ace/snippets/actionscript.js +172 -0
- data/assets/_vendor/ace/snippets/ada.js +15 -0
- data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
- data/assets/_vendor/ace/snippets/applescript.js +15 -0
- data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
- data/assets/_vendor/ace/snippets/asl.js +14 -0
- data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
- data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
- data/assets/_vendor/ace/snippets/batchfile.js +15 -0
- data/assets/_vendor/ace/snippets/bro.js +15 -0
- data/assets/_vendor/ace/snippets/c9search.js +15 -0
- data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
- data/assets/_vendor/ace/snippets/cirru.js +15 -0
- data/assets/_vendor/ace/snippets/clojure.js +105 -0
- data/assets/_vendor/ace/snippets/cobol.js +15 -0
- data/assets/_vendor/ace/snippets/coffee.js +110 -0
- data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
- data/assets/_vendor/ace/snippets/csharp.js +15 -0
- data/assets/_vendor/ace/snippets/csound_document.js +25 -0
- data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
- data/assets/_vendor/ace/snippets/csound_score.js +15 -0
- data/assets/_vendor/ace/snippets/csp.js +15 -0
- data/assets/_vendor/ace/snippets/css.js +982 -0
- data/assets/_vendor/ace/snippets/curly.js +15 -0
- data/assets/_vendor/ace/snippets/d.js +15 -0
- data/assets/_vendor/ace/snippets/dart.js +98 -0
- data/assets/_vendor/ace/snippets/diff.js +26 -0
- data/assets/_vendor/ace/snippets/django.js +123 -0
- data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
- data/assets/_vendor/ace/snippets/dot.js +15 -0
- data/assets/_vendor/ace/snippets/drools.js +34 -0
- data/assets/_vendor/ace/snippets/edifact.js +255 -0
- data/assets/_vendor/ace/snippets/eiffel.js +15 -0
- data/assets/_vendor/ace/snippets/ejs.js +15 -0
- data/assets/_vendor/ace/snippets/elixir.js +15 -0
- data/assets/_vendor/ace/snippets/elm.js +15 -0
- data/assets/_vendor/ace/snippets/erlang.js +175 -0
- data/assets/_vendor/ace/snippets/forth.js +15 -0
- data/assets/_vendor/ace/snippets/fortran.js +15 -0
- data/assets/_vendor/ace/snippets/fsharp.js +15 -0
- data/assets/_vendor/ace/snippets/ftl.js +15 -0
- data/assets/_vendor/ace/snippets/gcode.js +15 -0
- data/assets/_vendor/ace/snippets/gherkin.js +15 -0
- data/assets/_vendor/ace/snippets/gitignore.js +15 -0
- data/assets/_vendor/ace/snippets/glsl.js +15 -0
- data/assets/_vendor/ace/snippets/gobstones.js +49 -0
- data/assets/_vendor/ace/snippets/golang.js +15 -0
- data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
- data/assets/_vendor/ace/snippets/groovy.js +15 -0
- data/assets/_vendor/ace/snippets/haml.js +35 -0
- data/assets/_vendor/ace/snippets/handlebars.js +15 -0
- data/assets/_vendor/ace/snippets/haskell.js +97 -0
- data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
- data/assets/_vendor/ace/snippets/haxe.js +15 -0
- data/assets/_vendor/ace/snippets/hjson.js +15 -0
- data/assets/_vendor/ace/snippets/html.js +870 -0
- data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
- data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
- data/assets/_vendor/ace/snippets/ini.js +15 -0
- data/assets/_vendor/ace/snippets/io.js +77 -0
- data/assets/_vendor/ace/snippets/jack.js +15 -0
- data/assets/_vendor/ace/snippets/jade.js +15 -0
- data/assets/_vendor/ace/snippets/java.js +255 -0
- data/assets/_vendor/ace/snippets/javascript.js +210 -0
- data/assets/_vendor/ace/snippets/json.js +15 -0
- data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
- data/assets/_vendor/ace/snippets/jsp.js +114 -0
- data/assets/_vendor/ace/snippets/jssm.js +15 -0
- data/assets/_vendor/ace/snippets/jsx.js +15 -0
- data/assets/_vendor/ace/snippets/julia.js +15 -0
- data/assets/_vendor/ace/snippets/kotlin.js +15 -0
- data/assets/_vendor/ace/snippets/latex.js +15 -0
- data/assets/_vendor/ace/snippets/less.js +15 -0
- data/assets/_vendor/ace/snippets/liquid.js +15 -0
- data/assets/_vendor/ace/snippets/lisp.js +15 -0
- data/assets/_vendor/ace/snippets/livescript.js +15 -0
- data/assets/_vendor/ace/snippets/logiql.js +15 -0
- data/assets/_vendor/ace/snippets/lsl.js +1247 -0
- data/assets/_vendor/ace/snippets/lua.js +36 -0
- data/assets/_vendor/ace/snippets/luapage.js +15 -0
- data/assets/_vendor/ace/snippets/lucene.js +15 -0
- data/assets/_vendor/ace/snippets/makefile.js +19 -0
- data/assets/_vendor/ace/snippets/markdown.js +103 -0
- data/assets/_vendor/ace/snippets/mask.js +15 -0
- data/assets/_vendor/ace/snippets/matlab.js +15 -0
- data/assets/_vendor/ace/snippets/maze.js +24 -0
- data/assets/_vendor/ace/snippets/mel.js +15 -0
- data/assets/_vendor/ace/snippets/mixal.js +15 -0
- data/assets/_vendor/ace/snippets/mushcode.js +15 -0
- data/assets/_vendor/ace/snippets/mysql.js +15 -0
- data/assets/_vendor/ace/snippets/nix.js +15 -0
- data/assets/_vendor/ace/snippets/nsis.js +15 -0
- data/assets/_vendor/ace/snippets/objectivec.js +15 -0
- data/assets/_vendor/ace/snippets/ocaml.js +15 -0
- data/assets/_vendor/ace/snippets/pascal.js +15 -0
- data/assets/_vendor/ace/snippets/perl.js +362 -0
- data/assets/_vendor/ace/snippets/pgsql.js +15 -0
- data/assets/_vendor/ace/snippets/php.js +398 -0
- data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
- data/assets/_vendor/ace/snippets/pig.js +15 -0
- data/assets/_vendor/ace/snippets/plain_text.js +15 -0
- data/assets/_vendor/ace/snippets/powershell.js +15 -0
- data/assets/_vendor/ace/snippets/praat.js +15 -0
- data/assets/_vendor/ace/snippets/prolog.js +15 -0
- data/assets/_vendor/ace/snippets/properties.js +15 -0
- data/assets/_vendor/ace/snippets/protobuf.js +15 -0
- data/assets/_vendor/ace/snippets/puppet.js +15 -0
- data/assets/_vendor/ace/snippets/python.js +173 -0
- data/assets/_vendor/ace/snippets/r.js +136 -0
- data/assets/_vendor/ace/snippets/razor.js +18 -0
- data/assets/_vendor/ace/snippets/rdoc.js +15 -0
- data/assets/_vendor/ace/snippets/red.js +15 -0
- data/assets/_vendor/ace/snippets/redshift.js +15 -0
- data/assets/_vendor/ace/snippets/rhtml.js +15 -0
- data/assets/_vendor/ace/snippets/rst.js +37 -0
- data/assets/_vendor/ace/snippets/ruby.js +943 -0
- data/assets/_vendor/ace/snippets/rust.js +15 -0
- data/assets/_vendor/ace/snippets/sass.js +15 -0
- data/assets/_vendor/ace/snippets/scad.js +15 -0
- data/assets/_vendor/ace/snippets/scala.js +15 -0
- data/assets/_vendor/ace/snippets/scheme.js +15 -0
- data/assets/_vendor/ace/snippets/scss.js +15 -0
- data/assets/_vendor/ace/snippets/sh.js +98 -0
- data/assets/_vendor/ace/snippets/sjs.js +15 -0
- data/assets/_vendor/ace/snippets/slim.js +15 -0
- data/assets/_vendor/ace/snippets/smarty.js +15 -0
- data/assets/_vendor/ace/snippets/snippets.js +24 -0
- data/assets/_vendor/ace/snippets/soy_template.js +15 -0
- data/assets/_vendor/ace/snippets/space.js +15 -0
- data/assets/_vendor/ace/snippets/sparql.js +15 -0
- data/assets/_vendor/ace/snippets/sql.js +41 -0
- data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
- data/assets/_vendor/ace/snippets/stylus.js +15 -0
- data/assets/_vendor/ace/snippets/svg.js +15 -0
- data/assets/_vendor/ace/snippets/swift.js +15 -0
- data/assets/_vendor/ace/snippets/tcl.js +107 -0
- data/assets/_vendor/ace/snippets/terraform.js +15 -0
- data/assets/_vendor/ace/snippets/tex.js +205 -0
- data/assets/_vendor/ace/snippets/text.js +15 -0
- data/assets/_vendor/ace/snippets/textile.js +45 -0
- data/assets/_vendor/ace/snippets/toml.js +15 -0
- data/assets/_vendor/ace/snippets/tsx.js +15 -0
- data/assets/_vendor/ace/snippets/turtle.js +15 -0
- data/assets/_vendor/ace/snippets/twig.js +15 -0
- data/assets/_vendor/ace/snippets/typescript.js +15 -0
- data/assets/_vendor/ace/snippets/vala.js +201 -0
- data/assets/_vendor/ace/snippets/vbscript.js +15 -0
- data/assets/_vendor/ace/snippets/velocity.js +44 -0
- data/assets/_vendor/ace/snippets/verilog.js +15 -0
- data/assets/_vendor/ace/snippets/vhdl.js +15 -0
- data/assets/_vendor/ace/snippets/wollok.js +99 -0
- data/assets/_vendor/ace/snippets/xml.js +15 -0
- data/assets/_vendor/ace/snippets/xquery.js +76 -0
- data/assets/_vendor/ace/snippets/yaml.js +15 -0
- data/assets/_vendor/ace/theme-ambiance.js +185 -0
- data/assets/_vendor/ace/theme-chaos.js +164 -0
- data/assets/_vendor/ace/theme-chrome.js +136 -0
- data/assets/_vendor/ace/theme-clouds.js +103 -0
- data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
- data/assets/_vendor/ace/theme-cobalt.js +121 -0
- data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
- data/assets/_vendor/ace/theme-dawn.js +116 -0
- data/assets/_vendor/ace/theme-dracula.js +136 -0
- data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
- data/assets/_vendor/ace/theme-eclipse.js +106 -0
- data/assets/_vendor/ace/theme-github.js +110 -0
- data/assets/_vendor/ace/theme-gob.js +120 -0
- data/assets/_vendor/ace/theme-gruvbox.js +90 -0
- data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
- data/assets/_vendor/ace/theme-iplastic.js +129 -0
- data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
- data/assets/_vendor/ace/theme-kr_theme.js +112 -0
- data/assets/_vendor/ace/theme-kuroir.js +69 -0
- data/assets/_vendor/ace/theme-merbivore.js +103 -0
- data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
- data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
- data/assets/_vendor/ace/theme-monokai.js +113 -0
- data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
- data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
- data/assets/_vendor/ace/theme-solarized_light.js +99 -0
- data/assets/_vendor/ace/theme-sqlserver.js +146 -0
- data/assets/_vendor/ace/theme-terminal.js +122 -0
- data/assets/_vendor/ace/theme-textmate.js +138 -0
- data/assets/_vendor/ace/theme-tomorrow.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
- data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
- data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
- data/assets/_vendor/ace/theme-twilight.js +117 -0
- data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
- data/assets/_vendor/ace/theme-xcode.js +96 -0
- data/assets/_vendor/ace/worker-coffee.js +2165 -0
- data/assets/_vendor/ace/worker-css.js +8764 -0
- data/assets/_vendor/ace/worker-html.js +11614 -0
- data/assets/_vendor/ace/worker-javascript.js +12491 -0
- data/assets/_vendor/ace/worker-json.js +2396 -0
- data/assets/_vendor/ace/worker-lua.js +3637 -0
- data/assets/_vendor/ace/worker-php.js +4313 -0
- data/assets/_vendor/ace/worker-xml.js +3899 -0
- data/assets/_vendor/ace/worker-xquery.js +70688 -0
- data/assets/_vendor/motion-ui/_settings.scss +1 -0
- data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
- data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
- data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
- data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
- data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
- data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
- data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
- data/assets/_vendor/motion-ui/util/_args.scss +2 -2
- data/assets/_vendor/motion-ui/util/_function.scss +94 -0
- data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
- data/assets/_vendor/motion-ui/util/_series.scss +20 -17
- data/assets/_vendor/motion-ui/util/_string.scss +36 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
- data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
- data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
- data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
- data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
- data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
- data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
- data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
- data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
- data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
- data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
- data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
- data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
- data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
- data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
- data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
- data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
- data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
- data/assets/_vendor/tinymce/tinymce.js +25087 -42606
- data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
- data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
- data/assets/bedrock/js/bedrock.js +1 -71697
- data/assets/bedrock/scss/_bedrock-components.scss +20 -0
- data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
- data/assets/bedrock/scss/_foundation-settings.scss +4 -2
- data/assets/bedrock/scss/components/ace-editor.scss +21 -0
- data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
- data/assets/bedrock/scss/components/date-picker.scss +146 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
- data/assets/bedrock/scss/components/file-input.scss +7 -0
- data/assets/bedrock/scss/components/file-preview.scss +36 -0
- data/assets/bedrock/scss/components/frame-embed.scss +23 -0
- data/assets/bedrock/scss/components/global.scss +27 -0
- data/assets/bedrock/scss/components/helper-classes.scss +1 -0
- data/assets/bedrock/scss/components/icon-box.scss +38 -0
- data/assets/bedrock/scss/components/item-list.scss +66 -0
- data/assets/bedrock/scss/components/lists.scss +58 -0
- data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
- data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
- data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
- data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
- data/assets/bedrock/scss/components/select-box.scss +1 -0
- data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
- data/assets/bedrock/scss/components/textarea.scss +14 -2
- data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
- data/lib/bedrock_sass.rb +5 -0
- data/lib/bedrock_sass/version.rb +1 -1
- data/lib/tasks/before_assets_precompile.rake +1 -0
- metadata +395 -4
- data/CODE_OF_CONDUCT.md +0 -74
@@ -1 +1 @@
|
|
1
|
-
!function(){
|
1
|
+
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(t,o){var r;return t.dom.getParents(t.selection.getStart(),function(t){var e;(e=t.style["forecolor"===o?"color":"background-color"])&&(r=r||e)}),r},g=function(t){var e,o=[];for(e=0;e<t.length;e+=2)o.push({text:t[e+1],color:"#"+t[e]});return o},r=function(t,e,o){t.undoManager.transact(function(){t.focus(),t.formatter.apply(e,{value:o}),t.nodeChanged()})},e=function(t,e){t.undoManager.transact(function(){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()})},o=function(o){o.addCommand("mceApplyTextcolor",function(t,e){r(o,t,e)}),o.addCommand("mceRemoveTextcolor",function(t){e(o,t)})},F=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],l=function(t){return t.getParam("textcolor_map",a)},c=function(t){return t.getParam("textcolor_rows",5)},u=function(t){return t.getParam("textcolor_cols",8)},m=function(t){return t.getParam("color_picker_callback",null)},s=function(t){return t.getParam("forecolor_map",l(t))},d=function(t){return t.getParam("backcolor_map",l(t))},f=function(t){return t.getParam("forecolor_rows",c(t))},b=function(t){return t.getParam("backcolor_rows",c(t))},p=function(t){return t.getParam("forecolor_cols",u(t))},C=function(t){return t.getParam("backcolor_cols",u(t))},y=m,v=function(t){return"function"==typeof m(t)},h=tinymce.util.Tools.resolve("tinymce.util.I18n"),P=function(t,e,o,r){var n,a,l,c,i,u,m,s=0,d=F.DOM.uniqueId("mcearia"),f=function(t,e){var o="transparent"===t;return'<td class="mce-grid-cell'+(o?" mce-colorbtn-trans":"")+'"><div id="'+d+"-"+s+++'" data-mce-color="'+(t||"")+'" role="option" tabIndex="-1" style="'+(t?"background-color: "+t:"")+'" title="'+h.translate(e)+'">'+(o?"×":"")+"</div></td>"};for((n=g(o)).push({text:h.translate("No color"),color:"transparent"}),l='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',c=n.length-1,u=0;u<e;u++){for(l+="<tr>",i=0;i<t;i++)l+=c<(m=u*t+i)?"<td></td>":f((a=n[m]).color,a.text);l+="</tr>"}if(r){for(l+='<tr><td colspan="'+t+'" class="mce-custom-color-btn"><div id="'+d+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+d+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+h.translate("Custom...")+"</button></div></td></tr>",l+="<tr>",i=0;i<t;i++)l+=f("","Custom color");l+="</tr>"}return l+="</tbody></table>"},k=function(t,e){t.style.background=e,t.setAttribute("data-mce-color",e)},x=function(o){return function(t){var e=t.control;e._color?o.execCommand("mceApplyTextcolor",e.settings.format,e._color):o.execCommand("mceRemoveTextcolor",e.settings.format)}},T=function(r,c){return function(t){var e,a=this.parent(),o=n(r,a.settings.format),l=function(t){r.execCommand("mceApplyTextcolor",a.settings.format,t),a.hidePanel(),a.color(t)};F.DOM.getParent(t.target,".mce-custom-color-btn")&&(a.hidePanel(),y(r).call(r,function(t){var e,o,r,n=a.panel.getEl().getElementsByTagName("table")[0];for(e=i.map(n.rows[n.rows.length-1].childNodes,function(t){return t.firstChild}),r=0;r<e.length&&(o=e[r]).getAttribute("data-mce-color");r++);if(r===c)for(r=0;r<c-1;r++)k(e[r],e[r+1].getAttribute("data-mce-color"));k(o,t),l(t)},o)),(e=t.target.getAttribute("data-mce-color"))?(this.lastId&&F.DOM.get(this.lastId).setAttribute("aria-selected","false"),t.target.setAttribute("aria-selected",!0),this.lastId=t.target.id,"transparent"===e?(r.execCommand("mceRemoveTextcolor",a.settings.format),a.hidePanel(),a.resetColor()):l(e)):null!==e&&a.hidePanel()}},_=function(n,a){return function(){var t=a?p(n):C(n),e=a?f(n):b(n),o=a?s(n):d(n),r=v(n);return P(t,e,o,r)}},A=function(t){t.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{role:"application",ariaRemember:!0,html:_(t,!0),onclick:T(t,p(t))},onclick:x(t)}),t.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{role:"application",ariaRemember:!0,html:_(t,!1),onclick:T(t,C(t))},onclick:x(t)})};t.add("textcolor",function(t){o(t),A(t)})}();
|
@@ -1,718 +1,370 @@
|
|
1
1
|
(function () {
|
2
|
+
var textpattern = (function () {
|
3
|
+
'use strict';
|
2
4
|
|
3
|
-
var
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var register_3795 = function (id) {
|
8
|
-
var module = dem(id);
|
9
|
-
var fragments = id.split('.');
|
10
|
-
var target = Function('return this;')();
|
11
|
-
for (var i = 0; i < fragments.length - 1; ++i) {
|
12
|
-
if (target[fragments[i]] === undefined)
|
13
|
-
target[fragments[i]] = {};
|
14
|
-
target = target[fragments[i]];
|
15
|
-
}
|
16
|
-
target[fragments[fragments.length - 1]] = module;
|
17
|
-
};
|
18
|
-
|
19
|
-
var instantiate = function (id) {
|
20
|
-
var actual = defs[id];
|
21
|
-
var dependencies = actual.deps;
|
22
|
-
var definition = actual.defn;
|
23
|
-
var len = dependencies.length;
|
24
|
-
var instances = new Array(len);
|
25
|
-
for (var i = 0; i < len; ++i)
|
26
|
-
instances[i] = dem(dependencies[i]);
|
27
|
-
var defResult = definition.apply(null, instances);
|
28
|
-
if (defResult === undefined)
|
29
|
-
throw 'module [' + id + '] returned undefined';
|
30
|
-
actual.instance = defResult;
|
31
|
-
};
|
32
|
-
|
33
|
-
var def = function (id, dependencies, definition) {
|
34
|
-
if (typeof id !== 'string')
|
35
|
-
throw 'module id must be a string';
|
36
|
-
else if (dependencies === undefined)
|
37
|
-
throw 'no dependencies for ' + id;
|
38
|
-
else if (definition === undefined)
|
39
|
-
throw 'no definition function for ' + id;
|
40
|
-
defs[id] = {
|
41
|
-
deps: dependencies,
|
42
|
-
defn: definition,
|
43
|
-
instance: undefined
|
44
|
-
};
|
45
|
-
};
|
46
|
-
|
47
|
-
var dem = function (id) {
|
48
|
-
var actual = defs[id];
|
49
|
-
if (actual === undefined)
|
50
|
-
throw 'module [' + id + '] was undefined';
|
51
|
-
else if (actual.instance === undefined)
|
52
|
-
instantiate(id);
|
53
|
-
return actual.instance;
|
54
|
-
};
|
55
|
-
|
56
|
-
var req = function (ids, callback) {
|
57
|
-
var len = ids.length;
|
58
|
-
var instances = new Array(len);
|
59
|
-
for (var i = 0; i < len; ++i)
|
60
|
-
instances[i] = dem(ids[i]);
|
61
|
-
callback.apply(null, instances);
|
62
|
-
};
|
63
|
-
|
64
|
-
var ephox = {};
|
65
|
-
|
66
|
-
ephox.bolt = {
|
67
|
-
module: {
|
68
|
-
api: {
|
69
|
-
define: def,
|
70
|
-
require: req,
|
71
|
-
demand: dem
|
72
|
-
}
|
73
|
-
}
|
74
|
-
};
|
75
|
-
|
76
|
-
var define = def;
|
77
|
-
var require = req;
|
78
|
-
var demand = dem;
|
79
|
-
// this helps with minification when using a lot of global references
|
80
|
-
var defineGlobal = function (id, ref) {
|
81
|
-
define(id, [], function () { return ref; });
|
82
|
-
};
|
83
|
-
/*jsc
|
84
|
-
["tinymce.plugins.textpattern.Plugin","ephox.katamari.api.Cell","tinymce.core.PluginManager","tinymce.plugins.textpattern.api.Api","tinymce.plugins.textpattern.api.Settings","tinymce.plugins.textpattern.core.Keyboard","global!tinymce.util.Tools.resolve","tinymce.core.util.Delay","tinymce.core.util.VK","tinymce.plugins.textpattern.core.KeyHandler","tinymce.plugins.textpattern.core.Formatter","global!document","tinymce.core.dom.TreeWalker","tinymce.core.util.Tools","tinymce.plugins.textpattern.core.Patterns"]
|
85
|
-
jsc*/
|
86
|
-
define(
|
87
|
-
'ephox.katamari.api.Cell',
|
88
|
-
|
89
|
-
[
|
90
|
-
],
|
91
|
-
|
92
|
-
function () {
|
93
|
-
var Cell = function (initial) {
|
94
|
-
var value = initial;
|
95
|
-
|
96
|
-
var get = function () {
|
97
|
-
return value;
|
98
|
-
};
|
99
|
-
|
100
|
-
var set = function (v) {
|
101
|
-
value = v;
|
102
|
-
};
|
103
|
-
|
104
|
-
var clone = function () {
|
105
|
-
return Cell(get());
|
106
|
-
};
|
107
|
-
|
108
|
-
return {
|
109
|
-
get: get,
|
110
|
-
set: set,
|
111
|
-
clone: clone
|
112
|
-
};
|
5
|
+
var Cell = function (initial) {
|
6
|
+
var value = initial;
|
7
|
+
var get = function () {
|
8
|
+
return value;
|
113
9
|
};
|
114
|
-
|
115
|
-
|
116
|
-
}
|
117
|
-
);
|
118
|
-
|
119
|
-
defineGlobal("global!tinymce.util.Tools.resolve", tinymce.util.Tools.resolve);
|
120
|
-
/**
|
121
|
-
* ResolveGlobal.js
|
122
|
-
*
|
123
|
-
* Released under LGPL License.
|
124
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
125
|
-
*
|
126
|
-
* License: http://www.tinymce.com/license
|
127
|
-
* Contributing: http://www.tinymce.com/contributing
|
128
|
-
*/
|
129
|
-
|
130
|
-
define(
|
131
|
-
'tinymce.core.PluginManager',
|
132
|
-
[
|
133
|
-
'global!tinymce.util.Tools.resolve'
|
134
|
-
],
|
135
|
-
function (resolve) {
|
136
|
-
return resolve('tinymce.PluginManager');
|
137
|
-
}
|
138
|
-
);
|
139
|
-
|
140
|
-
/**
|
141
|
-
* Api.js
|
142
|
-
*
|
143
|
-
* Released under LGPL License.
|
144
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
145
|
-
*
|
146
|
-
* License: http://www.tinymce.com/license
|
147
|
-
* Contributing: http://www.tinymce.com/contributing
|
148
|
-
*/
|
149
|
-
|
150
|
-
define(
|
151
|
-
'tinymce.plugins.textpattern.api.Api',
|
152
|
-
[
|
153
|
-
],
|
154
|
-
function () {
|
155
|
-
var get = function (patternsState) {
|
156
|
-
var setPatterns = function (newPatterns) {
|
157
|
-
patternsState.set(newPatterns);
|
158
|
-
};
|
159
|
-
|
160
|
-
var getPatterns = function () {
|
161
|
-
return patternsState.get();
|
162
|
-
};
|
163
|
-
|
164
|
-
return {
|
165
|
-
setPatterns: setPatterns,
|
166
|
-
getPatterns: getPatterns
|
167
|
-
};
|
10
|
+
var set = function (v) {
|
11
|
+
value = v;
|
168
12
|
};
|
169
|
-
|
170
|
-
|
171
|
-
get: get
|
172
|
-
};
|
173
|
-
}
|
174
|
-
);
|
175
|
-
/**
|
176
|
-
* Settings.js
|
177
|
-
*
|
178
|
-
* Released under LGPL License.
|
179
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
180
|
-
*
|
181
|
-
* License: http://www.tinymce.com/license
|
182
|
-
* Contributing: http://www.tinymce.com/contributing
|
183
|
-
*/
|
184
|
-
|
185
|
-
define(
|
186
|
-
'tinymce.plugins.textpattern.api.Settings',
|
187
|
-
[
|
188
|
-
],
|
189
|
-
function () {
|
190
|
-
var defaultPatterns = [
|
191
|
-
{ start: '*', end: '*', format: 'italic' },
|
192
|
-
{ start: '**', end: '**', format: 'bold' },
|
193
|
-
{ start: '***', end: '***', format: ['bold', 'italic'] },
|
194
|
-
{ start: '#', format: 'h1' },
|
195
|
-
{ start: '##', format: 'h2' },
|
196
|
-
{ start: '###', format: 'h3' },
|
197
|
-
{ start: '####', format: 'h4' },
|
198
|
-
{ start: '#####', format: 'h5' },
|
199
|
-
{ start: '######', format: 'h6' },
|
200
|
-
{ start: '1. ', cmd: 'InsertOrderedList' },
|
201
|
-
{ start: '* ', cmd: 'InsertUnorderedList' },
|
202
|
-
{ start: '- ', cmd: 'InsertUnorderedList' }
|
203
|
-
];
|
204
|
-
|
205
|
-
var getPatterns = function (editorSettings) {
|
206
|
-
return editorSettings.textpattern_patterns !== undefined ?
|
207
|
-
editorSettings.textpattern_patterns :
|
208
|
-
defaultPatterns;
|
13
|
+
var clone = function () {
|
14
|
+
return Cell(get());
|
209
15
|
};
|
210
|
-
|
211
16
|
return {
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
);
|
216
|
-
|
217
|
-
/**
|
218
|
-
* ResolveGlobal.js
|
219
|
-
*
|
220
|
-
* Released under LGPL License.
|
221
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
222
|
-
*
|
223
|
-
* License: http://www.tinymce.com/license
|
224
|
-
* Contributing: http://www.tinymce.com/contributing
|
225
|
-
*/
|
226
|
-
|
227
|
-
define(
|
228
|
-
'tinymce.core.util.Delay',
|
229
|
-
[
|
230
|
-
'global!tinymce.util.Tools.resolve'
|
231
|
-
],
|
232
|
-
function (resolve) {
|
233
|
-
return resolve('tinymce.util.Delay');
|
234
|
-
}
|
235
|
-
);
|
236
|
-
|
237
|
-
/**
|
238
|
-
* ResolveGlobal.js
|
239
|
-
*
|
240
|
-
* Released under LGPL License.
|
241
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
242
|
-
*
|
243
|
-
* License: http://www.tinymce.com/license
|
244
|
-
* Contributing: http://www.tinymce.com/contributing
|
245
|
-
*/
|
246
|
-
|
247
|
-
define(
|
248
|
-
'tinymce.core.util.VK',
|
249
|
-
[
|
250
|
-
'global!tinymce.util.Tools.resolve'
|
251
|
-
],
|
252
|
-
function (resolve) {
|
253
|
-
return resolve('tinymce.util.VK');
|
254
|
-
}
|
255
|
-
);
|
256
|
-
|
257
|
-
defineGlobal("global!document", document);
|
258
|
-
/**
|
259
|
-
* ResolveGlobal.js
|
260
|
-
*
|
261
|
-
* Released under LGPL License.
|
262
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
263
|
-
*
|
264
|
-
* License: http://www.tinymce.com/license
|
265
|
-
* Contributing: http://www.tinymce.com/contributing
|
266
|
-
*/
|
267
|
-
|
268
|
-
define(
|
269
|
-
'tinymce.core.dom.TreeWalker',
|
270
|
-
[
|
271
|
-
'global!tinymce.util.Tools.resolve'
|
272
|
-
],
|
273
|
-
function (resolve) {
|
274
|
-
return resolve('tinymce.dom.TreeWalker');
|
275
|
-
}
|
276
|
-
);
|
277
|
-
|
278
|
-
/**
|
279
|
-
* ResolveGlobal.js
|
280
|
-
*
|
281
|
-
* Released under LGPL License.
|
282
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
283
|
-
*
|
284
|
-
* License: http://www.tinymce.com/license
|
285
|
-
* Contributing: http://www.tinymce.com/contributing
|
286
|
-
*/
|
287
|
-
|
288
|
-
define(
|
289
|
-
'tinymce.core.util.Tools',
|
290
|
-
[
|
291
|
-
'global!tinymce.util.Tools.resolve'
|
292
|
-
],
|
293
|
-
function (resolve) {
|
294
|
-
return resolve('tinymce.util.Tools');
|
295
|
-
}
|
296
|
-
);
|
297
|
-
|
298
|
-
/**
|
299
|
-
* Patterns.js
|
300
|
-
*
|
301
|
-
* Released under LGPL License.
|
302
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
303
|
-
*
|
304
|
-
* License: http://www.tinymce.com/license
|
305
|
-
* Contributing: http://www.tinymce.com/contributing
|
306
|
-
*/
|
307
|
-
|
308
|
-
define(
|
309
|
-
'tinymce.plugins.textpattern.core.Patterns',
|
310
|
-
[
|
311
|
-
],
|
312
|
-
function () {
|
313
|
-
// Returns a sorted patterns list, ordered descending by start length
|
314
|
-
var sortPatterns = function (patterns) {
|
315
|
-
return patterns.sort(function (a, b) {
|
316
|
-
if (a.start.length > b.start.length) {
|
317
|
-
return -1;
|
318
|
-
}
|
319
|
-
|
320
|
-
if (a.start.length < b.start.length) {
|
321
|
-
return 1;
|
322
|
-
}
|
323
|
-
|
324
|
-
return 0;
|
325
|
-
});
|
17
|
+
get: get,
|
18
|
+
set: set,
|
19
|
+
clone: clone
|
326
20
|
};
|
21
|
+
};
|
327
22
|
|
328
|
-
|
329
|
-
var findPattern = function (patterns, text) {
|
330
|
-
for (var i = 0; i < patterns.length; i++) {
|
331
|
-
if (text.indexOf(patterns[i].start) !== 0) {
|
332
|
-
continue;
|
333
|
-
}
|
334
|
-
|
335
|
-
if (patterns[i].end && text.lastIndexOf(patterns[i].end) !== (text.length - patterns[i].end.length)) {
|
336
|
-
continue;
|
337
|
-
}
|
338
|
-
|
339
|
-
return patterns[i];
|
340
|
-
}
|
341
|
-
};
|
23
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
342
24
|
|
343
|
-
|
344
|
-
|
345
|
-
|
25
|
+
var get = function (patternsState) {
|
26
|
+
var setPatterns = function (newPatterns) {
|
27
|
+
patternsState.set(newPatterns);
|
346
28
|
};
|
347
|
-
|
348
|
-
|
349
|
-
return (offset - delta - pattern.end.length - pattern.start.length) > 0;
|
29
|
+
var getPatterns = function () {
|
30
|
+
return patternsState.get();
|
350
31
|
};
|
351
|
-
|
352
|
-
// Finds the best matching end pattern
|
353
|
-
var findEndPattern = function (patterns, text, offset, delta) {
|
354
|
-
var pattern, i;
|
355
|
-
var sortedPatterns = sortPatterns(patterns);
|
356
|
-
|
357
|
-
// Find best matching end
|
358
|
-
for (i = 0; i < sortedPatterns.length; i++) {
|
359
|
-
pattern = sortedPatterns[i];
|
360
|
-
if (pattern.end !== undefined && isMatchingPattern(pattern, text, offset, delta) && hasContent(offset, delta, pattern)) {
|
361
|
-
return pattern;
|
362
|
-
}
|
363
|
-
}
|
364
|
-
};
|
365
|
-
|
366
32
|
return {
|
367
|
-
|
368
|
-
|
33
|
+
setPatterns: setPatterns,
|
34
|
+
getPatterns: getPatterns
|
369
35
|
};
|
370
|
-
}
|
371
|
-
|
36
|
+
};
|
37
|
+
var $_fahwbkrrjm0og24j = { get: get };
|
38
|
+
|
39
|
+
var defaultPatterns = [
|
40
|
+
{
|
41
|
+
start: '*',
|
42
|
+
end: '*',
|
43
|
+
format: 'italic'
|
44
|
+
},
|
45
|
+
{
|
46
|
+
start: '**',
|
47
|
+
end: '**',
|
48
|
+
format: 'bold'
|
49
|
+
},
|
50
|
+
{
|
51
|
+
start: '***',
|
52
|
+
end: '***',
|
53
|
+
format: [
|
54
|
+
'bold',
|
55
|
+
'italic'
|
56
|
+
]
|
57
|
+
},
|
58
|
+
{
|
59
|
+
start: '#',
|
60
|
+
format: 'h1'
|
61
|
+
},
|
62
|
+
{
|
63
|
+
start: '##',
|
64
|
+
format: 'h2'
|
65
|
+
},
|
66
|
+
{
|
67
|
+
start: '###',
|
68
|
+
format: 'h3'
|
69
|
+
},
|
70
|
+
{
|
71
|
+
start: '####',
|
72
|
+
format: 'h4'
|
73
|
+
},
|
74
|
+
{
|
75
|
+
start: '#####',
|
76
|
+
format: 'h5'
|
77
|
+
},
|
78
|
+
{
|
79
|
+
start: '######',
|
80
|
+
format: 'h6'
|
81
|
+
},
|
82
|
+
{
|
83
|
+
start: '1. ',
|
84
|
+
cmd: 'InsertOrderedList'
|
85
|
+
},
|
86
|
+
{
|
87
|
+
start: '* ',
|
88
|
+
cmd: 'InsertUnorderedList'
|
89
|
+
},
|
90
|
+
{
|
91
|
+
start: '- ',
|
92
|
+
cmd: 'InsertUnorderedList'
|
93
|
+
}
|
94
|
+
];
|
95
|
+
var getPatterns = function (editorSettings) {
|
96
|
+
return editorSettings.textpattern_patterns !== undefined ? editorSettings.textpattern_patterns : defaultPatterns;
|
97
|
+
};
|
98
|
+
var $_g0jjoersjm0og24k = { getPatterns: getPatterns };
|
372
99
|
|
373
|
-
|
374
|
-
* Formatter.js
|
375
|
-
*
|
376
|
-
* Released under LGPL License.
|
377
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
378
|
-
*
|
379
|
-
* License: http://www.tinymce.com/license
|
380
|
-
* Contributing: http://www.tinymce.com/contributing
|
381
|
-
*/
|
100
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
382
101
|
|
383
|
-
|
384
|
-
'tinymce.plugins.textpattern.core.Formatter',
|
385
|
-
[
|
386
|
-
'global!document',
|
387
|
-
'tinymce.core.dom.TreeWalker',
|
388
|
-
'tinymce.core.util.Tools',
|
389
|
-
'tinymce.plugins.textpattern.core.Patterns'
|
390
|
-
],
|
391
|
-
function (document, TreeWalker, Tools, Patterns) {
|
392
|
-
var splitContainer = function (container, pattern, endOffset, startOffset, space) {
|
102
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.VK');
|
393
103
|
|
394
|
-
|
395
|
-
container = startOffset > 0 ? container.splitText(startOffset) : container;
|
396
|
-
container.splitText(endOffset - startOffset + pattern.end.length);
|
397
|
-
container.deleteData(0, pattern.start.length);
|
398
|
-
container.deleteData(container.data.length - pattern.end.length, pattern.end.length);
|
104
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
|
399
105
|
|
400
|
-
|
401
|
-
};
|
106
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
402
107
|
|
403
|
-
|
404
|
-
|
405
|
-
|
108
|
+
var sortPatterns = function (patterns) {
|
109
|
+
return patterns.sort(function (a, b) {
|
110
|
+
if (a.start.length > b.start.length) {
|
111
|
+
return -1;
|
406
112
|
}
|
407
|
-
|
408
|
-
|
409
|
-
var text = container.data;
|
410
|
-
var delta = space === true ? 1 : 0;
|
411
|
-
|
412
|
-
if (container.nodeType !== 3) {
|
413
|
-
return;
|
113
|
+
if (a.start.length < b.start.length) {
|
114
|
+
return 1;
|
414
115
|
}
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
116
|
+
return 0;
|
117
|
+
});
|
118
|
+
};
|
119
|
+
var findPattern = function (patterns, text) {
|
120
|
+
for (var i = 0; i < patterns.length; i++) {
|
121
|
+
if (text.indexOf(patterns[i].start) !== 0) {
|
122
|
+
continue;
|
420
123
|
}
|
421
|
-
|
422
|
-
|
423
|
-
var endOffset = text.lastIndexOf(endPattern.end, rng.startOffset - delta);
|
424
|
-
var startOffset = text.lastIndexOf(endPattern.start, endOffset - endPattern.end.length);
|
425
|
-
endOffset = text.indexOf(endPattern.end, startOffset + endPattern.start.length);
|
426
|
-
|
427
|
-
if (startOffset === -1) {
|
428
|
-
return;
|
124
|
+
if (patterns[i].end && text.lastIndexOf(patterns[i].end) !== text.length - patterns[i].end.length) {
|
125
|
+
continue;
|
429
126
|
}
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
127
|
+
return patterns[i];
|
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;
|
440
144
|
}
|
145
|
+
}
|
146
|
+
};
|
147
|
+
var $_3oc24fs0jm0og24y = {
|
148
|
+
findPattern: findPattern,
|
149
|
+
findEndPattern: findEndPattern
|
150
|
+
};
|
441
151
|
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
152
|
+
var splitContainer = function (container, pattern, endOffset, startOffset, space) {
|
153
|
+
container = startOffset > 0 ? container.splitText(startOffset) : container;
|
154
|
+
container.splitText(endOffset - startOffset + pattern.end.length);
|
155
|
+
container.deleteData(0, pattern.start.length);
|
156
|
+
container.deleteData(container.data.length - pattern.end.length, pattern.end.length);
|
157
|
+
return container;
|
158
|
+
};
|
159
|
+
var patternFromRng = function (patterns, rng, space) {
|
160
|
+
if (rng.collapsed === false) {
|
161
|
+
return;
|
162
|
+
}
|
163
|
+
var container = rng.startContainer;
|
164
|
+
var text = container.data;
|
165
|
+
var delta = space === true ? 1 : 0;
|
166
|
+
if (container.nodeType !== 3) {
|
167
|
+
return;
|
168
|
+
}
|
169
|
+
var endPattern = $_3oc24fs0jm0og24y.findEndPattern(patterns, text, rng.startOffset, delta);
|
170
|
+
if (endPattern === undefined) {
|
171
|
+
return;
|
172
|
+
}
|
173
|
+
var endOffset = text.lastIndexOf(endPattern.end, rng.startOffset - delta);
|
174
|
+
var startOffset = text.lastIndexOf(endPattern.start, endOffset - endPattern.end.length);
|
175
|
+
endOffset = text.indexOf(endPattern.end, startOffset + endPattern.start.length);
|
176
|
+
if (startOffset === -1) {
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
var patternRng = document.createRange();
|
180
|
+
patternRng.setStart(container, startOffset);
|
181
|
+
patternRng.setEnd(container, endOffset + endPattern.end.length);
|
182
|
+
var startPattern = $_3oc24fs0jm0og24y.findPattern(patterns, patternRng.toString());
|
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
|
447
190
|
};
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
editor.formatter.apply(format, {}, container);
|
461
|
-
});
|
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);
|
462
203
|
});
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
var
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
var
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
204
|
+
});
|
205
|
+
return container;
|
206
|
+
}
|
207
|
+
};
|
208
|
+
var doApplyInlineFormat = function (editor, patterns, space) {
|
209
|
+
var rng = editor.selection.getRng(true);
|
210
|
+
var foundPattern = patternFromRng(patterns, rng, space);
|
211
|
+
if (foundPattern) {
|
212
|
+
return splitAndApply(editor, rng.startContainer, foundPattern, space);
|
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;
|
235
|
+
}
|
494
236
|
}
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
while ((node = walker.next())) {
|
500
|
-
if (node.nodeType === 3) {
|
501
|
-
firstTextNode = node;
|
502
|
-
break;
|
503
|
-
}
|
237
|
+
if (firstTextNode) {
|
238
|
+
pattern = $_3oc24fs0jm0og24y.findPattern(patterns, firstTextNode.data);
|
239
|
+
if (!pattern) {
|
240
|
+
return;
|
504
241
|
}
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
if (
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
}
|
523
|
-
|
524
|
-
if (pattern.format) {
|
525
|
-
format = editor.formatter.get(pattern.format);
|
526
|
-
if (format && format[0].block) {
|
527
|
-
firstTextNode.deleteData(0, pattern.start.length);
|
528
|
-
editor.formatter.apply(pattern.format, {}, firstTextNode);
|
529
|
-
|
530
|
-
rng.setStart(container, offset);
|
531
|
-
rng.collapse(true);
|
532
|
-
selection.setRng(rng);
|
533
|
-
}
|
534
|
-
}
|
535
|
-
|
536
|
-
if (pattern.cmd) {
|
537
|
-
editor.undoManager.transact(function () {
|
538
|
-
firstTextNode.deleteData(0, pattern.start.length);
|
539
|
-
editor.execCommand(pattern.cmd);
|
540
|
-
});
|
242
|
+
rng = selection.getRng(true);
|
243
|
+
container = rng.startContainer;
|
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);
|
541
259
|
}
|
542
260
|
}
|
261
|
+
if (pattern.cmd) {
|
262
|
+
editor.undoManager.transact(function () {
|
263
|
+
firstTextNode.deleteData(0, pattern.start.length);
|
264
|
+
editor.execCommand(pattern.cmd);
|
265
|
+
});
|
266
|
+
}
|
543
267
|
}
|
544
|
-
}
|
268
|
+
}
|
269
|
+
};
|
270
|
+
var $_bmyseirxjm0og24s = {
|
271
|
+
patternFromRng: patternFromRng,
|
272
|
+
applyInlineFormatSpace: applyInlineFormatSpace,
|
273
|
+
applyInlineFormatEnter: applyInlineFormatEnter,
|
274
|
+
applyBlockFormat: applyBlockFormat
|
275
|
+
};
|
545
276
|
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
277
|
+
function handleEnter(editor, patterns) {
|
278
|
+
var wrappedTextNode, rng;
|
279
|
+
wrappedTextNode = $_bmyseirxjm0og24s.applyInlineFormatEnter(editor, patterns);
|
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);
|
552
287
|
}
|
553
|
-
)
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
'tinymce.plugins.textpattern.core.KeyHandler',
|
567
|
-
[
|
568
|
-
'tinymce.core.util.VK',
|
569
|
-
'tinymce.plugins.textpattern.core.Formatter'
|
570
|
-
],
|
571
|
-
function (VK, Formatter) {
|
572
|
-
function handleEnter(editor, patterns) {
|
573
|
-
var wrappedTextNode, rng;
|
574
|
-
|
575
|
-
wrappedTextNode = Formatter.applyInlineFormatEnter(editor, patterns);
|
576
|
-
if (wrappedTextNode) {
|
577
|
-
rng = editor.dom.createRng();
|
578
|
-
rng.setStart(wrappedTextNode, wrappedTextNode.data.length);
|
579
|
-
rng.setEnd(wrappedTextNode, wrappedTextNode.data.length);
|
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);
|
580
301
|
editor.selection.setRng(rng);
|
581
302
|
}
|
582
|
-
|
583
|
-
Formatter.applyBlockFormat(editor, patterns);
|
584
303
|
}
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
if (wrappedTextNode) {
|
591
|
-
dom = editor.dom;
|
592
|
-
lastChar = wrappedTextNode.data.slice(-1);
|
593
|
-
|
594
|
-
// Move space after the newly formatted node
|
595
|
-
if (/[\u00a0 ]/.test(lastChar)) {
|
596
|
-
wrappedTextNode.deleteData(wrappedTextNode.data.length - 1, 1);
|
597
|
-
lastCharNode = dom.doc.createTextNode(lastChar);
|
598
|
-
|
599
|
-
dom.insertAfter(lastCharNode, wrappedTextNode.parentNode);
|
600
|
-
|
601
|
-
rng = dom.createRng();
|
602
|
-
rng.setStart(lastCharNode, 1);
|
603
|
-
rng.setEnd(lastCharNode, 1);
|
604
|
-
editor.selection.setRng(rng);
|
605
|
-
}
|
304
|
+
}
|
305
|
+
var checkKeyEvent = function (codes, event, predicate) {
|
306
|
+
for (var i = 0; i < codes.length; i++) {
|
307
|
+
if (predicate(codes[i], event)) {
|
308
|
+
return true;
|
606
309
|
}
|
607
310
|
}
|
311
|
+
};
|
312
|
+
var checkKeyCode = function (codes, event) {
|
313
|
+
return checkKeyEvent(codes, event, function (code, event) {
|
314
|
+
return code === event.keyCode && global$2.modifierPressed(event) === false;
|
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
|
+
};
|
608
328
|
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
329
|
+
var setup = function (editor, patternsState) {
|
330
|
+
var charCodes = [
|
331
|
+
',',
|
332
|
+
'.',
|
333
|
+
';',
|
334
|
+
':',
|
335
|
+
'!',
|
336
|
+
'?'
|
337
|
+
];
|
338
|
+
var keyCodes = [32];
|
339
|
+
editor.on('keydown', function (e) {
|
340
|
+
if (e.keyCode === 13 && !global$2.modifierPressed(e)) {
|
341
|
+
$_7ay2cvrwjm0og24o.handleEnter(editor, patternsState.get());
|
614
342
|
}
|
615
|
-
};
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
}
|
627
|
-
};
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
}
|
636
|
-
)
|
637
|
-
|
638
|
-
/**
|
639
|
-
* Keyboard.js
|
640
|
-
*
|
641
|
-
* Released under LGPL License.
|
642
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
643
|
-
*
|
644
|
-
* License: http://www.tinymce.com/license
|
645
|
-
* Contributing: http://www.tinymce.com/contributing
|
646
|
-
*/
|
647
|
-
|
648
|
-
define(
|
649
|
-
'tinymce.plugins.textpattern.core.Keyboard',
|
650
|
-
[
|
651
|
-
'tinymce.core.util.Delay',
|
652
|
-
'tinymce.core.util.VK',
|
653
|
-
'tinymce.plugins.textpattern.core.KeyHandler'
|
654
|
-
],
|
655
|
-
function (Delay, VK, KeyHandler) {
|
656
|
-
var setup = function (editor, patternsState) {
|
657
|
-
var charCodes = [',', '.', ';', ':', '!', '?'];
|
658
|
-
var keyCodes = [32];
|
659
|
-
|
660
|
-
editor.on('keydown', function (e) {
|
661
|
-
if (e.keyCode === 13 && !VK.modifierPressed(e)) {
|
662
|
-
KeyHandler.handleEnter(editor, patternsState.get());
|
663
|
-
}
|
664
|
-
}, true);
|
665
|
-
|
666
|
-
editor.on('keyup', function (e) {
|
667
|
-
if (KeyHandler.checkKeyCode(keyCodes, e)) {
|
668
|
-
KeyHandler.handleInlineKey(editor, patternsState.get());
|
669
|
-
}
|
670
|
-
});
|
671
|
-
|
672
|
-
editor.on('keypress', function (e) {
|
673
|
-
if (KeyHandler.checkCharCode(charCodes, e)) {
|
674
|
-
Delay.setEditorTimeout(editor, function () {
|
675
|
-
KeyHandler.handleInlineKey(editor, patternsState.get());
|
676
|
-
});
|
677
|
-
}
|
678
|
-
});
|
679
|
-
};
|
680
|
-
|
681
|
-
return {
|
682
|
-
setup: setup
|
683
|
-
};
|
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
|
+
});
|
354
|
+
}
|
355
|
+
});
|
356
|
+
};
|
357
|
+
var $_8221thrtjm0og24l = { setup: setup };
|
358
|
+
|
359
|
+
global.add('textpattern', function (editor) {
|
360
|
+
var patternsState = Cell($_g0jjoersjm0og24k.getPatterns(editor.settings));
|
361
|
+
$_8221thrtjm0og24l.setup(editor, patternsState);
|
362
|
+
return $_fahwbkrrjm0og24j.get(patternsState);
|
363
|
+
});
|
364
|
+
function Plugin () {
|
684
365
|
}
|
685
|
-
);
|
686
|
-
/**
|
687
|
-
* Plugin.js
|
688
|
-
*
|
689
|
-
* Released under LGPL License.
|
690
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
691
|
-
*
|
692
|
-
* License: http://www.tinymce.com/license
|
693
|
-
* Contributing: http://www.tinymce.com/contributing
|
694
|
-
*/
|
695
|
-
|
696
|
-
define(
|
697
|
-
'tinymce.plugins.textpattern.Plugin',
|
698
|
-
[
|
699
|
-
'ephox.katamari.api.Cell',
|
700
|
-
'tinymce.core.PluginManager',
|
701
|
-
'tinymce.plugins.textpattern.api.Api',
|
702
|
-
'tinymce.plugins.textpattern.api.Settings',
|
703
|
-
'tinymce.plugins.textpattern.core.Keyboard'
|
704
|
-
],
|
705
|
-
function (Cell, PluginManager, Api, Settings, Keyboard) {
|
706
|
-
PluginManager.add('textpattern', function (editor) {
|
707
|
-
var patternsState = Cell(Settings.getPatterns(editor.settings));
|
708
366
|
|
709
|
-
|
367
|
+
return Plugin;
|
710
368
|
|
711
|
-
|
712
|
-
});
|
713
|
-
|
714
|
-
return function () { };
|
715
|
-
}
|
716
|
-
);
|
717
|
-
dem('tinymce.plugins.textpattern.Plugin')();
|
369
|
+
}());
|
718
370
|
})();
|