Don't try to split numbers

This commit is contained in:
Nathan Gray 2012-03-15 23:15:01 +00:00
parent 3a865977ff
commit f17860431a

View File

@ -521,7 +521,7 @@ function et2_insertLinkText(_text, _node, _target)
if (typeof s == "string" || typeof s == "number")
{
// Include line breaks
var lines = s.split('\n');
var lines = s.split ? s.split('\n') : [s];
// Insert the lines
for (var j = 0; j < lines.length; j++)