-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integrate At.js autocompletion into rich editor for tagnames and emoji #7526
Conversation
Thanks for opening this pull request! This space is protected by our Code of Conduct - and we're here to help. |
@jywarren @VladimirMikulic the instructions mentioned in https://github.com/publiclab/PublicLab.Editor#atwhojs-data-module didn't seem to integrate the autocomplete in pl.org.Any additional changes that you think are needed ? |
Codecov Report
@@ Coverage Diff @@
## main #7526 +/- ##
=======================================
Coverage ? 43.30%
=======================================
Files ? 98
Lines ? 6225
Branches ? 0
=======================================
Hits ? 2696
Misses ? 3529
Partials ? 0 |
Screenshots 📸 (click to expand)7526-test_questions.png7526-test_embeddable_grids.png7526-test_signup.png7526-test_viewing_the_settings_page.png7526-test_tag_by_author_page.png7526-test_wiki_page_with_inline_grids.png7526-test_stats.png7526-test_viewing_the_dashboard.png7526-test_searching_an_item_from_the_homepage.png7526-test_signup_modal_form_validation.png7526-test_tag_stats.png7526-test_login_modal_form_validation.png7526-test_questions_shadow.png7526-test_login_modal.png7526-test_profile_page.png7526-failures_test_posting_from_the_editor.png7526-test_comments.png7526-test_tags.png7526-test_signup_modal.png7526-test_wiki.png7526-test_methods.png7526-test_tag_page.png7526-test_blog_page_with_location_modal.png7526-test_tag_wildcard.png7526-test_signup_modal_disabled_submit_button_on_empty_username.png7526-test_embeddable_thumbnail_grids.png7526-test_front_page_with_navbar_search_autocomplete.png7526-test_spam_moderation_page.png7526-test_login.png7526-test_viewing_the_dropdown_menu.png7526-test_viewing_question_post.png7526-test_mobile_displays.png7526-failures_test_main_textarea_image_drag_and_drop_upload.png7526-test_simple-data-grapher_powertag.png7526-test_front.png7526-test_question_page.png7526-test_tag_contributors_page.png7526-test_blog.png7526-failures_test_changing_and_reverting_versions_works_correctly_for_wiki.png7526-test_people.png7526-test_wiki_revisions.pngLearn about automated screenshots Generated by 🚫 Danger |
Is this by any chance related to #8248 ? If so could we please align and maintain one PR. Thanks |
@sagarpreet-chadha could you please help with reviewing this. Thanks |
Let's see how this does... i think we need to rebase? |
OK, i'm seeing:
So we're missing:
|
Fixed some CSS and JS paths!!! |
Ooohhhhhh! Testing in GitPod!! |
Hmmmmm. OK this doesn't work in GitPod. I wonder if the option is getting set correctly? https://github.com/publiclab/PublicLab.Editor/pull/48/files |
Code Climate has analyzed commit 7363740 and detected 0 issues on this pull request. View more on Code Climate. |
Woohoo!!! |
$('.wk-wysiwyg') | ||
.atwho(hashtags_config) | ||
.atwho(emojis_config) | ||
//.atwho(at_config) // off for performance reasons for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TildaDares here it is! This is where I turned off the username autocompletion. It uses the same API backend as your code. But the front-end implementation may be a little different as it's within a rich text editor!
* integrate editor n plots2 * Fixed relative paths to required JS and CSS files * tweaks/fixes * working; usernames off for performance Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
* integrate editor n plots2 * Fixed relative paths to required JS and CSS files * tweaks/fixes * working; usernames off for performance Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
Fixes publiclab/PublicLab.Editor#365
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!