Changes between Initial Version and Version 1 of Ticket #7585

Aug 3, 2011, 2:51:19 PM (10 years ago)
Jakub Ś

To get Text from a single element you can use getText() method. Please see here:

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?


  • 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,
    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 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy