[Yanel-dev] tinyMCE link and image lookup problem
simon
simon at 333.ch
Fri Dec 4 19:19:55 CET 2009
hi all
i just noticed a real problem within our tinyMCE integration. at the
moment the lookup will insert path always with '../'. the lookup
doesn't know anything about how relative the document is to the inserted
path. i think the lookup needs to know this. probably the easiest way is
to give a back2realm parameter when calling the lookup.
and now the big problem number two: tinyMCE doesn't know the correct
back2realm of the document either.
and the big problem number three (a very ugly one): tinyMCE shows broken
(or none) images if the document has another relation to the realm then
tinyMCE (e.g {back2ream}/usecases/tinymce.html) has.
as said above to fix the lookup problem is think a request parameter
with the wished back2realm value would be an easy way to fix it.
but to fix problem two and three there would be a bigger effort.
one approach i can think of would be introducing parameter matching for
resource-types. this is something i miss in yanel for a long time. i
think this would simplify any editor integration a lot (and also other
problems).
this way an editor would be called with the same path as the web-view of
a document but with a special request parameter, therefore it would be
easy to get the right back2realm value when open the document with
tinyMCE. problem number three would be gone as well.
maybe there would be another (uglier) approach: calculating the
back2realm value via the edit-path value. but i'm not sure this would
help to solve problem number three since the solution to this seems to
be setting the tinyMCE paramter 'document_base_url' [1] which has to be
absolute.
so the big question is do we want to finally introduce parameter
matching? or does someone has another clean but simpler solution to this
problems.
to be honest i think this problems are show stoppers re releasing yanel.
WDOT?
[1]
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/document_base_url
cheers
simon
More information about the Yanel-development
mailing list