Pasting content from the clipboard to the ckeditor edit field results in a box with the message, that pasting is not possible due to browser restrictions (I'm using Firefox, but it's the same with Chrome). I should paste the clipboards content into the box which works but after clicking ok nothing happens. So I can't paste anything from the clipboard into the editor area.
Inserting a file via the image button works.
What to do to paste content from the clipboard to the editor area?
The problem vanished after copying a new ckeditor version into the appropriate directory under yii's vendor folder.
But I don't know why it works now?
Related
I'm using Chrome 65 on Mac. I have set up a workspace in Chrome under the 'Sources > Filesystem' tab. I'm able to edit files and Chrome will save these changes to the actual file on my disk. But I would like to use the live editing capabilities of the 'Elements' tab to alter HTML & CSS and let Chrome save these changes.
I have found many answers, but none work with the current version of Chrome.
You may not be able to save the file locally as you can with you CSS changes (from the "Sources" tab), but you can copy and paste elements using Chrome 65 and above (maybe older versions too). Copying the element also copies all of its children and their children. So, if you copy the <html> element, you will get the entire page - everything between <html> and </html>.
Right click on the element, go to Copy > Copy element. Then paste the clipboard content into your favorite editor or IDE and save. Not as convenient as saving from the Sources tab, but it does allow you to get/save all the changes you've made in the Elements tab.
Simply saving the website (File > Save Page As...) works for me.
I'm using Chrome Headless for testing purpose. It is used in conjunction with nightwatch.
There is an action that clicks on a button in a page. Unfortunatly the page is not online, but the copy part is done with export:
this.waitForElementVisible('#exportBtn', 6000)
.click('#exportBtn')
This button, using javascript, it copy some content in the clipboard.
[EDITED] The button uses ngclipboard from Angular (https://sachinchoolur.github.io/ngclipboard/)
But when I "paste" the content in another field, the content is not the one copied/expected. The paste is done with:
client.keys([client.Keys.CONTROL, "v"]);
Running the same test in the normal way (Chrome with the UI) there is no error.
For your info: the paste part works, in the sense that it paste something in the text field, but it's not the one copied, it's the last thing copied by myself (from notepad, from word...from everything but outside and before the run of this test)
Any clue or possible error?
I was configuring the FCKEditor in the productcockpit of hybris so that there will be no HTML markup in the text when pasting it into the popup window.
Is there any way to remove that popup which is coming as soon as you paste some stuff into it? Or is there still the issue with browser security and js stuff?
The paste dialogs were removed in CKEditor 4.7.0 (see changelog and https://dev.ckeditor.com/ticket/16954). You may also just force pasting plain text with forcePasteAsPlainText config option.
But this is for CKEditor 4.x, if you are using FCKEditor you may consider updating to the newest version of CKEditor.
I am trying to copy code from an email into a a Web page file. I would like the file to have functionality.
I tried copying it directly into a new Sublime file but the colors did not appear as if I had typed it in. When I right clicked background, no open in browser option appeared. I am experimenting with code snippets in blogs and having problems pasting code with functionality in tact. Is this an extension omission ?
Thanks
Sublime will copy plain text, a wysiwyg html editor will copy the markup. If you want to get the markup, do 'show original' (gmail) or whatever your client has as an equivalent. The original will have the markup and can be copied into Sublime. Hope that helps.
When I try to save a web page using the format "Web Page, Complete," half of the time it only saves the the folder containing the style sheet and images, and the .html file is not saved anywhere on my hard drive. How do I correct this? I have noticed it also happens when I use Safari, so it is not just an isolated issue with Google Chrome.
First save the whole page (webpage,complete) which may only save the folder containing the style sheets and images, again press CTRL+S to save the page but this time select to save only the HTML page by clicking on- (webpage,HTML only).
When directory is saved but not the file, try the following:
In "File name:" include the .html extension (example:
SampleFileName.html), and
Select Webpage, Complete in "Save as Type:"
Seems to fix the bug.