We've got a couple of oddities with RadEditor (Q1 2010 version).
Links:
1) In Design mode, the user enters a line of text
2) The user marks a single word in the text they just entered
3) The user sets a hyperlink on the word via the Hyperlink Manager.
4) User continues adding text
5) The user marks the word previously hyperlinked and presses "Delete" on the keyboard
Result:
In HTML View, there's an empty anchor <a href></a> tag where the word used to be.
Things we tried:
- If the user selects the word plus the whitespace character preceding the word, the anchor tag is properly removed
- If the user "backspaces" the word out, the anchor tag is also properly removed
- If the user marks the word and instead of pressing "Delete" starts typing a replacement text, the anchor tag is kept around the new text
It's our opinion that marking the word (shift + cursor keys) and pressing the "Delete"-Key should also remove the underlying anchor tag (if present).
Changing Attributes:
Scenario:
We've got a Rad Editor on a page. The content is set from the Database. On postback, the application should check whether the user changed the content, and if yes, do some processing and update the database.
Observation:
We were setting the Rad Editor from the database with text containing a single anchor tag as follows:
.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...
Without changing anything in the editor and forcing a postback, RadEditor gave us the following content back:
.... <a class="XZY" href="http://www.sample.com">Sample</a> ...
Being the good fellows we are, we take that, write it back into the database and load the page again. So this time we set the content of our rad editor to:
.... <a class="XZY" href="http://www.sample.com">Sample</a> ...
Again, without changing anything in the edtior, we cause a postback and lo and behold what do we get from Rad Editor:
.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...
We've determined that this due to one of the default CONTENT FILTERS that Rad Editor uses. We managed to fix the problem by setting the ContentFilters property to "None", however this "fix" is less than perfect. Maybe you guys could look at which part of your javascript is flipping tag attributes around and make it stop?
Thanks.
Links:
1) In Design mode, the user enters a line of text
2) The user marks a single word in the text they just entered
3) The user sets a hyperlink on the word via the Hyperlink Manager.
4) User continues adding text
5) The user marks the word previously hyperlinked and presses "Delete" on the keyboard
Result:
In HTML View, there's an empty anchor <a href></a> tag where the word used to be.
Things we tried:
- If the user selects the word plus the whitespace character preceding the word, the anchor tag is properly removed
- If the user "backspaces" the word out, the anchor tag is also properly removed
- If the user marks the word and instead of pressing "Delete" starts typing a replacement text, the anchor tag is kept around the new text
It's our opinion that marking the word (shift + cursor keys) and pressing the "Delete"-Key should also remove the underlying anchor tag (if present).
Changing Attributes:
Scenario:
We've got a Rad Editor on a page. The content is set from the Database. On postback, the application should check whether the user changed the content, and if yes, do some processing and update the database.
Observation:
We were setting the Rad Editor from the database with text containing a single anchor tag as follows:
.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...
Without changing anything in the editor and forcing a postback, RadEditor gave us the following content back:
.... <a class="XZY" href="http://www.sample.com">Sample</a> ...
Being the good fellows we are, we take that, write it back into the database and load the page again. So this time we set the content of our rad editor to:
.... <a class="XZY" href="http://www.sample.com">Sample</a> ...
Again, without changing anything in the edtior, we cause a postback and lo and behold what do we get from Rad Editor:
.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...
We've determined that this due to one of the default CONTENT FILTERS that Rad Editor uses. We managed to fix the problem by setting the ContentFilters property to "None", however this "fix" is less than perfect. Maybe you guys could look at which part of your javascript is flipping tag attributes around and make it stop?
Thanks.