Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Enabling buttons in wysiwyg

 

 


cormacparle
New User

Oct 23, 2006, 3:48 AM

Post #1 of 6 (3411 views)
Shortcut
Enabling buttons in wysiwyg Can't Post

Hi
I see that there are buttons in the wysiwyg code that are disabled by default - the one I'm interested in is btnFlash, which I presume will allow me to add flash movies in the way that I can add images. I've set it to true (rather than false) in wysiwyg/scripts/editor.js wysiwyg/scripts/moz/editor.js and wysiwyg/scripts/moz/editor_.js but the button doesn't appear
Any suggestions?
Thanks


Damon
Staff / Moderator


Oct 23, 2006, 9:07 AM

Post #2 of 6 (3400 views)
Shortcut
Re: [cormacparle] Enabling buttons in wysiwyg [In reply to] Can't Post

Hi,

To add the button to the editor, you need to edit the loadWysiwyg.js file locate in this folder
/webroot/artman2/javascript/loadWysiwyg.js

Find the "wysiwyg.features" section (around line 183) and add
"Flash"

I hope that helps. :)

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/


cormacparle
New User

Oct 24, 2006, 4:32 AM

Post #3 of 6 (3382 views)
Shortcut
Re: [Damon] Enabling buttons in wysiwyg [In reply to] Can't Post

Thanks Damon ... but I can't find a file called loadWysiwyg.js, or a directory called javascript anywhere. I'm using version 1.41

Oh! I've just realised I put the original post in the wrong forum, I should be in the Article manager 1 forum. Sorry ... could you answer my question anyway?


(This post was edited by cormacparle on Oct 24, 2006, 4:34 AM)


Damon
Staff / Moderator


Oct 24, 2006, 9:55 AM

Post #4 of 6 (3374 views)
Shortcut
Re: [cormacparle] Enabling buttons in wysiwyg [In reply to] Can't Post

Hi,

Ok, it's a little different for Article Manager 1.41. :)

Open you _interface.html template located here:
/templates/interface/_interface.html.

Find the "wysiwyg.features" section and add
"Flash".

Next, you will need to disable your XSS filter or the code need to embed the flash file will be stripped out of the program.

Open the config.ini file located here:
/artman/exec/config.ini
and change the enable_xss_filter setting to this
enable_xss_filter = 0

Note: The XSS filter is used to remove potentially harmful code so only disable it if you are getting article content submitted from trusted sources.

Here is a link for the more info about the XSS filter:
http://www.interactivetools.com/docs/articlemanager/admin/doc_page61.html

I hope this helps. I'm moving this thread to the Article Manager 1 forum.

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/


cormacparle
New User

Nov 28, 2006, 4:07 AM

Post #5 of 6 (3266 views)
Shortcut
Re: [Damon] Enabling buttons in wysiwyg [In reply to] Can't Post

Hi again

This worked for a while and now I'm getting this error message when I try to publish an article:

The template 'article/article_flash.html' could not be found for publishing Article Detail pages in the 'Flash Movie' category (category record #71)

The template it refers to isn't in the articlemanager zip that I downloaded


Donna
Staff / Moderator


Nov 29, 2006, 1:52 PM

Post #6 of 6 (3258 views)
Shortcut
Re: [cormacparle] Enabling buttons in wysiwyg [In reply to] Can't Post

Hi there!

That sounds like something you've added -- it's looking for a specific template that you've referred to in the category editor. You can change what template it's looking for by going into the Category Editor and changing the article template. :)

Donna

--
support@interactivetools.com