18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
HTML Text Editor
How to deal with HTML text editor.
Best Answer
-
Hi Chaitanya,
I am assuming you are looking for help with rich text editor.
If yes, please have a look at the following info.
Identification: _rte($identifier[, $relation ...]) Arguments: $identifier: string - Can be name, id or index of iframe which houses the RTE. $relation - relation optional Relation APIs Details: _rte("editor") // using id _rte(0, _in(_div("editorDiv"))) // using index and _in _rte is the same as _iframe. RTE Fetch APIS: _rteText($el) Arguments: $el : HTML DOM element - Element which is content editable (eg. _rte(0)) Details: Returns the text inside a rich text editor (without the html formatting) as a string. // get the rich text editor's text content var $rteText = _rteText(_rte("rteId")); // $rteText may look like "Hi there" _rteHTML($el) Arguments: $el: HTML DOM element - Element which is content editable (eg. _rte(0)) Details: Returns the HTML content inside a rich text editor (without the html formatting) as a string. // get the rich text editor's HTML content var $rteHTML = _rteHTML(_rte("rteId")); // $rteHTML may look like "Hi <b>there</b>" RTE Action APIs: _rteWrite($rte, $html) Arguments: $rte: HTML DOM element - RTE to write into $html : string - html to write Details: Replaces the content of the RTE with given HTML. Note that this does not simulate all events like other Sahi APIs. _rteWrite only replaces the content of the iframe. _rteWrite(_rte("editor"), "Hi <b>user</b>");
Answers
That exactly what i want to do .I have installed a HTML program recently:
http://www.rasteredge.com/how-to/csharp-imaging/html-reading/
But it can only read the HTML.I want to know that if there is any powerful program which supports to edit HTML files directly.Thanks for any suggestion
I don't think I get your requirement correctly.
If you are asking for an editor to edit HTML pages, have you tried using notepad++?
Regards,
Pratyush