compass-jquery-plugin 0.3.2.8 → 0.3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -6
- data/VERSION.yml +3 -3
- data/lib/jquery/gridify/grid_column.rb +6 -6
- data/lib/jquery/gridify/grid_options.rb +4 -4
- data/lib/jquery/mark_it_up.rb +2 -0
- data/lib/jquery/mobile.rb +0 -1
- data/templates/dynatree/jquery.dynatree.js +2896 -2880
- data/templates/dynatree/jquery.dynatree.min.js +55 -54
- data/templates/dynatree/jquery/dynatree/aero.scss +4 -2
- data/templates/dynatree/jquery/dynatree/aqua.scss +4 -2
- data/templates/dynatree/jquery/dynatree/crystal.scss +4 -2
- data/templates/dynatree/jquery/dynatree/xp.scss +5 -3
- data/templates/emulators/emulators/bb.playbook.landscape.png +0 -0
- data/templates/emulators/emulators/bb.playbook.landscape.scss +18 -0
- data/templates/emulators/emulators/bb.playbook.portrait.png +0 -0
- data/templates/emulators/emulators/bb.playbook.portrait.scss +18 -0
- data/templates/emulators/emulators/{blackberry.torch.landscape.png → bb.torch.landscape.png} +0 -0
- data/templates/emulators/emulators/{blackberry.torch.landscape.scss → bb.torch.landscape.scss} +1 -3
- data/templates/emulators/emulators/{blackberry.torch.portrait.png → bb.torch.portrait.png} +0 -0
- data/templates/emulators/emulators/{blackberry.torch.portrait.scss → bb.torch.portrait.scss} +1 -3
- data/templates/emulators/emulators/galaxy.ace.landscape.png +0 -0
- data/templates/emulators/emulators/galaxy.ace.landscape.scss +18 -0
- data/templates/emulators/emulators/galaxy.ace.portrait.png +0 -0
- data/templates/emulators/emulators/galaxy.ace.portrait.scss +18 -0
- data/templates/emulators/emulators/galaxy.s.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.s.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.s2.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.s2.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.10.1.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.10.1.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.7.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.7.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.8.9.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.8.9.portrait.scss +0 -2
- data/templates/emulators/emulators/htc.sensation.landscape.png +0 -0
- data/templates/emulators/emulators/htc.sensation.landscape.scss +18 -0
- data/templates/emulators/emulators/htc.sensation.portrait.png +0 -0
- data/templates/emulators/emulators/htc.sensation.portrait.scss +18 -0
- data/templates/emulators/emulators/ipad.landscape.scss +0 -2
- data/templates/emulators/emulators/ipad.portrait.scss +0 -2
- data/templates/emulators/emulators/iphone.3.landscape.scss +0 -2
- data/templates/emulators/emulators/iphone.3.portrait.scss +0 -2
- data/templates/emulators/emulators/{iphone.4.landscape .scss → iphone.4.landscape.scss} +0 -2
- data/templates/emulators/emulators/iphone.4.portrait.scss +0 -2
- data/templates/emulators/emulators/palm.pre.2.landscape.scss +0 -2
- data/templates/emulators/emulators/palm.pre.2.portrait.scss +0 -2
- data/templates/emulators/manifest.rb +17 -5
- data/templates/graphics/highcharts/dark-blue.js +159 -159
- data/templates/graphics/highcharts/dark-green.js +159 -159
- data/templates/graphics/highcharts/gray.js +154 -154
- data/templates/graphics/highcharts/grid.js +84 -84
- data/templates/graphics/highcharts/highslide-config.js +2 -2
- data/templates/graphics/highcharts/highslide-full.js +3310 -3310
- data/templates/graphics/highcharts/skies.js +72 -72
- data/templates/graphics/jquery.ganttView.js +1550 -1550
- data/templates/graphics/jquery.highcharts.js +11277 -11285
- data/templates/graphics/jquery.sparkline.js +1072 -1072
- data/templates/ical/jquery.ical.js +7637 -7637
- data/templates/ical/jquery/ical.print.scss +3 -3
- data/templates/jqgrid/i18n/jqgrid/locale-ar.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +131 -131
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +131 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -132
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +129 -129
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +134 -134
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +129 -129
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +141 -141
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +153 -153
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-mne.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-mne.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +145 -145
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +12 -12
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +126 -126
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +140 -140
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +128 -128
- data/templates/jqgrid/jquery.jqGrid.js +13477 -13443
- data/templates/jqgrid/jquery.jqGrid.min.js +292 -287
- data/templates/jqgrid/jquery/jqGrid.scss +13 -12
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +9601 -9556
- data/templates/jqtouch/jquery.jqtouch.min.js +3 -3
- data/templates/jqtouch/jquery/touch/default.scss +2 -2
- data/templates/jqtouch/jquery/touch/jqt.scss +2 -2
- data/templates/jqtouch/jquery/touch/jqtouch.scss +26 -5
- data/templates/jquery/amplify.store.js +211 -211
- data/templates/jquery/config/initializers/jquery.rb +2 -0
- data/templates/jquery/history.adapter.jquery.js +42 -36
- data/templates/jquery/history.html4.js +563 -563
- data/templates/jquery/history.html4.min.js +5 -5
- data/templates/jquery/history.js +1721 -1694
- data/templates/jquery/history.min.js +28 -27
- data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-az.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +21 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-da.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-es.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-id.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-is.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-it.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-no.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +17 -17
- data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
- data/templates/jquery/jquery-ui.js +11913 -11882
- data/templates/jquery/jquery-ui.min.js +340 -339
- data/templates/jquery/jquery.bgiframe.js +27 -27
- data/templates/jquery/jquery.contextMenu.js +202 -202
- data/templates/jquery/jquery.cookie.js +26 -26
- data/templates/jquery/jquery.dotimeout.js +227 -227
- data/templates/jquery/jquery.dst.js +89 -89
- data/templates/jquery/jquery.easing.js +226 -0
- data/templates/jquery/jquery.easing.min.js +8 -0
- data/templates/jquery/jquery.farbtastic.js +294 -294
- data/templates/jquery/jquery.flashMessages.js +14 -14
- data/templates/jquery/jquery.form.js +761 -761
- data/templates/jquery/jquery.haml.js +247 -247
- data/templates/jquery/jquery.hotkeys.js +79 -79
- data/templates/jquery/jquery.js +1490 -928
- data/templates/jquery/jquery.layout.js +2454 -2454
- data/templates/jquery/jquery.mediahelpers.js +216 -0
- data/templates/jquery/jquery.mediahelpers.min.js +3 -0
- data/templates/jquery/jquery.min.js +177 -166
- data/templates/jquery/jquery.mousewheel.js +57 -57
- data/templates/jquery/jquery.offline.js +171 -171
- data/templates/jquery/jquery.pngFix.js +72 -72
- data/templates/jquery/jquery.rails.js +145 -145
- data/templates/jquery/jquery.replacetext.js +80 -80
- data/templates/jquery/jquery.themeswitchertool.js +195 -195
- data/templates/jquery/jquery.tmpl.js +460 -460
- data/templates/jquery/jquery.tmplPlus.js +78 -78
- data/templates/jquery/jquery.tokeninput.js +480 -475
- data/templates/jquery/jquery/ui/_theme.scss +14 -14
- data/templates/jquery/jquery/ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_ededed_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_c98000_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/jquery/json.js +66 -66
- data/templates/jquery/json2.js +177 -177
- data/templates/jquery/manifest.rb +4 -0
- data/templates/jstree/jquery.jstree.js +5918 -5918
- data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.blue.html.haml +9 -0
- data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.html.haml +9 -0
- data/templates/markitup/app/views/shared/_mark_it_up.preview.blue.html.haml +8 -0
- data/templates/markitup/app/views/shared/_mark_it_up.preview.html.haml +8 -0
- data/templates/markitup/config/initializers/mark_it_up.rb +40 -0
- data/templates/markitup/jquery.markitup.js +586 -0
- data/templates/markitup/jquery.markitup.min.js +1 -0
- data/templates/markitup/jquery/markitup/preview/body.blue.png +0 -0
- data/templates/markitup/jquery/markitup/preview/bullet.blue.png +0 -0
- data/templates/markitup/jquery/markitup/preview/preview.blue.scss +58 -0
- data/templates/markitup/jquery/markitup/preview/preview.scss +7 -0
- data/templates/markitup/jquery/markitup/sets/bbcode.scss +34 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/fonts.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/underline.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css.scss +54 -0
- data/templates/markitup/jquery/markitup/sets/css/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/css.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/tag.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_center.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_justify.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_left.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_right.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_indent.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_letterspacing.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_linespacing.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_lowercase.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_bottom.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_left.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_right.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_top.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_uppercase.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default.scss +22 -0
- data/templates/markitup/jquery/markitup/sets/default/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/url.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/html/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/markdown/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/markmin/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/rest/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile.scss +44 -0
- data/templates/markitup/jquery/markitup/sets/textile/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/table.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy.scss +40 -0
- data/templates/markitup/jquery/markitup/sets/texy/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/disconnect.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/page_white_code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags.scss +44 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/disconnect.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/underline.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/wiki/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/table.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/url.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua.scss +136 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-container-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-footer-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-footer.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-header-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-header.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/spacer.gif +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor.scss +141 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-bbcode.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-dotclear.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-html.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-markdown.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-textile.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-wiki.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live.scss +135 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-footer.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-header.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup.scss +150 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-html.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-json.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-markdown.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-textile.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-wiki.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-xml.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple.scss +117 -0
- data/templates/markitup/jquery/markitup/skins/simple/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple/submenu.png +0 -0
- data/templates/markitup/manifest.rb +311 -0
- data/templates/markitup/markitup/jquery.markitup.set.bbcode.js +40 -0
- data/templates/markitup/markitup/jquery.markitup.set.bbcode.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.css.js +53 -0
- data/templates/markitup/markitup/jquery.markitup.set.css.min.js +5 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.js +30 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.min.js +2 -0
- data/templates/markitup/markitup/jquery.markitup.set.dotclear.js +38 -0
- data/templates/markitup/markitup/jquery.markitup.set.dotclear.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.html.js +40 -0
- data/templates/markitup/markitup/jquery.markitup.set.html.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.markdown.js +53 -0
- data/templates/markitup/markitup/jquery.markitup.set.markdown.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.markmin.js +50 -0
- data/templates/markitup/markitup/jquery.markitup.set.markmin.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.rest.js +52 -0
- data/templates/markitup/markitup/jquery.markitup.set.rest.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.textile.js +58 -0
- data/templates/markitup/markitup/jquery.markitup.set.textile.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.texy.js +52 -0
- data/templates/markitup/markitup/jquery.markitup.set.texy.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.txt2tags.js +42 -0
- data/templates/markitup/markitup/jquery.markitup.set.txt2tags.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.wiki.js +61 -0
- data/templates/markitup/markitup/jquery.markitup.set.wiki.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.xbbcode.js +36 -0
- data/templates/markitup/markitup/jquery.markitup.set.xbbcode.min.js +4 -0
- data/templates/mobile/config/initializers/mobile.rb +2 -0
- data/templates/mobile/jquery.mobile.js +4545 -4454
- data/templates/mobile/jquery.mobile.min.js +16 -7
- data/templates/mobile/jquery/mobile/960.fluid.scss +191 -0
- data/templates/mobile/jquery/mobile/960.scss +213 -0
- data/templates/mobile/jquery/mobile/_base.scss +37 -20
- data/templates/mobile/jquery/mobile/default.scss +48 -56
- data/templates/mobile/jquery/mobile/valencia.scss +43 -44
- data/templates/mobile/manifest.rb +2 -0
- data/templates/ribbon/jquery.ribbon.js +195 -195
- data/templates/ribbon/jquery.ribbon.min.js +1 -1
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/secret_sauce/secret_sauce.js +8 -8
- data/templates/tools/flowplayer.js +897 -897
- data/templates/tools/jquery.tools.js +3647 -3647
- data/templates/tools/jquery.tools.min.js +47 -47
- data/templates/tools/swfobject.js +760 -760
- metadata +350 -22
@@ -0,0 +1,9 @@
|
|
1
|
+
!!!
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
|
3
|
+
%head
|
4
|
+
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
5
|
+
%title markItUp! preview template
|
6
|
+
= stylesheet_link_tag :markitup_preview_blue, :media => 'screen, projection'
|
7
|
+
%body
|
8
|
+
= raw parsed_content
|
9
|
+
/ content
|
@@ -0,0 +1,9 @@
|
|
1
|
+
!!!
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
|
3
|
+
%head
|
4
|
+
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
5
|
+
%title markItUp! preview template
|
6
|
+
= stylesheet_link_tag :markitup_preview, :media => 'screen, projection'
|
7
|
+
%body
|
8
|
+
= raw parsed_content
|
9
|
+
/ content
|
@@ -0,0 +1,8 @@
|
|
1
|
+
!!!
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
|
3
|
+
%head
|
4
|
+
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
5
|
+
%title markItUp! preview template
|
6
|
+
= stylesheet_link_tag :markitup_preview_blue, :media => 'screen, projection'
|
7
|
+
%body
|
8
|
+
/ content
|
@@ -0,0 +1,8 @@
|
|
1
|
+
!!!
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
|
3
|
+
%head
|
4
|
+
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
5
|
+
%title markItUp! preview template
|
6
|
+
= stylesheet_link_tag :markitup_preview, :media => 'screen, projection'
|
7
|
+
%body
|
8
|
+
/ content
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'jquery/mark_it_up'
|
2
|
+
|
3
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup => ['jquery.markitup.min']
|
4
|
+
|
5
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_preview => ['compiled/jquery/markitup/preview/preview.css']
|
6
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_preview_blue => ['compiled/jquery/markitup/preview/preview.blue.css']
|
7
|
+
|
8
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_default => ['compiled/jquery/markitup/sets/default.css']
|
9
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_bbcode => ['compiled/jquery/markitup/sets/bbcode.css']
|
10
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_xbbcode => ['compiled/jquery/markitup/sets/xbbcode.css']
|
11
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_css => ['compiled/jquery/markitup/sets/css.css']
|
12
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_dotclear => ['compiled/jquery/markitup/sets/dotclear.css']
|
13
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_html => ['compiled/jquery/markitup/sets/html.css']
|
14
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_markdown => ['compiled/jquery/markitup/sets/markdown.css']
|
15
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_markmin => ['compiled/jquery/markitup/sets/markmin.css']
|
16
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_rest => ['compiled/jquery/markitup/sets/rest.css']
|
17
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_textile => ['compiled/jquery/markitup/sets/textile.css']
|
18
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_texy => ['compiled/jquery/markitup/sets/texy.css']
|
19
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_txt2tags => ['compiled/jquery/markitup/sets/txt2tags.css']
|
20
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_set_wiki => ['compiled/jquery/markitup/sets/wiki.css']
|
21
|
+
|
22
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_default => ['markitup/jquery.markitup.set.default.min']
|
23
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_bbcode => ['markitup/jquery.markitup.set.bbcode.min']
|
24
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_xbbcode => ['markitup/jquery.markitup.set.xbbcode.min']
|
25
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_css => ['markitup/jquery.markitup.set.css.min']
|
26
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_dotclear => ['markitup/jquery.markitup.set.dotclear.min']
|
27
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_html => ['markitup/jquery.markitup.set.html.min']
|
28
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_markdown => ['markitup/jquery.markitup.set.markdown.min']
|
29
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_markmin => ['markitup/jquery.markitup.set.markmin.min']
|
30
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_rest => ['markitup/jquery.markitup.set.rest.min']
|
31
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_textile => ['markitup/jquery.markitup.set.textile.min']
|
32
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_texy => ['markitup/jquery.markitup.set.texy.min']
|
33
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_txt2tags => ['markitup/jquery.markitup.set.txt2tags.min']
|
34
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :markitup_set_wiki => ['markitup/jquery.markitup.set.wiki.min']
|
35
|
+
|
36
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_skin_markitup => ['compiled/jquery/markitup/skins/markitup.css']
|
37
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_skin_aqua => ['compiled/jquery/markitup/skins/aqua.css']
|
38
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_skin_jtag => ['compiled/jquery/markitup/skins/jtageditor.css']
|
39
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_skin_live => ['compiled/jquery/markitup/skins/live.css']
|
40
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :markitup_skin_simple => ['compiled/jquery/markitup/skins/simple.css']
|
@@ -0,0 +1,586 @@
|
|
1
|
+
// ----------------------------------------------------------------------------
|
2
|
+
// markItUp! Universal MarkUp Engine, JQuery plugin
|
3
|
+
// v 1.1.x
|
4
|
+
// Dual licensed under the MIT and GPL licenses.
|
5
|
+
// ----------------------------------------------------------------------------
|
6
|
+
// Copyright (C) 2007-2010 Jay Salvat
|
7
|
+
// http://mark_it_up.rb.jaysalvat.com/
|
8
|
+
// ----------------------------------------------------------------------------
|
9
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
10
|
+
// of this software and associated documentation files (the "Software"), to deal
|
11
|
+
// in the Software without restriction, including without limitation the rights
|
12
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13
|
+
// copies of the Software, and to permit persons to whom the Software is
|
14
|
+
// furnished to do so, subject to the following conditions:
|
15
|
+
//
|
16
|
+
// The above copyright notice and this permission notice shall be included in
|
17
|
+
// all copies or substantial portions of the Software.
|
18
|
+
//
|
19
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
25
|
+
// THE SOFTWARE.
|
26
|
+
// ----------------------------------------------------------------------------
|
27
|
+
(function($) {
|
28
|
+
$.fn.markItUp = function(settings, extraSettings) {
|
29
|
+
var options, ctrlKey, shiftKey, altKey;
|
30
|
+
ctrlKey = shiftKey = altKey = false;
|
31
|
+
|
32
|
+
options = { id: '',
|
33
|
+
nameSpace: '',
|
34
|
+
root: '',
|
35
|
+
previewInWindow: '', // 'width=800, height=600, resizable=yes, scrollbars=yes'
|
36
|
+
previewAutoRefresh: true,
|
37
|
+
previewPosition: 'after',
|
38
|
+
previewTemplatePath: '~/templates/preview.html',
|
39
|
+
previewParserPath: '',
|
40
|
+
previewParserVar: 'data',
|
41
|
+
resizeHandle: true,
|
42
|
+
beforeInsert: '',
|
43
|
+
afterInsert: '',
|
44
|
+
onEnter: {},
|
45
|
+
onShiftEnter: {},
|
46
|
+
onCtrlEnter: {},
|
47
|
+
onTab: {},
|
48
|
+
markupSet: [
|
49
|
+
{ /* set */ }
|
50
|
+
]
|
51
|
+
};
|
52
|
+
$.extend(options, settings, extraSettings);
|
53
|
+
|
54
|
+
// compute markItUp! path
|
55
|
+
if (!options.root) {
|
56
|
+
$('script').each(function(a, tag) {
|
57
|
+
miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
|
58
|
+
if (miuScript !== null) {
|
59
|
+
options.root = miuScript[1];
|
60
|
+
}
|
61
|
+
});
|
62
|
+
}
|
63
|
+
|
64
|
+
return this.each(function() {
|
65
|
+
var $$, textarea, levels, scrollPosition, caretPosition, caretOffset,
|
66
|
+
clicked, hash, header, footer, previewWindow, template, iFrame, abort;
|
67
|
+
$$ = $(this);
|
68
|
+
textarea = this;
|
69
|
+
levels = [];
|
70
|
+
abort = false;
|
71
|
+
scrollPosition = caretPosition = 0;
|
72
|
+
caretOffset = -1;
|
73
|
+
|
74
|
+
options.previewParserPath = localize(options.previewParserPath);
|
75
|
+
options.previewTemplatePath = localize(options.previewTemplatePath);
|
76
|
+
|
77
|
+
// apply the computed path to ~/
|
78
|
+
function localize(data, inText) {
|
79
|
+
if (inText) {
|
80
|
+
return data.replace(/("|')~\//g, "$1" + options.root);
|
81
|
+
}
|
82
|
+
return data.replace(/^~\//, options.root);
|
83
|
+
}
|
84
|
+
|
85
|
+
// init and build editor
|
86
|
+
function init() {
|
87
|
+
id = '';
|
88
|
+
nameSpace = '';
|
89
|
+
if (options.id) {
|
90
|
+
id = 'id="' + options.id + '"';
|
91
|
+
} else if ($$.attr("id")) {
|
92
|
+
id = 'id="markItUp' + ($$.attr("id").substr(0, 1).toUpperCase()) + ($$.attr("id").substr(1)) + '"';
|
93
|
+
|
94
|
+
}
|
95
|
+
if (options.nameSpace) {
|
96
|
+
nameSpace = 'class="' + options.nameSpace + '"';
|
97
|
+
}
|
98
|
+
$$.wrap('<div ' + nameSpace + '></div>');
|
99
|
+
$$.wrap('<div ' + id + ' class="markItUp"></div>');
|
100
|
+
$$.wrap('<div class="markItUpContainer"></div>');
|
101
|
+
$$.addClass("markItUpEditor");
|
102
|
+
|
103
|
+
// add the header before the textarea
|
104
|
+
header = $('<div class="markItUpHeader"></div>').insertBefore($$);
|
105
|
+
$(dropMenus(options.markupSet)).appendTo(header);
|
106
|
+
|
107
|
+
// add the footer after the textarea
|
108
|
+
footer = $('<div class="markItUpFooter"></div>').insertAfter($$);
|
109
|
+
|
110
|
+
// add the resize handle after textarea
|
111
|
+
if (options.resizeHandle === true && $.browser.safari !== true) {
|
112
|
+
resizeHandle = $('<div class="markItUpResizeHandle"></div>')
|
113
|
+
.insertAfter($$)
|
114
|
+
.bind("mousedown", function(e) {
|
115
|
+
var h = $$.height(), y = e.clientY, mouseMove, mouseUp;
|
116
|
+
mouseMove = function(e) {
|
117
|
+
$$.css("height", Math.max(20, e.clientY + h - y) + "px");
|
118
|
+
return false;
|
119
|
+
};
|
120
|
+
mouseUp = function(e) {
|
121
|
+
$("html").unbind("mousemove", mouseMove).unbind("mouseup", mouseUp);
|
122
|
+
return false;
|
123
|
+
};
|
124
|
+
$("html").bind("mousemove", mouseMove).bind("mouseup", mouseUp);
|
125
|
+
});
|
126
|
+
footer.append(resizeHandle);
|
127
|
+
}
|
128
|
+
|
129
|
+
// listen key events
|
130
|
+
$$.keydown(keyPressed).keyup(keyPressed);
|
131
|
+
|
132
|
+
// bind an event to catch external calls
|
133
|
+
$$.bind("insertion", function(e, settings) {
|
134
|
+
if (settings.target !== false) {
|
135
|
+
get();
|
136
|
+
}
|
137
|
+
if (textarea === $.markItUp.focused) {
|
138
|
+
markup(settings);
|
139
|
+
}
|
140
|
+
});
|
141
|
+
|
142
|
+
// remember the last focus
|
143
|
+
$$.focus(function() {
|
144
|
+
$.markItUp.focused = this;
|
145
|
+
});
|
146
|
+
}
|
147
|
+
|
148
|
+
// recursively build header with dropMenus from markupset
|
149
|
+
function dropMenus(markupSet) {
|
150
|
+
var ul = $('<ul></ul>'), i = 0;
|
151
|
+
$('li:hover > ul', ul).css('display', 'block');
|
152
|
+
$.each(markupSet, function() {
|
153
|
+
var button = this, t = '', title, li, j;
|
154
|
+
title = (button.key) ? (button.name || '') + ' [Ctrl+' + button.key + ']' : (button.name || '');
|
155
|
+
key = (button.key) ? 'accesskey="' + button.key + '"' : '';
|
156
|
+
if (button.separator) {
|
157
|
+
li = $('<li class="markItUpSeparator">' + (button.separator || '') + '</li>').appendTo(ul);
|
158
|
+
} else {
|
159
|
+
i++;
|
160
|
+
for (j = levels.length - 1; j >= 0; j--) {
|
161
|
+
t += levels[j] + "-";
|
162
|
+
}
|
163
|
+
li = $('<li class="markItUpButton markItUpButton' + t + (i) + ' ' + (button.className || '') + '"><a href="" ' + key + ' title="' + title + '">' + (button.name || '') + '</a></li>')
|
164
|
+
.bind("contextmenu",
|
165
|
+
function() { // prevent contextmenu on mac and allow ctrl+click
|
166
|
+
return false;
|
167
|
+
}).click(
|
168
|
+
function() {
|
169
|
+
return false;
|
170
|
+
}).bind("focusin",
|
171
|
+
function() {
|
172
|
+
$$.focus();
|
173
|
+
}).mousedown(
|
174
|
+
function() {
|
175
|
+
if (button.call) {
|
176
|
+
eval(button.call)();
|
177
|
+
}
|
178
|
+
setTimeout(function() {
|
179
|
+
markup(button)
|
180
|
+
}, 1);
|
181
|
+
return false;
|
182
|
+
}).hover(
|
183
|
+
function() {
|
184
|
+
$('> ul', this).show();
|
185
|
+
$(document).one('click', function() { // close dropmenu if click outside
|
186
|
+
$('ul ul', header).hide();
|
187
|
+
}
|
188
|
+
);
|
189
|
+
},
|
190
|
+
function() {
|
191
|
+
$('> ul', this).hide();
|
192
|
+
}
|
193
|
+
).appendTo(ul);
|
194
|
+
if (button.dropMenu) {
|
195
|
+
levels.push(i);
|
196
|
+
$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu));
|
197
|
+
}
|
198
|
+
}
|
199
|
+
});
|
200
|
+
levels.pop();
|
201
|
+
return ul;
|
202
|
+
}
|
203
|
+
|
204
|
+
// markItUp! markups
|
205
|
+
function magicMarkups(string) {
|
206
|
+
if (string) {
|
207
|
+
string = string.toString();
|
208
|
+
string = string.replace(/\(\!\(([\s\S]*?)\)\!\)/g,
|
209
|
+
function(x, a) {
|
210
|
+
var b = a.split('|!|');
|
211
|
+
if (altKey === true) {
|
212
|
+
return (b[1] !== undefined) ? b[1] : b[0];
|
213
|
+
} else {
|
214
|
+
return (b[1] === undefined) ? "" : b[0];
|
215
|
+
}
|
216
|
+
}
|
217
|
+
);
|
218
|
+
// [![prompt]!], [![prompt:!:value]!]
|
219
|
+
string = string.replace(/\[\!\[([\s\S]*?)\]\!\]/g,
|
220
|
+
function(x, a) {
|
221
|
+
var b = a.split(':!:');
|
222
|
+
if (abort === true) {
|
223
|
+
return false;
|
224
|
+
}
|
225
|
+
value = prompt(b[0], (b[1]) ? b[1] : '');
|
226
|
+
if (value === null) {
|
227
|
+
abort = true;
|
228
|
+
}
|
229
|
+
return value;
|
230
|
+
}
|
231
|
+
);
|
232
|
+
return string;
|
233
|
+
}
|
234
|
+
return "";
|
235
|
+
}
|
236
|
+
|
237
|
+
// prepare action
|
238
|
+
function prepare(action) {
|
239
|
+
if ($.isFunction(action)) {
|
240
|
+
action = action(hash);
|
241
|
+
}
|
242
|
+
return magicMarkups(action);
|
243
|
+
}
|
244
|
+
|
245
|
+
// build block to insert
|
246
|
+
function build(string) {
|
247
|
+
var openWith = prepare(clicked.openWith);
|
248
|
+
var placeHolder = prepare(clicked.placeHolder);
|
249
|
+
var replaceWith = prepare(clicked.replaceWith);
|
250
|
+
var closeWith = prepare(clicked.closeWith);
|
251
|
+
if (replaceWith !== "") {
|
252
|
+
block = openWith + replaceWith + closeWith;
|
253
|
+
} else if (selection === '' && placeHolder !== '') {
|
254
|
+
block = openWith + placeHolder + closeWith;
|
255
|
+
} else {
|
256
|
+
string = string || selection;
|
257
|
+
if (string.match(/ $/)) {
|
258
|
+
block = openWith + string.replace(/ $/, '') + closeWith + ' ';
|
259
|
+
} else {
|
260
|
+
block = openWith + string + closeWith;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
return { block:block,
|
264
|
+
openWith:openWith,
|
265
|
+
replaceWith:replaceWith,
|
266
|
+
placeHolder:placeHolder,
|
267
|
+
closeWith:closeWith
|
268
|
+
};
|
269
|
+
}
|
270
|
+
|
271
|
+
// define markup to insert
|
272
|
+
function markup(button) {
|
273
|
+
var len, j, n, i;
|
274
|
+
hash = clicked = button;
|
275
|
+
get();
|
276
|
+
|
277
|
+
$.extend(hash, { line:"",
|
278
|
+
root:options.root,
|
279
|
+
textarea:textarea,
|
280
|
+
selection:(selection || ''),
|
281
|
+
caretPosition:caretPosition,
|
282
|
+
ctrlKey:ctrlKey,
|
283
|
+
shiftKey:shiftKey,
|
284
|
+
altKey:altKey
|
285
|
+
}
|
286
|
+
);
|
287
|
+
// callbacks before insertion
|
288
|
+
prepare(options.beforeInsert);
|
289
|
+
prepare(clicked.beforeInsert);
|
290
|
+
if (ctrlKey === true && shiftKey === true) {
|
291
|
+
prepare(clicked.beforeMultiInsert);
|
292
|
+
}
|
293
|
+
$.extend(hash, { line:1 });
|
294
|
+
|
295
|
+
if (ctrlKey === true && shiftKey === true) {
|
296
|
+
lines = selection.split(/\r?\n/);
|
297
|
+
for (j = 0,n = lines.length,i = 0; i < n; i++) {
|
298
|
+
if ($.trim(lines[i]) !== '') {
|
299
|
+
$.extend(hash, { line:++j, selection:lines[i] });
|
300
|
+
lines[i] = build(lines[i]).block;
|
301
|
+
} else {
|
302
|
+
lines[i] = "";
|
303
|
+
}
|
304
|
+
}
|
305
|
+
string = { block:lines.join('\n')};
|
306
|
+
start = caretPosition;
|
307
|
+
len = string.block.length + (($.browser.opera) ? n - 1 : 0);
|
308
|
+
} else if (ctrlKey === true) {
|
309
|
+
string = build(selection);
|
310
|
+
start = caretPosition + string.openWith.length;
|
311
|
+
len = string.block.length - string.openWith.length - string.closeWith.length;
|
312
|
+
len = len - (string.block.match(/ $/) ? 1 : 0);
|
313
|
+
len -= fixIeBug(string.block);
|
314
|
+
} else if (shiftKey === true) {
|
315
|
+
string = build(selection);
|
316
|
+
start = caretPosition;
|
317
|
+
len = string.block.length;
|
318
|
+
len -= fixIeBug(string.block);
|
319
|
+
} else {
|
320
|
+
string = build(selection);
|
321
|
+
start = caretPosition + string.block.length;
|
322
|
+
len = 0;
|
323
|
+
start -= fixIeBug(string.block);
|
324
|
+
}
|
325
|
+
if ((selection === '' && string.replaceWith === '')) {
|
326
|
+
caretOffset += fixOperaBug(string.block);
|
327
|
+
|
328
|
+
start = caretPosition + string.openWith.length;
|
329
|
+
len = string.block.length - string.openWith.length - string.closeWith.length;
|
330
|
+
|
331
|
+
caretOffset = $$.val().substring(caretPosition, $$.val().length).length;
|
332
|
+
caretOffset -= fixOperaBug($$.val().substring(0, caretPosition));
|
333
|
+
}
|
334
|
+
$.extend(hash, { caretPosition:caretPosition, scrollPosition:scrollPosition });
|
335
|
+
|
336
|
+
if (string.block !== selection && abort === false) {
|
337
|
+
insert(string.block);
|
338
|
+
set(start, len);
|
339
|
+
} else {
|
340
|
+
caretOffset = -1;
|
341
|
+
}
|
342
|
+
get();
|
343
|
+
|
344
|
+
$.extend(hash, { line:'', selection:selection });
|
345
|
+
|
346
|
+
// callbacks after insertion
|
347
|
+
if (ctrlKey === true && shiftKey === true) {
|
348
|
+
prepare(clicked.afterMultiInsert);
|
349
|
+
}
|
350
|
+
prepare(clicked.afterInsert);
|
351
|
+
prepare(options.afterInsert);
|
352
|
+
|
353
|
+
// refresh preview if opened
|
354
|
+
if (previewWindow && options.previewAutoRefresh) {
|
355
|
+
refreshPreview();
|
356
|
+
}
|
357
|
+
|
358
|
+
// reinit keyevent
|
359
|
+
shiftKey = altKey = ctrlKey = abort = false;
|
360
|
+
}
|
361
|
+
|
362
|
+
// Substract linefeed in Opera
|
363
|
+
function fixOperaBug(string) {
|
364
|
+
if ($.browser.opera) {
|
365
|
+
return string.length - string.replace(/\n*/g, '').length;
|
366
|
+
}
|
367
|
+
return 0;
|
368
|
+
}
|
369
|
+
|
370
|
+
// Substract linefeed in IE
|
371
|
+
function fixIeBug(string) {
|
372
|
+
if ($.browser.msie) {
|
373
|
+
return string.length - string.replace(/\r/g, '').length;
|
374
|
+
}
|
375
|
+
return 0;
|
376
|
+
}
|
377
|
+
|
378
|
+
// add markup
|
379
|
+
function insert(block) {
|
380
|
+
if (document.selection) {
|
381
|
+
var newSelection = document.selection.createRange();
|
382
|
+
newSelection.text = block;
|
383
|
+
} else {
|
384
|
+
textarea.value = textarea.value.substring(0, caretPosition) + block + textarea.value.substring(caretPosition + selection.length, textarea.value.length);
|
385
|
+
}
|
386
|
+
}
|
387
|
+
|
388
|
+
// set a selection
|
389
|
+
function set(start, len) {
|
390
|
+
if (textarea.createTextRange) {
|
391
|
+
// quick fix to make it work on Opera 9.5
|
392
|
+
if ($.browser.opera && $.browser.version >= 9.5 && len == 0) {
|
393
|
+
return false;
|
394
|
+
}
|
395
|
+
range = textarea.createTextRange();
|
396
|
+
range.collapse(true);
|
397
|
+
range.moveStart('character', start);
|
398
|
+
range.moveEnd('character', len);
|
399
|
+
range.select();
|
400
|
+
} else if (textarea.setSelectionRange) {
|
401
|
+
textarea.setSelectionRange(start, start + len);
|
402
|
+
}
|
403
|
+
textarea.scrollTop = scrollPosition;
|
404
|
+
textarea.focus();
|
405
|
+
}
|
406
|
+
|
407
|
+
// get the selection
|
408
|
+
function get() {
|
409
|
+
textarea.focus();
|
410
|
+
|
411
|
+
scrollPosition = textarea.scrollTop;
|
412
|
+
if (document.selection) {
|
413
|
+
selection = document.selection;
|
414
|
+
if ($.browser.msie) { // ie
|
415
|
+
var range = selection.createRange();
|
416
|
+
var stored_range = range.duplicate();
|
417
|
+
stored_range.moveToElementText(textarea);
|
418
|
+
stored_range.setEndPoint('EndToEnd', range);
|
419
|
+
var s = stored_range.text.length - range.text.length;
|
420
|
+
|
421
|
+
caretPosition = s - (textarea.value.substr(0, s).length - textarea.value.substr(0, s).replace(/\r/g, '').length);
|
422
|
+
selection = range.text;
|
423
|
+
} else { // opera
|
424
|
+
caretPosition = textarea.selectionStart;
|
425
|
+
}
|
426
|
+
} else { // gecko & webkit
|
427
|
+
caretPosition = textarea.selectionStart;
|
428
|
+
selection = textarea.value.substring(caretPosition, textarea.selectionEnd);
|
429
|
+
}
|
430
|
+
return selection;
|
431
|
+
}
|
432
|
+
|
433
|
+
// open preview window
|
434
|
+
function preview() {
|
435
|
+
if (!previewWindow || previewWindow.closed) {
|
436
|
+
if (options.previewInWindow) {
|
437
|
+
previewWindow = window.open('', 'preview', options.previewInWindow);
|
438
|
+
$(window).unload(function() {
|
439
|
+
previewWindow.close();
|
440
|
+
});
|
441
|
+
} else {
|
442
|
+
iFrame = $('<iframe class="markItUpPreviewFrame"></iframe>');
|
443
|
+
if (options.previewPosition == 'after') {
|
444
|
+
iFrame.insertAfter(footer);
|
445
|
+
} else {
|
446
|
+
iFrame.insertBefore(header);
|
447
|
+
}
|
448
|
+
previewWindow = iFrame[iFrame.length - 1].contentWindow || frame[iFrame.length - 1];
|
449
|
+
}
|
450
|
+
} else if (altKey === true) {
|
451
|
+
if (iFrame) {
|
452
|
+
iFrame.remove();
|
453
|
+
} else {
|
454
|
+
previewWindow.close();
|
455
|
+
}
|
456
|
+
previewWindow = iFrame = false;
|
457
|
+
}
|
458
|
+
if (!options.previewAutoRefresh) {
|
459
|
+
refreshPreview();
|
460
|
+
}
|
461
|
+
if (options.previewInWindow) {
|
462
|
+
previewWindow.focus();
|
463
|
+
}
|
464
|
+
}
|
465
|
+
|
466
|
+
// refresh Preview window
|
467
|
+
function refreshPreview() {
|
468
|
+
renderPreview();
|
469
|
+
}
|
470
|
+
|
471
|
+
function renderPreview() {
|
472
|
+
var phtml;
|
473
|
+
if (options.previewParserPath !== '') {
|
474
|
+
$.ajax({
|
475
|
+
type: 'POST',
|
476
|
+
dataType: 'text',
|
477
|
+
global: false,
|
478
|
+
url: options.previewParserPath,
|
479
|
+
data: options.previewParserVar + '=' + encodeURIComponent($$.val()),
|
480
|
+
success: function(data) {
|
481
|
+
writeInPreview(localize(data, 1));
|
482
|
+
}
|
483
|
+
});
|
484
|
+
} else {
|
485
|
+
if (!template) {
|
486
|
+
$.ajax({
|
487
|
+
url: options.previewTemplatePath,
|
488
|
+
dataType: 'text',
|
489
|
+
global: false,
|
490
|
+
success: function(data) {
|
491
|
+
writeInPreview(localize(data, 1).replace(/<!-- content -->/g, $$.val()));
|
492
|
+
}
|
493
|
+
});
|
494
|
+
}
|
495
|
+
}
|
496
|
+
return false;
|
497
|
+
}
|
498
|
+
|
499
|
+
function writeInPreview(data) {
|
500
|
+
if (previewWindow.document) {
|
501
|
+
try {
|
502
|
+
sp = previewWindow.document.documentElement.scrollTop
|
503
|
+
} catch(e) {
|
504
|
+
sp = 0;
|
505
|
+
}
|
506
|
+
previewWindow.document.open();
|
507
|
+
previewWindow.document.write(data);
|
508
|
+
previewWindow.document.close();
|
509
|
+
previewWindow.document.documentElement.scrollTop = sp;
|
510
|
+
}
|
511
|
+
}
|
512
|
+
|
513
|
+
// set keys pressed
|
514
|
+
function keyPressed(e) {
|
515
|
+
shiftKey = e.shiftKey;
|
516
|
+
altKey = e.altKey;
|
517
|
+
ctrlKey = (!(e.altKey && e.ctrlKey)) ? e.ctrlKey : false;
|
518
|
+
|
519
|
+
if (e.type === 'keydown') {
|
520
|
+
if (ctrlKey === true) {
|
521
|
+
li = $("a[accesskey=" + String.fromCharCode(e.keyCode) + "]", header).parent('li');
|
522
|
+
if (li.length !== 0) {
|
523
|
+
ctrlKey = false;
|
524
|
+
setTimeout(function() {
|
525
|
+
li.triggerHandler('mousedown');
|
526
|
+
}, 1);
|
527
|
+
return false;
|
528
|
+
}
|
529
|
+
}
|
530
|
+
if (e.keyCode === 13 || e.keyCode === 10) { // Enter key
|
531
|
+
if (ctrlKey === true) { // Enter + Ctrl
|
532
|
+
ctrlKey = false;
|
533
|
+
markup(options.onCtrlEnter);
|
534
|
+
return options.onCtrlEnter.keepDefault;
|
535
|
+
} else if (shiftKey === true) { // Enter + Shift
|
536
|
+
shiftKey = false;
|
537
|
+
markup(options.onShiftEnter);
|
538
|
+
return options.onShiftEnter.keepDefault;
|
539
|
+
} else { // only Enter
|
540
|
+
markup(options.onEnter);
|
541
|
+
return options.onEnter.keepDefault;
|
542
|
+
}
|
543
|
+
}
|
544
|
+
if (e.keyCode === 9) { // Tab key
|
545
|
+
if (shiftKey == true || ctrlKey == true || altKey == true) {
|
546
|
+
return false;
|
547
|
+
}
|
548
|
+
if (caretOffset !== -1) {
|
549
|
+
get();
|
550
|
+
caretOffset = $$.val().length - caretOffset;
|
551
|
+
set(caretOffset, 0);
|
552
|
+
caretOffset = -1;
|
553
|
+
return false;
|
554
|
+
} else {
|
555
|
+
markup(options.onTab);
|
556
|
+
return options.onTab.keepDefault;
|
557
|
+
}
|
558
|
+
}
|
559
|
+
}
|
560
|
+
}
|
561
|
+
|
562
|
+
init();
|
563
|
+
});
|
564
|
+
};
|
565
|
+
|
566
|
+
$.fn.markItUpRemove = function() {
|
567
|
+
return this.each(function() {
|
568
|
+
var $$ = $(this).unbind().removeClass('markItUpEditor');
|
569
|
+
$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$);
|
570
|
+
}
|
571
|
+
);
|
572
|
+
};
|
573
|
+
|
574
|
+
$.markItUp = function(settings) {
|
575
|
+
var options = { target:false };
|
576
|
+
$.extend(options, settings);
|
577
|
+
if (options.target) {
|
578
|
+
return $(options.target).each(function() {
|
579
|
+
$(this).focus();
|
580
|
+
$(this).trigger('insertion', [options]);
|
581
|
+
});
|
582
|
+
} else {
|
583
|
+
$('textarea').trigger('insertion', [options]);
|
584
|
+
}
|
585
|
+
};
|
586
|
+
})(jQuery);
|