Opened 10 years ago
Closed 10 years ago
#12417 closed Bug (invalid)
I found bugs in editor
Reported by: | Ivan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
1)I am pasted text from word 2007 (.docx) in random place pasted this link "< a name="_GoBack">< /a>" (i am inserted space after < ). 2)I want paste id="target_element", but editor pasted "< a id="target_element" name="target_element">" Why editor inserted link? 3)I do not found alignment by center, only by left and right, in image dialog. I know "float: center" not exist, but this css-style help centred image: "text-align: center; margin-left: auto; margin-right: auto;" Please, fix this small bugs. Thank you.
Change History (3)
comment:1 Changed 10 years ago by
Status: | new → pending |
---|
comment:2 Changed 10 years ago by
1)This code pasted from word 2007 (.docx) with my text. Can you automatic delete this code?
<a name="_GoBack"></a>
2)
I want paste only id="target_element" without
<a ....
Why editor inserted link? It's unnecessary paste <a . This is bad style coding). You may replace <a on <span, if you want paste new tag.
comment:3 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
- This is valid code. You have to either remove it in MS Word or delete it in editor manually.
- It is not possible to paste only id in this case. If you copy link from MS Word then link gets pasted.
I think you can modify pastefromword filter to do things you want (delete anchors you don't want and extract id from anchor). You would need to modify this file: ckeditor\plugins\pastefromword\filter\default.js
I see no errors here thus I'm closing this issue as invalid.
Tested with CKEditor 4.4.4.
<
.< a
(with space) it gets converted into link. This is pasted as text.If possible please provide more details for issue 1 and 2.