Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Problem Saving in SimpleHTMLEditorField


Go to End


638 Views

Avatar
smaction

Community Member, 4 Posts

15 May 2014 at 10:03am

I am not sure if this is the correct place for this question but here goes....

I have the following module http://pastebin.com/GkRnGQMt part of what it creates is the following popup http://imgur.com/lFHmfUr. This was in place before I got here and everything has been working. When I use the HTML editor created on line 89 the actual HTML field (see circle in image) is not saveable. I can edit the field but then the modification changes back before my eyes when I hit save. The problem is the code I am adding is an IFRAME. I know it can work because, as you can see, the code I want to replace is an IFRAME. Using SS 2.4.2 I tried changeing the field to SimpleTinyMCEField and that still did not work. Plain text will save but the HTML with an IFRAME won't. I also added this code: http://sspaste.com/paste/show/5373dd0031e29 to the end of my _config.php file. Any thoughts?