#1537: Forced <p> on paste
-----------------------------+----------------------------------------------
 Reporter:  MiksIr           |        Type:  Bug       
   Status:  new              |    Priority:  Normal    
Milestone:                   |   Component:  General   
  Version:  SVN (FCKeditor)  |    Keywords:  WorksForMe
-----------------------------+----------------------------------------------

Comment(by Adam.Cap):

 I've found that forced paragraph on paste is caused by FCK function
 InsertHtml.
 When you create some headings like:
 {{{
 <h2>blabla</h2>
 }}}
  and then you paste from word the empty paragraph between is created (If
 not, switch the source button and back).

 In '''_source/internals/fck_ie.js''' is:


 {{{
 // Using the following trick, any comment in the beginning of the HTML
 will
 // be preserved.

 html = '<span id="__fakeFCKRemove__"
 style="display:none;">fakeFCKRemove</span>' + html;
 }}}



 {{{
 // Remove the fake node
 FCK.EditorDocument.getElementById('__fakeFCKRemove__').removeNode(true);
 }}}


 When i comment this lines no empty paragraph was created.
 So, this workaround will probably also disable including HTML comments
 inside??
 But i hope that it will be helpful for someone.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1537#comment:5>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to