mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
commit
93cd339ff0
@ -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
|
||||
|
||||
|
@ -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\">");
|
||||
|
Loading…
x
Reference in New Issue
Block a user