Tinymce options aren't working in the blog module.
Anyone has the same?
Anyone know how to fix it?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Tinymce options aren't working in the blog module.
Anyone has the same?
Anyone know how to fix it?
Make sure you're using a daily build/svn copy of the blog module. Then you can add this line to your config file BlogEntry::allow_wysiwyg_editing();
Or open up and edit blog/code/BlogEntry.php and you can change the variable from false to true. (static $allow_wysiwyg_editing = true;)
Adding it to the config probably a better idea, as it makes upgrading smoother.
I put you suggestion in the _config.php file in sapphire, but it gives me the following:
f�
Fatal error: Call to undefined method BlogEntry::allow_wysiwyg_editing() in C:\wampserver\www\1-Ontwikkeling\silverstripe-v2.2.2\sapphire\_config.php on line 71
Where do i get the latest build? i search through trac but i can't really find it.
http://doc.silverstripe.com/doku.php?id=daily-builds
That setting might only work in 2.3. I can't remember to be honest. So if it doesn't work after you use the latest build, just edit the line in the BlogyEntry.php file.
I changed the link in the BlogEntry file and did a db/build but the wysiwig is not working.
The allow_wysiwig_editing string wasn't in their yet so i put it in.
Does the place mather?
<?
class BlogEntry extends Page {
static $default_parent = array('BlogHolder');
static $can_be_root = false;
static $icon = "blog/images/blogpage";
static $db = array(
"Date" => "Datetime",
"Author" => "Text",
"Tags" => "Text"
);
static $allow_wysiwyg_editing = true;
static $casting = array(
"Date" => "Date"
);
static $defaults = array(
"ProvideComments" => true
);
Make sure you're using the newest one (or at least one of the newest ones). If you downloaded it and the line wasn't there, you're probably using an older version.
As of today, this is the latest one which has it in there - http://dailybuilds.silverstripe.com/modules-tarballs/blog.2008-11-11.tar.gz