side-comments | interface component to give your site/app Medium | Frontend Utils library
kandi X-RAY | side-comments Summary
kandi X-RAY | side-comments Summary
[UNMAINTAINED] An interface component to give your site/app Medium.com style commenting.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of side-comments
side-comments Key Features
side-comments Examples and Code Snippets
Community Discussions
Trending Discussions on side-comments
QUESTION
I have a bash command, get-modified-perl-files
, that returns all the Perl files I have modified in my repository. I would like to use perltidy on all of these files.
I created a bash function to do the job:
...ANSWER
Answered 2021-Mar-04 at 16:05By default perltidy
does not print the file contents to STDOUT. To do so requires the -st
option (or --standard-output
). Since you are not using this option on the perltidy
command line, there is likely a .perltidyrc
file with -st
in it that is being used.
To ignore the .perltidyrc
file, use the -npro
(--noprofile
) option:
QUESTION
I really like the commenting interface employed by Medium, allowing users to highlight a portion of an article and comment on that specific part.
I would like to implement a similar commenting facility in a VueJS app.
I found this package which does something similar: http://aroc.github.io/side-comments-demo/, but I want to try to find something that has been updated more recently. Also, it requires jquery, which I don't currently use and I would like to avoid adding that dependency if possible.
I would love to know if anyone has seen anything that could help.
...ANSWER
Answered 2020-Apr-10 at 19:23I have created a sample at https://codesandbox.io/s/medium-style-text-select-comment-box-h5o9r
Here I am adding the comments component to the root component such that it is available globally. On component mount()
hook, I am attaching a mouseup
method to the window
object where any selections done are checked using
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install side-comments
You need to have a wrapper element to point SideComments at and two things on each commentable section; the class commentable-section and the data attribute data-section-id, which holds the unique ID of that commentable-section for this page.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page