tstone / jquery-markedit Goto Github PK
View Code? Open in Web Editor NEWThis project forked from derobins/wmd
a jQuery branch/re-write of WMD Editor
This project forked from derobins/wmd
a jQuery branch/re-write of WMD Editor
Firebug raises an error with a fresh pull of markedit
see http://dpaste.com/155174/
Any idea ?
Thanks
Look into how showdown.js handles this, and make sure that unsafe content isn't getting passed somehow.
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(
... 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
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.";
}
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.
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!)
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?
showdown.js, line 906
Steps to reproduce the bug:
What happens?:
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!
CTRL+B for bold, CTRL+K for code etc.
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.
a feature request, please :)
would be super to allow upload of multiple files.
Thanks!
Evgeny.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.