Kotti / kotti_tinymce

TinyMCE plugins for Kotti
5 stars 15 forks source link

show source bug #26

Closed davidemoro closed 9 years ago

davidemoro commented 9 years ago

Hi,

we have a javascript error with kotti_tinymce (confirmed for 0.5.1 and 0.5.2, on Kotti 1.0.0 and the latest stable version 1.1.2):

Uncaught TypeError: doc.setLine is not a function
submit @ source.html:192
editor.windowManager.open.buttons.onclick @ plugin.js:32
fire @ tinymce.js:20968Class.extend.fire @ tinymce.js:22652
delegate @ tinymce.js:23288
executeHandlers @ tinymce.js:315
defaultNativeHandler @ tinymce.js:342

How to reproduce:

Pressing ok the textarea prints a � and it raises the above Javascript error.

The problem seems to be due to Codemirror. See https://codemirror.net/doc/upgrade_v4.html and the setLine deprecation.