Author |
Message |
izone
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/Animaniacs/Animaniacs_-_Pinky.gif)
Joined: Sep 07, 2004
Posts: 354
Location: Sweden
|
Posted:
Tue Sep 06, 2005 2:06 am |
|
I'm using Link To Us module from codewise and have a problem with tiny_mce editor showing in link to us block. Look at the block picture here:
I've disabled the editor for this module but How can I disable it for the block using textarea code?
Thanks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Sep 06, 2005 7:59 am |
|
I think the quickest solution would be to see if they have a pre 7.7 version and use the block from that. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
izone
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 06, 2005 9:32 am |
|
Guardian2003, thanks but if you mean codwise, no they don't have it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 06, 2005 10:46 am |
|
Could you post a link to the block code as a text file?
Someone is bound to ask and I would like to take a look out of interest. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
izone
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 06, 2005 11:09 am |
|
Only registered users can see links on this board! Get registered or login! can see the text file.
Thanks for your help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Sep 06, 2005 9:54 pm |
|
This is one of the many problems with 7.7 and 7.8. The implementation of TinyMCE in version 7.7 and 7.8 involved removing security checking for bad HTML (see posts here) and the automatic replacement of textarea fields (which the block uses) with the WYSIWYG editor. If you don't want to move back to a more secure Nuke version (e.g. 7.6), you can change the TEXTAREA html to just display the content between the textarea tags, and that should remove the TinyMCE editor stuff. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 07, 2005 3:03 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
izone
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 07, 2005 4:40 am |
|
Thank you both for helping me.
kguske, I would love to change back to 7.6 but have I reupload 7.6 file too?
I ask this because I have installed some extra modules which need editing som of Nuke files again. I don't want to do this again. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 07, 2005 5:59 am |
|
Bob Marion created a downgrade script that many have used. This changes the standard tables back to their 7.6 form, but shouldn't affect any addon modules you have added. You can get that at http://nukescripts.net.
Unless you get a patched version of 7.6 with the modules you added already included, you'll need to modify the files again. A file comparison tool like Beyond Compare or WinMerge can greatly simplify this. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 07, 2005 6:26 am |
|
As a persoanl comment, I think you will find downgrading to version 7.6 is worthwhile in the long run. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
64bitguy
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/183ecd6a404a3683445de.gif)
Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Wed Sep 07, 2005 7:54 pm |
|
The problem with 7.7 or 7.8 is that even if you remove the TinyMCE editor, you are still left with the fact that the in-module HTML validation and security validation has been removed. This makes running 7.7 and/or 7.8 not worth while regardless if you are using the an HTML editor or not. |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 07, 2005 11:08 pm |
|
Agreed. I leveraged some earlier work done by Sixonetonoffun to allow a (better) WYSIWYG editor (FCKeditor) with even better HTML validation than what's in 7.6 (yes, I know it wouldn't be difficult to do that, and it wasn't thanks to Six).
The approach I took allow different functions for admins and non-admins. Although it's fairly easy to implement, I hope to make it even easier. Unlike the approach used in 7.7 and 7.8 with TinyMCE, this approach doesn't automatically replace all textareas with a WYSIWYG editor. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
64bitguy
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 07, 2005 11:16 pm |
|
Using 7.6 as a baseline and creating a new definition (instead of textarea, let's say "textareaeditor") for the function is truly the best scenario.
This way you can add the function if you want to any block or module simply by modifying the call and still leave the security validation in place.
Additionally, you can write the wrappers for the function (or use premade wrappers) as many have done for FCKeditor.
It allows you to both achieve W3C Presentation compliance (if you validate for that functionality) while also operating in the restrictions of a Nuke Security model.
I have also seen this done by using the default and simply applying a switch. That too will work and will save you some in module coding regarding security filtering for the new definition.
Though again, in 7.7/7.8 all of that is moot as the filtering and validation simply no longer exists. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Sep 08, 2005 4:55 am |
|
Thanks, Steph. What did you mean by "if you validate for that functionality" (W3C presentation compliance)? The editor itself should create compliant HTML, but as long as we have access to the "Source" button (i.e. direct HTML editing without the WYSIWYG editor) that can be overwritten. Aside from using something like Tidy, is there another way to validate for compliance dynamically? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
izone
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Sep 08, 2005 5:24 am |
|
Sorry to interrupting you here! I really enjoy this discussion, but because I have a new installation of 7.8 with all the above and other problem I decided to remove everythings and reinstall 7.6 instedt. A question here is do You know where I could get a 7.6 with latest patch and a GOOD EDITOR installed???
Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Sep 08, 2005 6:57 am |
|
Wise decision on installing 7.6. It's not that TinyMCE is a bad WYSIWYG editor - it was just poorly implemented. That said, there are some implementations for Nuke of the Only registered users can see links on this board! Get registered or login! editor and Only registered users can see links on this board! Get registered or login! that don't remove security, but also aren't as fully implemented.
Your best bet is to add one of these to a patched version of 7.6. Some distributions add both, which seems like unnecessary bloat to me (for that matter, a lot of the loaded distros are overloaded IMHO). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|