~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/_samples/html/sample08.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
48
48
        {
49
49
                // Insert the desired HTML.
50
 
                oEditor.InsertHtml( '- This is some <b>sample</b> HTML -' ) ;
 
50
                oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample</a> HTML -' ) ;
51
51
        }
52
52
        else
53
53
                alert( 'You must be on WYSIWYG mode!' ) ;
110
110
        alert( 'Actual text length (without HTML markups): ' + iLength + ' characters' ) ;
111
111
}
112
112
 
 
113
function GetInnerHTML()
 
114
{
 
115
        // Get the editor instance that we want to interact with.
 
116
        var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
 
117
 
 
118
        alert( oEditor.EditorDocument.body.innerHTML ) ;
 
119
}
 
120
 
 
121
function CheckIsDirty()
 
122
{
 
123
        // Get the editor instance that we want to interact with.
 
124
        var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
 
125
        alert( oEditor.IsDirty() ) ;    
 
126
}
 
127
 
 
128
function ResetIsDirty()
 
129
{
 
130
        // Get the editor instance that we want to interact with.
 
131
        var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
 
132
        oEditor.ResetIsDirty() ;        
 
133
        alert( 'The "IsDirty" status has been reset' ) ;
 
134
}
 
135
 
113
136
                </script>
114
137
        </head>
115
138
        <body>
149
172
                        <br>
150
173
                        <br>
151
174
                        <input type="button" value="Interact with the Editor Area DOM" onclick="GetLength();">
 
175
                        <input type="button" value="Get innerHTML" onclick="GetInnerHTML();">
 
176
                        <br>
 
177
                        <br>
 
178
                        <input type="button" value="Check IsDirty()" onclick="CheckIsDirty();">
 
179
                        <input type="button" value="Reset IsDirty()" onclick="ResetIsDirty();">
152
180
                </div>
153
181
        </body>
154
182
</html>