#2640: Dynamically Generated Templates
----------------------------+-----------------------------------------------
  Reporter:  kevin.mcisaac  |       Owner:     
      Type:  New Feature    |      Status:  new
  Priority:  Normal         |   Milestone:     
 Component:  General        |     Version:     
Resolution:                 |    Keywords:     
----------------------------+-----------------------------------------------

Comment(by kevin.mcisaac):

 So I surprised myself and figured out how to do this. in fck_template.html
 after line 121, i.e.,
          oTemplate.Html = oPart.text ? oPart.text : oPart.textContent ;

 I added this code

                                 if ( oPart =
 oPart.attributes.getNamedItem('src') ) {
                                 xmlhttp = new XMLHttpRequest();
                                 xmlhttp.open("GET",oPart.value,false);
                                 xmlhttp.send(null);
 // Add error checking on this requestion and only overwrite the HTML if
 the request work. This way the Html in the templage is a default.
                                 oTemplate.Html = xmlhttp.responseText ;
                                 }

 and it worked

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2640#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to