Changeset 75283 in spip-zone


Ignore:
Timestamp:
Sep 5, 2013, 12:51:14 PM (6 years ago)
Author:
cedric@…
Message:

Reparer la previsu sous Webkit : object avec le HTML inline dedans ne marche pas, du coup on repasse en iframe et on perd les crayons :(

Location:
_plugins_/newsletters/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/newsletters/trunk/newsletter.html

    r68482 r75283  
    55<head>
    66        <style type="text/css">
    7                 html,body {height: 100%;width: 100%;margin: 0;padding: 0;[(#GET{quoi}|=={texte_email}|oui)overflow: hidden]}
     7                html,body {height: 100%;width: 100%;margin: 0;padding: 0;overflow: hidden}
    88                iframe {border: 0;width: 100%;height: 100%;margin:0;padding:0;}
    99                .none {display: none;}
     10                #var_mode {display: none;}
    1011                #nav {position: absolute;position: fixed; top:3em;right:0;z-index: 100;margin: 0;padding: 0}
    1112                #nav li {
     
    2829<body>
    2930[(#GET{quoi}|=={html_email}|oui)
    30 <object class="html_email" type="text/html" >[(#HTML_EMAIL**)]</object>
    31 ][(#GET{quoi}|=={texte_email}|oui)
     31<iframe
     32        class="html_email" src="[(#HTML_EMAIL**|trim|newsletters_inline_base64src{text/html})]" style="">
     33</iframe>][(#GET{quoi}|=={texte_email}|oui)
    3234<iframe
    3335        class="texte_email" src="[(#TEXTE_EMAIL**|trim|newsletters_inline_base64src{text/plain})]" style=""></iframe>
    3436][(#GET{quoi}|=={html_page}|oui)
    35 <object class="html_page" type="text/html" >[(#HTML_PAGE**|sinon{#HTML_EMAIL**}|newsletter_affiche_version_enligne)]</object>
    36 ]
    37 <ul id="nav">
     37<iframe
     38        class="html_page" src="[(#HTML_PAGE**|sinon{#HTML_EMAIL**}|newsletter_affiche_version_enligne|trim|newsletters_inline_base64src{text/html})]" style=""></iframe>
     39]<ul id="nav">
    3840        <li>[(#SELF|parametre_url{var_mode,preview}|parametre_url{var_quoi,html_email}|lien_ou_expose{<:newsletter:info_preview_version_html_email:>,#GET{quoi}|=={html_email}})]</li>
    3941        <li>[(#SELF|parametre_url{var_mode,preview}|parametre_url{var_quoi,texte_email}|lien_ou_expose{<:newsletter:info_preview_version_texte_email:>,#GET{quoi}|=={texte_email}})]</li>
    4042        <li>[(#SELF|parametre_url{var_mode,preview}|parametre_url{var_quoi,html_page}lien_ou_expose{<:newsletter:info_preview_version_html_page:>,#GET{quoi}|=={html_page}})]</li>
    4143        <li>[(#SELF|parametre_url{var_mode,preview}|parametre_url{var_quoi,raw}|lien_ou_expose{<:newsletter:info_preview_version_html_page_noiframe:>,#GET{quoi}|=={raw}})]</li>
    42 </ul>
    43 <div class="#EDIT{titre} none">#TITRE</div>
    44 </body>
    45 </html>
     44</ul><div class="#EDIT{titre} none">#TITRE</div></body></html>
    4645</BOUCLE_previewnewsletter>
    4746<BOUCLE_newsletter(NEWSLETTERS){id_newsletter}>[
  • _plugins_/newsletters/trunk/paquet.xml

    r75268 r75283  
    22        prefix="newsletters"
    33        categorie="communication"
    4         version="1.2.10"
     4        version="1.3.0"
    55        etat="stable"
    66        compatibilite="[3.0.5;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.