小编Ste*_*rex的帖子

最好的基于网络的HTML编辑器,如ckeditor,niceedit,tinymce?

我正在为我的网站后端寻找一个基于网络的HTML编辑器.我缩小到3 - Nicedit(好,但不再保持),tinymce和ckeditor.

虽然我将使用tinymce或ckeditor,但我也在寻找一个插件来管理我可以插入HTML区域的媒体(图片,视频等).当然还有CKFinder和MCFilemanager,但它们不是开源的.

我想知道是否有任何开源插件?此外,如果基于Web的开源文本编辑器有更好的选择,请建议.

谢谢

open-source tinymce text-editor ckeditor

7
推荐指数
1
解决办法
5739
查看次数

JCL SYNCSORT:OMIT和INCLUDE不可互换?

我为这两种排序卡获得了不同的输出,有人可以告诉我为什么吗?

1.

INCLUDE COND=((1,3,CH,NE,C'ABC',AND,5,3,CH,NE,C'PQR'),OR,
              (1,3,CH,NE,C'CAB'),OR,
              (1,3,CH,NE,C'CBA'),OR,
              (1,3,CH,NE,C'ABC',AND,5,3,CH,NE,C'PQR'))
SORT FIELDS=COPY
Run Code Online (Sandbox Code Playgroud)

2.

   OMIT COND=((1,3,CH,EQ,C'ABC',AND,5,3,CH,EQ,C'PQR'),OR,
              (1,3,CH,EQ,C'CAB'),OR,
              (1,3,CH,EQ,C'CBA'),OR,
              (1,3,CH,EQ,C'ABC',AND,5,3,CH,EQ,C'PQR'))
SORT FIELDS=COPY
Run Code Online (Sandbox Code Playgroud)

基本上,这是NOT-EQUAL时的INCLUDE和EQUAL时的OMIT.

sorting mainframe include jcl syncsort

1
推荐指数
1
解决办法
4万
查看次数

打字稿:'()=> {}'不是'function(){}'的替代品吗?

我试图在ng2中找到路由,我遇到了一个奇怪的问题.当用户到达'/ home'时,我尝试设置超时以将我导航回'/'.

这有效:

export class HomeComponent implements OnInit {

    constructor(private router: Router) { }

    ngOnInit() {
        setTimeout(() => {this.router.navigate(['/']);}, 2000);
    }

}
Run Code Online (Sandbox Code Playgroud)

但这不是:

export class HomeComponent implements OnInit {

    constructor(private router: Router) { }

    ngOnInit() {
        setTimeout(function () {this.router.navigate(['/']);}, 2000);
    }

}
Run Code Online (Sandbox Code Playgroud)

它失败了 - EXCEPTION: Cannot read property 'navigate' of undefined

为了使它工作,我必须将其更改为:

export class HomeComponent implements OnInit {

    constructor(private router: Router) { }

    ngOnInit() {
        var _router = this.router;
        setTimeout(function (_router) {_router.navigate(['/']);}, 2000, _router);
    }

}
Run Code Online (Sandbox Code Playgroud)

顺便说一句,这是TypeScript编译的方式() => {} …

javascript this typescript angular

0
推荐指数
1
解决办法
575
查看次数