Merge pull request #3060 from tractorcow/pulls/tinymce-blockquote

API tinymce editor no longer transforms paragraphs with margin-left into blockquotes
This commit is contained in:
Hamish Friedlander 2014-05-06 11:40:44 +12:00
commit 93cd339ff0
2 changed files with 1 additions and 2 deletions

View File

@ -5,6 +5,7 @@
* Minimum PHP version raised to 5.3.3
* DataObject::validate() method visibility changed to public
* UploadField "Select from files" shows files in all folders by default
* HtmlEditorField no longer substitutes `<blockquote />` for indented text
## Changelog

View File

@ -1400,8 +1400,6 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
*/
function sapphiremce_cleanup(type, value) {
if(type == 'get_from_editor') {
// replace indented text with a <blockquote>
value = value.replace(/<p [^>]*margin-left[^>]*>([^\n|\n\015|\015\n]*)<\/p>/ig,"<blockquote><p>$1</p></blockquote>");
// replace VML pixel image references with image tags - experimental
value = value.replace(/<[a-z0-9]+:imagedata[^>]+src="?([^> "]+)"?[^>]*>/ig,"<img src=\"$1\">");