在EXT JS 4中集成CKEditor 4

时间:2017-02-07 10:15:06

标签: javascript extjs ckeditor integration

提前谢谢你。 我正在尝试将CKEditor 4与我的extjs 4.2项目集成。 有人可以帮我整合吗? 搜索完网页后,我发现This example,但由于“this.editor”未定义,因此无效。 我也尝试使用“CKEDITOR.instances [this.id]”,但仍然没有帮助。这引发了另一个错误“无法读取未定义的属性'setData'”。 如果有人可以帮助我,那将是非常明显的。

1 个答案:

答案 0 :(得分:1)

快乐新人。找到了解决方案。

$Servers = import-csv "C:\Scripts\Servers.csv"

ForEach ($Item in $Servers) { 
    # Unregister-Event $changed.Id -EA 0
    $Server = $($Item.Server)
    write-host "Checking \\$Server\c$\Scripts now"

    #$folder = "c\Scripts"
    $filter = "*.html"

    $watcher = New-Object System.IO.FileSystemWatcher
    $watcher.Path = "\\$Server\c$\Scripts\"
    $watcher.Filter = "*.html"
    $watcher.IncludeSubdirectories = $False
    $watcher.EnableRaisingEvents = $true

    $created = Register-ObjectEvent $watcher "Created" -Action {
        write-host "A new file has been created on $Server $($eventArgs.FullPath)" -ForegroundColor Green
    }
} 


while ($true) {
    write-host "Monitoring for new files. Sleeping for 5 seconds"
    Start-Sleep -s 5
} #While

});

这将ckeditor与EXT jS集成在一起。