Changes between Initial Version and Version 1 of Ticket #7585


Ignore:
Timestamp:
Aug 3, 2011, 2:51:19 PM (13 years ago)
Author:
Jakub Ś
Comment:

To get Text from a single element you can use getText() method. Please see here: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dom.element.html#getText

If you are talking about getting text from whole page than I think we could create a plug-in that moves down the DOM tree gets text from elements and returns nice plain line of text.

On the other hand I’m not sure if this road is not to slippery. Someone might say that plain line is ok, someone else that ok this is plain text but headers should be in one line a the rest of the text that follows in the other. Someone else might say that when one text ends with a space and the other text begins with it, one of spaces should be removed, someone else might say that they should be felt untouched. Someone might say that some tags should be omitted… and so on.

Perhaps the best solution is to leave this to the user to create a simple plug-in/function which moves down the DOM tree, gets the text from elements and returns it in the form that he/she wants?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7585

    • Property Keywords Get Plain Text removed
    • Property Status changed from new to confirmed
    • Property Version changed from FCKeditor 2.6.6 to 3.0
  • Ticket #7585 – Description

    initial v1  
    1 Dear CKEditor,
    2 
    3      I really found that i can't get plaint text from CKEditor control is a bug that just it has property called Text that return all HTML & Text I'd created.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy