jquery.mentionsInput和ckEditor [英] jquery.mentionsInput and ckEditor

查看:128
本文介绍了jquery.mentionsInput和ckEditor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这只是为了帮助正在ckeditor中查找提及内容的人.

This is just to help the people who is looking for something like mentions in ckeditor.

我修改了jquery.mentionsInput以使其与ckEditor和..一起使用 它正在工作:)

I modified jquery.mentionsInput to work together with ckEditor and .. It is working :)

您可以在线查看此内容: http://jsfiddle.net/us6qo3Lc/(类型:@ken )

You can see this online: http://jsfiddle.net/us6qo3Lc/ (type: @ken)

<head>
    <meta charset="utf-8">
    <script src="jquery-1.11.0.min.js"></script>
    <script src="ckeditor.js"></script>
    <link href="sample.css" rel="stylesheet">

    <link href='jquery.mentionsInput.css' rel='stylesheet' type='text/css'>
    <script src='underscore-min.js' type='text/javascript'></script>

    <script src='autocomplete.js' type='text/javascript'></script>
</head>
<body>
    <form action="sample_posteddata.php" method="post">
        <textarea class="mention" cols="80" id="editor1" name="editor1" rows="10">
            teste <b>teste</b> teste <em>teste</em> teste
        </textarea>
        <p style="overflow: hidden">
            <input style="float: left" type="submit" value="Submit">
        </p>
    </form>
</body>
</html>

autocomplete.js是我创建的代码,它摆在摆弄的位置,好吗?

autocomplete.js is the code I created and it is in fiddle, ok ?

如果有时间和知识的人可以改善代码,甚至可以使用它来创建特定的插件..我想整个社区都会喜欢的.

Well if someone with time, and knowledge, improve the code and maybe create a specific plugin with this .. I think the entire comunity will love.

我知道代码很乱..所以有一些空间可以改善它:)

I know the code is a mess .. so there are some space to improve it :)

我希望这对某人有帮助..谢谢:)

I hope this help somebody .. thanks :)

推荐答案

我对此也很感兴趣,因此,第一步,我将jquery.mentionsInput.js的所有注释添加回了源代码中.

I'm also interested in this so as a first step I added back all the comments from jquery.mentionsInput.js into your source.

http://jsfiddle.net/45k0ypwr/1/

我尝试将其添加为嵌入式示例,但是stacksnippets.net不喜欢它

I tried adding it as an embedded sample but stacksnippets.net does not like it

<form action="sample_posteddata.php" method="post">
    <textarea class="mention" cols="80" id="editor1" name="editor1" rows="10">
        teste <b>teste</b> teste <em>teste</em> teste
    </textarea>

    <p style="overflow: hidden">
        <input style="float: left" type="submit" value="Submit">
    </p>
</form>

这篇关于jquery.mentionsInput和ckEditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆