-
Notifications
You must be signed in to change notification settings - Fork 128
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
Splice data-urls out of rich text module textarea and offer link and guidance #182
Comments
@jywarren Here's a preview. Major changes
|
This is FANTASTIC -- very very exciting work! Tremendous building upon #178 as well. Great holistic approach to solving this! Two things I wonder:
But generally this is fantastic. Just offering a few more ideas to refine it slightly, but we could almost certainly go ahead with this PR if you'd like. Thank you so much! |
@jywarren I thought on this for a while and implemented an idea of my own while keeping all your aforementioned points in mind which, I hope, would satisfy all the concerns. Now instead of the warning message nothing pops up, this is, the DURI is replaced by a null string as soon as it is pasted and along with this, the page automatically moves down to the instructions message (yellow box). In my opinion, this seems to be a cleaner solution for short as well as long texts. So should I submit a new PR reflecting this change, or are you content with the previous one, or maybe even something else? Do let me know! |
Sure that sounds great!
…On Tue, Dec 18, 2018, 7:05 PM Pranshu Srivastava ***@***.*** wrote:
@jywarren <https://github.com/jywarren> I thought on this for a while and
implemented an idea of my own while keeping all your aforementioned points
in mind which, I hope, would satisfy all the concerns.
[image: publiclab editor]
<https://user-images.githubusercontent.com/33557095/50190501-7d3d9b80-034f-11e9-853a-d389a9427d8d.gif>
Now instead of the warning message nothing pops up, this is, the DURI is
replaced by a null string as soon as it is pasted and along with this, the
page automatically moves down to the instructions message (yellow box). In
my opinion, this seems to be a cleaner solution for short as well as long
texts.
So should I submit a new PR reflecting this change, or are you content
with the previous one, or maybe even something else? Do let me know!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#182 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJw4i70UjstqaymagioFJUi_5k6vzks5u6YKzgaJpZM4ZSZSw>
.
|
After #175, we should instead of just warning about a data-url, we should actually splice it out along with showing a warning. This would mean using similar regex to in #175 but actually removing the entire data-URL from the Rich Text Editor textarea.
We should also insert a link in the message shown that allows the person to open the data-url image in a new window, save it, and drag it back in, and guidance to tell them to take these steps, maybe in Step 1, Step 2, Step 3 format and a message like:
The text was updated successfully, but these errors were encountered: