ct-mobile-first
ycc 5 years ago
parent f468811160
commit 0b0c22eec8

@ -510,7 +510,7 @@
iframe.setAttribute('name', 'AMP Playground Output');
$('#preview_box').html('');
$('#preview_box').append(iframe);
var html_code=$('#mobile_first_template').text().replace('<!--@CUSTOM-CONENT@-->',editor.getData());
var html_code=$('#mobile_first_template').text().replace('<!--@CUSTOM-CONENT@-->',editor.getData()).replace('<!--@HEAD_1@-->',$("#ic_title").val());
var doc = iframe.contentDocument || iframe.document;
doc.open();
doc.write(html_code);

Loading…
Cancel
Save