Ticket #1537 (new Bug)

Opened 9 months ago

Last modified 5 months ago

Forced <p> on paste

Reported by: MiksIr Owned by:
Priority: Normal Milestone:
Component: General Version: SVN
Keywords: Pending WorksForMe Cc:

Description

When paste paragraph from Word (I am not check other sources) the empty paragraph (<p>&nbsp;</p>) is forced.
This is nodes of FCKeditor before insert (empty document):

<body spellcheck="false">
  <p>
    <br type="_moz"/>
  </p>
</body>

and this is after paste:

<body spellcheck="false">
  <p/>
  <p class="MsoNormal" _moz_dirty="">
    <span lang="EN-US" style="">
      It’s a test
    </span>
  </p>
</body>

Sure, use "Word paste" make the same result.

Change History

follow-up: ↓ 2   Changed 6 months ago by w.olchawa

  • keywords Pending WorksForMe added

Hi!

Could you please provide more information about the steps that should be taken to reproduce this bug?

I was trying to reproduce the problem using FF2 and everything seems to work fine.

My results:

BEFORE PASTING FROM WORD:

<br />
<br />
<br type="_moz" />

AFTER PASTING FROM WORD:

<br />
<p class="MsoNormal"><span lang="EN-US" style="color: rgb(255, 153, 0);">This is a sample test from MS Word<o:p></o:p></span></p>
<br />
<br type="_moz" />

Maybe you are referring to the problem that a <p> tag is inserted on paste even though your configuration is set to FCKConfig.EnterMode = 'br'; . Please let us know if it is the problem that you are coping with.

Thanks

in reply to: ↑ 1   Changed 6 months ago by Gudea

Replying to w.olchawa:

Maybe you are referring to the problem that a <p> tag is inserted on paste even though your configuration is set to FCKConfig.EnterMode = 'br'; . Please let us know if it is the problem that you are coping with. Thanks

I do have that problem! When pasting under certain circumstances the content becomes wrapped with a <p> tag. Its hard to remove that tag but manually through source HTML (what I don't want to leave to the user) I still don't know those circumstances. Sometimes that happens, and others doesn't. I only know that when a <p> tag appears at content's boundaries, it gets too difficult to remove. I found only an unanswered question about that at the forum. Some solution? Thanks

  Changed 5 months ago by drsskelkar

Persistent problem noticed even in IE7, Firefox and Safari, and other browsers that extra unwanted <p> get inserted around editor text when you switch back and forth between source view and WYSIWYG mode. This problem is reflected in various forms in all the bugs reported in this forum around <p> tag related issues.

Note: See TracTickets for help on using tickets.