How can I enable a quick select all and copy HTML option?
The Select All and Copy buttons are great - they get me 90% of the way to what I need, but I'm having trouble figuring out the last 10%.
I don't want to copy the text in the editor. I want to copy the HTML source. Unfortunately, Copy is disabled in the Source view.
In a best-case scenario, I would be able to press a single button (Select All and Copy Source) from the rich editor view. This would cut the number of clicks necessary to copy the entire source, starting from the rich text editor.
Currently I have to:
1. Click "Source" to switch to the source view
2. Click "Select All" to select all source
3. Right click and choose Copy (or press Ctrl + C)
I'd like to cut that down to a single button, if at all possible. Any tips?
The Select All and Copy buttons are great - they get me 90% of the way to what I need, but I'm having trouble figuring out the last 10%.
I don't want to copy the text in the editor. I want to copy the HTML source. Unfortunately, Copy is disabled in the Source view.
In a best-case scenario, I would be able to press a single button (Select All and Copy Source) from the rich editor view. This would cut the number of clicks necessary to copy the entire source, starting from the rich text editor.
Currently I have to:
1. Click "Source" to switch to the source view
2. Click "Select All" to select all source
3. Right click and choose Copy (or press Ctrl + C)
I'd like to cut that down to a single button, if at all possible. Any tips?
Re: Select All and Copy HTML
Re: Select All and Copy HTML
There is a security restriction, but this is for internal use, and it's possible, at least in FireFox, to set up your security settings to allow script access to the clipboard for cut, copy and paste operations.
Thanks again for the pointer!
Re: Select All and Copy HTML
I also suggest writing a very simple custom plugin that would, as you requested, add a toolbar button to copy the editor content by using the getData() method.
Some plugin tutorials can be found here -- I think it should be easy to modify the examples to do what you want.
It would be cool if you posted the complete solution once you have it, for others to enjoy Good luck!
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: Select All and Copy HTML