type_station 0.4.0 → 0.4.1
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/type_station/editables/text_html_editor.js.coffee +3 -20
- data/app/assets/stylesheets/type_station/admin_bar.css.scss +1 -0
- data/lib/type_station/version.rb +1 -1
- data/spec/dummy/log/development.log +555 -0
- data/spec/dummy/tmp/cache/assets/development/sass/631a1227c978d11ae414a23c82459b12296c5574/admin_bar.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1057bd97781bd01e53c6be1c18815331 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f14bda8290314a0fd6c175fcad55e69 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3203d681677ab8bf95858a71dca72ad1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/412cf59ab3b41a364279e5d53ad68152 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4c48023968030daffd8c05e4e1ea78bf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6527d2ff5eb008ef2a32f7796a6490d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6694f57666543a152f6f95b772233bd3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/722eee3ce416c20905dda68eab3d517e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/82cfb0f0bcd16b930ec1befc0d5cd8b8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/83c193129690d0c85c5370d822c4da82 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8db596b50a3235e0956dfbc06ac6c990 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9a5b201b4dddc98127641bcf852a4ea8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a0c3540cd0a5390bd8985db285d1574f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aa9f5420651d522078eadd9de8350d35 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/afa9de4377b9615980b737000fc68a2a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bb1b5b9fd84c67b2b994666f8162e79b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bf1e850366946d51a864f66042acb16d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c4b181c541556124b2275b0ae4a94461 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cf6bd170bc3f231ca9da6434bd53359b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ddf237d5e172776d2061090bbf8fc6a5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e1bc9024b810c879e24aa1de0f013358 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ea306a2a3565b22cd16bf45555e751b5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f8a56681cc92b0dba2c2fdb753933a8b +0 -0
- data/vendor/assets/javascripts/medium-editor.js +39 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a1aea997696a5c444c4669d221ed0c5e54e266
|
4
|
+
data.tar.gz: ed7299702f600406319a6d368e0e464fe39d4d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eccdbb35e360044462d62551cd51f4bf3fb619c8f099f234e6e411598ed9be8c348172ca7bc9ec45b66e1e1857d073ff971d3b901f8caa77e9e88d684ce79de2
|
7
|
+
data.tar.gz: bb321176b0d96bcfb4b25c3cb34aa0382f78bcd4aee7f4165f42dbe462954d00248db58bdd522446b3591db0074791d30bbdd79ccd12d4e20266f477a05dc21a
|
@@ -1,17 +1,8 @@
|
|
1
|
-
hasFontAwesome = false
|
2
1
|
updateGlobalValue = ($el, value) ->
|
3
2
|
match = "[data-ts-field=#{$el.data('ts-field')}][data-ts-id=#{$el.data('ts-id')}]"
|
4
3
|
$("input#{match}").not($el).val(value)
|
5
4
|
$("#{match}").not(':input').not($el).html(value)
|
6
5
|
|
7
|
-
haveFontAwesome = ->
|
8
|
-
unless hasFontAwesome
|
9
|
-
for k, stylesheet of document.styleSheets
|
10
|
-
if stylesheet?.href?.match(/font-awesome/g)
|
11
|
-
hasFontAwesome = true
|
12
|
-
break
|
13
|
-
hasFontAwesome
|
14
|
-
|
15
6
|
isIE = -> !!(navigator.userAgent.indexOf('MSIE') != -1 || navigator.appVersion.indexOf('Trident/') > 0)
|
16
7
|
|
17
8
|
|
@@ -23,23 +14,15 @@ class @TypeStation.TextHtmlEditor
|
|
23
14
|
|
24
15
|
editorOptions =
|
25
16
|
disableReturn: true
|
26
|
-
|
27
|
-
disableToolbar: true
|
28
|
-
anchorInputPlaceholder: 'Type a link'
|
17
|
+
toolbar: false
|
29
18
|
imageDragging: false
|
30
|
-
# anchorInputCheckboxLabel: true
|
31
|
-
# checkLinkFormat: true
|
32
19
|
else
|
33
20
|
@$el.addClass('ts-block')
|
34
21
|
|
35
22
|
editorOptions =
|
36
|
-
|
37
|
-
|
38
|
-
buttonLabels: (if haveFontAwesome() then 'fontawesome' else null)
|
39
|
-
anchorInputPlaceholder: 'Type a link'
|
23
|
+
toolbar:
|
24
|
+
buttons: ['bold', 'italic', 'underline', 'anchor', 'h1', 'h2', 'h3', 'unorderedlist', 'orderedlist', 'removeFormat']
|
40
25
|
imageDragging: false
|
41
|
-
# anchorInputCheckboxLabel: true
|
42
|
-
# checkLinkFormat: true
|
43
26
|
|
44
27
|
@editor = new MediumEditor @$el, editorOptions
|
45
28
|
@editor.destroy()
|
data/lib/type_station/version.rb
CHANGED
@@ -17372,3 +17372,558 @@ Processing by TypeStation::FileController#download as PDF
|
|
17372
17372
|
Parameters: {"identifier"=>"faivlsbq7lbfbwgjfb54"}
|
17373
17373
|
Redirected to https://api.cloudinary.com/v1_1/madwire/image/download?api_key=665773411575653&attachment=true&expires_at=1464266367&format=pdf&public_id=faivlsbq7lbfbwgjfb54&signature=2c823c5a2e8b1442632c67ef56a2fc7ee0fb907b×tamp=1464266307
|
17374
17374
|
Completed 302 Found in 2ms
|
17375
|
+
|
17376
|
+
|
17377
|
+
Started GET "/" for 172.17.0.1 at 2016-05-27 10:31:52 +0000
|
17378
|
+
Processing by Rails::WelcomeController#index as HTML
|
17379
|
+
Rendered /usr/local/bundle/gems/railties-4.2.0/lib/rails/templates/rails/welcome/index.html.erb (18.5ms)
|
17380
|
+
Completed 200 OK in 79ms (Views: 78.9ms)
|
17381
|
+
|
17382
|
+
|
17383
|
+
Started GET "/" for 172.17.0.1 at 2016-05-27 10:31:52 +0000
|
17384
|
+
Processing by Rails::WelcomeController#index as HTML
|
17385
|
+
Rendered /usr/local/bundle/gems/railties-4.2.0/lib/rails/templates/rails/welcome/index.html.erb (0.1ms)
|
17386
|
+
Completed 200 OK in 2ms (Views: 1.4ms)
|
17387
|
+
|
17388
|
+
|
17389
|
+
Started GET "/type_station" for 172.17.0.1 at 2016-05-27 10:31:56 +0000
|
17390
|
+
Processing by TypeStation::PagesController#index as HTML
|
17391
|
+
MONGODB | Adding db:27017 to the cluster.
|
17392
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>nil, "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}, "limit"=>1, "singleBatch"=>true}
|
17393
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.001127248s
|
17394
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}}
|
17395
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.000781832s
|
17396
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"Team"}, "sort"=>{"position"=>1}}
|
17397
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.0006570699999999999s
|
17398
|
+
Rendered /workspace/app/views/type_station/toolbars/_admin_bar.html.haml (30.7ms)
|
17399
|
+
Rendered pages/index_other.html.erb within layouts/application (531.9ms)
|
17400
|
+
Completed 200 OK in 2961ms (Views: 2869.0ms)
|
17401
|
+
|
17402
|
+
|
17403
|
+
Started GET "/assets/jquery.js?body=1" for 172.17.0.1 at 2016-05-27 10:31:59 +0000
|
17404
|
+
|
17405
|
+
|
17406
|
+
Started GET "/assets/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:31:59 +0000
|
17407
|
+
|
17408
|
+
|
17409
|
+
Started GET "/assets/jquery.textcomplete.css?body=1" for 172.17.0.1 at 2016-05-27 10:31:59 +0000
|
17410
|
+
|
17411
|
+
|
17412
|
+
Started GET "/assets/medium-editor/themes/bootstrap.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17413
|
+
|
17414
|
+
|
17415
|
+
Started GET "/assets/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17416
|
+
|
17417
|
+
|
17418
|
+
Started GET "/assets/medium-editor/medium-editor.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17419
|
+
|
17420
|
+
|
17421
|
+
Started GET "/assets/chosen.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17422
|
+
|
17423
|
+
|
17424
|
+
Started GET "/assets/drop-theme-arrows-bounce-dark.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17425
|
+
|
17426
|
+
|
17427
|
+
Started GET "/assets/vex.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17428
|
+
|
17429
|
+
|
17430
|
+
Started GET "/assets/vex-theme-os.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17431
|
+
|
17432
|
+
|
17433
|
+
Started GET "/assets/ionicons.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:00 +0000
|
17434
|
+
|
17435
|
+
|
17436
|
+
Started GET "/assets/type_station/admin_bar.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17437
|
+
|
17438
|
+
|
17439
|
+
Started GET "/assets/type_station/base.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17440
|
+
|
17441
|
+
|
17442
|
+
Started GET "/assets/type_station/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17443
|
+
|
17444
|
+
|
17445
|
+
Started GET "/assets/jquery-fileupload/vendor/jquery.ui.widget.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17446
|
+
|
17447
|
+
|
17448
|
+
Started GET "/assets/jquery-fileupload/jquery.iframe-transport.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17449
|
+
|
17450
|
+
|
17451
|
+
Started GET "/assets/jquery-fileupload/jquery.fileupload.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17452
|
+
|
17453
|
+
|
17454
|
+
Started GET "/assets/jquery-fileupload/basic.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17455
|
+
|
17456
|
+
|
17457
|
+
Started GET "/assets/jquery.cloudinary.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:01 +0000
|
17458
|
+
|
17459
|
+
|
17460
|
+
Started GET "/assets/jquery.textcomplete.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17461
|
+
|
17462
|
+
|
17463
|
+
Started GET "/assets/classList.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17464
|
+
|
17465
|
+
|
17466
|
+
Started GET "/assets/medium-editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17467
|
+
|
17468
|
+
|
17469
|
+
Started GET "/assets/chosen.jquery.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17470
|
+
|
17471
|
+
|
17472
|
+
Started GET "/assets/drop.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17473
|
+
|
17474
|
+
|
17475
|
+
Started GET "/assets/vex.combined.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17476
|
+
|
17477
|
+
|
17478
|
+
Started GET "/assets/type_station/lib/ts.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:02 +0000
|
17479
|
+
|
17480
|
+
|
17481
|
+
Started GET "/assets/type_station/lib/models.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17482
|
+
|
17483
|
+
|
17484
|
+
Started GET "/assets/type_station/lib/helpers.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17485
|
+
|
17486
|
+
|
17487
|
+
Started GET "/assets/type_station/editables/admin_bar.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17488
|
+
|
17489
|
+
|
17490
|
+
Started GET "/assets/type_station/editables/entity_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17491
|
+
|
17492
|
+
|
17493
|
+
Started GET "/assets/type_station/editables/file_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17494
|
+
|
17495
|
+
|
17496
|
+
Started GET "/assets/type_station/editables/link_finder.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17497
|
+
|
17498
|
+
|
17499
|
+
Started GET "/assets/type_station/editables/text_html_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17500
|
+
|
17501
|
+
|
17502
|
+
Started GET "/assets/type_station/init.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:03 +0000
|
17503
|
+
|
17504
|
+
|
17505
|
+
Started GET "/assets/type_station/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:32:04 +0000
|
17506
|
+
|
17507
|
+
|
17508
|
+
Started GET "/assets/ionicons.ttf?v=2.0.0" for 172.17.0.1 at 2016-05-27 10:32:04 +0000
|
17509
|
+
|
17510
|
+
|
17511
|
+
Started GET "/type_station" for 172.17.0.1 at 2016-05-27 10:37:22 +0000
|
17512
|
+
Processing by TypeStation::PagesController#index as HTML
|
17513
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>nil, "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}, "limit"=>1, "singleBatch"=>true}
|
17514
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.0007494569999999999s
|
17515
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}}
|
17516
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.0006173060000000001s
|
17517
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"Team"}, "sort"=>{"position"=>1}}
|
17518
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.00056097s
|
17519
|
+
Rendered /workspace/app/views/type_station/toolbars/_admin_bar.html.haml (8.8ms)
|
17520
|
+
Rendered pages/index_other.html.erb within layouts/application (122.8ms)
|
17521
|
+
Completed 200 OK in 1262ms (Views: 1258.5ms)
|
17522
|
+
|
17523
|
+
|
17524
|
+
Started GET "/assets/medium-editor/medium-editor.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17525
|
+
|
17526
|
+
|
17527
|
+
Started GET "/assets/jquery.textcomplete.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17528
|
+
|
17529
|
+
|
17530
|
+
Started GET "/assets/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17531
|
+
|
17532
|
+
|
17533
|
+
Started GET "/assets/jquery.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17534
|
+
|
17535
|
+
|
17536
|
+
Started GET "/assets/medium-editor/themes/bootstrap.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17537
|
+
|
17538
|
+
|
17539
|
+
Started GET "/assets/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17540
|
+
|
17541
|
+
|
17542
|
+
Started GET "/assets/drop-theme-arrows-bounce-dark.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:24 +0000
|
17543
|
+
|
17544
|
+
|
17545
|
+
Started GET "/assets/chosen.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17546
|
+
|
17547
|
+
|
17548
|
+
Started GET "/assets/vex.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17549
|
+
|
17550
|
+
|
17551
|
+
Started GET "/assets/vex-theme-os.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17552
|
+
|
17553
|
+
|
17554
|
+
Started GET "/assets/ionicons.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17555
|
+
|
17556
|
+
|
17557
|
+
Started GET "/assets/type_station/admin_bar.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17558
|
+
|
17559
|
+
|
17560
|
+
Started GET "/assets/type_station/base.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17561
|
+
|
17562
|
+
|
17563
|
+
Started GET "/assets/type_station/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17564
|
+
|
17565
|
+
|
17566
|
+
Started GET "/assets/jquery-fileupload/vendor/jquery.ui.widget.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17567
|
+
|
17568
|
+
|
17569
|
+
Started GET "/assets/jquery-fileupload/jquery.iframe-transport.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17570
|
+
|
17571
|
+
|
17572
|
+
Started GET "/assets/jquery-fileupload/jquery.fileupload.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:25 +0000
|
17573
|
+
|
17574
|
+
|
17575
|
+
Started GET "/assets/jquery-fileupload/basic.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17576
|
+
|
17577
|
+
|
17578
|
+
Started GET "/assets/jquery.cloudinary.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17579
|
+
|
17580
|
+
|
17581
|
+
Started GET "/assets/jquery.textcomplete.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17582
|
+
|
17583
|
+
|
17584
|
+
Started GET "/assets/classList.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17585
|
+
|
17586
|
+
|
17587
|
+
Started GET "/assets/medium-editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17588
|
+
|
17589
|
+
|
17590
|
+
Started GET "/assets/chosen.jquery.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17591
|
+
|
17592
|
+
|
17593
|
+
Started GET "/assets/drop.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17594
|
+
|
17595
|
+
|
17596
|
+
Started GET "/assets/vex.combined.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17597
|
+
|
17598
|
+
|
17599
|
+
Started GET "/assets/type_station/lib/ts.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17600
|
+
|
17601
|
+
|
17602
|
+
Started GET "/assets/type_station/lib/models.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:26 +0000
|
17603
|
+
|
17604
|
+
|
17605
|
+
Started GET "/assets/type_station/lib/helpers.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17606
|
+
|
17607
|
+
|
17608
|
+
Started GET "/assets/type_station/editables/admin_bar.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17609
|
+
|
17610
|
+
|
17611
|
+
Started GET "/assets/type_station/editables/entity_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17612
|
+
|
17613
|
+
|
17614
|
+
Started GET "/assets/type_station/editables/file_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17615
|
+
|
17616
|
+
|
17617
|
+
Started GET "/assets/type_station/editables/link_finder.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17618
|
+
|
17619
|
+
|
17620
|
+
Started GET "/assets/type_station/editables/text_html_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17621
|
+
|
17622
|
+
|
17623
|
+
Started GET "/assets/type_station/init.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17624
|
+
|
17625
|
+
|
17626
|
+
Started GET "/assets/type_station/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:37:27 +0000
|
17627
|
+
|
17628
|
+
|
17629
|
+
Started GET "/assets/medium-editor/themes/bootstrap.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:50 +0000
|
17630
|
+
|
17631
|
+
|
17632
|
+
Started GET "/assets/medium-editor/medium-editor.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:50 +0000
|
17633
|
+
|
17634
|
+
|
17635
|
+
Started GET "/assets/drop-theme-arrows-bounce-dark.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:50 +0000
|
17636
|
+
|
17637
|
+
|
17638
|
+
Started GET "/assets/chosen.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:50 +0000
|
17639
|
+
|
17640
|
+
|
17641
|
+
Started GET "/assets/jquery.textcomplete.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:50 +0000
|
17642
|
+
|
17643
|
+
|
17644
|
+
Started GET "/assets/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17645
|
+
|
17646
|
+
|
17647
|
+
Started GET "/assets/vex.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17648
|
+
|
17649
|
+
|
17650
|
+
Started GET "/assets/ionicons.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17651
|
+
|
17652
|
+
|
17653
|
+
Started GET "/assets/vex-theme-os.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17654
|
+
|
17655
|
+
|
17656
|
+
Started GET "/assets/type_station/admin_bar.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17657
|
+
|
17658
|
+
|
17659
|
+
Started GET "/assets/type_station/base.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17660
|
+
|
17661
|
+
|
17662
|
+
Started GET "/assets/type_station/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:37:51 +0000
|
17663
|
+
|
17664
|
+
|
17665
|
+
Started GET "/type_station" for 172.17.0.1 at 2016-05-27 10:48:28 +0000
|
17666
|
+
Processing by TypeStation::PagesController#index as HTML
|
17667
|
+
MONGODB | Adding db:27017 to the cluster.
|
17668
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>nil, "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}, "limit"=>1, "singleBatch"=>true}
|
17669
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.002596279s
|
17670
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}}
|
17671
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.000828269s
|
17672
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"Team"}, "sort"=>{"position"=>1}}
|
17673
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.000817979s
|
17674
|
+
Rendered /workspace/app/views/type_station/toolbars/_admin_bar.html.haml (29.7ms)
|
17675
|
+
Rendered pages/index_other.html.erb within layouts/application (541.7ms)
|
17676
|
+
Completed 200 OK in 2686ms (Views: 2592.7ms)
|
17677
|
+
|
17678
|
+
|
17679
|
+
Started GET "/assets/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:31 +0000
|
17680
|
+
|
17681
|
+
|
17682
|
+
Started GET "/assets/jquery.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17683
|
+
|
17684
|
+
|
17685
|
+
Started GET "/assets/medium-editor/medium-editor.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17686
|
+
|
17687
|
+
|
17688
|
+
Started GET "/assets/jquery.textcomplete.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17689
|
+
|
17690
|
+
|
17691
|
+
Started GET "/assets/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17692
|
+
|
17693
|
+
|
17694
|
+
Started GET "/assets/medium-editor/themes/bootstrap.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17695
|
+
|
17696
|
+
|
17697
|
+
Started GET "/assets/chosen.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17698
|
+
|
17699
|
+
|
17700
|
+
Started GET "/assets/drop-theme-arrows-bounce-dark.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17701
|
+
|
17702
|
+
|
17703
|
+
Started GET "/assets/vex.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17704
|
+
|
17705
|
+
|
17706
|
+
Started GET "/assets/vex-theme-os.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:32 +0000
|
17707
|
+
|
17708
|
+
|
17709
|
+
Started GET "/assets/ionicons.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17710
|
+
|
17711
|
+
|
17712
|
+
Started GET "/assets/type_station/admin_bar.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17713
|
+
|
17714
|
+
|
17715
|
+
Started GET "/assets/type_station/base.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17716
|
+
|
17717
|
+
|
17718
|
+
Started GET "/assets/type_station/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17719
|
+
|
17720
|
+
|
17721
|
+
Started GET "/assets/jquery-fileupload/vendor/jquery.ui.widget.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17722
|
+
|
17723
|
+
|
17724
|
+
Started GET "/assets/jquery-fileupload/jquery.iframe-transport.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17725
|
+
|
17726
|
+
|
17727
|
+
Started GET "/assets/jquery-fileupload/jquery.fileupload.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17728
|
+
|
17729
|
+
|
17730
|
+
Started GET "/assets/jquery-fileupload/basic.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:33 +0000
|
17731
|
+
|
17732
|
+
|
17733
|
+
Started GET "/assets/jquery.cloudinary.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17734
|
+
|
17735
|
+
|
17736
|
+
Started GET "/assets/jquery.textcomplete.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17737
|
+
|
17738
|
+
|
17739
|
+
Started GET "/assets/classList.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17740
|
+
|
17741
|
+
|
17742
|
+
Started GET "/assets/medium-editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17743
|
+
|
17744
|
+
|
17745
|
+
Started GET "/assets/chosen.jquery.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17746
|
+
|
17747
|
+
|
17748
|
+
Started GET "/assets/drop.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17749
|
+
|
17750
|
+
|
17751
|
+
Started GET "/assets/vex.combined.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17752
|
+
|
17753
|
+
|
17754
|
+
Started GET "/assets/type_station/lib/ts.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:34 +0000
|
17755
|
+
|
17756
|
+
|
17757
|
+
Started GET "/assets/type_station/lib/models.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17758
|
+
|
17759
|
+
|
17760
|
+
Started GET "/assets/type_station/lib/helpers.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17761
|
+
|
17762
|
+
|
17763
|
+
Started GET "/assets/type_station/editables/admin_bar.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17764
|
+
|
17765
|
+
|
17766
|
+
Started GET "/assets/type_station/editables/entity_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17767
|
+
|
17768
|
+
|
17769
|
+
Started GET "/assets/type_station/editables/file_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17770
|
+
|
17771
|
+
|
17772
|
+
Started GET "/assets/type_station/editables/link_finder.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17773
|
+
|
17774
|
+
|
17775
|
+
Started GET "/assets/type_station/editables/text_html_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17776
|
+
|
17777
|
+
|
17778
|
+
Started GET "/assets/type_station/init.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:35 +0000
|
17779
|
+
|
17780
|
+
|
17781
|
+
Started GET "/assets/type_station/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:48:36 +0000
|
17782
|
+
|
17783
|
+
|
17784
|
+
Started GET "/assets/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:10 +0000
|
17785
|
+
|
17786
|
+
|
17787
|
+
Started GET "/assets/chosen.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:10 +0000
|
17788
|
+
|
17789
|
+
|
17790
|
+
Started GET "/assets/drop-theme-arrows-bounce-dark.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17791
|
+
|
17792
|
+
|
17793
|
+
Started GET "/assets/jquery.textcomplete.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17794
|
+
|
17795
|
+
|
17796
|
+
Started GET "/assets/vex.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17797
|
+
|
17798
|
+
|
17799
|
+
Started GET "/assets/vex-theme-os.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17800
|
+
|
17801
|
+
|
17802
|
+
Started GET "/assets/ionicons.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17803
|
+
|
17804
|
+
|
17805
|
+
Started GET "/assets/type_station/admin_bar.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17806
|
+
|
17807
|
+
|
17808
|
+
Started GET "/assets/type_station/base.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17809
|
+
|
17810
|
+
|
17811
|
+
Started GET "/assets/type_station/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:49:11 +0000
|
17812
|
+
|
17813
|
+
|
17814
|
+
Started GET "/type_station" for 172.17.0.1 at 2016-05-27 10:49:58 +0000
|
17815
|
+
Processing by TypeStation::PagesController#index as HTML
|
17816
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>nil, "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}, "limit"=>1, "singleBatch"=>true}
|
17817
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.001451767s
|
17818
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"TypeStation::Page"}, "sort"=>{"position"=>1}}
|
17819
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.0009370460000000001s
|
17820
|
+
MONGODB | db:27017 | type_station_development.find | STARTED | {"find"=>"type_station_entities", "filter"=>{"parent_id"=>BSON::ObjectId('573f10870e34570009e3cc2d'), "_type"=>"Team"}, "sort"=>{"position"=>1}}
|
17821
|
+
MONGODB | db:27017 | type_station_development.find | SUCCEEDED | 0.0010019730000000002s
|
17822
|
+
Rendered /workspace/app/views/type_station/toolbars/_admin_bar.html.haml (13.3ms)
|
17823
|
+
Rendered pages/index_other.html.erb within layouts/application (177.4ms)
|
17824
|
+
Completed 200 OK in 1494ms (Views: 1487.1ms)
|
17825
|
+
|
17826
|
+
|
17827
|
+
Started GET "/assets/jquery.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17828
|
+
|
17829
|
+
|
17830
|
+
Started GET "/assets/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17831
|
+
|
17832
|
+
|
17833
|
+
Started GET "/assets/medium-editor/medium-editor.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17834
|
+
|
17835
|
+
|
17836
|
+
Started GET "/assets/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17837
|
+
|
17838
|
+
|
17839
|
+
Started GET "/assets/medium-editor/themes/bootstrap.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17840
|
+
|
17841
|
+
|
17842
|
+
Started GET "/assets/jquery.textcomplete.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17843
|
+
|
17844
|
+
|
17845
|
+
Started GET "/assets/chosen.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:00 +0000
|
17846
|
+
|
17847
|
+
|
17848
|
+
Started GET "/assets/drop-theme-arrows-bounce-dark.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17849
|
+
|
17850
|
+
|
17851
|
+
Started GET "/assets/vex.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17852
|
+
|
17853
|
+
|
17854
|
+
Started GET "/assets/vex-theme-os.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17855
|
+
|
17856
|
+
|
17857
|
+
Started GET "/assets/ionicons.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17858
|
+
|
17859
|
+
|
17860
|
+
Started GET "/assets/type_station/admin_bar.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17861
|
+
|
17862
|
+
|
17863
|
+
Started GET "/assets/type_station/base.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17864
|
+
|
17865
|
+
|
17866
|
+
Started GET "/assets/type_station/application.css?body=1" for 172.17.0.1 at 2016-05-27 10:50:01 +0000
|
17867
|
+
|
17868
|
+
|
17869
|
+
Started GET "/assets/jquery-fileupload/vendor/jquery.ui.widget.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17870
|
+
|
17871
|
+
|
17872
|
+
Started GET "/assets/jquery-fileupload/jquery.iframe-transport.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17873
|
+
|
17874
|
+
|
17875
|
+
Started GET "/assets/jquery-fileupload/jquery.fileupload.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17876
|
+
|
17877
|
+
|
17878
|
+
Started GET "/assets/jquery-fileupload/basic.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17879
|
+
|
17880
|
+
|
17881
|
+
Started GET "/assets/jquery.cloudinary.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17882
|
+
|
17883
|
+
|
17884
|
+
Started GET "/assets/jquery.textcomplete.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17885
|
+
|
17886
|
+
|
17887
|
+
Started GET "/assets/classList.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17888
|
+
|
17889
|
+
|
17890
|
+
Started GET "/assets/medium-editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:02 +0000
|
17891
|
+
|
17892
|
+
|
17893
|
+
Started GET "/assets/chosen.jquery.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17894
|
+
|
17895
|
+
|
17896
|
+
Started GET "/assets/drop.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17897
|
+
|
17898
|
+
|
17899
|
+
Started GET "/assets/vex.combined.min.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17900
|
+
|
17901
|
+
|
17902
|
+
Started GET "/assets/type_station/lib/ts.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17903
|
+
|
17904
|
+
|
17905
|
+
Started GET "/assets/type_station/lib/models.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17906
|
+
|
17907
|
+
|
17908
|
+
Started GET "/assets/type_station/lib/helpers.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17909
|
+
|
17910
|
+
|
17911
|
+
Started GET "/assets/type_station/editables/admin_bar.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17912
|
+
|
17913
|
+
|
17914
|
+
Started GET "/assets/type_station/editables/entity_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:03 +0000
|
17915
|
+
|
17916
|
+
|
17917
|
+
Started GET "/assets/type_station/editables/file_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:04 +0000
|
17918
|
+
|
17919
|
+
|
17920
|
+
Started GET "/assets/type_station/editables/link_finder.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:04 +0000
|
17921
|
+
|
17922
|
+
|
17923
|
+
Started GET "/assets/type_station/editables/text_html_editor.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:04 +0000
|
17924
|
+
|
17925
|
+
|
17926
|
+
Started GET "/assets/type_station/init.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:04 +0000
|
17927
|
+
|
17928
|
+
|
17929
|
+
Started GET "/assets/type_station/application.js?body=1" for 172.17.0.1 at 2016-05-27 10:50:04 +0000
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -2780,7 +2780,9 @@ MediumEditor.extensions = {};
|
|
2780
2780
|
var index = element.getAttribute('medium-editor-index');
|
2781
2781
|
if (index) {
|
2782
2782
|
this.detachAllEventsFromElement(element);
|
2783
|
-
|
2783
|
+
if (this.contentCache) {
|
2784
|
+
delete this.contentCache[index];
|
2785
|
+
}
|
2784
2786
|
}
|
2785
2787
|
},
|
2786
2788
|
|
@@ -3741,12 +3743,12 @@ MediumEditor.extensions = {};
|
|
3741
3743
|
targetCheckbox = this.getAnchorTargetCheckbox(),
|
3742
3744
|
buttonCheckbox = this.getAnchorButtonCheckbox();
|
3743
3745
|
|
3744
|
-
opts = opts || {
|
3746
|
+
opts = opts || { value: '' };
|
3745
3747
|
// TODO: This is for backwards compatability
|
3746
3748
|
// We don't need to support the 'string' argument in 6.0.0
|
3747
3749
|
if (typeof opts === 'string') {
|
3748
3750
|
opts = {
|
3749
|
-
|
3751
|
+
value: opts
|
3750
3752
|
};
|
3751
3753
|
}
|
3752
3754
|
|
@@ -3755,7 +3757,7 @@ MediumEditor.extensions = {};
|
|
3755
3757
|
MediumEditor.extensions.form.prototype.showForm.apply(this);
|
3756
3758
|
this.setToolbarPosition();
|
3757
3759
|
|
3758
|
-
input.value = opts.
|
3760
|
+
input.value = opts.value;
|
3759
3761
|
input.focus();
|
3760
3762
|
|
3761
3763
|
// If we have a target checkbox, we want it to be checked/unchecked
|
@@ -3792,11 +3794,11 @@ MediumEditor.extensions = {};
|
|
3792
3794
|
var targetCheckbox = this.getAnchorTargetCheckbox(),
|
3793
3795
|
buttonCheckbox = this.getAnchorButtonCheckbox(),
|
3794
3796
|
opts = {
|
3795
|
-
|
3797
|
+
value: this.getInput().value.trim()
|
3796
3798
|
};
|
3797
3799
|
|
3798
3800
|
if (this.linkValidation) {
|
3799
|
-
opts.
|
3801
|
+
opts.value = this.checkLinkFormat(opts.value);
|
3800
3802
|
}
|
3801
3803
|
|
3802
3804
|
opts.target = '_self';
|
@@ -4784,7 +4786,7 @@ MediumEditor.extensions = {};
|
|
4784
4786
|
if (font === '') {
|
4785
4787
|
this.clearFontName();
|
4786
4788
|
} else {
|
4787
|
-
this.execAction('fontName', {
|
4789
|
+
this.execAction('fontName', { value: font });
|
4788
4790
|
}
|
4789
4791
|
},
|
4790
4792
|
|
@@ -4962,7 +4964,7 @@ MediumEditor.extensions = {};
|
|
4962
4964
|
if (size === '4') {
|
4963
4965
|
this.clearFontSize();
|
4964
4966
|
} else {
|
4965
|
-
this.execAction('fontSize', {
|
4967
|
+
this.execAction('fontSize', { value: size });
|
4966
4968
|
}
|
4967
4969
|
},
|
4968
4970
|
|
@@ -6830,7 +6832,8 @@ MediumEditor.extensions = {};
|
|
6830
6832
|
/*jslint regexp: true*/
|
6831
6833
|
var appendAction = /^append-(.+)$/gi,
|
6832
6834
|
justifyAction = /justify([A-Za-z]*)$/g, /* Detecting if is justifyCenter|Right|Left */
|
6833
|
-
match
|
6835
|
+
match,
|
6836
|
+
cmdValueArgument;
|
6834
6837
|
/*jslint regexp: false*/
|
6835
6838
|
|
6836
6839
|
// Actions starting with 'append-' should attempt to format a block of text ('formatBlock') using a specific
|
@@ -6841,11 +6844,21 @@ MediumEditor.extensions = {};
|
|
6841
6844
|
}
|
6842
6845
|
|
6843
6846
|
if (action === 'fontSize') {
|
6844
|
-
|
6847
|
+
// TODO: Deprecate support for opts.size in 6.0.0
|
6848
|
+
if (opts.size) {
|
6849
|
+
MediumEditor.util.deprecated('.size option for fontSize command', '.value', '6.0.0');
|
6850
|
+
}
|
6851
|
+
cmdValueArgument = opts.value || opts.size;
|
6852
|
+
return this.options.ownerDocument.execCommand('fontSize', false, cmdValueArgument);
|
6845
6853
|
}
|
6846
6854
|
|
6847
6855
|
if (action === 'fontName') {
|
6848
|
-
|
6856
|
+
// TODO: Deprecate support for opts.name in 6.0.0
|
6857
|
+
if (opts.name) {
|
6858
|
+
MediumEditor.util.deprecated('.name option for fontName command', '.value', '6.0.0');
|
6859
|
+
}
|
6860
|
+
cmdValueArgument = opts.value || opts.name;
|
6861
|
+
return this.options.ownerDocument.execCommand('fontName', false, cmdValueArgument);
|
6849
6862
|
}
|
6850
6863
|
|
6851
6864
|
if (action === 'createLink') {
|
@@ -6869,7 +6882,8 @@ MediumEditor.extensions = {};
|
|
6869
6882
|
return result;
|
6870
6883
|
}
|
6871
6884
|
|
6872
|
-
|
6885
|
+
cmdValueArgument = opts && opts.value;
|
6886
|
+
return this.options.ownerDocument.execCommand(action, false, cmdValueArgument);
|
6873
6887
|
}
|
6874
6888
|
|
6875
6889
|
/* If we've just justified text within a container block
|
@@ -7272,7 +7286,8 @@ MediumEditor.extensions = {};
|
|
7272
7286
|
|
7273
7287
|
createLink: function (opts) {
|
7274
7288
|
var currentEditor = MediumEditor.selection.getSelectionElement(this.options.contentWindow),
|
7275
|
-
customEvent = {}
|
7289
|
+
customEvent = {},
|
7290
|
+
targetUrl;
|
7276
7291
|
|
7277
7292
|
// Make sure the selection is within an element this editor is tracking
|
7278
7293
|
if (this.elements.indexOf(currentEditor) === -1) {
|
@@ -7281,7 +7296,12 @@ MediumEditor.extensions = {};
|
|
7281
7296
|
|
7282
7297
|
try {
|
7283
7298
|
this.events.disableCustomEvent('editableInput');
|
7284
|
-
|
7299
|
+
// TODO: Deprecate support for opts.url in 6.0.0
|
7300
|
+
if (opts.url) {
|
7301
|
+
MediumEditor.util.deprecated('.url option for createLink', '.value', '6.0.0');
|
7302
|
+
}
|
7303
|
+
targetUrl = opts.url || opts.value;
|
7304
|
+
if (targetUrl && targetUrl.trim().length > 0) {
|
7285
7305
|
var currentSelection = this.options.contentWindow.getSelection();
|
7286
7306
|
if (currentSelection) {
|
7287
7307
|
var currRange = currentSelection.getRangeAt(0),
|
@@ -7373,7 +7393,7 @@ MediumEditor.extensions = {};
|
|
7373
7393
|
}
|
7374
7394
|
|
7375
7395
|
// Creates the link in the document fragment
|
7376
|
-
MediumEditor.util.createLink(this.options.ownerDocument, textNodes,
|
7396
|
+
MediumEditor.util.createLink(this.options.ownerDocument, textNodes, targetUrl.trim());
|
7377
7397
|
|
7378
7398
|
// Chrome trims the leading whitespaces when inserting HTML, which messes up restoring the selection.
|
7379
7399
|
var leadingWhitespacesCount = (fragment.firstChild.innerHTML.match(/^\s+/) || [''])[0].length;
|
@@ -7385,13 +7405,13 @@ MediumEditor.extensions = {};
|
|
7385
7405
|
|
7386
7406
|
this.importSelection(exportedSelection);
|
7387
7407
|
} else {
|
7388
|
-
this.options.ownerDocument.execCommand('createLink', false,
|
7408
|
+
this.options.ownerDocument.execCommand('createLink', false, targetUrl);
|
7389
7409
|
}
|
7390
7410
|
|
7391
7411
|
if (this.options.targetBlank || opts.target === '_blank') {
|
7392
|
-
MediumEditor.util.setTargetBlank(MediumEditor.selection.getSelectionStart(this.options.ownerDocument),
|
7412
|
+
MediumEditor.util.setTargetBlank(MediumEditor.selection.getSelectionStart(this.options.ownerDocument), targetUrl);
|
7393
7413
|
} else {
|
7394
|
-
MediumEditor.util.removeTargetBlank(MediumEditor.selection.getSelectionStart(this.options.ownerDocument),
|
7414
|
+
MediumEditor.util.removeTargetBlank(MediumEditor.selection.getSelectionStart(this.options.ownerDocument), targetUrl);
|
7395
7415
|
}
|
7396
7416
|
|
7397
7417
|
if (opts.buttonClass) {
|
@@ -7520,7 +7540,7 @@ MediumEditor.parseVersionString = function (release) {
|
|
7520
7540
|
|
7521
7541
|
MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
|
7522
7542
|
// grunt-bump looks for this:
|
7523
|
-
'version': '5.
|
7543
|
+
'version': '5.18.0'
|
7524
7544
|
}).version);
|
7525
7545
|
|
7526
7546
|
return MediumEditor;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: type_station
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Adams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|