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:

Widgets /

Discuss SilverStripe Widgets.

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

Remove HTML content widget

Go to End

7 Posts   5128 Views


18 Posts

13 January 2009 at 8:31am

What is the easiest way to remove HTML content widget. Seem to be unable to delete it the usual way in Blog widgets. When trying to delete it the widget disappears but the page can't be saved.


Community Member, 400 Posts

24 January 2009 at 3:25pm

try with deleting the widget codes and run db/build?flush=1


Community Member, 16 Posts

19 February 2009 at 2:45am

I have the same problem, I don't want to get rid of the widget but just remove it from a particular page. It deletes the HTML content but will not save or publish. I am guessing it is bugged.

Any ideas?



Community Member, 8 Posts

6 March 2009 at 9:08am

Edited: 06/03/2009 9:11am

Crazy workaround...

documenting this for myself and others (because I keep forgetting the steps!)

Ok here we go-

First Install the HTML Content Widget - db build flush etc...
Now the widget tab should be inside the blog holder with the html content widget inside.
drag it over to the widget area and type something in it (test)
click on the save and publish and that part should work.
Go back to the front end and do a db/build?flush=1
clear the cache on your browser and then refresh the admin.
Go to another page and do this and then go back to the blog (in the admin)
(You should see the wysiwyg editor now, but filled with html garbage instead of wys)
View html of of the wysiwyg by presssing html in the editors toolbar
ctrl+a select all and delete everything
insert or save it blank
now use the wysiwyg editor to create fabulous content - links - images etc.
Publish content, view in another window or tab.
Don't leave the admin widget section until you have it how you want it.

every time you leave the page and come back it will destroy what you did by reverting back to html, so dont publish after you leave and come back...

unless you want to publish html script


Community Member, 57 Posts

31 March 2009 at 12:01am

Edited: 31/03/2009 12:05am

This bug has been submitted to the bugtracker (#2836)
I think it's related to


Community Member, 57 Posts

31 March 2009 at 12:17am

Edited: 20/04/2009 9:20pm

To remove the HTMLContentWidget you can simply delete and recreate the page or edit the HTMLContent widget so that it doesn't use the TinyMCE editor.

To edit the HTMLContentWidget:
Change the HTMLEditorField to a TextAreaField in the getCMSField function in HtmlContentWidget.php
Add?flush=1 and reload the CMS page you're editing.
You should now be able to delete the widget.

You can actually use the widget with this modified interface. Just paste HTML into the textarea in the CMS; it's only the javascript that adds the TinyMCE editor that's a bit broken.


Community Member, 219 Posts

18 January 2012 at 11:12pm

Edited: 18/01/2012 11:22pm

We got our widgets working on all pages eventually, here's our solution. Hopefully it helps!