if config.pasteAsPlainText = true,
it doesn't work in this situation.
paste the content within a formatted region.
e.g. <b>balab^pasteHerealabala</b>
how to fix it ?
it doesn't work in this situation.
paste the content within a formatted region.
e.g. <b>balab^pasteHerealabala</b>
how to fix it ?
Re: config.pasteAsPlainText doesn't work
In your example I would expect that the inserted text would be bold because it is pasted inside a bold tag - doesn't it do this?
Re: config.pasteAsPlainText doesn't work
if i copied a text originally bold, and pasted within plain text content, the pastedAsPlain work !
However, if the copied content is set to pastedAsPlain, and pasted within some style tag e.g. <b> ,
it inherits the bold style rather than plain text
Re: config.pasteAsPlainText doesn't work
To reproduce:
1. by using the ckeditor/demo
2. clear all content 1st.
3. enter several lines e.g.
line number 1
line number 2
line number 3
ps: for code view , it should be :
<p>
line number 1</p>
<p>
line number 2</p>
<p>
line number 3</p>
4. select and style these line by bold, italic and underline (hot key) separately.
ps: for code view, it should be like this:
<p>
<strong>line number 1</strong></p>
<p>
<u>line number 2</u></p>
<p>
<em>line number 3</em></p>
5. Ctrl+A to select all and copy
6. Paste the copied content in the second line where cursor position at "line nu^mber 2",
( that's mean paste after "line nu" and before "mber 2" )
7. after pasted, DONT switch to view source mode, you will see there are some line break between last few lines.
8. select across "line number 3" + some line break + "mber 2" ( "line number 3" should be italiced and underlined , "mber 2" should be underlined )
9. after this selection, press the underline icon by using left click.
10. javascript error alerted. ('type' is null of not an object )
Attachments:
Re: config.pasteAsPlainText doesn't work
Why don't you report it on the Development site to let the developers check whether this works as designed (and desired)?
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!