The primary goal of this module is to improve site editor experience and ease
the process of adding and reordering lists of content.
Features
This is a field widget that allows site editors to input all list content into
a single field and automatically creates individual list items.
Site editors can add list items one by one or copy and paste from a variety of
sources, including Word, Excel, Google Docs, and websites, providing that
content is on separate lines in the source content.
All list items can then be reordered or removed through the UI, as required by
site editors. Lists can be configured to use plain text, bullets, numbered list
, or checkboxes.
https://www.drupal.org/files/project-images/texttohtmllist.gif
Project page: https://www.drupal.org/sandbox/ethanhan777/2832556
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/ethanhan777/2832556.git text_to_html_list
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | View page of node.png | 70.13 KB | mehul.shah |
| #14 | data deleted when encountered error while updating node.png | 84.99 KB | mehul.shah |
| #14 | Updating node.png | 87.59 KB | mehul.shah |
| #14 | data deleted when encountered error while adding node.png | 80.44 KB | mehul.shah |
| #14 | adding node.png | 83.92 KB | mehul.shah |
Comments
Comment #2
PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
varghese commentedAutomated Review
issues found.
1. /root/repos/pareviewsh/pareview_temp/js/text_to_list.js: line 1, col 2, Error - Use the function form of 'use strict'. (strict)
2. /root/repos/pareviewsh/pareview_temp/js/text_to_list.js: line 3, col 1, Error - Expected indentation of 2 spaces but found 0. (indent)
Manual Review
Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt
Yes: Follows the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
List of identified issues in no particular order. Use (*) and (+) to indicate an issue importance. Replace the text below by the issues themselves:
It is good to put drupal template file in template directory.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #4
varghese commentedComment #5
klausi@varghese: The 2 JS errors and the template folder is surely not an application blocker. Anything else that you found or should this be RTBC instead?
Comment #6
varghese commentedThis is I tested from the automated tool. Please check the below url.
https://pareview.sh/node/312
Comment #7
ethan.han777 commented@varghese
I fixed the JS coding standard violation and here is the result:
https://pareview.sh/node/268
Thanks
Comment #8
wmcmillian commentedInstalled and enabled the module on a vanilla Drupal 7 site.
A couple of issues I see:
Comment #9
muthukumar sri commentedHi,
I have installed and enabled the module on a Drupal 7 site. Check the below issue
Issue:
If I enter
alert('XSS');as text field than I will get a javascript popup on this page. You need to sanitize user provided text before printing, make sure to read https://www.drupal.org/node/28984 again. Reffer screen shots.
Comment #10
muthukumar sri commentedComment #11
visabhishek commentedI am adding security tag as per https://www.drupal.org/node/2833485#comment-11818518 by muthukumar sri, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #12
ethan.han777 commentedHi,
I pushed fixes for #8 and #9.
Please review.
Thank you!
Comment #13
ethan.han777 commentedanyone review the fixes please. thanks.
Comment #14
mehul.shah commentedHi ethan.han777,
I am listing down some functionality issues.
Comment #15
ethan.han777 commented@mehul.shah Thanks for reviewing.
the issue mentioned above is fixed.
Comment #16
rajveergangwarBelow are my reviews:
used $markup variables two times , remove it,
code should like
line 183:
$markup = text_to_html_list_strip_html_attr(filter_xss($item['value'], $allowed_tags), 'class');
line 128:
drupal_add_css('https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css', array('type' => 'external'));
Please implement hook_help on the top of .module
Comment #17
Drupal8 commentedI have manually review your module. It is nice.
Few things that not major but nice to have.
1) The user can insert 2) No configuration option, for example the source of fontawesome. What happen if i already have the fontawesome css?
Comment #18
amit.drupal commented@ethan.han777 Nice Work.
Please Implement hook_help() .
Comment #19
klausi@amit: looks like you forgot to change the status. Anything else that you found or should this be set to RTBC?
Comment #20
bkelly commentedFile: text_to_html_list.tpl.php
Lines: 21 & 26:
I believe the text "Preview" and "List items are draggable to change order." should be run through t().
File: text_to_html_list.module
Line 128:
$fontawesome_cdn = 'https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css';Are external libraries allowed? I'm not sure if this is any kind of deal-breaker or not. We probably want to ask someone official like @klausi or @kiamlaluno.
The missing t() on lines 21 & 26 are the only security issues I see, (I'll let someone else weigh in on the fontawesome library if they so choose).
Comment #21
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.