V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sofish
V2EX  ›  分享发现

开源的实时文本编辑器 PEN

  •  
  •   sofish · 2013-09-03 16:25:16 +08:00 · 7374 次点击
    这是一个创建于 3888 天前的主题,其中的信息可能已经有所发展或是发生改变。
    新挖的一个坑,除了一般的 HTML 编辑,准备支持 Markdown 语法实时解析。

    需求啊,开发啊,请瞄 Github 上 Repo: https://github.com/sofish/pen

    LIVE DEMO: http://sofish.github.io/pen
    34 条回复    1970-01-01 08:00:00 +08:00
    zythum
        1
    zythum  
       2013-09-03 16:29:52 +08:00
    前段时间不知在哪里看过。 原来是soflsh大的东西哈...

    NemoAlex
        2
    NemoAlex  
       2013-09-03 16:36:23 +08:00
    支持剪贴板粘贴
    不依赖于其它框架
    很棒啊!
    echoHUST
        3
    echoHUST  
       2013-09-03 16:39:52 +08:00
    赞~
    sophy
        4
    sophy  
       2013-09-03 16:50:00 +08:00
    这个好爽
    iiduce
        5
    iiduce  
       2013-09-03 16:58:05 +08:00
    喜欢,正在想应用场景。
    Numbcoder
        6
    Numbcoder  
       2013-09-03 17:05:34 +08:00
    cool!
    加个 code block 就更好了!
    xdata
        7
    xdata  
       2013-09-03 17:15:13 +08:00
    设了链接如何取消?..就算是清空链接里面的url, 似乎还是存在...
    yzhrain
        8
    yzhrain  
       2013-09-03 17:15:46 +08:00
    支持,不过为什么不能支持图片呢?
    sofish
        9
    sofish  
    OP
       2013-09-03 17:22:27 +08:00
    @xdata 清空就可以了


    @yzhrain 图片我会支持个更酷的,哈哈,马上去 issue 里面添加
    justan
        10
    justan  
       2013-09-03 17:39:05 +08:00
    和 [popline](http://kenshin54.github.io/popline/) 比较像
    sofish
        11
    sofish  
    OP
       2013-09-03 18:00:40 +08:00
    @justan 好丑啊,x
    ChenNi
        12
    ChenNi  
       2013-09-03 23:04:56 +08:00
    支持楼主!~
    感觉有前途,好玩
    zhttty
        13
    zhttty  
       2013-09-03 23:11:03 +08:00
    赞....
    Hyperion
        14
    Hyperion  
       2013-09-03 23:27:13 +08:00
    突然很好奇, 鱼叔有多少项(da)目(keng)被用在产品里了?
    detailyang
        15
    detailyang  
       2013-09-03 23:34:07 +08:00
    前段时间用过popline..妥妥觉得楼主才是真爱
    mlhorizon
        16
    mlhorizon  
       2013-09-03 23:40:33 +08:00
    还有这个也类似:
    https://github.com/tholman/zenpen

    大家都不打算支持IE了吗?
    sofish
        17
    sofish  
    OP
       2013-09-04 00:02:50 +08:00
    @Hyperion 列举一些我挖的坑,只列一些我所在公司用的吧,不包括别的公司:

    - Alice - 支付宝整站都在用
    - Typo.css - Baixing 网的 Puerh UI 在用 https://github.com/baixing/Puerh
    - Puerh - 百姓网的全站 UI,也在我做的,目前是 2.0
    - Validtor.js - http://shanghai.baixing.com/fabu/ 还有 inews.io 之类的
    - Recorder.js - 同上
    - Mask.js / performance.js / xxx ...

    大部分都在用。告诉你个秘密,我很多项目都是先应用在项目上,再开源的,哈哈哈哈哈哈...

    其实还有各种没放出来的 js 库什么之类的,因为没时间或者跟公司的业务结合的太紧了。


    @mlhorizon 参考我这条推:http://weibo.com/1639517374/A7LClygVL?mod=weibotime

    「Zenpen 思想非常赞,不过代码组织比较乱,她是我写 Pen 的原因,因为我需要干净的代码关系,还有 markdown 语法实 covert,有兴趣的同学可以 watch / watch / fork,我会填完这个坑」
    Hyperion
        18
    Hyperion  
       2013-09-04 00:04:41 +08:00
    @mlhorizon IE10支持就好了, 别的管他死活.

    所有之前的版本应该直接送进博物馆...
    sofish
        19
    sofish  
    OP
       2013-09-04 00:07:50 +08:00
    Hyperion
        20
    Hyperion  
       2013-09-04 00:14:48 +08:00
    @sofish /擦汗, 一直没发现支付宝一直在使用Alice .

    Validtor.js 刚出来的时候曾经使用过一次, 但后来因为突然发现没有两字段相等检测... 那次到最后没时间改了, 所以又换回了jquery.validate.js . 囧, 学艺不精, 尝试改动但失败了...

    准备这次尝试一下Typo.css 做排版... 嘿嘿, 鱼叔出产质量保证...
    hzlzh
        21
    hzlzh  
       2013-09-04 00:31:58 +08:00
    舒服的交互,清新的配色,必火啊~
    just44
        22
    just44  
       2013-09-04 01:32:18 +08:00 via iPhone   ❤️ 1
    这不跟 https://github.com/mduvall/grande.js 一模一样的么
    iZr
        23
    iZr  
       2013-09-04 08:28:00 +08:00
    copy 别人的....?还是?
    justan
        24
    justan  
       2013-09-04 08:53:47 +08:00
    比较希望类似的编辑器支持移动浏览器.
    GTim
        25
    GTim  
       2013-09-04 08:56:30 +08:00
    sofish
        26
    sofish  
    OP
       2013-09-04 09:01:14 +08:00 via iPhone
    @just44 grance.js 有很多非常赞,但你从哪点看出来一模一样?
    dallaslu
        27
    dallaslu  
       2013-09-04 09:38:21 +08:00
    @sofish 但是一眼看上去,的确非常相似
    byron
        28
    byron  
       2013-09-04 09:39:14 +08:00
    1、the kind you might find yourself hitchhiking on
    2、if you were so adventurous.
    圈住这两句话,点引用,就会被坑。
    字体大小再也回不去了。。。
    sofish
        29
    sofish  
    OP
       2013-09-04 09:41:49 +08:00
    @byron 嗯,有位老外也发现了这个 bug https://github.com/sofish/pen/issues/23
    mlhorizon
        30
    mlhorizon  
       2013-09-04 09:44:23 +08:00
    @Hyperion IE10就是个“中国梦”
    ushuz
        31
    ushuz  
       2013-09-04 10:56:41 +08:00
    如果从后往前选中整段,不会弹出工具栏。
    比如“Stewart and his tea...”和“And I have always...”这两段。
    Chrome 31.0.1612.2 dev-m
    sofish
        32
    sofish  
    OP
       2013-09-04 13:24:39 +08:00
    @ushuz 求系统名,像这个? https://github.com/sofish/pen/issues/21
    ipconfiger
        33
    ipconfiger  
       2013-09-04 14:00:01 +08:00
    用来当博客的实时编辑器不错丫,加上图片功能就更好了
    paloalto
        34
    paloalto  
       2013-09-07 11:47:02 +08:00
    http://hallojs.org/ 这也有一个
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2677 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 04:56 · PVG 12:56 · LAX 21:56 · JFK 00:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.