Skip to content

Commit

Permalink
use null char to start text cell placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 25, 2011
1 parent 7070308 commit 5ae42c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IPython/frontend/html/notebook/static/js/textcell.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var IPython = (function (IPython) {

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

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

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

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

0 comments on commit 5ae42c2

Please sign in to comment.