docbrown/spec/fixtures/files
Dmitry Maksyoma f63c7f9289
Fix Runkit tags not being activated when comment is added (#6767)
* Fix Runkit tags not being activated when comment is added

* Runkit tag activation was ran once, on page load. I've changed it to
  run on on comment preview and submit.
* It was necessary to add a check to skip already activated Runkit
  tags. The code didn't take into account that a tag could be already
  processed, and would just crash.

* Fix Runkit tags and add tests

* Add test for previewing article with Runkit tag

* "Fix CodeClimate not finding waitForRunkitAndActivateTags()

* Refactor a test for readability

* Make Rubocop happy

* Improve test for previewing article with Runkit tag

* Use one method for determining active Runkit tags

* Defer loading of JS from embed.runkit.com

* Add utility function dynamicallyLoadScript(url)

* Switch to dynamic loading of Runkit

* parsed content code block is also hidden now to avoid displaying <code /> block before runkit iframe loads.

* Fix Runkit test

* Remove Runkit script caching in v2 form

* Use <%== instead of .html_safe in v2 form

* Update app/assets/javascripts/utilities/dynamicallyLoadScript.js

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
2020-05-15 14:27:46 +02:00
..
800x600.jpg Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
800x600.png Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
800x600.webp Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
article_long_content.txt Make LinkTag's mininum reading time to 1 min (#3084) [ci skip] 2019-06-14 14:44:48 -04:00
article_published.txt Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
article_published_canonical_url.txt Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
article_published_cover_image.txt Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
article_published_empty_cover_image.txt Allow an article's main_image to be removed (#5687) [deploy] 2020-03-10 08:29:59 -07:00
article_published_series.txt Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
article_unpublished.txt Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
article_with_runkit_tag.txt Fix Runkit tags not being activated when comment is added (#6767) 2020-05-15 14:27:46 +02:00
image_gps_data.jpg Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
large_profile_img.jpg Set max file size limit for profile images (#3313) 2019-06-28 12:06:25 -04:00
podcast.png Creating podcasts by users (#3730) [deploy] 2020-01-08 16:14:25 -05:00