|
|
|
I noticed the theme setting $THEME->htmleditorpostprocess in lib/weblib.php. This is great since it is needed and we currently have our own version of the HTMLEditor post process, but we would like to use the standard code.
From what I can tell, the current code sticks the HTMLEditor name into a global JavaScript variable, but what happens if there is more than one HTMLEditor on the page? The last one would over write all the previous ones.
In our code, we have a global JavaScript array declared in the theme and then lib/weblib.php prints JavaScript that looks to see if the global array exists, if yes, then save the necessary JavaScript to be evaled or if not, then do the default implementation (meaning, no post rendering).
The HTMLEditor is a beast of its own, so perhaps the current code does work but I don't know how it works. If this is the case, then please provide some example code or some sort of explanation ;)
Cheers and thanks!
|
|
Description
|
I noticed the theme setting $THEME->htmleditorpostprocess in lib/weblib.php. This is great since it is needed and we currently have our own version of the HTMLEditor post process, but we would like to use the standard code.
From what I can tell, the current code sticks the HTMLEditor name into a global JavaScript variable, but what happens if there is more than one HTMLEditor on the page? The last one would over write all the previous ones.
In our code, we have a global JavaScript array declared in the theme and then lib/weblib.php prints JavaScript that looks to see if the global array exists, if yes, then save the necessary JavaScript to be evaled or if not, then do the default implementation (meaning, no post rendering).
The HTMLEditor is a beast of its own, so perhaps the current code does work but I don't know how it works. If this is the case, then please provide some example code or some sort of explanation ;)
Cheers and thanks! |
Show » |
made changes - 21/Apr/08 03:20 PM
| Field |
Original Value |
New Value |
|
Assignee
|
Janne Mikkonen
[ julmis
]
|
Mathieu Petit-Clair
[ scyrma
]
|
|