![]() |
Quote:
Wait....Wut??? :eek: Please don't tell me I missed another function that Sigil does so well already..... :rofl: |
On a Windows computer, pressing windows-V give you a history to paste from. This works in Sigil and most other programs.
|
Or as DiapDealer said use Sigil's Edit/Paste From Clipboard History... menu item or key shortcut on any platform. You can highlight any clipboard history item to paste or use the delete key to remove it from the history.
|
It also saves the history between Sigil sessions (the preference setting determines how many are saved between sessions)
|
Pasting
Hi all,
Maybe far from the original post title, but as the conversation was on the pasting topic I continue here. The process is:
Here is what I meant... in images: https://www.youtube.com/watch?v=NAXWuLJN3lI Hope this helps Cheers |
Just use PageEdit with Sigil. It will do exactly what you want.
Quote:
|
Quote:
I hoped more for an addition of ten lines of code: javascript Code:
document.addEventListener('paste', function (evt) {Code:
#!/usr/bin/env pythonqt Code:
void DropArea::paste() |
Huh? That code exists in PageEdit and it can easily be launched and run. It is meant to be integrated into Sigil which has an easy way to launch it.
Sigil's CodeView editor is not a browser window and always pastes html/text as its base property since it is an xhtml code editor where copy and paste of code snippets are always done. Almost all copies made in CodeView typically includes html tags or partial html as text. You can not paste into a CodeView formatted rich text or images. You are confusing the target (a pure text code editor vs a browser like dom editor (Old BookView and PageEdit). PageEdit is exactly like old Sigil's BookView and pasting formatted text into the PageEdit browser window is handled as you would expect. |
1 Attachment(s)
@fxp33
If the feature is that important to you, why not use a plugin? The following code should do the trick: Spoiler:
Just assign it one of the 10 plugin shortcuts and a corresponding keyboard shortcut, and you're good to go. However, you might want to consider using PageEdit instead, because it'll significantly clean up the messy HTML code that some apps will copy to the clipboard. |
Quote:
Yep, the plugin was my intention... and this is precisely why I was hoping I could get a hint on "how to insert text at cursor position" in this thread. I opened a lot of plugins to try and understand how to do that... 😉 Thanks a lot for packaging and rewriting the code into a plugin... And of course, I will indeed, check with pageEdit 👍 Best regards François |
Quote:
What I can't figure out is why all the buttons from pageEdit have been added to Sigil (bald, italic, images, special caracters and even cut, paste) except this pasting option. PageEdit seems therefor very redundant to Sigil, and I find it to be a very big "plugin" for "just pasting". But as you and Doitsu mentioned: it does not just paste, it cleans the code too when choosing "plain text" by adding "p" and "br". Which I understand is not just 10 lines of code. Thanks for your reply, this helped me try new things with pageEdit. 👍 Regards François |
PageEdit is not a plugin. It is separate editing program app that allows limited WYSIWYG editing similar to what the old BookView did in some ways. It can be easily launched from within Sigil by setting PageEdit as the External XHTML editor in Sigil's Preferences.
|
| All times are GMT -4. The time now is 08:32 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.