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 e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=tinymce.util.Tools.resolve("tinymce.util.XHR"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),i=function(e){return e.getParam("template_cdate_classes","cdate")},s=function(e){return e.getParam("template_mdate_classes","mdate")},u=function(e){return e.getParam("template_selected_content_classes","selcontent")},p=function(e){return e.getParam("template_preview_replace_values")},m=function(e){return e.getParam("template_replace_values")},a=function(e){return e.templates},d=function(e){return e.getParam("template_cdate_format",e.getLang("template.cdate_format"))},f=function(e){return e.getParam("template_mdate_format",e.getLang("template.mdate_format"))},g=function(e){return e.getParam("template_popup_width",600)},h=function(e){return Math.min(t.DOM.getViewPort().h,e.getParam("template_popup_height",500))},y=function(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},v=function(e,t,n){var a="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),r="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),l="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),c="January February March April May June July August September October November December".split(" ");return n=n||new Date,t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%D","%m/%d/%Y")).replace("%r","%I:%M:%S %p")).replace("%Y",""+n.getFullYear())).replace("%y",""+n.getYear())).replace("%m",y(n.getMonth()+1,2))).replace("%d",y(n.getDate(),2))).replace("%H",""+y(n.getHours(),2))).replace("%M",""+y(n.getMinutes(),2))).replace("%S",""+y(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(c[n.getMonth()]))).replace("%b",""+e.translate(l[n.getMonth()]))).replace("%A",""+e.translate(r[n.getDay()]))).replace("%a",""+e.translate(a[n.getDay()]))).replace("%%","%")},M=function(e,n,t){return o.each(t,function(e,t){"function"==typeof e&&(e=e(t)),n=n.replace(new RegExp("\\{\\$"+t+"\\}","g"),e)}),n},_=function(e,t){var a=e.dom,r=m(e);o.each(a.select("*",t),function(n){o.each(r,function(e,t){a.hasClass(n,t)&&"function"==typeof r[t]&&r[t](n)})})},b=function(e,t){return new RegExp("\\b"+t+"\\b","g").test(e.className)},n=function(t,n){return function(){var e=a(t);"function"!=typeof e?"string"==typeof e?c.send({url:e,success:function(e){n(JSON.parse(e))}}):n(e):e(n)}},T=M,r=_,x=function(t,e,n){var a,r,l=t.dom,c=t.selection.getContent();n=M(0,n,m(t)),a=l.create("div",null,n),(r=l.select(".mceTmpl",a))&&0<r.length&&(a=l.create("div",null)).appendChild(r[0].cloneNode(!0)),o.each(l.select("*",a),function(e){b(e,i(t).replace(/\s+/g,"|"))&&(e.innerHTML=v(t,d(t))),b(e,s(t).replace(/\s+/g,"|"))&&(e.innerHTML=v(t,f(t))),b(e,u(t).replace(/\s+/g,"|"))&&(e.innerHTML=c)}),_(t,a),t.execCommand("mceInsertContent",!1,a.innerHTML),t.addVisual()},l=function(e){e.addCommand("mceInsertTemplate",function(l){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var c=new Array(arguments.length-1),n=1;n<arguments.length;n++)c[n-1]=arguments[n];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];var r=c.concat(n);return l.apply(null,r)}}(x,e))},P=function(a){a.on("PreProcess",function(e){var t=a.dom,n=f(a);o.each(t.select("div",e.node),function(e){t.hasClass(e,"mceTmpl")&&(o.each(t.select("*",e),function(e){t.hasClass(e,a.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(e.innerHTML=v(a,n))}),r(a,e))})})},S=function(t,e,n){if(-1===n.indexOf("<html>")){var a="";o.each(t.contentCSS,function(e){a+='<link type="text/css" rel="stylesheet" href="'+t.documentBaseURI.toAbsolute(e)+'">'});var r=t.settings.body_class||"";-1!==r.indexOf("=")&&(r=(r=t.getParam("body_class","","hash"))[t.id]||""),n="<!DOCTYPE html><html><head>"+a+'</head><body class="'+r+'">'+n+"</body></html>"}n=T(t,n,p(t));var l=e.find("iframe")[0].getEl().contentWindow.document;l.open(),l.write(n),l.close()},w=function(n,e){var a,r,t=[];if(e&&0!==e.length)o.each(e,function(e){t.push({selected:!t.length,text:e.title,value:{url:e.url,content:e.content,description:e.description}})}),(a=n.windowManager.open({title:"Insert template",layout:"flex",direction:"column",align:"stretch",padding:15,spacing:10,items:[{type:"form",flex:0,padding:0,items:[{type:"container",label:"Templates",items:{type:"listbox",label:"Templates",name:"template",values:t,onselect:function(e){var t=e.control.value();t.url?c.send({url:t.url,success:function(e){S(n,a,r=e)}}):(r=t.content,S(n,a,r)),a.find("#description")[0].text(e.control.value().description)}}}]},{type:"label",name:"description",label:"Description",text:"\xa0"},{type:"iframe",flex:1,border:1}],onsubmit:function(){x(n,!1,r)},minWidth:g(n),minHeight:h(n)})).find("listbox")[0].fire("select");else{var l=n.translate("No templates defined.");n.notificationManager.open({text:l,type:"info"})}},D=function(t){return function(e){w(t,e)}},H=function(e){e.addButton("template",{title:"Insert template",onclick:n(e.settings,D(e))}),e.addMenuItem("template",{text:"Template",onclick:n(e.settings,D(e)),icon:"template",context:"insert"})};e.add("template",function(e){H(e),l(e),P(e)})}();
|
@@ -1,619 +1,346 @@
|
|
1
1
|
(function () {
|
2
|
+
var textcolor = (function () {
|
3
|
+
'use strict';
|
2
4
|
|
3
|
-
var
|
5
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
7
|
+
var getCurrentColor = function (editor, format) {
|
8
|
+
var color;
|
9
|
+
editor.dom.getParents(editor.selection.getStart(), function (elm) {
|
10
|
+
var value;
|
11
|
+
if (value = elm.style[format === 'forecolor' ? 'color' : 'background-color']) {
|
12
|
+
color = color ? color : value;
|
13
|
+
}
|
14
|
+
});
|
15
|
+
return color;
|
44
16
|
};
|
45
|
-
|
46
|
-
|
47
|
-
var
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
17
|
+
var mapColors = function (colorMap) {
|
18
|
+
var i;
|
19
|
+
var colors = [];
|
20
|
+
for (i = 0; i < colorMap.length; i += 2) {
|
21
|
+
colors.push({
|
22
|
+
text: colorMap[i + 1],
|
23
|
+
color: '#' + colorMap[i]
|
24
|
+
});
|
72
25
|
}
|
73
|
-
|
74
|
-
};
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
*/
|
96
|
-
|
97
|
-
define(
|
98
|
-
'tinymce.core.PluginManager',
|
99
|
-
[
|
100
|
-
'global!tinymce.util.Tools.resolve'
|
101
|
-
],
|
102
|
-
function (resolve) {
|
103
|
-
return resolve('tinymce.PluginManager');
|
104
|
-
}
|
105
|
-
);
|
106
|
-
|
107
|
-
/**
|
108
|
-
* ResolveGlobal.js
|
109
|
-
*
|
110
|
-
* Released under LGPL License.
|
111
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
112
|
-
*
|
113
|
-
* License: http://www.tinymce.com/license
|
114
|
-
* Contributing: http://www.tinymce.com/contributing
|
115
|
-
*/
|
116
|
-
|
117
|
-
define(
|
118
|
-
'tinymce.core.dom.DOMUtils',
|
119
|
-
[
|
120
|
-
'global!tinymce.util.Tools.resolve'
|
121
|
-
],
|
122
|
-
function (resolve) {
|
123
|
-
return resolve('tinymce.dom.DOMUtils');
|
124
|
-
}
|
125
|
-
);
|
126
|
-
|
127
|
-
/**
|
128
|
-
* ResolveGlobal.js
|
129
|
-
*
|
130
|
-
* Released under LGPL License.
|
131
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
132
|
-
*
|
133
|
-
* License: http://www.tinymce.com/license
|
134
|
-
* Contributing: http://www.tinymce.com/contributing
|
135
|
-
*/
|
136
|
-
|
137
|
-
define(
|
138
|
-
'tinymce.core.util.Tools',
|
139
|
-
[
|
140
|
-
'global!tinymce.util.Tools.resolve'
|
141
|
-
],
|
142
|
-
function (resolve) {
|
143
|
-
return resolve('tinymce.util.Tools');
|
144
|
-
}
|
145
|
-
);
|
146
|
-
|
147
|
-
/**
|
148
|
-
* Settings.js
|
149
|
-
*
|
150
|
-
* Released under LGPL License.
|
151
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
152
|
-
*
|
153
|
-
* License: http://www.tinymce.com/license
|
154
|
-
* Contributing: http://www.tinymce.com/contributing
|
155
|
-
*/
|
156
|
-
|
157
|
-
define(
|
158
|
-
'tinymce.plugins.textcolor.api.Settings',
|
159
|
-
[
|
160
|
-
],
|
161
|
-
function () {
|
162
|
-
var defaultColorMap = [
|
163
|
-
"000000", "Black",
|
164
|
-
"993300", "Burnt orange",
|
165
|
-
"333300", "Dark olive",
|
166
|
-
"003300", "Dark green",
|
167
|
-
"003366", "Dark azure",
|
168
|
-
"000080", "Navy Blue",
|
169
|
-
"333399", "Indigo",
|
170
|
-
"333333", "Very dark gray",
|
171
|
-
"800000", "Maroon",
|
172
|
-
"FF6600", "Orange",
|
173
|
-
"808000", "Olive",
|
174
|
-
"008000", "Green",
|
175
|
-
"008080", "Teal",
|
176
|
-
"0000FF", "Blue",
|
177
|
-
"666699", "Grayish blue",
|
178
|
-
"808080", "Gray",
|
179
|
-
"FF0000", "Red",
|
180
|
-
"FF9900", "Amber",
|
181
|
-
"99CC00", "Yellow green",
|
182
|
-
"339966", "Sea green",
|
183
|
-
"33CCCC", "Turquoise",
|
184
|
-
"3366FF", "Royal blue",
|
185
|
-
"800080", "Purple",
|
186
|
-
"999999", "Medium gray",
|
187
|
-
"FF00FF", "Magenta",
|
188
|
-
"FFCC00", "Gold",
|
189
|
-
"FFFF00", "Yellow",
|
190
|
-
"00FF00", "Lime",
|
191
|
-
"00FFFF", "Aqua",
|
192
|
-
"00CCFF", "Sky blue",
|
193
|
-
"993366", "Red violet",
|
194
|
-
"FFFFFF", "White",
|
195
|
-
"FF99CC", "Pink",
|
196
|
-
"FFCC99", "Peach",
|
197
|
-
"FFFF99", "Light yellow",
|
198
|
-
"CCFFCC", "Pale green",
|
199
|
-
"CCFFFF", "Pale cyan",
|
200
|
-
"99CCFF", "Light sky blue",
|
201
|
-
"CC99FF", "Plum"
|
202
|
-
];
|
203
|
-
|
204
|
-
var getTextColorMap = function (editor) {
|
205
|
-
return editor.getParam('textcolor_map', defaultColorMap);
|
206
|
-
};
|
207
|
-
|
208
|
-
var getForeColorMap = function (editor) {
|
209
|
-
return editor.getParam('forecolor_map', getTextColorMap(editor));
|
210
|
-
};
|
211
|
-
|
212
|
-
var getBackColorMap = function (editor) {
|
213
|
-
return editor.getParam('backcolor_map', getTextColorMap(editor));
|
214
|
-
};
|
215
|
-
|
216
|
-
var getTextColorRows = function (editor) {
|
217
|
-
return editor.getParam('textcolor_rows', 5);
|
218
|
-
};
|
219
|
-
|
220
|
-
var getTextColorCols = function (editor) {
|
221
|
-
return editor.getParam('textcolor_cols', 8);
|
222
|
-
};
|
223
|
-
|
224
|
-
var getForeColorRows = function (editor) {
|
225
|
-
return editor.getParam('forecolor_rows', getTextColorRows(editor));
|
226
|
-
};
|
227
|
-
|
228
|
-
var getBackColorRows = function (editor) {
|
229
|
-
return editor.getParam('backcolor_rows', getTextColorRows(editor));
|
230
|
-
};
|
231
|
-
|
232
|
-
var getForeColorCols = function (editor) {
|
233
|
-
return editor.getParam('forecolor_cols', getTextColorCols(editor));
|
234
|
-
};
|
235
|
-
|
236
|
-
var getBackColorCols = function (editor) {
|
237
|
-
return editor.getParam('backcolor_cols', getTextColorCols(editor));
|
238
|
-
};
|
26
|
+
return colors;
|
27
|
+
};
|
28
|
+
var applyFormat = function (editor, format, value) {
|
29
|
+
editor.undoManager.transact(function () {
|
30
|
+
editor.focus();
|
31
|
+
editor.formatter.apply(format, { value: value });
|
32
|
+
editor.nodeChanged();
|
33
|
+
});
|
34
|
+
};
|
35
|
+
var removeFormat = function (editor, format) {
|
36
|
+
editor.undoManager.transact(function () {
|
37
|
+
editor.focus();
|
38
|
+
editor.formatter.remove(format, { value: null }, null, true);
|
39
|
+
editor.nodeChanged();
|
40
|
+
});
|
41
|
+
};
|
42
|
+
var $_a4nohtrhjm0og239 = {
|
43
|
+
getCurrentColor: getCurrentColor,
|
44
|
+
mapColors: mapColors,
|
45
|
+
applyFormat: applyFormat,
|
46
|
+
removeFormat: removeFormat
|
47
|
+
};
|
239
48
|
|
240
|
-
|
241
|
-
|
242
|
-
|
49
|
+
var register = function (editor) {
|
50
|
+
editor.addCommand('mceApplyTextcolor', function (format, value) {
|
51
|
+
$_a4nohtrhjm0og239.applyFormat(editor, format, value);
|
52
|
+
});
|
53
|
+
editor.addCommand('mceRemoveTextcolor', function (format) {
|
54
|
+
$_a4nohtrhjm0og239.removeFormat(editor, format);
|
55
|
+
});
|
56
|
+
};
|
57
|
+
var $_5zjdzxrgjm0og238 = { register: register };
|
58
|
+
|
59
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
60
|
+
|
61
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
62
|
+
|
63
|
+
var defaultColorMap = [
|
64
|
+
'000000',
|
65
|
+
'Black',
|
66
|
+
'993300',
|
67
|
+
'Burnt orange',
|
68
|
+
'333300',
|
69
|
+
'Dark olive',
|
70
|
+
'003300',
|
71
|
+
'Dark green',
|
72
|
+
'003366',
|
73
|
+
'Dark azure',
|
74
|
+
'000080',
|
75
|
+
'Navy Blue',
|
76
|
+
'333399',
|
77
|
+
'Indigo',
|
78
|
+
'333333',
|
79
|
+
'Very dark gray',
|
80
|
+
'800000',
|
81
|
+
'Maroon',
|
82
|
+
'FF6600',
|
83
|
+
'Orange',
|
84
|
+
'808000',
|
85
|
+
'Olive',
|
86
|
+
'008000',
|
87
|
+
'Green',
|
88
|
+
'008080',
|
89
|
+
'Teal',
|
90
|
+
'0000FF',
|
91
|
+
'Blue',
|
92
|
+
'666699',
|
93
|
+
'Grayish blue',
|
94
|
+
'808080',
|
95
|
+
'Gray',
|
96
|
+
'FF0000',
|
97
|
+
'Red',
|
98
|
+
'FF9900',
|
99
|
+
'Amber',
|
100
|
+
'99CC00',
|
101
|
+
'Yellow green',
|
102
|
+
'339966',
|
103
|
+
'Sea green',
|
104
|
+
'33CCCC',
|
105
|
+
'Turquoise',
|
106
|
+
'3366FF',
|
107
|
+
'Royal blue',
|
108
|
+
'800080',
|
109
|
+
'Purple',
|
110
|
+
'999999',
|
111
|
+
'Medium gray',
|
112
|
+
'FF00FF',
|
113
|
+
'Magenta',
|
114
|
+
'FFCC00',
|
115
|
+
'Gold',
|
116
|
+
'FFFF00',
|
117
|
+
'Yellow',
|
118
|
+
'00FF00',
|
119
|
+
'Lime',
|
120
|
+
'00FFFF',
|
121
|
+
'Aqua',
|
122
|
+
'00CCFF',
|
123
|
+
'Sky blue',
|
124
|
+
'993366',
|
125
|
+
'Red violet',
|
126
|
+
'FFFFFF',
|
127
|
+
'White',
|
128
|
+
'FF99CC',
|
129
|
+
'Pink',
|
130
|
+
'FFCC99',
|
131
|
+
'Peach',
|
132
|
+
'FFFF99',
|
133
|
+
'Light yellow',
|
134
|
+
'CCFFCC',
|
135
|
+
'Pale green',
|
136
|
+
'CCFFFF',
|
137
|
+
'Pale cyan',
|
138
|
+
'99CCFF',
|
139
|
+
'Light sky blue',
|
140
|
+
'CC99FF',
|
141
|
+
'Plum'
|
142
|
+
];
|
143
|
+
var getTextColorMap = function (editor) {
|
144
|
+
return editor.getParam('textcolor_map', defaultColorMap);
|
145
|
+
};
|
146
|
+
var getForeColorMap = function (editor) {
|
147
|
+
return editor.getParam('forecolor_map', getTextColorMap(editor));
|
148
|
+
};
|
149
|
+
var getBackColorMap = function (editor) {
|
150
|
+
return editor.getParam('backcolor_map', getTextColorMap(editor));
|
151
|
+
};
|
152
|
+
var getTextColorRows = function (editor) {
|
153
|
+
return editor.getParam('textcolor_rows', 5);
|
154
|
+
};
|
155
|
+
var getTextColorCols = function (editor) {
|
156
|
+
return editor.getParam('textcolor_cols', 8);
|
157
|
+
};
|
158
|
+
var getForeColorRows = function (editor) {
|
159
|
+
return editor.getParam('forecolor_rows', getTextColorRows(editor));
|
160
|
+
};
|
161
|
+
var getBackColorRows = function (editor) {
|
162
|
+
return editor.getParam('backcolor_rows', getTextColorRows(editor));
|
163
|
+
};
|
164
|
+
var getForeColorCols = function (editor) {
|
165
|
+
return editor.getParam('forecolor_cols', getTextColorCols(editor));
|
166
|
+
};
|
167
|
+
var getBackColorCols = function (editor) {
|
168
|
+
return editor.getParam('backcolor_cols', getTextColorCols(editor));
|
169
|
+
};
|
170
|
+
var getColorPickerCallback = function (editor) {
|
171
|
+
return editor.getParam('color_picker_callback', null);
|
172
|
+
};
|
173
|
+
var hasColorPicker = function (editor) {
|
174
|
+
return typeof getColorPickerCallback(editor) === 'function';
|
175
|
+
};
|
176
|
+
var $_2fi0ufrljm0og23t = {
|
177
|
+
getForeColorMap: getForeColorMap,
|
178
|
+
getBackColorMap: getBackColorMap,
|
179
|
+
getForeColorRows: getForeColorRows,
|
180
|
+
getBackColorRows: getBackColorRows,
|
181
|
+
getForeColorCols: getForeColorCols,
|
182
|
+
getBackColorCols: getBackColorCols,
|
183
|
+
getColorPickerCallback: getColorPickerCallback,
|
184
|
+
hasColorPicker: hasColorPicker
|
185
|
+
};
|
243
186
|
|
244
|
-
|
245
|
-
return typeof getColorPickerCallback(editor) === 'function';
|
246
|
-
};
|
187
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.I18n');
|
247
188
|
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
getBackColorCols: getBackColorCols,
|
255
|
-
getColorPickerCallback: getColorPickerCallback,
|
256
|
-
hasColorPicker: hasColorPicker
|
189
|
+
var getHtml = function (cols, rows, colorMap, hasColorPicker) {
|
190
|
+
var colors, color, html, last, x, y, i, count = 0;
|
191
|
+
var id = global$1.DOM.uniqueId('mcearia');
|
192
|
+
var getColorCellHtml = function (color, title) {
|
193
|
+
var isNoColor = color === 'transparent';
|
194
|
+
return '<td class="mce-grid-cell' + (isNoColor ? ' mce-colorbtn-trans' : '') + '">' + '<div id="' + id + '-' + count++ + '"' + ' data-mce-color="' + (color ? color : '') + '"' + ' role="option"' + ' tabIndex="-1"' + ' style="' + (color ? 'background-color: ' + color : '') + '"' + ' title="' + global$3.translate(title) + '">' + (isNoColor ? '×' : '') + '</div>' + '</td>';
|
257
195
|
};
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
*
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
],
|
275
|
-
function () {
|
276
|
-
var getCurrentColor = function (editor, format) {
|
277
|
-
var color;
|
278
|
-
|
279
|
-
editor.dom.getParents(editor.selection.getStart(), function (elm) {
|
280
|
-
var value;
|
281
|
-
|
282
|
-
if ((value = elm.style[format === 'forecolor' ? 'color' : 'background-color'])) {
|
283
|
-
color = value;
|
196
|
+
colors = $_a4nohtrhjm0og239.mapColors(colorMap);
|
197
|
+
colors.push({
|
198
|
+
text: global$3.translate('No color'),
|
199
|
+
color: 'transparent'
|
200
|
+
});
|
201
|
+
html = '<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>';
|
202
|
+
last = colors.length - 1;
|
203
|
+
for (y = 0; y < rows; y++) {
|
204
|
+
html += '<tr>';
|
205
|
+
for (x = 0; x < cols; x++) {
|
206
|
+
i = y * cols + x;
|
207
|
+
if (i > last) {
|
208
|
+
html += '<td></td>';
|
209
|
+
} else {
|
210
|
+
color = colors[i];
|
211
|
+
html += getColorCellHtml(color.color, color.text);
|
284
212
|
}
|
285
|
-
});
|
286
|
-
|
287
|
-
return color;
|
288
|
-
};
|
289
|
-
|
290
|
-
var mapColors = function (colorMap) {
|
291
|
-
var i, colors = [];
|
292
|
-
|
293
|
-
for (i = 0; i < colorMap.length; i += 2) {
|
294
|
-
colors.push({
|
295
|
-
text: colorMap[i + 1],
|
296
|
-
color: '#' + colorMap[i]
|
297
|
-
});
|
298
213
|
}
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
editor.formatter.apply(format, { value: value });
|
307
|
-
editor.nodeChanged();
|
308
|
-
});
|
309
|
-
};
|
310
|
-
|
311
|
-
var removeFormat = function (editor, format) {
|
312
|
-
editor.undoManager.transact(function () {
|
313
|
-
editor.focus();
|
314
|
-
editor.formatter.remove(format, { value: null }, null, true);
|
315
|
-
editor.nodeChanged();
|
316
|
-
});
|
317
|
-
};
|
318
|
-
|
319
|
-
return {
|
320
|
-
getCurrentColor: getCurrentColor,
|
321
|
-
mapColors: mapColors,
|
322
|
-
applyFormat: applyFormat,
|
323
|
-
removeFormat: removeFormat
|
324
|
-
};
|
325
|
-
}
|
326
|
-
);
|
327
|
-
/**
|
328
|
-
* ResolveGlobal.js
|
329
|
-
*
|
330
|
-
* Released under LGPL License.
|
331
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
332
|
-
*
|
333
|
-
* License: http://www.tinymce.com/license
|
334
|
-
* Contributing: http://www.tinymce.com/contributing
|
335
|
-
*/
|
336
|
-
|
337
|
-
define(
|
338
|
-
'tinymce.core.util.I18n',
|
339
|
-
[
|
340
|
-
'global!tinymce.util.Tools.resolve'
|
341
|
-
],
|
342
|
-
function (resolve) {
|
343
|
-
return resolve('tinymce.util.I18n');
|
344
|
-
}
|
345
|
-
);
|
346
|
-
|
347
|
-
/**
|
348
|
-
* ColorPickerHtml.js
|
349
|
-
*
|
350
|
-
* Released under LGPL License.
|
351
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
352
|
-
*
|
353
|
-
* License: http://www.tinymce.com/license
|
354
|
-
* Contributing: http://www.tinymce.com/contributing
|
355
|
-
*/
|
356
|
-
|
357
|
-
define(
|
358
|
-
'tinymce.plugins.textcolor.ui.ColorPickerHtml',
|
359
|
-
[
|
360
|
-
'tinymce.core.dom.DOMUtils',
|
361
|
-
'tinymce.core.util.I18n',
|
362
|
-
'tinymce.plugins.textcolor.api.Settings',
|
363
|
-
'tinymce.plugins.textcolor.core.TextColor'
|
364
|
-
],
|
365
|
-
function (DOMUtils, I18n, Settings, TextColor) {
|
366
|
-
var getHtml = function (cols, rows, colorMap, hasColorPicker) {
|
367
|
-
var colors, color, html, last, x, y, i, count = 0, id = DOMUtils.DOM.uniqueId('mcearia');
|
368
|
-
|
369
|
-
var getColorCellHtml = function (color, title) {
|
370
|
-
var isNoColor = color === 'transparent';
|
371
|
-
|
372
|
-
return (
|
373
|
-
'<td class="mce-grid-cell' + (isNoColor ? ' mce-colorbtn-trans' : '') + '">' +
|
374
|
-
'<div id="' + id + '-' + (count++) + '"' +
|
375
|
-
' data-mce-color="' + (color ? color : '') + '"' +
|
376
|
-
' role="option"' +
|
377
|
-
' tabIndex="-1"' +
|
378
|
-
' style="' + (color ? 'background-color: ' + color : '') + '"' +
|
379
|
-
' title="' + I18n.translate(title) + '">' +
|
380
|
-
(isNoColor ? '×' : '') +
|
381
|
-
'</div>' +
|
382
|
-
'</td>'
|
383
|
-
);
|
384
|
-
};
|
385
|
-
|
386
|
-
colors = TextColor.mapColors(colorMap);
|
387
|
-
colors.push({
|
388
|
-
text: I18n.translate("No color"),
|
389
|
-
color: "transparent"
|
390
|
-
});
|
391
|
-
|
392
|
-
html = '<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>';
|
393
|
-
last = colors.length - 1;
|
394
|
-
|
395
|
-
for (y = 0; y < rows; y++) {
|
396
|
-
html += '<tr>';
|
397
|
-
|
398
|
-
for (x = 0; x < cols; x++) {
|
399
|
-
i = y * cols + x;
|
400
|
-
|
401
|
-
if (i > last) {
|
402
|
-
html += '<td></td>';
|
403
|
-
} else {
|
404
|
-
color = colors[i];
|
405
|
-
html += getColorCellHtml(color.color, color.text);
|
406
|
-
}
|
407
|
-
}
|
408
|
-
|
409
|
-
html += '</tr>';
|
214
|
+
html += '</tr>';
|
215
|
+
}
|
216
|
+
if (hasColorPicker) {
|
217
|
+
html += '<tr>' + '<td colspan="' + cols + '" class="mce-custom-color-btn">' + '<div id="' + id + '-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" ' + 'role="button" tabindex="-1" aria-labelledby="' + id + '-c" style="width: 100%">' + '<button type="button" role="presentation" tabindex="-1">' + global$3.translate('Custom...') + '</button>' + '</div>' + '</td>' + '</tr>';
|
218
|
+
html += '<tr>';
|
219
|
+
for (x = 0; x < cols; x++) {
|
220
|
+
html += getColorCellHtml('', 'Custom color');
|
410
221
|
}
|
222
|
+
html += '</tr>';
|
223
|
+
}
|
224
|
+
html += '</tbody></table>';
|
225
|
+
return html;
|
226
|
+
};
|
227
|
+
var $_en4gjxrmjm0og23v = { getHtml: getHtml };
|
411
228
|
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
);
|
423
|
-
|
424
|
-
html += '<tr>';
|
425
|
-
|
426
|
-
for (x = 0; x < cols; x++) {
|
427
|
-
html += getColorCellHtml('', 'Custom color');
|
428
|
-
}
|
429
|
-
|
430
|
-
html += '</tr>';
|
229
|
+
var setDivColor = function setDivColor(div, value) {
|
230
|
+
div.style.background = value;
|
231
|
+
div.setAttribute('data-mce-color', value);
|
232
|
+
};
|
233
|
+
var onButtonClick = function (editor) {
|
234
|
+
return function (e) {
|
235
|
+
var ctrl = e.control;
|
236
|
+
if (ctrl._color) {
|
237
|
+
editor.execCommand('mceApplyTextcolor', ctrl.settings.format, ctrl._color);
|
238
|
+
} else {
|
239
|
+
editor.execCommand('mceRemoveTextcolor', ctrl.settings.format);
|
431
240
|
}
|
432
|
-
|
433
|
-
html += '</tbody></table>';
|
434
|
-
|
435
|
-
return html;
|
436
|
-
};
|
437
|
-
|
438
|
-
return {
|
439
|
-
getHtml: getHtml
|
440
|
-
};
|
441
|
-
}
|
442
|
-
);
|
443
|
-
/**
|
444
|
-
* Buttons.js
|
445
|
-
*
|
446
|
-
* Released under LGPL License.
|
447
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
448
|
-
*
|
449
|
-
* License: http://www.tinymce.com/license
|
450
|
-
* Contributing: http://www.tinymce.com/contributing
|
451
|
-
*/
|
452
|
-
|
453
|
-
define(
|
454
|
-
'tinymce.plugins.textcolor.ui.Buttons',
|
455
|
-
[
|
456
|
-
'tinymce.core.dom.DOMUtils',
|
457
|
-
'tinymce.core.util.Tools',
|
458
|
-
'tinymce.plugins.textcolor.api.Settings',
|
459
|
-
'tinymce.plugins.textcolor.core.TextColor',
|
460
|
-
'tinymce.plugins.textcolor.ui.ColorPickerHtml'
|
461
|
-
],
|
462
|
-
function (DOMUtils, Tools, Settings, TextColor, ColorPickerHtml) {
|
463
|
-
var setDivColor = function setDivColor(div, value) {
|
464
|
-
div.style.background = value;
|
465
|
-
div.setAttribute('data-mce-color', value);
|
466
241
|
};
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
242
|
+
};
|
243
|
+
var onPanelClick = function (editor, cols) {
|
244
|
+
return function (e) {
|
245
|
+
var buttonCtrl = this.parent();
|
246
|
+
var value;
|
247
|
+
var currentColor = $_a4nohtrhjm0og239.getCurrentColor(editor, buttonCtrl.settings.format);
|
248
|
+
var selectColor = function (value) {
|
249
|
+
editor.execCommand('mceApplyTextcolor', buttonCtrl.settings.format, value);
|
250
|
+
buttonCtrl.hidePanel();
|
251
|
+
buttonCtrl.color(value);
|
477
252
|
};
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
var
|
486
|
-
|
487
|
-
buttonCtrl.
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
if (DOMUtils.DOM.getParent(e.target, '.mce-custom-color-btn')) {
|
498
|
-
buttonCtrl.hidePanel();
|
499
|
-
|
500
|
-
var colorPickerCallback = Settings.getColorPickerCallback(editor);
|
501
|
-
|
502
|
-
colorPickerCallback.call(editor, function (value) {
|
503
|
-
var tableElm = buttonCtrl.panel.getEl().getElementsByTagName('table')[0];
|
504
|
-
var customColorCells, div, i;
|
505
|
-
|
506
|
-
customColorCells = Tools.map(tableElm.rows[tableElm.rows.length - 1].childNodes, function (elm) {
|
507
|
-
return elm.firstChild;
|
508
|
-
});
|
509
|
-
|
510
|
-
for (i = 0; i < customColorCells.length; i++) {
|
511
|
-
div = customColorCells[i];
|
512
|
-
if (!div.getAttribute('data-mce-color')) {
|
513
|
-
break;
|
514
|
-
}
|
515
|
-
}
|
516
|
-
|
517
|
-
// Shift colors to the right
|
518
|
-
// TODO: Might need to be the left on RTL
|
519
|
-
if (i === cols) {
|
520
|
-
for (i = 0; i < cols - 1; i++) {
|
521
|
-
setDivColor(customColorCells[i], customColorCells[i + 1].getAttribute('data-mce-color'));
|
522
|
-
}
|
253
|
+
var resetColor = function () {
|
254
|
+
editor.execCommand('mceRemoveTextcolor', buttonCtrl.settings.format);
|
255
|
+
buttonCtrl.hidePanel();
|
256
|
+
buttonCtrl.resetColor();
|
257
|
+
};
|
258
|
+
if (global$1.DOM.getParent(e.target, '.mce-custom-color-btn')) {
|
259
|
+
buttonCtrl.hidePanel();
|
260
|
+
var colorPickerCallback = $_2fi0ufrljm0og23t.getColorPickerCallback(editor);
|
261
|
+
colorPickerCallback.call(editor, function (value) {
|
262
|
+
var tableElm = buttonCtrl.panel.getEl().getElementsByTagName('table')[0];
|
263
|
+
var customColorCells, div, i;
|
264
|
+
customColorCells = global$2.map(tableElm.rows[tableElm.rows.length - 1].childNodes, function (elm) {
|
265
|
+
return elm.firstChild;
|
266
|
+
});
|
267
|
+
for (i = 0; i < customColorCells.length; i++) {
|
268
|
+
div = customColorCells[i];
|
269
|
+
if (!div.getAttribute('data-mce-color')) {
|
270
|
+
break;
|
523
271
|
}
|
524
|
-
|
525
|
-
setDivColor(div, value);
|
526
|
-
selectColor(value);
|
527
|
-
}, currentColor);
|
528
|
-
}
|
529
|
-
|
530
|
-
value = e.target.getAttribute('data-mce-color');
|
531
|
-
if (value) {
|
532
|
-
if (this.lastId) {
|
533
|
-
DOMUtils.DOM.get(this.lastId).setAttribute('aria-selected', false);
|
534
272
|
}
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
if (value === 'transparent') {
|
540
|
-
resetColor();
|
541
|
-
} else {
|
542
|
-
selectColor(value);
|
273
|
+
if (i === cols) {
|
274
|
+
for (i = 0; i < cols - 1; i++) {
|
275
|
+
setDivColor(customColorCells[i], customColorCells[i + 1].getAttribute('data-mce-color'));
|
276
|
+
}
|
543
277
|
}
|
544
|
-
|
545
|
-
|
278
|
+
setDivColor(div, value);
|
279
|
+
selectColor(value);
|
280
|
+
}, currentColor);
|
281
|
+
}
|
282
|
+
value = e.target.getAttribute('data-mce-color');
|
283
|
+
if (value) {
|
284
|
+
if (this.lastId) {
|
285
|
+
global$1.DOM.get(this.lastId).setAttribute('aria-selected', 'false');
|
546
286
|
}
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
return ColorPickerHtml.getHtml(cols, rows, colorMap, hasColorPicker);
|
558
|
-
};
|
287
|
+
e.target.setAttribute('aria-selected', true);
|
288
|
+
this.lastId = e.target.id;
|
289
|
+
if (value === 'transparent') {
|
290
|
+
resetColor();
|
291
|
+
} else {
|
292
|
+
selectColor(value);
|
293
|
+
}
|
294
|
+
} else if (value !== null) {
|
295
|
+
buttonCtrl.hidePanel();
|
296
|
+
}
|
559
297
|
};
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
ariaRemember: true,
|
569
|
-
html: renderColorPicker(editor, true),
|
570
|
-
onclick: onPanelClick(editor, Settings.getForeColorCols(editor))
|
571
|
-
},
|
572
|
-
onclick: onButtonClick(editor)
|
573
|
-
});
|
574
|
-
|
575
|
-
editor.addButton('backcolor', {
|
576
|
-
type: 'colorbutton',
|
577
|
-
tooltip: 'Background color',
|
578
|
-
format: 'hilitecolor',
|
579
|
-
panel: {
|
580
|
-
role: 'application',
|
581
|
-
ariaRemember: true,
|
582
|
-
html: renderColorPicker(editor, false),
|
583
|
-
onclick: onPanelClick(editor, Settings.getBackColorCols(editor))
|
584
|
-
},
|
585
|
-
onclick: onButtonClick(editor)
|
586
|
-
});
|
298
|
+
};
|
299
|
+
var renderColorPicker = function (editor, foreColor) {
|
300
|
+
return function () {
|
301
|
+
var cols = foreColor ? $_2fi0ufrljm0og23t.getForeColorCols(editor) : $_2fi0ufrljm0og23t.getBackColorCols(editor);
|
302
|
+
var rows = foreColor ? $_2fi0ufrljm0og23t.getForeColorRows(editor) : $_2fi0ufrljm0og23t.getBackColorRows(editor);
|
303
|
+
var colorMap = foreColor ? $_2fi0ufrljm0og23t.getForeColorMap(editor) : $_2fi0ufrljm0og23t.getBackColorMap(editor);
|
304
|
+
var hasColorPicker = $_2fi0ufrljm0og23t.hasColorPicker(editor);
|
305
|
+
return $_en4gjxrmjm0og23v.getHtml(cols, rows, colorMap, hasColorPicker);
|
587
306
|
};
|
307
|
+
};
|
308
|
+
var register$1 = function (editor) {
|
309
|
+
editor.addButton('forecolor', {
|
310
|
+
type: 'colorbutton',
|
311
|
+
tooltip: 'Text color',
|
312
|
+
format: 'forecolor',
|
313
|
+
panel: {
|
314
|
+
role: 'application',
|
315
|
+
ariaRemember: true,
|
316
|
+
html: renderColorPicker(editor, true),
|
317
|
+
onclick: onPanelClick(editor, $_2fi0ufrljm0og23t.getForeColorCols(editor))
|
318
|
+
},
|
319
|
+
onclick: onButtonClick(editor)
|
320
|
+
});
|
321
|
+
editor.addButton('backcolor', {
|
322
|
+
type: 'colorbutton',
|
323
|
+
tooltip: 'Background color',
|
324
|
+
format: 'hilitecolor',
|
325
|
+
panel: {
|
326
|
+
role: 'application',
|
327
|
+
ariaRemember: true,
|
328
|
+
html: renderColorPicker(editor, false),
|
329
|
+
onclick: onPanelClick(editor, $_2fi0ufrljm0og23t.getBackColorCols(editor))
|
330
|
+
},
|
331
|
+
onclick: onButtonClick(editor)
|
332
|
+
});
|
333
|
+
};
|
334
|
+
var $_c5x6u9rijm0og23d = { register: register$1 };
|
588
335
|
|
589
|
-
|
590
|
-
|
591
|
-
|
336
|
+
global.add('textcolor', function (editor) {
|
337
|
+
$_5zjdzxrgjm0og238.register(editor);
|
338
|
+
$_c5x6u9rijm0og23d.register(editor);
|
339
|
+
});
|
340
|
+
function Plugin () {
|
592
341
|
}
|
593
|
-
);
|
594
|
-
/**
|
595
|
-
* Plugin.js
|
596
|
-
*
|
597
|
-
* Released under LGPL License.
|
598
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
599
|
-
*
|
600
|
-
* License: http://www.tinymce.com/license
|
601
|
-
* Contributing: http://www.tinymce.com/contributing
|
602
|
-
*/
|
603
342
|
|
604
|
-
|
605
|
-
'tinymce.plugins.textcolor.Plugin',
|
606
|
-
[
|
607
|
-
'tinymce.core.PluginManager',
|
608
|
-
'tinymce.plugins.textcolor.ui.Buttons'
|
609
|
-
],
|
610
|
-
function (PluginManager, Buttons) {
|
611
|
-
PluginManager.add('textcolor', function (editor) {
|
612
|
-
Buttons.register(editor);
|
613
|
-
});
|
343
|
+
return Plugin;
|
614
344
|
|
615
|
-
|
616
|
-
}
|
617
|
-
);
|
618
|
-
dem('tinymce.plugins.textcolor.Plugin')();
|
345
|
+
}());
|
619
346
|
})();
|