Ticket #2807: xhtml.php

File xhtml.php, 758 bytes (added by Artur Formella, 10 years ago)
Line 
1<?
2header('Content-Type: application/xhtml+xml; charset=utf-8');
3echo '<'.'?xml version="1.0" encoding="UTF-8"?'.'>';
4?>
5<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
6<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7<head>
8<script type="text/javascript" src="../../fckeditor.js"></script>
9</head>
10<body>
11<div id="editordiv"></div>
12
13<script type="text/javascript"> 
14var oFCKeditor = new FCKeditor('content'); oFCKeditor.BasePath = "../../";
15oFCKeditor.Value = '';
16
17//oFCKeditor.Create() = document.write( this.CreateHtml() ) ; but you can't use document.write.
18
19var a = oFCKeditor.CreateHtml();
20document.getElementById('editordiv').innerHTML = a;
21
22 </script>
23 
24</body>
25</html>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy