public
Description: Universal markup editor for Jeditable.
Homepage: http://www.appelsiini.net/2008/4/markitup-for-jeditable
Clone URL: git://github.com/tuupola/jquery_jeditable_markitup.git
jquery_jeditable_markitup / markitup.html
100644 119 lines (92 sloc) 3.696 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
 
/* No hardoced URL's in examples. Just copy the folder to server. */
$folder = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']);
$url = sprintf('http://%s%sphp/', $_SERVER['SERVER_NAME'], $folder);
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Jeditable MarkItUp! Custom Input Demo</title>
<meta name="generator" content="Mephisto" />
<link href="http://www.appelsiini.net/stylesheets/main2.css"
rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="markitup/skins/markitup/style.css" />
<link rel="stylesheet" type="text/css" href="markitup/sets/default/style.css" />
<link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/tuupola" title="Atom feed" />
<script src="/mint/?js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="markitup/skins/markitup/style.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="markitup/jquery.markitup.js" type="text/javascript"></script>
 
<link rel="stylesheet" type="text/css" href="markitup/sets/html/style.css" />
<script src="markitup/sets/html/set.js" type="text/javascript"></script>
 
<link rel="stylesheet" type="text/css" href="markitup/sets/textile/style.css" />
<script src="markitup/sets/textile/set.js" type="text/javascript"></script>
 
<script src="../jquery.jeditable.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.jeditable.markitup.js" type="text/javascript"></script>
 
 
<script type="text/javascript" charset="utf-8">
$(function() {
 
  $('#markitup_1').editable('<?php print $url ?>save.php', {
    indicator : '<img src="img/indicator.gif">',
    type : 'markitup',
    width : 640,
    height : 'auto',
    onblur : 'ignore',
    submit : 'OK',
    cancel : 'Cancel',
    markitup : markitupHTML
  });
 
  $('#markitup_2').editable('<?php print $url ?>save.php?renderer=textile', {
    indicator : '<img src="img/indicator.gif">',
    loadurl : "<?php print $url ?>load.php",
    type : 'markitup',
    width : 640,
    height : 'auto',
    onblur : 'ignore',
    submit : 'OK',
    cancel : 'Cancel',
    markitup : markitupTextile
  });
    
});
</script>
 
<style type="text/css">
#sidebar {
  width: 0px;
}
 
#content {
  width: 770px;
}
</style>
 
</head>
 
<body>
  <div id="wrap">
    <div id="header">
      <p>
        <h1>Jeditable</h1><br />
        <small>MarkItUp! custom input demo.</small>
        <ul id="nav">
          <li id="first"><a href="/" class="active">weblog</a></li>
          <li><a href="/projects" class="last">projects</a></li>
        </ul>
      </p>
    </div>
    <div id="content">
      
    <div class="entry">
            
    <p>You might also want to check <a href="custom.html">other custom inputs</a>.
 
    <h2>Default set</h2>
    
    <div class="editable" id="markitup_1"><?php print file_get_contents($url . 'load.php?id=markitup_1') ?></div>
    </div>
 
    <h2>Textile set</h2>
    
    <div class="editable" id="markitup_2"><?php print file_get_contents($url . 'load.php?id=markitup_2&renderer=textile') ?></div>
    </div>
 
    <div id="sidebar">
 
  </div>
  
  <div id="footer">
  </div>
 
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
  <script type="text/javascript">
    _uacct = "UA-190966-1";
    urchinTracker();
  </script>
 
</body>
</html>