hugg95 / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

XHTML error #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Rename demo.html demo.xhtml
2. In the dialog, click the insert images icon
3. Use the French locale file. Rinse and repeat.

What is the expected output? What do you see instead?

Expected to see image dialogue. Saw a greyed out page. Page was unresponsive 
until reloaded.

What version of the product are you using? On what operating system?

Accessed from https://code.google.com/p/pagedown/ August 14, 2014 on Ubuntu 
Linux 14.04

Please provide any additional information below.

The following two files need to be changed to support xhtml: Markdown.Editor.js 
and Markdown.local.fr.js

############## Diff for Markdown.Editor.js : ############## 

37c37
<         image: "Image <img> Ctrl+G",

---
>         image: "Image <img /> Ctrl+G",
39c39
<         imagedialog: "<p><b>Insert 
Image</b></p><p>http://example.com/images/diagram.jpg \"optional 
title\"<br><br>Need <a href='http://www.google.com/search?q=free+image+hosting' 
target='_blank'>free image hosting?</a></p>",

---
>         imagedialog: "<p><b>Insert 
Image</b></p><p>http://example.com/images/diagram.jpg \"optional title\"<br 
/><br />Need <a href='http://www.google.com/search?q=free+image+hosting' 
target='_blank'>free image hosting?</a></p>",
48c48
<         hr: "Horizontal Rule <hr> Ctrl+R",

---
>         hr: "Horizontal Rule <hr /> Ctrl+R",
2239c2239
< })();
\ No newline at end of file

---
> })();

############## Diff for Markdown.local.fr.js ############## 

16c16
<         linkdialog: "<p><b>Insérer un 
hyperlien</b></p><p>http://example.com/ \"titre optionnel\"</p>",

---
>         linkdialog: "<p><b>Insérer un 
hyperlien</b></p><p>https://exemple.com/ \"titre optionnel\"</p>",
26c26
<         imagedialog: "<p><b>Insérer une 
image</b></p><p>http://example.com/images/diagram.jpg \"titre 
optionnel\"<br><br><a href='http://www.google.com/search?q=free+image+hosting' 
target='_blank'>Vous chercher un hébergement d'image grauit ?</a></p>",

---
>         imagedialog: "<p><b>Insérer une 
image</b></p><p>https://exemple.com/exemple.png \"titre optionnel\"<br /><br 
/><a href='https://www.google.com/search?q=hébergeur+images+gratuit' 
target='_blank'>Cherchez-vous un hébergeur d'images gratuit ?</a></p>",
29c29
<         ulist: "Liste à point <ul> Ctrl+U",

---
>         ulist: "Liste à puce <ul> Ctrl+U",
41c41
<         help: "Aide sur Markdown"

---
>         help: "Apropos Markdown ..."
43c43
< })();
\ No newline at end of file

---
> })();

Original issue reported on code.google.com by jim.holgate on 14 Aug 2014 at 9:54

Attachments: