Coder Social home page Coder Social logo

jquery-markedit's People

Contributors

cky avatar derobins avatar hfutonline avatar pferreir avatar tstone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jquery-markedit's Issues

non-functioning in Opera

Hi, I know that Opera is not in the list of functioning browsers. It even does not show at all. Is there known reason for this? Trace of JS console is:

Error:
name: TypeError
message: Statement on line 406: Type mismatch (usually non-object value supplied where object required)
stacktrace: Line 406 of linked script http://tstone.github.com/jquery-markedit/jquery.markedit.js
textareaRange.moveToBookmark(range.getBookmark());
Line 282 of linked script http://tstone.github.com/jquery-markedit/jquery.markedit.js
MarkEdit.appendHistory($(this).markeditGetState(), $(this).attr('id'));
... Line 12 of linked script http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G}
Line 12 of linked script http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
function(F,E){return o.each(this,F,E)}
Line 258 of linked script http://tstone.github.com/jquery-markedit/jquery.markedit.js
return $(this).each(function() {
Line 5 of inline#2 script in http://tstone.github.com/jquery-markedit/
$('textarea').markedit({

Tomas

Add a 'selector' options for the preview that permits to put the preview in any user-defined element

For example being able to do

'preview' : 'selector' ,
'selector' : '#mydiv' 

and being able to have the preview in that div

I already implemented it here's the diff

index 11f41ff..9e6e6a9 100644
--- a/app/resources/skins/responsive/js/external/jquery.markedit.js
+++ b/app/resources/skins/responsive/js/external/jquery.markedit.js
@@ -338,6 +338,9 @@
                     $(this).markeditBindAutoPreview(previewPane);

                 }
+                else if (options.preview === 'selector') {
+                    $(this).markeditBindAutoPreview($(options.selector));
+                }
                 else if (options.preview !== false) {
                     throw "Preview option '" + options.preview + "' is not recognized.";
                 }

Code part doesn't work as expected

If you change a big text part to code, it pass over the preview part. If you look stackoverflow version, preview part of code blog behaves different than other parts of all text in editor.

markedit is not a function

Hello,

I followed the guidelines to use markedit with django.
The js files are loaded correctly. But I get this error: "markedit is not a function"
I put some console.log() to see where the problem was.
The one placed just before :
"""
// $.markedit (THE BIG ENCHILLADA)
//
$.fn.markedit = function(config) {
"""
works just fine. But the one placed inside the latter function doesn't return anything.

(Thanks for your project, I encountered the exact same issues with WMD and was so happy to find your project!)

Does not submit parsed text

When the form is submitted the markdown is not parsed into HTML; the markdown appears as plain text. This is despite the preview functioning as expected. Does the editor not parse the markdown into HTML automatically? Are we supposed to do something to ensure that when the form is submitted the markdown is parsed? Or is this a bug?

Inserting an links fails if there is an existing link and this one is located after

Steps to reproduce the bug:

  1. insert a link anywhere
  2. insert a link before link created in step 1

What happens?:

  • insertion fails: no link is added
  • selected text start from selection start index of step 2 and ends at selection stop index of step 1.

Comment:

there seems to be something wrong with the code starting at line 551:

551  // Get the selected URL
552  var afterMatch = MarkEdit.RegexLinkEnd.exec(state.afterSelect);
553  var urlIndex = -1;
554  var selUrl = '';
555  if (afterMatch) {
556      urlIndex = Number(afterMatch[2]) - 1;
557      selUrl = state.links[urlIndex];
558  }

Hope it helps!

br preview

Hi,
the markedit preview is a bit misleading. BR tags are created when there's a newline without trailing spaces (the correct way to make BR tags in markdown syntax). In consequence, you see newlines in the preview, but no break in the actual website.

file attachment upload

a feature request, please :)

would be super to allow upload of multiple files.

Thanks!

Evgeny.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.