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've moved the forum!

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.

Archive /

Our old forums are still available as a read-only archive.

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

tinymce not working for blog module?


Go to End


6 Posts   1457 Views

Avatar
raamklaza

Community Member, 182 Posts

9 November 2008 at 4:46am

Tinymce options aren't working in the blog module.

Anyone has the same?

Anyone know how to fix it?

Avatar
Liam

Community Member, 470 Posts

9 November 2008 at 6:53am

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.

Avatar
raamklaza

Community Member, 182 Posts

11 November 2008 at 10:56am

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.

Avatar
Liam

Community Member, 470 Posts

11 November 2008 at 11:14am

Edited: 11/11/2008 11:14am

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.

Avatar
raamklaza

Community Member, 182 Posts

11 November 2008 at 12:35pm

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
);

Avatar
Liam

Community Member, 470 Posts

11 November 2008 at 2:40pm

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