You are not logged in.
Anyone know what the best way is to do a paste as plain text?
(so you can copy from a page with messed up tables/html and paste just the text from it)
Thanks
Last edited by willeffects (2005-04-10 15:09:44)
Offline
wouldn't it be a good idea to have a "paste as text" toolbar-button?
that does exactly waht will wants
(currenlty i could switch to html-code-view and paste there)
Niko
Offline
If you have Firefox, you can get the excellent "Copy as Plain Text" extention:
https://addons.update.mozilla.org/exten … php?id=134
I love it!
rift design studio
[url]http://www.riftdesign.com[/url]
Offline
I can paste as plain text but I need all the users to be able to And yes if I can figure out a way to do it I was planning on doing a toolbar button. I thought there was a function but I looked through the function list and didnt see one.
Offline
The problem with paste (plain text or otherwise) is that you won't be able to do it in Firefox from a toolbar button, the only way (without adjusting browser settings manually) is to CTRL-V or select edit>paste
James Sleeman
Offline
I don't know if you can catch pasted text as it's being pasted via ctrl+v, but if yes then a slightly convoluted way would be to have a toolbar button that turns on plain text pasting (sets a variable) and then any pasted text gets stripped of tags, etc. or run through the Word cleanup/any other function you want.
Not fool-proof and not ideal but it might be one way
Offline
The only way of doing it would be to snapshot the html before the paste, paste, then diff the snapshot and the current to work out what was added, pull that out, strip it appropriatly, put it back in etc... in other words, it's just not realisitically possible.
James Sleeman
Offline
The only way of doing it would be to snapshot the html before the paste, paste, then diff the snapshot and the current to work out what was added, pull that out, strip it appropriatly, put it back in etc... in other words, it's just not realisitically possible.
I believe that FCKeditor impliments this function. I am unsure as to how though (I only tried an online demo).
http://www.fckeditor.net
Last edited by KaplanDigital (2005-04-13 12:22:17)
Offline
In FF I always get "undefined" when I click on anything that has a popup in FCKeditor. Thats the reason I went with xinha
Offline
In FF I always get "undefined" when I click on anything that has a popup in FCKeditor. Thats the reason I went with xinha
That is odd. I did not experience that problem when I tried the demo (Both in FF and IE). I went with Xinha because of its fullscreen function.
Offline
I might be because im using tabbrowser extensions or something, but if it doesnt work for me theres going to be more then enough users sending me emails about it.
I also didnt like the lag of FCK. It seems when you mouse over a menu or even loading it, it takes a while to respond. Xinha is much quicker (thought much less developed at this point).
We had another problem when loading images from multiple editors on the same page. Most other editors have this same bug. Xinha was one of the only ones that does not.
I wonder if xinha would get more development being on sourceforge?
Will
Offline
Will,
Xinha is much quicker (thought much less developed at this point).
could you perhaps write a list (just post here) of things that FCK has that we don't (and should)?
I wonder if xinha would get more development being on sourceforge?
I doubt it, SF doesn't support subversion repositories, or trac or anything nice like that anyway. There are a number of developers (including myself) who have access to commit to the subversion repository for Xinha, anybody who wants to do so need only ask me (and show me a patch they want to commit first so I know they are at least a little bit conversant with Javascript).
James Sleeman
Offline
could you perhaps write a list (just post here) of things that FCK has that we don't (and should)?
sure just fyi I tested the following editors for over a month before deciding to go with Xinha:
1. Kevin Roths
2. TinyRTE
3. TinyMCE
4. wysiwygPRO
5. FCKeditor
6. p42.net's
7. HTMLarea
Xinha was the only one that could do what we needed (to build an online tutorial system). It exploits bugs in every other editor that prevents full use. I will reference features from some of these:
1. (HIGH PRIORITY) Get ENTER to work correctly in IE
2. Popups in Div's. (FCK, wywisygPRO)
3. Unlink button
4. Search and Replace
5. Paste from word (instead of cleaning tags) (I like the way wysiwygPRO does this best)
6. Paste as plain text
7. Having source/editor in tabs at the bottom (wysiwygPRO)
i'll fill in more later.
I doubt it, SF doesn't support subversion repositories, or trac or anything nice like that anyway. There are a number of developers (including myself) who have access to commit to the subversion repository for Xinha, anybody who wants to do so need only ask me (and show me a patch they want to commit first so I know they are at least a little bit conversant with Javascript).
But cant you just create a link from there to get more exposure? Not actually use their system. I've tested them all and xinha is the best but I know lots of people dont know about it.
Will
Last edited by willeffects (2005-04-14 01:54:06)
Offline
...i just tried out the paste-solution for mozilla FCKeditor has...
VERY, VERY nice i must say!
we should copy the idea imho
in short:
if a FF-user clicks the paste-as-text-button, a popup opens with a textarea where the user can paste (using ctrl+v) and then click ok. then the editor will insert the pasted-content as text!
Niko
Offline
...i just tried out the paste-solution for mozilla FCKeditor has...
VERY, VERY nice i must say!
we should copy the idea imhoin short:
if a FF-user clicks the paste-as-text-button, a popup opens with a textarea where the user can paste (using ctrl+v) and then click ok. then the editor will insert the pasted-content as text!
Didn't think of doing it that way, simple and effective I guess.
James Sleeman
Offline
This is the way wsywiygPRO does paste as word. Which allows it to be run through a php filter I believe. Yes this is a very nice way to do it.
Offline
Offline
I've implemented a version of this - see ticket #349 (http://xinha.python-hosting.com/ticket/349).
It will do the popup for Firefox, and if you have killWordOnPaste turned on, it will strip all style
formatting from the pasted text. It might need some tuning for more general use, I dont know.
For example, users might want to choose whether they want to strip the formatting from pasted
text, so there could be a checkbox to allow you to turn off the "word kill". For those who are
interested, please give it a try and let me know what you think!
Paul Baranowski
Offline
I will give this a shot as soon as I get a chance.
Thanks!
Will
Offline
Would this eliminate Word style Smart Quotes as well? Having some trouble with that today.
Hopefully I'll play with this later - looks great!
Offline
Ticket 127 should fix Word style quotes.
Offline
Is anyone having a hard time getting the hack on ticket 349 to run? It seems like something breaks when I try to run it. Javascript console has nothing to say about the problem...
Offline
Which browser? Can you put in some alert statements in the constructor and in the function to see if they are called? I am around the next two days to help, then going on vacation for a few weeks.
Offline
...and did you modify the HTMLArea.js file as well?
Offline