Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Re:prevent tinymce / JCE editor from stripping code (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:prevent tinymce / JCE editor from stripping code
#470
shoulders (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
prevent tinymce / JCE editor from stripping code 3 Years, 1 Month ago Karma: 0  
Everytime i use a wysiwyg it alters the code in between the geshi tags, so what this means is the first time you save the article will look corrct and then the second time you edit, it further changes the code. By this time it is no longer what you type in.

please can you tell me if there is a way to tell JCE / editor or tinymce (same thing i think) to ignore code in between your geshibot tags.

just as a thought, you could use the < ! - -- > tags. this seems to stop stripping in tinymce. but what you could do then is have the javascript remove these on the fly.

thanks

shoulders
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/12/19 11:14 By shoulders.
 
  The administrator has disabled public write access.
#474
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:prevent tinymce / JCE editor from stripping code 3 Years, 1 Month ago Karma: 10  
QUOTE:
just as a thought, you could use the < ! - -- > tags. this seems to stop stripping in tinymce. but what you could do then is have the javascript remove these on the fly.


where do you add the < !-- -- > tags?

Around the whole code?

For
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#475
shoulders (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:prevent tinymce / JCE editor from stripping code 3 Years, 1 Month ago Karma: 0  
isue them like this

<!-   my code here   -->


the ignore tags obviously appears in the code.

tar
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#476
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:prevent tinymce / JCE editor from stripping code 3 Years, 1 Month ago Karma: 10  
Does <!-- { geshibot } .. code .. { /geshibot } --> work?

cause { geshibot } <!-- .. code .. --> { /geshibot } is not possible. Because some code need the literal <!-- and --> in there.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/12/20 06:34 By admin.
  The administrator has disabled public write access.
#477
shoulders (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:prevent tinymce / JCE editor from stripping code 3 Years, 1 Month ago Karma: 0  
<!-- { geshibot } .. code .. { /geshibot } --> doesnt work.

The following works aswell

{ geshibot <!--} .. code .. { /geshibot } -->

first ignore does not show, but the second does. However the code colouring does not happen, all the writing is black. the line numbers are present.

Ideally it would be easier to get the editors to ignore the custom tags.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/12/20 13:08 By shoulders.
 
  The administrator has disabled public write access.
#479
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:prevent tinymce / JCE editor from stripping code 3 Years, 1 Month ago Karma: 10  
You'd have to get in touch with the creators of the editor for that.

However, geshibot can be coded to automatically add stuff around the { geshibot } tags. Problem is that it would have to be able to do that before the editor does its stuff, which I'm not sure is possible or not.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.