7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » [BUG] Editing html in a SimpleHTMLEditorField reverts upon saving
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 543 Views |
-
[BUG] Editing html in a SimpleHTMLEditorField reverts upon saving

13 January 2011 at 7:12pm Last edited: 13 January 2011 7:13pm
I noticed a bug when editing the underlying html in a SimpleHTMLEditorField after clicking on the < > icon. After you click on it and make your changes to the html code, and try to save, the field reverts to what was originally there in the first place. This is making it impossible to save any changes to the html in the field.
Note, it is not a problem with incorrectly saving the contents to the db. I actually can see the html editor field revert back right in front of my eyes as it saves.
-
Re: [BUG] Editing html in a SimpleHTMLEditorField reverts upon saving

13 January 2011 at 7:20pm
Also, am wondering why the SimpleHTMLEditorField converts paragraphs to <div>s and <br>s? This is a little irritating as <p> is the standard tag for paragraphs and I wrote CSS styles that target the <p> tag.
-
Re: [BUG] Editing html in a SimpleHTMLEditorField reverts upon saving

14 January 2011 at 4:00am
I think SimpleTinyMCEField is a better choice for this.. I don't like the way that widget marks up the text..
--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com -
Re: [BUG] Editing html in a SimpleHTMLEditorField reverts upon saving

14 January 2011 at 12:47pm
Thanks for the tip!
| 543 Views | ||
|
Page:
1
|
Go to Top |

