Mercurial > public > sg101
comparison static/js/tiny_mce/plugins/visualchars/editor_plugin_src.js @ 442:6c182ceb7147
Fixing #217; upgrade TinyMCE to 3.4.2 and enable the paste plugin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 May 2011 00:43:49 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
441:33d0c55e57a9 | 442:6c182ceb7147 |
---|---|
57 nl.push(n); | 57 nl.push(n); |
58 }, 'childNodes'); | 58 }, 'childNodes'); |
59 | 59 |
60 for (i = 0; i < nl.length; i++) { | 60 for (i = 0; i < nl.length; i++) { |
61 nv = nl[i].nodeValue; | 61 nv = nl[i].nodeValue; |
62 nv = nv.replace(/(\u00a0)/g, '<span _mce_bogus="1" class="mceItemHidden mceItemNbsp">$1</span>'); | 62 nv = nv.replace(/(\u00a0)/g, '<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">$1</span>'); |
63 | 63 |
64 div = ed.dom.create('div', null, nv); | 64 div = ed.dom.create('div', null, nv); |
65 while (node = div.lastChild) | 65 while (node = div.lastChild) |
66 ed.dom.insertAfter(node, nl[i]); | 66 ed.dom.insertAfter(node, nl[i]); |
67 | 67 |