-
FCKeditorAPI 手册
- function abc()
- {
- var checkContent =FCKeditorAPI.GetInstance("editor");
- alert(checkContent.GetXHTML());
- var newelement = document.createElement("a");
- newelement.href="#";
- newelement.innerHTML="df";
- checkContent.InsertElement(newelement);
- var a=checkContent.InsertElementAndGetIt(newelement);
- checkContent.InsertHtml("")
- checkContent.SetHTML("",true);
-
- }
- function aaa()
- {
- var checkContent =FCKeditorAPI.GetInstance("editor");
- checkContent.SwitchEditMode();
- checkContent.UpdateLinkedField();
- }
- function FCKeditor_OnComplete( checkContent )
- {
- alert( checkContent.Name ) ;
- }
-
-
- function FCKeditor_OnComplete(editorInstance)
- {
- editorInstance.EditorDocument.body.disabled = true;
- editorInstance.EditorWindow.parent.document.getElementById ('xExpanded').style.display = 'none';
- editorInstance.EditorWindow.parent.document.getElementById('xCollapsed').style.display = 'none';
- editorInstance.EditorWindow.blur();
- }
-
-
- function insertHTMLToEditor(codeStr){
- var oEditor = FCKeditorAPI.GetInstance("content");
- if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG){
- oEditor.InsertHtml(codeStr);
- }else{
- return false;
- }
- }
-
- function getLength(){
- var oEditor = FCKeditorAPI.GetInstance("content");
- var oDOM = oEditor.EditorDocument;
- var iLength ;
- if(document.all){
- iLength = oDOM.body.innerText.length;
- }else{
- var r = oDOM.createRange();
- r.selectNodeContents(oDOM.body);
- iLength = r.toString().length;
- }
- alert(iLength);
- }
-
- function ExecuteCommand(commandName){
- var oEditor = FCKeditorAPI.GetInstance("content") ;
- oEditor.Commands.GetCommand(commandName).Execute() ;
- }
-
- function SetContents(codeStr){
- var oEditor = FCKeditorAPI.GetInstance("content") ;
- oEditor.SetHTML(codeStr) ;
- }
-
-
- function InsertHTML(e,inStr)
- {
- var oEditor = FCKeditorAPI.GetInstance(e) ;
- if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
- {
- oEditor.InsertHtml( inStr ) ;
- }
- else
- alert("You must be on WYSIWYG mode!" ) ;
- }
-
- function ExecuteCommand( commandName,e )
- {
- var oEditor = FCKeditorAPI.GetInstance(e) ;
- oEditor.Commands.GetCommand(commandName ).Execute() ;
- }
-
相关阅读:
枚举类型的应用
动手动脑
四则运算和验证码--源码
ATM源码
javabean+jsp+servlet+jdbc
四则运算改良
Java异常
课后总结
包装类Integre
对象验证
-
原文地址:https://www.cnblogs.com/buaaboyi/p/1944404.html
Copyright © 2020-2023
润新知