Remove Formatting no longer removing html tags?
It seems as though the removeFormatting button is no longer removing tags. For example, i'm going to paste some code from another response i just made, select it, and click remove formatting:
Copy code
- $.datepicker.setDefaults({
- dateFormat: 'dd/mm/yy'
- });
- // elsewhere in your code
- $(selector).datepicker();
- $(someotherselector).datepicker();
It does do something, but it no longer removes the tags around the text. This makes modifying code that someone pastes from some other editor a real pain.
Another example, here's something copied from jqueryui.com without remove formatting applied:
$.datepicker.setDefaults($.datepicker.regional['fr']);
and with remove formatting applied
$.datepicker.setDefaults($.datepicker.regional['fr']);
In the past this function would remove all formatting and tags around the text in the selected text, but it would leave all spaces and tabs in place ( as far as i can tell ).
-- Kevin