Skip to content

Commit

Permalink
Temporary fix for placeholder related CM bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisonbg committed Aug 23, 2011
1 parent 0bfb0fb commit 876e689
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IPython/frontend/html/notebook/static/js/textcell.js
Expand Up @@ -15,7 +15,7 @@ var IPython = (function (IPython) {


var TextCell = function (notebook) { var TextCell = function (notebook) {
this.code_mirror_mode = this.code_mirror_mode || 'htmlmixed'; this.code_mirror_mode = this.code_mirror_mode || 'htmlmixed';
this.placeholder = this.placeholder || ''; this.placeholder = this.placeholder || '𝄆';
IPython.Cell.apply(this, arguments); IPython.Cell.apply(this, arguments);
this.rendered = false; this.rendered = false;
this.cell_type = this.cell_type || 'text'; this.cell_type = this.cell_type || 'text';
Expand Down Expand Up @@ -159,7 +159,7 @@ var IPython = (function (IPython) {
// HTMLCell // HTMLCell


var HTMLCell = function (notebook) { var HTMLCell = function (notebook) {
this.placeholder = "Type <strong>HTML</strong> and LaTeX: $\\alpha^2$"; this.placeholder = "&#x1D106; Type <strong>HTML</strong> and LaTeX: $\\alpha^2$";
IPython.TextCell.apply(this, arguments); IPython.TextCell.apply(this, arguments);
this.cell_type = 'html'; this.cell_type = 'html';
}; };
Expand All @@ -184,7 +184,7 @@ var IPython = (function (IPython) {
// MarkdownCell // MarkdownCell


var MarkdownCell = function (notebook) { var MarkdownCell = function (notebook) {
this.placeholder = "Type *Markdown* and LaTeX: $\\alpha^2$"; this.placeholder = "&#x1D106; Type *Markdown* and LaTeX: $\\alpha^2$";
IPython.TextCell.apply(this, arguments); IPython.TextCell.apply(this, arguments);
this.cell_type = 'markdown'; this.cell_type = 'markdown';
}; };
Expand Down Expand Up @@ -222,7 +222,7 @@ var IPython = (function (IPython) {
// RSTCell // RSTCell


var RSTCell = function (notebook) { var RSTCell = function (notebook) {
this.placeholder = "Type *ReStructured Text* and LaTeX: $\\alpha^2$"; this.placeholder = "&#x1D106; Type *ReStructured Text* and LaTeX: $\\alpha^2$";
IPython.TextCell.apply(this, arguments); IPython.TextCell.apply(this, arguments);
this.cell_type = 'rst'; this.cell_type = 'rst';
}; };
Expand Down

0 comments on commit 876e689

Please sign in to comment.