![]() No clue how long this would take, but the cost would be smaller than WYSIWYG development. As Firefox is open source and accepts contributions, we can fix this in Firefox.It is likely a change comparable in complexity to Wikimedia's VisualEditor, which has been in development for at least three years and has roughly as many commits as Phabricator itself does. We need an unlimited budget to pursue this. This runs into WYSIWYG editing (see T337, T1304, etc). We can convert remarkup to use a with contentEditable instead of a.We can wait for Firefox to fix this, which looks like it might be close.If anyone can modify the snippet above to get the image into the (focus textarea, paste image, image ends up in div), I believe all remaining parts are possible, merely complex.I believe support is possible in Firefox in four ways:.This is not supported by Gmail, Mediawiki, or Imgur. You will see new option Copy as Plain Text. Open any webpage, select text with mouse and right click. It will autmatically add new Copy as Plain Text option to right click menu of Firefox. After the install, restart Firefox browser. Download & Install Copy Pain Text Firefox addon. I suspect no site exits which provides Safari support (for pasting an image, and transferring it to the server). Copy plain text without formatting in Firefox. ![]() I believe support is currently impossible in Safari.In this situation, Firefox has different behavior: the refocus works and the content ends up in the. Imgur sues a similar strategy to the above, but it starts without an editable element focused. Gmail (and presumably other applications) have the user edit text in a contentEditable div, not a. In Firefox, the paste fires before the focus() so the content doesn't go into the contentEditable div, so we can't get it. I suspect there is no workaround and that no site supports pasting images in Safari.) (Note also that Gmail does not appear to support pasting images in Safari: when you paste an image, it just removes it. This appears viable in Safari, except that it doesn't seem possible to extract the image data (?), e.g. This would potentially let us inspect the content and extract any pasted images. In Safari, the focus() fires before the paste, so the content ends up in the. If things work, an image will appear on the bottom box.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |