Jquery.mentionsInput and ckEditor

It just helps people looking for something like ckeditor mentions.

I changed jquery.mentionsInput to work together with ckEditor and .. It works :)

You can watch it 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 is the code I created and it's in the fiddle, okay?

It's good if someone, with time and knowledge, improves the code and, possibly, creates a specific plugin with this. I think the whole team will love.

I know the code is a mess. So there is some room for improvement :)

Hope this helps someone .. thanks :)

+3


source to share


1 answer


I'm also interested in this, so as a first step, I've added all your comments from jquery.mentionsInput.js to your source.

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



I tried to add it as an embedded sample but stacksnippets.net doesn't 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>

      

+2


source







All Articles