791 Posts in 369 Topics by 303 members
Page: 1 2
|Go to End|
18 January 2012 at 11:19pm
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
Sorry hadn't quite finished with the article!
check it now...hopefully it's clearer
18 January 2012 at 11:42pm
sorry to be a pain but the link in the article "http://groups.google.com/group/silverstripe-dev/msg/1a3b1292c4f46117" still links to "http:"
and the article is advising a replacing a core class yes?
18 January 2012 at 11:46pm
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
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
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
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
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!)
Page: 1 2
|Go to Top|