Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2015-05-14 13:45:36

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: [REQUEST] New hak_tinymce compatible with TinyMCE 4

photonomad wrote #286585:

Finally, add this to the tinymce settings in kuo_tinymce_cdn:
file_browser_callback: function(image) { get_spi_imgtmce();
},

Please, could you specify where do I find this tinymce settings i kuo_tinymce_cdn? Thank you.

Offline

#14 2015-05-14 13:49:53

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [REQUEST] New hak_tinymce compatible with TinyMCE 4

The settings are in the source of the kuo_tinymce_cdn plugin. Go to your Plugins tab in Txp and click on the name of the plugin.

Offline

#15 2015-05-15 08:24:49

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: [REQUEST] New hak_tinymce compatible with TinyMCE 4

Thank you. I got that, but I am affraid you will have to navigate me to the exact place in the code where to paste the line.

Offline

#16 2015-05-15 21:11:44

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [REQUEST] New hak_tinymce compatible with TinyMCE 4

Sure. Here is a pastebin of my kuo_tinymce plugin code: http://pastebin.com/qFzUSk4x

I have a bunch of extra stuff in there. My file_browser_callback code begins on line 34 of my pastbin example.

You can put it anywhere after

tinymce.init({

and before:

});
$(document).ready(function(){

Offline

#17 2015-05-19 10:18:27

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: [REQUEST] New hak_tinymce compatible with TinyMCE 4

Hi there,
could you please help me further? I try to figure out how to

…insert the <script url> into the head of the write tab.

In admin enviroment I can only apply js to a selected element. Is there a special way to put js directly into the header of the writing tab, or you do that the “dirty way” attaching it to whatever element in the write tab?

Offline

Board footer

Powered by FluxBB