Declined
Last Updated: 09 Jun 2021 15:36 by ADMIN
ADMIN
Niko
Created on: 26 Feb 2014 14:14
Category: Editor
Type: Feature Request
0
Expose the server-side Text property functionality of the Editor control as static method
The Text property of the editor converts the html into plain text. Very handy. It would be really helpful if this could be exposed as a static method on the editor for use elsewhere, without having to create an editor object.

 I know that I could just grab the source code and create my own, but then I don't get the benefit of improvements and bug fixes you may add in the future.
5 comments
ADMIN
Rumen
Posted on: 09 Jun 2021 15:36

The item is declined due to lack of popularity among the community for many years.

ADMIN
Niko
Posted on: 14 Mar 2014 13:11
Allowing that scenario could also mean to allow a more flexible extensibility points. It could allow parsing arbitrary attributes or styles. However I can easily see this going out of hand and becoming a complexity nightmare.

Therefore for your case I would suggest that you do the mentioned specific transformation beforehand by changing the HTML of the Editor content. This can be done using Regular expressions or any other parsing approach that you find fit for the task. This will make sure your scenario is possible.
Dan Ehrmann
Posted on: 13 Mar 2014 14:43
I am not talking about the unlink command (thought that might be interesting). I am suggesting a behavior to add to the html-to-text conversion function, which is the subject of this feature request.
ADMIN
Niko
Posted on: 13 Mar 2014 10:01
@Dan - this sounds like a new feature and more precisely like a new command or altering the behavior of the Unlink command. Could you, please, open a separate feature request with more details?
Dan Ehrmann
Posted on: 06 Mar 2014 16:19
Another suggestion to add - when a link (<a>) is converted to text, only the text is preserved. It would be nice if the href could be preserved as well somehow. For example:
     <a href="http://www.telerik.com">Telerik<a>

is now converted as:
     Telerik

Important info is lost. It would be nice to have an option to do this:
     Telerik (http://www.telerik.com)

This should be skipped on links where the href is "#" or "javascript:..."