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.


Discuss SilverStripe Widgets.

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

HTMLTextField in Widget


16 Posts   4540 Views


18 January 2012 at 11:19pm Forum Moderator, 1796 Posts

I just read that (btw the link isn't correctly linking in your article) but it wasn't clear to me whether you have used that code and "hacked the core" - did you hack the core?

Also how are the other functions that are added to TinyMCE handled - for instance inserting a link to another ss page?

btw I am intrested in this, but without hacking the core and providing all TinyMCE functions, until then I'll stick to bbcode only and a text edit


18 January 2012 at 11:36pm (Last edited: 18 January 2012 11:36pm), Community Member, 218 Posts

Sorry hadn't quite finished with the article!
check it now...hopefully it's clearer


18 January 2012 at 11:42pm Forum Moderator, 1796 Posts

sorry to be a pain but the link in the article "" still links to "http:"
and the article is advising a replacing a core class yes?


18 January 2012 at 11:46pm Community Member, 218 Posts

oh that link! fixed. thanks for pointing it out.

no we ONLY used the "widgets_content" folder from his link of attachments at the bottom of the page. We didn't make ANY core changes. Or changes to WidgetEditorArea.js.


18 January 2012 at 11:48pm Forum Moderator, 1796 Posts

hmmm, no core change great! and it handles things link inserting a link the same way tinyMCE in the "normal" use does?


18 January 2012 at 11:55pm Community Member, 218 Posts


The ONLY draw back is that you still need to save the page when you add a content widget before the TinyMCE applet will load.
But links, images, internal links etc all work fine.


25 January 2012 at 1:06am (Last edited: 25 January 2012 1:06am), Community Member, 51 Posts


I try to implement your plugin, but it seems that .js file is missing in archive. In the ContentWidget.php you have requirement:


And there is no such file in this folder. Could you check this please? Thanks!


25 January 2012 at 1:16am Community Member, 218 Posts

You're right!
That's odd. Doesn't look like it matters, I just commented it out and all still works fine.
I'll update my .zip files now.

(in case you haven't noticed, this isn't my strong point, so the code may not be great! But it works, so I wanted to share anyway, I'm sure the pros here can clean up these widget packs for general public use!)