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 Jakub Ś

Status: newpending

Tested with CKEditor 4.4.4.

  1. What is the problem here? This text gets pasted as text. If you want to paste anchor please don't insert spaces after <.
  2. First of all you are pasting anchor and anchors are identified by id and name. There is no error here as this is how editor works. I can't confirm however that when you paste < a (with space) it gets converted into link. This is pasted as text.
  3. Please see image2 plugin which allows centring images http://ckeditor.com/addon/image2.

If possible please provide more details for issue 1 and 2.

comment:2 Changed 10 years ago by Ivan

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 Jakub Ś

Resolution: invalid
Status: pendingclosed
  1. This is valid code. You have to either remove it in MS Word or delete it in editor manually.
  2. 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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy