I'm using a custom word count in a RadEditor, similar to the answer in this thread: http://www.telerik.com/community/forums/aspnet-ajax/editor/show-html-count.aspx
I've noticed that a call to get_text() will append characters in a single row of a table without any spacing.
For example, if I add a table to the editor content with 2 columns and 1 row, then view the HTML, it might look like this:
<table><tr><td>111</td><td>222</td></tr></table>
And a call to get_text() will return "111222".
I'm looking for a way to separate characters across table cells, so the above will be treated as "111 222" (2 separate words instead of 1).
I am looking at adding a space myself (via my custom word count) using a get_html() call before the get_text(), then doing a set_html() to return it back to the original (i.e. remove the spaces I've added so the user does not see any difference). But this seems inefficient, and I've actually hit a memory issue in an earlier version if IE already.
Is there a better way of doing this?
I looked at the get_text() call on a vanilla editor and it looked to do the same thing - i.e. combine characters without spacing across table cells in a single table row.
Currently using version 2013.1.423.40
I've noticed that a call to get_text() will append characters in a single row of a table without any spacing.
For example, if I add a table to the editor content with 2 columns and 1 row, then view the HTML, it might look like this:
<table><tr><td>111</td><td>222</td></tr></table>
And a call to get_text() will return "111222".
I'm looking for a way to separate characters across table cells, so the above will be treated as "111 222" (2 separate words instead of 1).
I am looking at adding a space myself (via my custom word count) using a get_html() call before the get_text(), then doing a set_html() to return it back to the original (i.e. remove the spaces I've added so the user does not see any difference). But this seems inefficient, and I've actually hit a memory issue in an earlier version if IE already.
Is there a better way of doing this?
I looked at the get_text() call on a vanilla editor and it looked to do the same thing - i.e. combine characters without spacing across table cells in a single table row.
Currently using version 2013.1.423.40