Skip to content
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

SMS message input box allows rich text which can cause problems #400

Closed
tbar0970 opened this issue Aug 9, 2017 · 5 comments
Closed

SMS message input box allows rich text which can cause problems #400

tbar0970 opened this issue Aug 9, 2017 · 5 comments
Labels

Comments

@tbar0970
Copy link
Owner

tbar0970 commented Aug 9, 2017

Hey @vanoudt

Do you remember why the input box for SMS messages got changed from a textarea to a div with contenteditable=true ? I can't find the PR that it came from (I did some manual merging at the time)

I think it is causing some problems for users who paste URLs in there - they end up as rich text which then confuses the character counter and/or chokes things further down the line...

<div contenteditable="true" autofocus="autofocus" id="sms_message" class="sms_editor" data-maxlength="<?php echo SMS_MAX_LENGTH; ?>"></div>

@tbar0970 tbar0970 added the bug label Aug 9, 2017
@vanoudt
Copy link
Contributor

vanoudt commented Aug 9, 2017 via email

@tbar0970
Copy link
Owner Author

tbar0970 commented Aug 9, 2017

Thanks for that. Yes, we could fix it with JS, but if there's a way to get the basic textbox to work for us that would be simpler. If we're constructing the AJAX request in our own JS then changing div.innerHTML to textbox.value shouldn't be hard... but maybe there's more to it.

@vanoudt
Copy link
Contributor

vanoudt commented Aug 9, 2017 via email

@vanoudt
Copy link
Contributor

vanoudt commented Aug 15, 2017 via email

@vanoudt
Copy link
Contributor

vanoudt commented Sep 21, 2017

I still can't remember why I changed it to the div - still think it might be the "forms within forms" issue, not sure why....

But PR #411 fixes this problem....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants