Support Forums

TinyMCE

This is a discussion on TinyMCE within the Technical Support forums, part of the Technical Support Forums category; I can't seem to get the html editor going on both the user and admin sides. I think I had ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 10-12-2008, 07:09 PM   #1
Customer
 
Join Date: Oct 2008
Posts: 17
Rep Power: 10
bookman is on a distinguished road
Default TinyMCE

I can't seem to get the html editor going on both the user and admin sides. I think I had it going at one time (only installed the app a few days ago) but I am not sure. When I look at the browser source code in http://www.mysite.com/usermodifylisting.php?view=2 there is no js call to load tinyMCE. I also loaded the most recent version of tinyMCE, but no change. My settings have Enable HTM Editor = yes.

I am lost. All help appreciated.

bob
verion 4.0.9 Designer
bookman is offline  
Old 10-12-2008, 07:33 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,960
Rep Power: 73
seymourjames is a jewel in the rough
Default

Your TinyMCE should be working in your admin control panel for use with page editor but I have never had it available as part of a users checkout process for putting in adverts or modifying listings.

In the admin control panel under checkout settings you can define html tags for example that users can apply in their listings. Things like bolding text, putting in links (tricky and dangerous), changing font faces, colors, size, underlining etc. also look at the post http://www.68classifieds.com/forums/...ge-editor.html
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 10-12-2008, 08:09 PM   #3
Customer
 
Join Date: Oct 2008
Posts: 17
Rep Power: 10
bookman is on a distinguished road
Default

the template is ok, I hadn't changed it. The problem is that there is no call to get the js file. I am pretty sure that I had it working at one point in time but now it is not. I did a Clear Compiled Templates and I think that is when it stopped working. Do I need to do some sort of regen? If so, how do I do that?

many tia
bob
bookman is offline  
Old 10-13-2008, 12:21 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

The tinymce editor is only designed to work with the administration.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 10-13-2008, 01:33 PM   #5
Customer
 
Join Date: Oct 2008
Posts: 17
Rep Power: 10
bookman is on a distinguished road
Default

OK, thx. Guess I will have to get going and implement for my users.
bob
bookman is offline  
Old 10-13-2008, 02:22 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,347
Rep Power: 133
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by bookman
OK, thx. Guess I will have to get going and implement for my users.
bob
Keep in mind that tight controls on HTML usage for users serves a purpose. There is currently a lot of code to clean the entered input to protect your site from malicious activity. Implementing tinyMCE for the user could bring with it some serious security risks if your not extremely carefull.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-13-2008, 02:31 PM   #7
Customer
 
Join Date: Oct 2008
Posts: 17
Rep Power: 10
bookman is on a distinguished road
Default

Hi Larry

You are of course right. However my plan was to expand the html filtering to ul, li, i elements and remove all others form tinyMCE. That way the user can use the wysiwyg facility but we should still be just as save. In particular I would diable the img and a tags so the user really has very little choice, only easier to use.

As I understand it (I haven't actually tried this yet) if I type in say a span tag in the default user configuration the backend will throw an exception and stop processing. I would expect that would happen if tinyMCE is implemented with the same set of parsing rules. Or did I miss something?

bob
bookman is offline  
Old 10-13-2008, 02:35 PM   #8
curmudgeon
 
Join Date: Mar 2006
Posts: 5,347
Rep Power: 133
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by bookman

As I understand it (I haven't actually tried this yet) if I type in say a span tag in the default user configuration the backend will throw an exception and stop processing. I would expect that would happen if tinyMCE is implemented with the same set of parsing rules. Or did I miss something?

bob
The backend 68C files are going to continue to strip html and other things deemed harmfull regardless of what you use on the front end to allow the user to fill in the ad form.

With that in mind you can, in 68C admin, add additional allowed tags and if that isnt sufficient you will have to modify the scripts that sanitize the input.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-13-2008, 02:54 PM   #9
Customer
 
Join Date: Oct 2008
Posts: 17
Rep Power: 10
bookman is on a distinguished road
Default

Exactly, which is why I think I am pretty safe allowing users access to tinyMCE. Now all I need is time to implement it
bob
bookman is offline  
Old 10-13-2008, 10:07 PM   #10
Customer
 
Join Date: Oct 2008
Posts: 17
Rep Power: 10
bookman is on a distinguished road
Default

OK, I have it running on both the user/usermodifylisting.tpl and checkout/step3.tpl templates. I have the widget configured to allow bold, italics, strickthrough, numbered and unnumbered lists, and justification. NO LINKS and NO IMAGES (in the text, images are limited to one per ad).

I have the Allowed HTML Tags set to <b><strong><p><ul><ol><li> on the Checkout Settings Tab. Is there somewhere else where that can be set for the normal user editor?

BUT, when I save a change, the ad is set to inactive always. I have the hidden field name="display" value="Y" but that does not seem to control that state of the ad. HELP! ! !

tia
bob

Last edited by bookman; 10-13-2008 at 10:18 PM.
bookman is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tinymce plugins spagman Modules / Plugins / Modifications 3 06-13-2008 01:05 PM


All times are GMT -4. The time now is 11:45 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0