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 i=function(t){var e=t,n=function(){return e};return{get:n,set:function(t){e=t},clone:function(){return i(n())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),y=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),h=function(t){return parseInt(t.getParam("autoresize_min_height",t.getElement().offsetHeight),10)},v=function(t){return parseInt(t.getParam("autoresize_max_height",0),10)},o=function(t){return t.getParam("autoresize_overflow_padding",1)},a=function(t){return t.getParam("autoresize_bottom_margin",50)},n=function(t){return t.getParam("autoresize_on_init",!0)},u=function(t,e,n,i,o){r.setEditorTimeout(t,function(){_(t,e),n--?u(t,e,n,i,o):o&&o()},i)},S=function(t,e){var n=t.getBody();n&&(n.style.overflowY=e?"":"hidden",e||(n.scrollTop=0))},_=function(t,e){var n,i,o,r,a,u,s,l,g,c,f,d=t.dom;if(i=t.getDoc())if((m=t).plugins.fullscreen&&m.plugins.fullscreen.isFullscreen())S(t,!0);else{var m;o=i.body,r=h(t),u=d.getStyle(o,"margin-top",!0),s=d.getStyle(o,"margin-bottom",!0),l=d.getStyle(o,"padding-top",!0),g=d.getStyle(o,"padding-bottom",!0),c=d.getStyle(o,"border-top-width",!0),f=d.getStyle(o,"border-bottom-width",!0),a=o.offsetHeight+parseInt(u,10)+parseInt(s,10)+parseInt(l,10)+parseInt(g,10)+parseInt(c,10)+parseInt(f,10),(isNaN(a)||a<=0)&&(a=y.ie?o.scrollHeight:y.webkit&&0===o.clientHeight?0:o.offsetHeight),a>h(t)&&(r=a);var p=v(t);p&&p<a?(r=p,S(t,!0)):S(t,!1),r!==e.get()&&(n=r-e.get(),d.setStyle(t.iframeElement,"height",r+"px"),e.set(r),y.webkit&&n<0&&_(t,e))}},s={setup:function(i,e){i.on("init",function(){var t,e,n=i.dom;t=o(i),e=a(i),!1!==t&&n.setStyles(i.getBody(),{paddingLeft:t,paddingRight:t}),!1!==e&&n.setStyles(i.getBody(),{paddingBottom:e})}),i.on("nodechange setcontent keyup FullscreenStateChanged",function(t){_(i,e)}),n(i)&&i.on("init",function(){u(i,e,20,100,function(){u(i,e,5,1e3)})})},resize:_},l=function(t,e){t.addCommand("mceAutoResize",function(){s.resize(t,e)})};t.add("autoresize",function(t){if(!t.inline){var e=i(0);l(t,e),s.setup(t,e)}})}();
|
@@ -1,608 +1,226 @@
|
|
1
1
|
(function () {
|
2
|
+
var autosave = (function () {
|
3
|
+
'use strict';
|
2
4
|
|
3
|
-
var
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var register_3795 = function (id) {
|
8
|
-
var module = dem(id);
|
9
|
-
var fragments = id.split('.');
|
10
|
-
var target = Function('return this;')();
|
11
|
-
for (var i = 0; i < fragments.length - 1; ++i) {
|
12
|
-
if (target[fragments[i]] === undefined)
|
13
|
-
target[fragments[i]] = {};
|
14
|
-
target = target[fragments[i]];
|
15
|
-
}
|
16
|
-
target[fragments[fragments.length - 1]] = module;
|
17
|
-
};
|
18
|
-
|
19
|
-
var instantiate = function (id) {
|
20
|
-
var actual = defs[id];
|
21
|
-
var dependencies = actual.deps;
|
22
|
-
var definition = actual.defn;
|
23
|
-
var len = dependencies.length;
|
24
|
-
var instances = new Array(len);
|
25
|
-
for (var i = 0; i < len; ++i)
|
26
|
-
instances[i] = dem(dependencies[i]);
|
27
|
-
var defResult = definition.apply(null, instances);
|
28
|
-
if (defResult === undefined)
|
29
|
-
throw 'module [' + id + '] returned undefined';
|
30
|
-
actual.instance = defResult;
|
31
|
-
};
|
32
|
-
|
33
|
-
var def = function (id, dependencies, definition) {
|
34
|
-
if (typeof id !== 'string')
|
35
|
-
throw 'module id must be a string';
|
36
|
-
else if (dependencies === undefined)
|
37
|
-
throw 'no dependencies for ' + id;
|
38
|
-
else if (definition === undefined)
|
39
|
-
throw 'no definition function for ' + id;
|
40
|
-
defs[id] = {
|
41
|
-
deps: dependencies,
|
42
|
-
defn: definition,
|
43
|
-
instance: undefined
|
44
|
-
};
|
45
|
-
};
|
46
|
-
|
47
|
-
var dem = function (id) {
|
48
|
-
var actual = defs[id];
|
49
|
-
if (actual === undefined)
|
50
|
-
throw 'module [' + id + '] was undefined';
|
51
|
-
else if (actual.instance === undefined)
|
52
|
-
instantiate(id);
|
53
|
-
return actual.instance;
|
54
|
-
};
|
55
|
-
|
56
|
-
var req = function (ids, callback) {
|
57
|
-
var len = ids.length;
|
58
|
-
var instances = new Array(len);
|
59
|
-
for (var i = 0; i < len; ++i)
|
60
|
-
instances[i] = dem(ids[i]);
|
61
|
-
callback.apply(null, instances);
|
62
|
-
};
|
63
|
-
|
64
|
-
var ephox = {};
|
65
|
-
|
66
|
-
ephox.bolt = {
|
67
|
-
module: {
|
68
|
-
api: {
|
69
|
-
define: def,
|
70
|
-
require: req,
|
71
|
-
demand: dem
|
72
|
-
}
|
73
|
-
}
|
74
|
-
};
|
75
|
-
|
76
|
-
var define = def;
|
77
|
-
var require = req;
|
78
|
-
var demand = dem;
|
79
|
-
// this helps with minification when using a lot of global references
|
80
|
-
var defineGlobal = function (id, ref) {
|
81
|
-
define(id, [], function () { return ref; });
|
82
|
-
};
|
83
|
-
/*jsc
|
84
|
-
["tinymce.plugins.autosave.Plugin","ephox.katamari.api.Cell","tinymce.core.PluginManager","tinymce.plugins.autosave.api.Api","tinymce.plugins.autosave.core.BeforeUnload","tinymce.plugins.autosave.ui.Buttons","global!tinymce.util.Tools.resolve","tinymce.plugins.autosave.core.Storage","global!window","tinymce.core.EditorManager","tinymce.core.util.Tools","tinymce.plugins.autosave.api.Settings","global!setInterval","tinymce.core.util.LocalStorage","tinymce.plugins.autosave.api.Events","global!document","tinymce.plugins.autosave.core.Time"]
|
85
|
-
jsc*/
|
86
|
-
define(
|
87
|
-
'ephox.katamari.api.Cell',
|
88
|
-
|
89
|
-
[
|
90
|
-
],
|
91
|
-
|
92
|
-
function () {
|
93
|
-
var Cell = function (initial) {
|
94
|
-
var value = initial;
|
95
|
-
|
96
|
-
var get = function () {
|
97
|
-
return value;
|
98
|
-
};
|
99
|
-
|
100
|
-
var set = function (v) {
|
101
|
-
value = v;
|
102
|
-
};
|
103
|
-
|
104
|
-
var clone = function () {
|
105
|
-
return Cell(get());
|
106
|
-
};
|
107
|
-
|
108
|
-
return {
|
109
|
-
get: get,
|
110
|
-
set: set,
|
111
|
-
clone: clone
|
112
|
-
};
|
5
|
+
var Cell = function (initial) {
|
6
|
+
var value = initial;
|
7
|
+
var get = function () {
|
8
|
+
return value;
|
113
9
|
};
|
114
|
-
|
115
|
-
|
116
|
-
}
|
117
|
-
);
|
118
|
-
|
119
|
-
defineGlobal("global!tinymce.util.Tools.resolve", tinymce.util.Tools.resolve);
|
120
|
-
/**
|
121
|
-
* ResolveGlobal.js
|
122
|
-
*
|
123
|
-
* Released under LGPL License.
|
124
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
125
|
-
*
|
126
|
-
* License: http://www.tinymce.com/license
|
127
|
-
* Contributing: http://www.tinymce.com/contributing
|
128
|
-
*/
|
129
|
-
|
130
|
-
define(
|
131
|
-
'tinymce.core.PluginManager',
|
132
|
-
[
|
133
|
-
'global!tinymce.util.Tools.resolve'
|
134
|
-
],
|
135
|
-
function (resolve) {
|
136
|
-
return resolve('tinymce.PluginManager');
|
137
|
-
}
|
138
|
-
);
|
139
|
-
|
140
|
-
defineGlobal("global!setInterval", setInterval);
|
141
|
-
/**
|
142
|
-
* ResolveGlobal.js
|
143
|
-
*
|
144
|
-
* Released under LGPL License.
|
145
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
146
|
-
*
|
147
|
-
* License: http://www.tinymce.com/license
|
148
|
-
* Contributing: http://www.tinymce.com/contributing
|
149
|
-
*/
|
150
|
-
|
151
|
-
define(
|
152
|
-
'tinymce.core.util.LocalStorage',
|
153
|
-
[
|
154
|
-
'global!tinymce.util.Tools.resolve'
|
155
|
-
],
|
156
|
-
function (resolve) {
|
157
|
-
return resolve('tinymce.util.LocalStorage');
|
158
|
-
}
|
159
|
-
);
|
160
|
-
|
161
|
-
/**
|
162
|
-
* ResolveGlobal.js
|
163
|
-
*
|
164
|
-
* Released under LGPL License.
|
165
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
166
|
-
*
|
167
|
-
* License: http://www.tinymce.com/license
|
168
|
-
* Contributing: http://www.tinymce.com/contributing
|
169
|
-
*/
|
170
|
-
|
171
|
-
define(
|
172
|
-
'tinymce.core.util.Tools',
|
173
|
-
[
|
174
|
-
'global!tinymce.util.Tools.resolve'
|
175
|
-
],
|
176
|
-
function (resolve) {
|
177
|
-
return resolve('tinymce.util.Tools');
|
178
|
-
}
|
179
|
-
);
|
180
|
-
|
181
|
-
/**
|
182
|
-
* Events.js
|
183
|
-
*
|
184
|
-
* Released under LGPL License.
|
185
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
186
|
-
*
|
187
|
-
* License: http://www.tinymce.com/license
|
188
|
-
* Contributing: http://www.tinymce.com/contributing
|
189
|
-
*/
|
190
|
-
|
191
|
-
define(
|
192
|
-
'tinymce.plugins.autosave.api.Events',
|
193
|
-
[
|
194
|
-
],
|
195
|
-
function () {
|
196
|
-
var fireRestoreDraft = function (editor) {
|
197
|
-
return editor.fire('RestoreDraft');
|
10
|
+
var set = function (v) {
|
11
|
+
value = v;
|
198
12
|
};
|
199
|
-
|
200
|
-
|
201
|
-
return editor.fire('StoreDraft');
|
13
|
+
var clone = function () {
|
14
|
+
return Cell(get());
|
202
15
|
};
|
203
|
-
|
204
|
-
var fireRemoveDraft = function (editor) {
|
205
|
-
return editor.fire('RemoveDraft');
|
206
|
-
};
|
207
|
-
|
208
16
|
return {
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
};
|
213
|
-
}
|
214
|
-
);
|
215
|
-
|
216
|
-
defineGlobal("global!document", document);
|
217
|
-
/**
|
218
|
-
* Time.js
|
219
|
-
*
|
220
|
-
* Released under LGPL License.
|
221
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
222
|
-
*
|
223
|
-
* License: http://www.tinymce.com/license
|
224
|
-
* Contributing: http://www.tinymce.com/contributing
|
225
|
-
*/
|
226
|
-
|
227
|
-
define(
|
228
|
-
'tinymce.plugins.autosave.core.Time',
|
229
|
-
[
|
230
|
-
],
|
231
|
-
function () {
|
232
|
-
var parse = function (time, defaultTime) {
|
233
|
-
var multiples = {
|
234
|
-
s: 1000,
|
235
|
-
m: 60000
|
236
|
-
};
|
237
|
-
|
238
|
-
time = /^(\d+)([ms]?)$/.exec('' + (time || defaultTime));
|
239
|
-
|
240
|
-
return (time[2] ? multiples[time[2]] : 1) * parseInt(time, 10);
|
17
|
+
get: get,
|
18
|
+
set: set,
|
19
|
+
clone: clone
|
241
20
|
};
|
21
|
+
};
|
242
22
|
|
243
|
-
|
244
|
-
parse: parse
|
245
|
-
};
|
246
|
-
}
|
247
|
-
);
|
248
|
-
/**
|
249
|
-
* Settings.js
|
250
|
-
*
|
251
|
-
* Released under LGPL License.
|
252
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
253
|
-
*
|
254
|
-
* License: http://www.tinymce.com/license
|
255
|
-
* Contributing: http://www.tinymce.com/contributing
|
256
|
-
*/
|
23
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
257
24
|
|
258
|
-
|
259
|
-
'tinymce.plugins.autosave.api.Settings',
|
260
|
-
[
|
261
|
-
'global!document',
|
262
|
-
'tinymce.plugins.autosave.core.Time'
|
263
|
-
],
|
264
|
-
function (document, Time) {
|
265
|
-
var shouldAskBeforeUnload = function (editor) {
|
266
|
-
return editor.getParam("autosave_ask_before_unload", true);
|
267
|
-
};
|
25
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.LocalStorage');
|
268
26
|
|
269
|
-
|
270
|
-
var prefix = editor.getParam('autosave_prefix', 'tinymce-autosave-{path}{query}{hash}-{id}-');
|
27
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
271
28
|
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
29
|
+
var fireRestoreDraft = function (editor) {
|
30
|
+
return editor.fire('RestoreDraft');
|
31
|
+
};
|
32
|
+
var fireStoreDraft = function (editor) {
|
33
|
+
return editor.fire('StoreDraft');
|
34
|
+
};
|
35
|
+
var fireRemoveDraft = function (editor) {
|
36
|
+
return editor.fire('RemoveDraft');
|
37
|
+
};
|
38
|
+
var $_1qssoj9ajm0ofy3g = {
|
39
|
+
fireRestoreDraft: fireRestoreDraft,
|
40
|
+
fireStoreDraft: fireStoreDraft,
|
41
|
+
fireRemoveDraft: fireRemoveDraft
|
42
|
+
};
|
276
43
|
|
277
|
-
|
44
|
+
var parse = function (time, defaultTime) {
|
45
|
+
var multiples = {
|
46
|
+
s: 1000,
|
47
|
+
m: 60000
|
278
48
|
};
|
49
|
+
time = /^(\d+)([ms]?)$/.exec('' + (time || defaultTime));
|
50
|
+
return (time[2] ? multiples[time[2]] : 1) * parseInt(time, 10);
|
51
|
+
};
|
52
|
+
var $_60wi379cjm0ofy3k = { parse: parse };
|
279
53
|
|
280
|
-
|
281
|
-
|
282
|
-
|
54
|
+
var shouldAskBeforeUnload = function (editor) {
|
55
|
+
return editor.getParam('autosave_ask_before_unload', true);
|
56
|
+
};
|
57
|
+
var getAutoSavePrefix = function (editor) {
|
58
|
+
var prefix = editor.getParam('autosave_prefix', 'tinymce-autosave-{path}{query}{hash}-{id}-');
|
59
|
+
prefix = prefix.replace(/\{path\}/g, document.location.pathname);
|
60
|
+
prefix = prefix.replace(/\{query\}/g, document.location.search);
|
61
|
+
prefix = prefix.replace(/\{hash\}/g, document.location.hash);
|
62
|
+
prefix = prefix.replace(/\{id\}/g, editor.id);
|
63
|
+
return prefix;
|
64
|
+
};
|
65
|
+
var shouldRestoreWhenEmpty = function (editor) {
|
66
|
+
return editor.getParam('autosave_restore_when_empty', false);
|
67
|
+
};
|
68
|
+
var getAutoSaveInterval = function (editor) {
|
69
|
+
return $_60wi379cjm0ofy3k.parse(editor.settings.autosave_interval, '30s');
|
70
|
+
};
|
71
|
+
var getAutoSaveRetention = function (editor) {
|
72
|
+
return $_60wi379cjm0ofy3k.parse(editor.settings.autosave_retention, '20m');
|
73
|
+
};
|
74
|
+
var $_azapea9bjm0ofy3i = {
|
75
|
+
shouldAskBeforeUnload: shouldAskBeforeUnload,
|
76
|
+
getAutoSavePrefix: getAutoSavePrefix,
|
77
|
+
shouldRestoreWhenEmpty: shouldRestoreWhenEmpty,
|
78
|
+
getAutoSaveInterval: getAutoSaveInterval,
|
79
|
+
getAutoSaveRetention: getAutoSaveRetention
|
80
|
+
};
|
283
81
|
|
284
|
-
|
285
|
-
|
286
|
-
|
82
|
+
var isEmpty = function (editor, html) {
|
83
|
+
var forcedRootBlockName = editor.settings.forced_root_block;
|
84
|
+
html = global$2.trim(typeof html === 'undefined' ? editor.getBody().innerHTML : html);
|
85
|
+
return html === '' || new RegExp('^<' + forcedRootBlockName + '[^>]*>((\xA0| |[ \t]|<br[^>]*>)+?|)</' + forcedRootBlockName + '>|<br>$', 'i').test(html);
|
86
|
+
};
|
87
|
+
var hasDraft = function (editor) {
|
88
|
+
var time = parseInt(global$1.getItem($_azapea9bjm0ofy3i.getAutoSavePrefix(editor) + 'time'), 10) || 0;
|
89
|
+
if (new Date().getTime() - time > $_azapea9bjm0ofy3i.getAutoSaveRetention(editor)) {
|
90
|
+
removeDraft(editor, false);
|
91
|
+
return false;
|
92
|
+
}
|
93
|
+
return true;
|
94
|
+
};
|
95
|
+
var removeDraft = function (editor, fire) {
|
96
|
+
var prefix = $_azapea9bjm0ofy3i.getAutoSavePrefix(editor);
|
97
|
+
global$1.removeItem(prefix + 'draft');
|
98
|
+
global$1.removeItem(prefix + 'time');
|
99
|
+
if (fire !== false) {
|
100
|
+
$_1qssoj9ajm0ofy3g.fireRemoveDraft(editor);
|
101
|
+
}
|
102
|
+
};
|
103
|
+
var storeDraft = function (editor) {
|
104
|
+
var prefix = $_azapea9bjm0ofy3i.getAutoSavePrefix(editor);
|
105
|
+
if (!isEmpty(editor) && editor.isDirty()) {
|
106
|
+
global$1.setItem(prefix + 'draft', editor.getContent({
|
107
|
+
format: 'raw',
|
108
|
+
no_events: true
|
109
|
+
}));
|
110
|
+
global$1.setItem(prefix + 'time', new Date().getTime().toString());
|
111
|
+
$_1qssoj9ajm0ofy3g.fireStoreDraft(editor);
|
112
|
+
}
|
113
|
+
};
|
114
|
+
var restoreDraft = function (editor) {
|
115
|
+
var prefix = $_azapea9bjm0ofy3i.getAutoSavePrefix(editor);
|
116
|
+
if (hasDraft(editor)) {
|
117
|
+
editor.setContent(global$1.getItem(prefix + 'draft'), { format: 'raw' });
|
118
|
+
$_1qssoj9ajm0ofy3g.fireRestoreDraft(editor);
|
119
|
+
}
|
120
|
+
};
|
121
|
+
var startStoreDraft = function (editor, started) {
|
122
|
+
var interval = $_azapea9bjm0ofy3i.getAutoSaveInterval(editor);
|
123
|
+
if (!started.get()) {
|
124
|
+
setInterval(function () {
|
125
|
+
if (!editor.removed) {
|
126
|
+
storeDraft(editor);
|
127
|
+
}
|
128
|
+
}, interval);
|
129
|
+
started.set(true);
|
130
|
+
}
|
131
|
+
};
|
132
|
+
var restoreLastDraft = function (editor) {
|
133
|
+
editor.undoManager.transact(function () {
|
134
|
+
restoreDraft(editor);
|
135
|
+
removeDraft(editor);
|
136
|
+
});
|
137
|
+
editor.focus();
|
138
|
+
};
|
139
|
+
var $_8h0aas97jm0ofy3d = {
|
140
|
+
isEmpty: isEmpty,
|
141
|
+
hasDraft: hasDraft,
|
142
|
+
removeDraft: removeDraft,
|
143
|
+
storeDraft: storeDraft,
|
144
|
+
restoreDraft: restoreDraft,
|
145
|
+
startStoreDraft: startStoreDraft,
|
146
|
+
restoreLastDraft: restoreLastDraft
|
147
|
+
};
|
287
148
|
|
288
|
-
|
289
|
-
|
149
|
+
var curry = function (f, editor) {
|
150
|
+
return function () {
|
151
|
+
var args = Array.prototype.slice.call(arguments);
|
152
|
+
return f.apply(null, [editor].concat(args));
|
290
153
|
};
|
291
|
-
|
154
|
+
};
|
155
|
+
var get = function (editor) {
|
292
156
|
return {
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
};
|
299
|
-
}
|
300
|
-
);
|
301
|
-
/**
|
302
|
-
* Storage.js
|
303
|
-
*
|
304
|
-
* Released under LGPL License.
|
305
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
306
|
-
*
|
307
|
-
* License: http://www.tinymce.com/license
|
308
|
-
* Contributing: http://www.tinymce.com/contributing
|
309
|
-
*/
|
310
|
-
|
311
|
-
define(
|
312
|
-
'tinymce.plugins.autosave.core.Storage',
|
313
|
-
[
|
314
|
-
'global!setInterval',
|
315
|
-
'tinymce.core.util.LocalStorage',
|
316
|
-
'tinymce.core.util.Tools',
|
317
|
-
'tinymce.plugins.autosave.api.Events',
|
318
|
-
'tinymce.plugins.autosave.api.Settings'
|
319
|
-
],
|
320
|
-
function (setInterval, LocalStorage, Tools, Events, Settings) {
|
321
|
-
var isEmpty = function (editor, html) {
|
322
|
-
var forcedRootBlockName = editor.settings.forced_root_block;
|
323
|
-
|
324
|
-
html = Tools.trim(typeof html === "undefined" ? editor.getBody().innerHTML : html);
|
325
|
-
|
326
|
-
return html === '' || new RegExp(
|
327
|
-
'^<' + forcedRootBlockName + '[^>]*>((\u00a0| |[ \t]|<br[^>]*>)+?|)<\/' + forcedRootBlockName + '>|<br>$', 'i'
|
328
|
-
).test(html);
|
329
|
-
};
|
330
|
-
|
331
|
-
var hasDraft = function (editor) {
|
332
|
-
var time = parseInt(LocalStorage.getItem(Settings.getAutoSavePrefix(editor) + "time"), 10) || 0;
|
333
|
-
|
334
|
-
if (new Date().getTime() - time > Settings.getAutoSaveRetention(editor)) {
|
335
|
-
removeDraft(editor, false);
|
336
|
-
return false;
|
337
|
-
}
|
338
|
-
|
339
|
-
return true;
|
340
|
-
};
|
341
|
-
|
342
|
-
var removeDraft = function (editor, fire) {
|
343
|
-
var prefix = Settings.getAutoSavePrefix(editor);
|
344
|
-
|
345
|
-
LocalStorage.removeItem(prefix + "draft");
|
346
|
-
LocalStorage.removeItem(prefix + "time");
|
347
|
-
|
348
|
-
if (fire !== false) {
|
349
|
-
Events.fireRemoveDraft(editor);
|
350
|
-
}
|
157
|
+
hasDraft: curry($_8h0aas97jm0ofy3d.hasDraft, editor),
|
158
|
+
storeDraft: curry($_8h0aas97jm0ofy3d.storeDraft, editor),
|
159
|
+
restoreDraft: curry($_8h0aas97jm0ofy3d.restoreDraft, editor),
|
160
|
+
removeDraft: curry($_8h0aas97jm0ofy3d.removeDraft, editor),
|
161
|
+
isEmpty: curry($_8h0aas97jm0ofy3d.isEmpty, editor)
|
351
162
|
};
|
163
|
+
};
|
164
|
+
var $_7x9aqp96jm0ofy3c = { get: get };
|
352
165
|
|
353
|
-
|
354
|
-
var prefix = Settings.getAutoSavePrefix(editor);
|
166
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.EditorManager');
|
355
167
|
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
168
|
+
global$3._beforeUnloadHandler = function () {
|
169
|
+
var msg;
|
170
|
+
global$2.each(global$3.get(), function (editor) {
|
171
|
+
if (editor.plugins.autosave) {
|
172
|
+
editor.plugins.autosave.storeDraft();
|
360
173
|
}
|
361
|
-
|
362
|
-
|
363
|
-
var restoreDraft = function (editor) {
|
364
|
-
var prefix = Settings.getAutoSavePrefix(editor);
|
365
|
-
|
366
|
-
if (hasDraft(editor)) {
|
367
|
-
editor.setContent(LocalStorage.getItem(prefix + "draft"), { format: 'raw' });
|
368
|
-
Events.fireRestoreDraft(editor);
|
174
|
+
if (!msg && editor.isDirty() && $_azapea9bjm0ofy3i.shouldAskBeforeUnload(editor)) {
|
175
|
+
msg = editor.translate('You have unsaved changes are you sure you want to navigate away?');
|
369
176
|
}
|
370
|
-
};
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
};
|
385
|
-
|
386
|
-
var restoreLastDraft = function (editor) {
|
387
|
-
editor.undoManager.transact(function () {
|
388
|
-
restoreDraft(editor);
|
389
|
-
removeDraft(editor);
|
390
|
-
});
|
391
|
-
|
392
|
-
editor.focus();
|
393
|
-
};
|
394
|
-
|
395
|
-
return {
|
396
|
-
isEmpty: isEmpty,
|
397
|
-
hasDraft: hasDraft,
|
398
|
-
removeDraft: removeDraft,
|
399
|
-
storeDraft: storeDraft,
|
400
|
-
restoreDraft: restoreDraft,
|
401
|
-
startStoreDraft: startStoreDraft,
|
402
|
-
restoreLastDraft: restoreLastDraft
|
403
|
-
};
|
404
|
-
}
|
405
|
-
);
|
406
|
-
/**
|
407
|
-
* Api.js
|
408
|
-
*
|
409
|
-
* Released under LGPL License.
|
410
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
411
|
-
*
|
412
|
-
* License: http://www.tinymce.com/license
|
413
|
-
* Contributing: http://www.tinymce.com/contributing
|
414
|
-
*/
|
415
|
-
|
416
|
-
define(
|
417
|
-
'tinymce.plugins.autosave.api.Api',
|
418
|
-
[
|
419
|
-
'tinymce.plugins.autosave.core.Storage'
|
420
|
-
],
|
421
|
-
function (Storage) {
|
422
|
-
// Inlined the curry function since adding Fun without tree shaking to every plugin would produce a lot of bloat
|
423
|
-
var curry = function (f, editor) {
|
424
|
-
return function () {
|
425
|
-
var args = Array.prototype.slice.call(arguments);
|
426
|
-
return f.apply(null, [editor].concat(args));
|
427
|
-
};
|
428
|
-
};
|
429
|
-
|
430
|
-
var get = function (editor) {
|
431
|
-
return {
|
432
|
-
hasDraft: curry(Storage.hasDraft, editor),
|
433
|
-
storeDraft: curry(Storage.storeDraft, editor),
|
434
|
-
restoreDraft: curry(Storage.restoreDraft, editor),
|
435
|
-
removeDraft: curry(Storage.removeDraft, editor),
|
436
|
-
isEmpty: curry(Storage.isEmpty, editor)
|
437
|
-
};
|
438
|
-
};
|
439
|
-
|
440
|
-
return {
|
441
|
-
get: get
|
442
|
-
};
|
443
|
-
}
|
444
|
-
);
|
445
|
-
defineGlobal("global!window", window);
|
446
|
-
/**
|
447
|
-
* ResolveGlobal.js
|
448
|
-
*
|
449
|
-
* Released under LGPL License.
|
450
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
451
|
-
*
|
452
|
-
* License: http://www.tinymce.com/license
|
453
|
-
* Contributing: http://www.tinymce.com/contributing
|
454
|
-
*/
|
455
|
-
|
456
|
-
define(
|
457
|
-
'tinymce.core.EditorManager',
|
458
|
-
[
|
459
|
-
'global!tinymce.util.Tools.resolve'
|
460
|
-
],
|
461
|
-
function (resolve) {
|
462
|
-
return resolve('tinymce.EditorManager');
|
463
|
-
}
|
464
|
-
);
|
465
|
-
|
466
|
-
/**
|
467
|
-
* BeforeUnload.js
|
468
|
-
*
|
469
|
-
* Released under LGPL License.
|
470
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
471
|
-
*
|
472
|
-
* License: http://www.tinymce.com/license
|
473
|
-
* Contributing: http://www.tinymce.com/contributing
|
474
|
-
*/
|
475
|
-
|
476
|
-
define(
|
477
|
-
'tinymce.plugins.autosave.core.BeforeUnload',
|
478
|
-
[
|
479
|
-
'global!window',
|
480
|
-
'tinymce.core.EditorManager',
|
481
|
-
'tinymce.core.util.Tools',
|
482
|
-
'tinymce.plugins.autosave.api.Settings'
|
483
|
-
],
|
484
|
-
function (window, EditorManager, Tools, Settings) {
|
485
|
-
EditorManager._beforeUnloadHandler = function () {
|
486
|
-
var msg;
|
487
|
-
|
488
|
-
Tools.each(EditorManager.get(), function (editor) {
|
489
|
-
// Store a draft for each editor instance
|
490
|
-
if (editor.plugins.autosave) {
|
491
|
-
editor.plugins.autosave.storeDraft();
|
492
|
-
}
|
493
|
-
|
494
|
-
// Setup a return message if the editor is dirty
|
495
|
-
if (!msg && editor.isDirty() && Settings.shouldAskBeforeUnload(editor)) {
|
496
|
-
msg = editor.translate("You have unsaved changes are you sure you want to navigate away?");
|
497
|
-
}
|
498
|
-
});
|
499
|
-
|
500
|
-
return msg;
|
501
|
-
};
|
502
|
-
|
503
|
-
var setup = function (editor) {
|
504
|
-
window.onbeforeunload = EditorManager._beforeUnloadHandler;
|
505
|
-
};
|
506
|
-
|
507
|
-
return {
|
508
|
-
setup: setup
|
509
|
-
};
|
510
|
-
}
|
511
|
-
);
|
512
|
-
/**
|
513
|
-
* Buttons.js
|
514
|
-
*
|
515
|
-
* Released under LGPL License.
|
516
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
517
|
-
*
|
518
|
-
* License: http://www.tinymce.com/license
|
519
|
-
* Contributing: http://www.tinymce.com/contributing
|
520
|
-
*/
|
521
|
-
|
522
|
-
define(
|
523
|
-
'tinymce.plugins.autosave.ui.Buttons',
|
524
|
-
[
|
525
|
-
'tinymce.plugins.autosave.core.Storage'
|
526
|
-
],
|
527
|
-
function (Storage) {
|
528
|
-
var postRender = function (editor, started) {
|
529
|
-
return function (e) {
|
530
|
-
var ctrl = e.control;
|
531
|
-
|
532
|
-
ctrl.disabled(!Storage.hasDraft(editor));
|
533
|
-
|
534
|
-
editor.on('StoreDraft RestoreDraft RemoveDraft', function () {
|
535
|
-
ctrl.disabled(!Storage.hasDraft(editor));
|
536
|
-
});
|
537
|
-
|
538
|
-
// TODO: Investigate why this is only done on postrender that would
|
539
|
-
// make the feature broken if only the menu item was rendered since
|
540
|
-
// it is rendered when the menu appears
|
541
|
-
Storage.startStoreDraft(editor, started);
|
542
|
-
};
|
543
|
-
};
|
544
|
-
|
545
|
-
var register = function (editor, started) {
|
546
|
-
editor.addButton('restoredraft', {
|
547
|
-
title: 'Restore last draft',
|
548
|
-
onclick: function () {
|
549
|
-
Storage.restoreLastDraft(editor);
|
550
|
-
},
|
551
|
-
onPostRender: postRender(editor, started)
|
552
|
-
});
|
553
|
-
|
554
|
-
editor.addMenuItem('restoredraft', {
|
555
|
-
text: 'Restore last draft',
|
556
|
-
onclick: function () {
|
557
|
-
Storage.restoreLastDraft(editor);
|
558
|
-
},
|
559
|
-
onPostRender: postRender(editor, started),
|
560
|
-
context: 'file'
|
177
|
+
});
|
178
|
+
return msg;
|
179
|
+
};
|
180
|
+
var setup = function (editor) {
|
181
|
+
window.onbeforeunload = global$3._beforeUnloadHandler;
|
182
|
+
};
|
183
|
+
var $_6xebc99ejm0ofy43 = { setup: setup };
|
184
|
+
|
185
|
+
var postRender = function (editor, started) {
|
186
|
+
return function (e) {
|
187
|
+
var ctrl = e.control;
|
188
|
+
ctrl.disabled(!$_8h0aas97jm0ofy3d.hasDraft(editor));
|
189
|
+
editor.on('StoreDraft RestoreDraft RemoveDraft', function () {
|
190
|
+
ctrl.disabled(!$_8h0aas97jm0ofy3d.hasDraft(editor));
|
561
191
|
});
|
192
|
+
$_8h0aas97jm0ofy3d.startStoreDraft(editor, started);
|
562
193
|
};
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
194
|
+
};
|
195
|
+
var register = function (editor, started) {
|
196
|
+
editor.addButton('restoredraft', {
|
197
|
+
title: 'Restore last draft',
|
198
|
+
onclick: function () {
|
199
|
+
$_8h0aas97jm0ofy3d.restoreLastDraft(editor);
|
200
|
+
},
|
201
|
+
onPostRender: postRender(editor, started)
|
202
|
+
});
|
203
|
+
editor.addMenuItem('restoredraft', {
|
204
|
+
text: 'Restore last draft',
|
205
|
+
onclick: function () {
|
206
|
+
$_8h0aas97jm0ofy3d.restoreLastDraft(editor);
|
207
|
+
},
|
208
|
+
onPostRender: postRender(editor, started),
|
209
|
+
context: 'file'
|
210
|
+
});
|
211
|
+
};
|
212
|
+
var $_drdg7d9gjm0ofy46 = { register: register };
|
213
|
+
|
214
|
+
global.add('autosave', function (editor) {
|
215
|
+
var started = Cell(false);
|
216
|
+
$_6xebc99ejm0ofy43.setup(editor);
|
217
|
+
$_drdg7d9gjm0ofy46.register(editor, started);
|
218
|
+
return $_7x9aqp96jm0ofy3c.get(editor);
|
219
|
+
});
|
220
|
+
function Plugin () {
|
567
221
|
}
|
568
|
-
);
|
569
|
-
/**
|
570
|
-
* Plugin.js
|
571
|
-
*
|
572
|
-
* Released under LGPL License.
|
573
|
-
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
574
|
-
*
|
575
|
-
* License: http://www.tinymce.com/license
|
576
|
-
* Contributing: http://www.tinymce.com/contributing
|
577
|
-
*/
|
578
222
|
|
579
|
-
|
580
|
-
* This class contains all core logic for the autosave plugin.
|
581
|
-
*
|
582
|
-
* @class tinymce.autosave.Plugin
|
583
|
-
* @private
|
584
|
-
*/
|
585
|
-
define(
|
586
|
-
'tinymce.plugins.autosave.Plugin',
|
587
|
-
[
|
588
|
-
'ephox.katamari.api.Cell',
|
589
|
-
'tinymce.core.PluginManager',
|
590
|
-
'tinymce.plugins.autosave.api.Api',
|
591
|
-
'tinymce.plugins.autosave.core.BeforeUnload',
|
592
|
-
'tinymce.plugins.autosave.ui.Buttons'
|
593
|
-
],
|
594
|
-
function (Cell, PluginManager, Api, BeforeUnload, Buttons) {
|
595
|
-
PluginManager.add('autosave', function (editor) {
|
596
|
-
var started = Cell(false);
|
223
|
+
return Plugin;
|
597
224
|
|
598
|
-
|
599
|
-
Buttons.register(editor, started);
|
600
|
-
|
601
|
-
return Api.get(editor);
|
602
|
-
});
|
603
|
-
|
604
|
-
return function () { };
|
605
|
-
}
|
606
|
-
);
|
607
|
-
dem('tinymce.plugins.autosave.Plugin')();
|
225
|
+
}());
|
608
226
|
})();
|