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,173 +1,173 @@
|
|
1
1
|
(function () {
|
2
2
|
var insertdatetime = (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 getDateFormat = function (editor) {
|
26
|
+
return editor.getParam('insertdatetime_dateformat', editor.translate('%Y-%m-%d'));
|
12
27
|
};
|
13
|
-
var
|
14
|
-
return
|
28
|
+
var getTimeFormat = function (editor) {
|
29
|
+
return editor.getParam('insertdatetime_timeformat', editor.translate('%H:%M:%S'));
|
15
30
|
};
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
31
|
+
var getFormats = function (editor) {
|
32
|
+
return editor.getParam('insertdatetime_formats', [
|
33
|
+
'%H:%M:%S',
|
34
|
+
'%Y-%m-%d',
|
35
|
+
'%I:%M:%S %p',
|
36
|
+
'%D'
|
37
|
+
]);
|
38
|
+
};
|
39
|
+
var getDefaultDateTime = function (editor) {
|
40
|
+
var formats = getFormats(editor);
|
41
|
+
return formats.length > 0 ? formats[0] : getTimeFormat(editor);
|
42
|
+
};
|
43
|
+
var shouldInsertTimeElement = function (editor) {
|
44
|
+
return editor.getParam('insertdatetime_element', false);
|
45
|
+
};
|
46
|
+
var Settings = {
|
47
|
+
getDateFormat: getDateFormat,
|
48
|
+
getTimeFormat: getTimeFormat,
|
49
|
+
getFormats: getFormats,
|
50
|
+
getDefaultDateTime: getDefaultDateTime,
|
51
|
+
shouldInsertTimeElement: shouldInsertTimeElement
|
20
52
|
};
|
21
|
-
};
|
22
|
-
|
23
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
24
|
-
|
25
|
-
var getDateFormat = function (editor) {
|
26
|
-
return editor.getParam('insertdatetime_dateformat', editor.translate('%Y-%m-%d'));
|
27
|
-
};
|
28
|
-
var getTimeFormat = function (editor) {
|
29
|
-
return editor.getParam('insertdatetime_timeformat', editor.translate('%H:%M:%S'));
|
30
|
-
};
|
31
|
-
var getFormats = function (editor) {
|
32
|
-
return editor.getParam('insertdatetime_formats', [
|
33
|
-
'%H:%M:%S',
|
34
|
-
'%Y-%m-%d',
|
35
|
-
'%I:%M:%S %p',
|
36
|
-
'%D'
|
37
|
-
]);
|
38
|
-
};
|
39
|
-
var getDefaultDateTime = function (editor) {
|
40
|
-
var formats = getFormats(editor);
|
41
|
-
return formats.length > 0 ? formats[0] : getTimeFormat(editor);
|
42
|
-
};
|
43
|
-
var shouldInsertTimeElement = function (editor) {
|
44
|
-
return editor.getParam('insertdatetime_element', false);
|
45
|
-
};
|
46
|
-
var $_7fml5ofgjm0ofzb9 = {
|
47
|
-
getDateFormat: getDateFormat,
|
48
|
-
getTimeFormat: getTimeFormat,
|
49
|
-
getFormats: getFormats,
|
50
|
-
getDefaultDateTime: getDefaultDateTime,
|
51
|
-
shouldInsertTimeElement: shouldInsertTimeElement
|
52
|
-
};
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
}
|
65
|
-
return value;
|
66
|
-
};
|
67
|
-
var getDateTime = function (editor, fmt, date) {
|
68
|
-
date = date || new Date();
|
69
|
-
fmt = fmt.replace('%D', '%m/%d/%Y');
|
70
|
-
fmt = fmt.replace('%r', '%I:%M:%S %p');
|
71
|
-
fmt = fmt.replace('%Y', '' + date.getFullYear());
|
72
|
-
fmt = fmt.replace('%y', '' + date.getYear());
|
73
|
-
fmt = fmt.replace('%m', addZeros(date.getMonth() + 1, 2));
|
74
|
-
fmt = fmt.replace('%d', addZeros(date.getDate(), 2));
|
75
|
-
fmt = fmt.replace('%H', '' + addZeros(date.getHours(), 2));
|
76
|
-
fmt = fmt.replace('%M', '' + addZeros(date.getMinutes(), 2));
|
77
|
-
fmt = fmt.replace('%S', '' + addZeros(date.getSeconds(), 2));
|
78
|
-
fmt = fmt.replace('%I', '' + ((date.getHours() + 11) % 12 + 1));
|
79
|
-
fmt = fmt.replace('%p', '' + (date.getHours() < 12 ? 'AM' : 'PM'));
|
80
|
-
fmt = fmt.replace('%B', '' + editor.translate(monthsLong[date.getMonth()]));
|
81
|
-
fmt = fmt.replace('%b', '' + editor.translate(monthsShort[date.getMonth()]));
|
82
|
-
fmt = fmt.replace('%A', '' + editor.translate(daysLong[date.getDay()]));
|
83
|
-
fmt = fmt.replace('%a', '' + editor.translate(daysShort[date.getDay()]));
|
84
|
-
fmt = fmt.replace('%%', '%');
|
85
|
-
return fmt;
|
86
|
-
};
|
87
|
-
var updateElement = function (editor, timeElm, computerTime, userTime) {
|
88
|
-
var newTimeElm = editor.dom.create('time', { datetime: computerTime }, userTime);
|
89
|
-
timeElm.parentNode.insertBefore(newTimeElm, timeElm);
|
90
|
-
editor.dom.remove(timeElm);
|
91
|
-
editor.selection.select(newTimeElm, true);
|
92
|
-
editor.selection.collapse(false);
|
93
|
-
};
|
94
|
-
var insertDateTime = function (editor, format) {
|
95
|
-
if ($_7fml5ofgjm0ofzb9.shouldInsertTimeElement(editor)) {
|
96
|
-
var userTime = getDateTime(editor, format);
|
97
|
-
var computerTime = void 0;
|
98
|
-
if (/%[HMSIp]/.test(format)) {
|
99
|
-
computerTime = getDateTime(editor, '%Y-%m-%dT%H:%M');
|
100
|
-
} else {
|
101
|
-
computerTime = getDateTime(editor, '%Y-%m-%d');
|
54
|
+
var daysShort = 'Sun Mon Tue Wed Thu Fri Sat Sun'.split(' ');
|
55
|
+
var daysLong = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday'.split(' ');
|
56
|
+
var monthsShort = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' ');
|
57
|
+
var monthsLong = 'January February March April May June July August September October November December'.split(' ');
|
58
|
+
var addZeros = function (value, len) {
|
59
|
+
value = '' + value;
|
60
|
+
if (value.length < len) {
|
61
|
+
for (var i = 0; i < len - value.length; i++) {
|
62
|
+
value = '0' + value;
|
63
|
+
}
|
102
64
|
}
|
103
|
-
|
104
|
-
|
105
|
-
|
65
|
+
return value;
|
66
|
+
};
|
67
|
+
var getDateTime = function (editor, fmt, date) {
|
68
|
+
date = date || new Date();
|
69
|
+
fmt = fmt.replace('%D', '%m/%d/%Y');
|
70
|
+
fmt = fmt.replace('%r', '%I:%M:%S %p');
|
71
|
+
fmt = fmt.replace('%Y', '' + date.getFullYear());
|
72
|
+
fmt = fmt.replace('%y', '' + date.getYear());
|
73
|
+
fmt = fmt.replace('%m', addZeros(date.getMonth() + 1, 2));
|
74
|
+
fmt = fmt.replace('%d', addZeros(date.getDate(), 2));
|
75
|
+
fmt = fmt.replace('%H', '' + addZeros(date.getHours(), 2));
|
76
|
+
fmt = fmt.replace('%M', '' + addZeros(date.getMinutes(), 2));
|
77
|
+
fmt = fmt.replace('%S', '' + addZeros(date.getSeconds(), 2));
|
78
|
+
fmt = fmt.replace('%I', '' + ((date.getHours() + 11) % 12 + 1));
|
79
|
+
fmt = fmt.replace('%p', '' + (date.getHours() < 12 ? 'AM' : 'PM'));
|
80
|
+
fmt = fmt.replace('%B', '' + editor.translate(monthsLong[date.getMonth()]));
|
81
|
+
fmt = fmt.replace('%b', '' + editor.translate(monthsShort[date.getMonth()]));
|
82
|
+
fmt = fmt.replace('%A', '' + editor.translate(daysLong[date.getDay()]));
|
83
|
+
fmt = fmt.replace('%a', '' + editor.translate(daysShort[date.getDay()]));
|
84
|
+
fmt = fmt.replace('%%', '%');
|
85
|
+
return fmt;
|
86
|
+
};
|
87
|
+
var updateElement = function (editor, timeElm, computerTime, userTime) {
|
88
|
+
var newTimeElm = editor.dom.create('time', { datetime: computerTime }, userTime);
|
89
|
+
timeElm.parentNode.insertBefore(newTimeElm, timeElm);
|
90
|
+
editor.dom.remove(timeElm);
|
91
|
+
editor.selection.select(newTimeElm, true);
|
92
|
+
editor.selection.collapse(false);
|
93
|
+
};
|
94
|
+
var insertDateTime = function (editor, format) {
|
95
|
+
if (Settings.shouldInsertTimeElement(editor)) {
|
96
|
+
var userTime = getDateTime(editor, format);
|
97
|
+
var computerTime = void 0;
|
98
|
+
if (/%[HMSIp]/.test(format)) {
|
99
|
+
computerTime = getDateTime(editor, '%Y-%m-%dT%H:%M');
|
100
|
+
} else {
|
101
|
+
computerTime = getDateTime(editor, '%Y-%m-%d');
|
102
|
+
}
|
103
|
+
var timeElm = editor.dom.getParent(editor.selection.getStart(), 'time');
|
104
|
+
if (timeElm) {
|
105
|
+
updateElement(editor, timeElm, computerTime, userTime);
|
106
|
+
} else {
|
107
|
+
editor.insertContent('<time datetime="' + computerTime + '">' + userTime + '</time>');
|
108
|
+
}
|
106
109
|
} else {
|
107
|
-
editor.insertContent(
|
110
|
+
editor.insertContent(getDateTime(editor, format));
|
108
111
|
}
|
109
|
-
}
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
insertDateTime: insertDateTime,
|
115
|
-
getDateTime: getDateTime
|
116
|
-
};
|
112
|
+
};
|
113
|
+
var Actions = {
|
114
|
+
insertDateTime: insertDateTime,
|
115
|
+
getDateTime: getDateTime
|
116
|
+
};
|
117
117
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
118
|
+
var register = function (editor) {
|
119
|
+
editor.addCommand('mceInsertDate', function () {
|
120
|
+
Actions.insertDateTime(editor, Settings.getDateFormat(editor));
|
121
|
+
});
|
122
|
+
editor.addCommand('mceInsertTime', function () {
|
123
|
+
Actions.insertDateTime(editor, Settings.getTimeFormat(editor));
|
124
|
+
});
|
125
|
+
};
|
126
|
+
var Commands = { register: register };
|
127
127
|
|
128
|
-
|
128
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
129
129
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
130
|
+
var createMenuItems = function (editor, lastFormatState) {
|
131
|
+
var formats = Settings.getFormats(editor);
|
132
|
+
return global$1.map(formats, function (fmt) {
|
133
|
+
return {
|
134
|
+
text: Actions.getDateTime(editor, fmt),
|
135
|
+
onclick: function () {
|
136
|
+
lastFormatState.set(fmt);
|
137
|
+
Actions.insertDateTime(editor, fmt);
|
138
|
+
}
|
139
|
+
};
|
140
|
+
});
|
141
|
+
};
|
142
|
+
var register$1 = function (editor, lastFormatState) {
|
143
|
+
var menuItems = createMenuItems(editor, lastFormatState);
|
144
|
+
editor.addButton('insertdatetime', {
|
145
|
+
type: 'splitbutton',
|
146
|
+
title: 'Insert date/time',
|
147
|
+
menu: menuItems,
|
135
148
|
onclick: function () {
|
136
|
-
lastFormatState.
|
137
|
-
|
149
|
+
var lastFormat = lastFormatState.get();
|
150
|
+
Actions.insertDateTime(editor, lastFormat ? lastFormat : Settings.getDefaultDateTime(editor));
|
138
151
|
}
|
139
|
-
};
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
onclick: function () {
|
149
|
-
var lastFormat = lastFormatState.get();
|
150
|
-
$_4ogscffhjm0ofzbb.insertDateTime(editor, lastFormat ? lastFormat : $_7fml5ofgjm0ofzb9.getDefaultDateTime(editor));
|
151
|
-
}
|
152
|
-
});
|
153
|
-
editor.addMenuItem('insertdatetime', {
|
154
|
-
icon: 'date',
|
155
|
-
text: 'Date/time',
|
156
|
-
menu: menuItems,
|
157
|
-
context: 'insert'
|
158
|
-
});
|
159
|
-
};
|
160
|
-
var $_6pxiadfijm0ofzbe = { register: register$1 };
|
152
|
+
});
|
153
|
+
editor.addMenuItem('insertdatetime', {
|
154
|
+
icon: 'date',
|
155
|
+
text: 'Date/time',
|
156
|
+
menu: menuItems,
|
157
|
+
context: 'insert'
|
158
|
+
});
|
159
|
+
};
|
160
|
+
var Buttons = { register: register$1 };
|
161
161
|
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
162
|
+
global.add('insertdatetime', function (editor) {
|
163
|
+
var lastFormatState = Cell(null);
|
164
|
+
Commands.register(editor);
|
165
|
+
Buttons.register(editor, lastFormatState);
|
166
|
+
});
|
167
|
+
function Plugin () {
|
168
|
+
}
|
169
169
|
|
170
|
-
|
170
|
+
return Plugin;
|
171
171
|
|
172
172
|
}());
|
173
173
|
})();
|
@@ -1,220 +1,220 @@
|
|
1
1
|
(function () {
|
2
2
|
var legacyoutput = (function () {
|
3
|
-
|
3
|
+
'use strict';
|
4
4
|
|
5
|
-
|
5
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
6
6
|
|
7
|
-
|
7
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
},
|
16
|
-
aligncenter: {
|
17
|
-
selector: alignElements,
|
18
|
-
attributes: { align: 'center' }
|
19
|
-
},
|
20
|
-
alignright: {
|
21
|
-
selector: alignElements,
|
22
|
-
attributes: { align: 'right' }
|
23
|
-
},
|
24
|
-
alignjustify: {
|
25
|
-
selector: alignElements,
|
26
|
-
attributes: { align: 'justify' }
|
27
|
-
},
|
28
|
-
bold: [
|
29
|
-
{
|
30
|
-
inline: 'b',
|
31
|
-
remove: 'all'
|
9
|
+
var overrideFormats = function (editor) {
|
10
|
+
var alignElements = 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', fontSizes = global$1.explode(editor.settings.font_size_style_values), schema = editor.schema;
|
11
|
+
editor.formatter.register({
|
12
|
+
alignleft: {
|
13
|
+
selector: alignElements,
|
14
|
+
attributes: { align: 'left' }
|
32
15
|
},
|
33
|
-
{
|
34
|
-
|
35
|
-
|
16
|
+
aligncenter: {
|
17
|
+
selector: alignElements,
|
18
|
+
attributes: { align: 'center' }
|
36
19
|
},
|
37
|
-
{
|
38
|
-
|
39
|
-
|
40
|
-
}
|
41
|
-
],
|
42
|
-
italic: [
|
43
|
-
{
|
44
|
-
inline: 'i',
|
45
|
-
remove: 'all'
|
46
|
-
},
|
47
|
-
{
|
48
|
-
inline: 'em',
|
49
|
-
remove: 'all'
|
20
|
+
alignright: {
|
21
|
+
selector: alignElements,
|
22
|
+
attributes: { align: 'right' }
|
50
23
|
},
|
51
|
-
{
|
52
|
-
|
53
|
-
|
54
|
-
}
|
55
|
-
],
|
56
|
-
underline: [
|
57
|
-
{
|
58
|
-
inline: 'u',
|
59
|
-
remove: 'all'
|
24
|
+
alignjustify: {
|
25
|
+
selector: alignElements,
|
26
|
+
attributes: { align: 'justify' }
|
60
27
|
},
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
28
|
+
bold: [
|
29
|
+
{
|
30
|
+
inline: 'b',
|
31
|
+
remove: 'all'
|
32
|
+
},
|
33
|
+
{
|
34
|
+
inline: 'strong',
|
35
|
+
remove: 'all'
|
36
|
+
},
|
37
|
+
{
|
38
|
+
inline: 'span',
|
39
|
+
styles: { fontWeight: 'bold' }
|
40
|
+
}
|
41
|
+
],
|
42
|
+
italic: [
|
43
|
+
{
|
44
|
+
inline: 'i',
|
45
|
+
remove: 'all'
|
46
|
+
},
|
47
|
+
{
|
48
|
+
inline: 'em',
|
49
|
+
remove: 'all'
|
50
|
+
},
|
51
|
+
{
|
52
|
+
inline: 'span',
|
53
|
+
styles: { fontStyle: 'italic' }
|
54
|
+
}
|
55
|
+
],
|
56
|
+
underline: [
|
57
|
+
{
|
58
|
+
inline: 'u',
|
59
|
+
remove: 'all'
|
60
|
+
},
|
61
|
+
{
|
62
|
+
inline: 'span',
|
63
|
+
styles: { textDecoration: 'underline' },
|
64
|
+
exact: true
|
65
|
+
}
|
66
|
+
],
|
67
|
+
strikethrough: [
|
68
|
+
{
|
69
|
+
inline: 'strike',
|
70
|
+
remove: 'all'
|
71
|
+
},
|
72
|
+
{
|
73
|
+
inline: 'span',
|
74
|
+
styles: { textDecoration: 'line-through' },
|
75
|
+
exact: true
|
76
|
+
}
|
77
|
+
],
|
78
|
+
fontname: {
|
79
|
+
inline: 'font',
|
80
|
+
attributes: { face: '%value' }
|
71
81
|
},
|
72
|
-
{
|
73
|
-
inline: '
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
fontname: {
|
79
|
-
inline: 'font',
|
80
|
-
attributes: { face: '%value' }
|
81
|
-
},
|
82
|
-
fontsize: {
|
83
|
-
inline: 'font',
|
84
|
-
attributes: {
|
85
|
-
size: function (vars) {
|
86
|
-
return global$1.inArray(fontSizes, vars.value) + 1;
|
82
|
+
fontsize: {
|
83
|
+
inline: 'font',
|
84
|
+
attributes: {
|
85
|
+
size: function (vars) {
|
86
|
+
return global$1.inArray(fontSizes, vars.value) + 1;
|
87
|
+
}
|
87
88
|
}
|
89
|
+
},
|
90
|
+
forecolor: {
|
91
|
+
inline: 'font',
|
92
|
+
attributes: { color: '%value' }
|
93
|
+
},
|
94
|
+
hilitecolor: {
|
95
|
+
inline: 'font',
|
96
|
+
styles: { backgroundColor: '%value' }
|
88
97
|
}
|
89
|
-
}
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
inline: 'font',
|
96
|
-
styles: { backgroundColor: '%value' }
|
98
|
+
});
|
99
|
+
global$1.each('b,i,u,strike'.split(','), function (name) {
|
100
|
+
schema.addValidElements(name + '[*]');
|
101
|
+
});
|
102
|
+
if (!schema.getElementRule('font')) {
|
103
|
+
schema.addValidElements('font[face|size|color|style]');
|
97
104
|
}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
global$1.each(alignElements.split(','), function (name) {
|
106
|
-
var rule = schema.getElementRule(name);
|
107
|
-
if (rule) {
|
108
|
-
if (!rule.attributes.align) {
|
109
|
-
rule.attributes.align = {};
|
110
|
-
rule.attributesOrder.push('align');
|
105
|
+
global$1.each(alignElements.split(','), function (name) {
|
106
|
+
var rule = schema.getElementRule(name);
|
107
|
+
if (rule) {
|
108
|
+
if (!rule.attributes.align) {
|
109
|
+
rule.attributes.align = {};
|
110
|
+
rule.attributesOrder.push('align');
|
111
|
+
}
|
111
112
|
}
|
112
|
-
}
|
113
|
-
}
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
}
|
120
|
-
|
121
|
-
var $_4rx0kefmjm0ofzbu = { setup: setup };
|
113
|
+
});
|
114
|
+
};
|
115
|
+
var setup = function (editor) {
|
116
|
+
editor.settings.inline_styles = false;
|
117
|
+
editor.on('init', function () {
|
118
|
+
overrideFormats(editor);
|
119
|
+
});
|
120
|
+
};
|
121
|
+
var Formats = { setup: setup };
|
122
122
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
123
|
+
var register = function (editor) {
|
124
|
+
editor.addButton('fontsizeselect', function () {
|
125
|
+
var items = [], defaultFontsizeFormats = '8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7';
|
126
|
+
var fontsizeFormats = editor.settings.fontsizeFormats || defaultFontsizeFormats;
|
127
|
+
editor.$.each(fontsizeFormats.split(' '), function (i, item) {
|
128
|
+
var text = item, value = item;
|
129
|
+
var values = item.split('=');
|
130
|
+
if (values.length > 1) {
|
131
|
+
text = values[0];
|
132
|
+
value = values[1];
|
133
|
+
}
|
134
|
+
items.push({
|
135
|
+
text: text,
|
136
|
+
value: value
|
137
|
+
});
|
137
138
|
});
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
139
|
+
return {
|
140
|
+
type: 'listbox',
|
141
|
+
text: 'Font Sizes',
|
142
|
+
tooltip: 'Font Sizes',
|
143
|
+
values: items,
|
144
|
+
fixedWidth: true,
|
145
|
+
onPostRender: function () {
|
146
|
+
var self = this;
|
147
|
+
editor.on('NodeChange', function () {
|
148
|
+
var fontElm;
|
149
|
+
fontElm = editor.dom.getParent(editor.selection.getNode(), 'font');
|
150
|
+
if (fontElm) {
|
151
|
+
self.value(fontElm.size);
|
152
|
+
} else {
|
153
|
+
self.value('');
|
154
|
+
}
|
155
|
+
});
|
156
|
+
},
|
157
|
+
onclick: function (e) {
|
158
|
+
if (e.control.settings.value) {
|
159
|
+
editor.execCommand('FontSize', false, e.control.settings.value);
|
154
160
|
}
|
155
|
-
});
|
156
|
-
},
|
157
|
-
onclick: function (e) {
|
158
|
-
if (e.control.settings.value) {
|
159
|
-
editor.execCommand('FontSize', false, e.control.settings.value);
|
160
161
|
}
|
162
|
+
};
|
163
|
+
});
|
164
|
+
editor.addButton('fontselect', function () {
|
165
|
+
function createFormats(formats) {
|
166
|
+
formats = formats.replace(/;$/, '').split(';');
|
167
|
+
var i = formats.length;
|
168
|
+
while (i--) {
|
169
|
+
formats[i] = formats[i].split('=');
|
170
|
+
}
|
171
|
+
return formats;
|
161
172
|
}
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
}
|
171
|
-
return formats;
|
172
|
-
}
|
173
|
-
var defaultFontsFormats = 'Andale Mono=andale mono,monospace;' + 'Arial=arial,helvetica,sans-serif;' + 'Arial Black=arial black,sans-serif;' + 'Book Antiqua=book antiqua,palatino,serif;' + 'Comic Sans MS=comic sans ms,sans-serif;' + 'Courier New=courier new,courier,monospace;' + 'Georgia=georgia,palatino,serif;' + 'Helvetica=helvetica,arial,sans-serif;' + 'Impact=impact,sans-serif;' + 'Symbol=symbol;' + 'Tahoma=tahoma,arial,helvetica,sans-serif;' + 'Terminal=terminal,monaco,monospace;' + 'Times New Roman=times new roman,times,serif;' + 'Trebuchet MS=trebuchet ms,geneva,sans-serif;' + 'Verdana=verdana,geneva,sans-serif;' + 'Webdings=webdings;' + 'Wingdings=wingdings,zapf dingbats';
|
174
|
-
var items = [], fonts = createFormats(editor.settings.font_formats || defaultFontsFormats);
|
175
|
-
editor.$.each(fonts, function (i, font) {
|
176
|
-
items.push({
|
177
|
-
text: { raw: font[0] },
|
178
|
-
value: font[1],
|
179
|
-
textStyle: font[1].indexOf('dings') === -1 ? 'font-family:' + font[1] : ''
|
173
|
+
var defaultFontsFormats = 'Andale Mono=andale mono,monospace;' + 'Arial=arial,helvetica,sans-serif;' + 'Arial Black=arial black,sans-serif;' + 'Book Antiqua=book antiqua,palatino,serif;' + 'Comic Sans MS=comic sans ms,sans-serif;' + 'Courier New=courier new,courier,monospace;' + 'Georgia=georgia,palatino,serif;' + 'Helvetica=helvetica,arial,sans-serif;' + 'Impact=impact,sans-serif;' + 'Symbol=symbol;' + 'Tahoma=tahoma,arial,helvetica,sans-serif;' + 'Terminal=terminal,monaco,monospace;' + 'Times New Roman=times new roman,times,serif;' + 'Trebuchet MS=trebuchet ms,geneva,sans-serif;' + 'Verdana=verdana,geneva,sans-serif;' + 'Webdings=webdings;' + 'Wingdings=wingdings,zapf dingbats';
|
174
|
+
var items = [], fonts = createFormats(editor.settings.font_formats || defaultFontsFormats);
|
175
|
+
editor.$.each(fonts, function (i, font) {
|
176
|
+
items.push({
|
177
|
+
text: { raw: font[0] },
|
178
|
+
value: font[1],
|
179
|
+
textStyle: font[1].indexOf('dings') === -1 ? 'font-family:' + font[1] : ''
|
180
|
+
});
|
180
181
|
});
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
182
|
+
return {
|
183
|
+
type: 'listbox',
|
184
|
+
text: 'Font Family',
|
185
|
+
tooltip: 'Font Family',
|
186
|
+
values: items,
|
187
|
+
fixedWidth: true,
|
188
|
+
onPostRender: function () {
|
189
|
+
var self = this;
|
190
|
+
editor.on('NodeChange', function () {
|
191
|
+
var fontElm;
|
192
|
+
fontElm = editor.dom.getParent(editor.selection.getNode(), 'font');
|
193
|
+
if (fontElm) {
|
194
|
+
self.value(fontElm.face);
|
195
|
+
} else {
|
196
|
+
self.value('');
|
197
|
+
}
|
198
|
+
});
|
199
|
+
},
|
200
|
+
onselect: function (e) {
|
201
|
+
if (e.control.settings.value) {
|
202
|
+
editor.execCommand('FontName', false, e.control.settings.value);
|
197
203
|
}
|
198
|
-
});
|
199
|
-
},
|
200
|
-
onselect: function (e) {
|
201
|
-
if (e.control.settings.value) {
|
202
|
-
editor.execCommand('FontName', false, e.control.settings.value);
|
203
204
|
}
|
204
|
-
}
|
205
|
-
};
|
206
|
-
}
|
207
|
-
|
208
|
-
var $_4p2pdifojm0ofzbx = { register: register };
|
205
|
+
};
|
206
|
+
});
|
207
|
+
};
|
208
|
+
var Buttons = { register: register };
|
209
209
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
210
|
+
global.add('legacyoutput', function (editor) {
|
211
|
+
Formats.setup(editor);
|
212
|
+
Buttons.register(editor);
|
213
|
+
});
|
214
|
+
function Plugin () {
|
215
|
+
}
|
216
216
|
|
217
|
-
|
217
|
+
return Plugin;
|
218
218
|
|
219
219
|
}());
|
220
220
|
})();
|