tenon 1.0.52 → 1.0.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tenon/features/modal_windows.js.coffee +2 -3
- data/app/assets/javascripts/tenon/features/tenon_content/asset_link.js.coffee +3 -3
- data/app/assets/javascripts/tenon/features/tenon_content/editor.js.coffee +1 -1
- data/app/assets/javascripts/tenon/features/tenon_content/image_asset_link.js.coffee +2 -2
- data/app/assets/javascripts/tenon/medium-on-tenon.js +1414 -0
- data/app/assets/javascripts/tenon/tenon_manifest.js +1 -2
- data/app/assets/stylesheets/tenon/colors-named.css.scss +3 -3
- data/app/assets/stylesheets/tenon/ui/medium-editor.css.scss +82 -9
- data/app/assets/stylesheets/tenon/ui/tenon-content.css.scss +37 -39
- data/lib/tenon/version.rb +1 -1
- metadata +4 -4
- data/app/assets/javascripts/tenon/medium_customizations.js +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12efdb2132ac37f0c45dd55ff8aeb98a12b4d713
|
4
|
+
data.tar.gz: d3534d1f973e0bf7c4aaebe27ff17d088aeda27d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0492c40241dbff39027136548cc63890818def45911f6f6bef90b8c6a34f4511329c40146bc2672e4ad069b67ae168a9b0e452d27cd38a3d365771489487ff63
|
7
|
+
data.tar.gz: 2f871e5b06ab79f2465efb930b77599b106ff83a47b8d63132b2d501d22917338a1e67ac1e5806b9ccaeb0a12a11adc179591090e1fc968136123931fee46484
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class Tenon.features.ModalWindows
|
2
2
|
constructor: ->
|
3
3
|
tags = '[data-modal-target], [data-modal-remote], [data-model-content], [data-keyboard]'
|
4
|
-
$(document).on('click', tags, @
|
4
|
+
$(document).on('click', tags, @setupAndLaunch)
|
5
5
|
|
6
|
-
|
6
|
+
setupAndLaunch: (e) =>
|
7
7
|
e.preventDefault()
|
8
8
|
@$link = $(e.currentTarget)
|
9
9
|
@_chooseStrategy()
|
@@ -13,7 +13,6 @@ class Tenon.features.ModalWindows
|
|
13
13
|
@_launchWithTarget() if @$link.data('modal-target')
|
14
14
|
@_launchWithContent() if @$link.data('modal-content')
|
15
15
|
|
16
|
-
|
17
16
|
_launchWithUrl: (e) =>
|
18
17
|
@remote = true
|
19
18
|
Tenon.$genericLoader.show()
|
@@ -1,5 +1,5 @@
|
|
1
|
-
class Tenon.features.tenonContent.
|
1
|
+
class Tenon.features.tenonContent.AssetLink extends Tenon.features.tenonContent.AssetAttachment
|
2
2
|
_setFields: ($li) =>
|
3
|
-
$input = @$browseButton.closest('div').find('input')
|
3
|
+
$input = @$browseButton.closest('div').find('input.medium-editor-toolbar-anchor-input')
|
4
4
|
$input[0].value = $li.data('style-urls')['original']
|
5
|
-
Tenon.
|
5
|
+
Tenon.mediumEditor.createLink($input[0], '')
|
@@ -2,7 +2,7 @@ class Tenon.features.tenonContent.Editor
|
|
2
2
|
constructor: ->
|
3
3
|
$('.tenon-content').on('cocoon:after-insert', @_rowInserted)
|
4
4
|
$('.tenon-content').on('cocoon:after-remove', @_rowRemoved)
|
5
|
-
$(document).on('input', '.editable-text', @_contentUpdated)
|
5
|
+
$(document).on('input keypress paste change', '.editable-text', @_contentUpdated)
|
6
6
|
for div in $('.tn-tc')
|
7
7
|
@_updateButtons($(div))
|
8
8
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
class Tenon.features.tenonContent.
|
1
|
+
class Tenon.features.tenonContent.ImageAssetLink extends Tenon.features.tenonContent.AssetAttachment
|
2
2
|
_setFields: ($li) =>
|
3
3
|
$input = @$browseButton.closest('div').find('input')
|
4
4
|
$input[0].value = $li.data('style-urls')['original']
|
5
|
-
Tenon.
|
5
|
+
Tenon.activeImageControlsLinkForm.saveForm()
|