tinyMCE 4.0.5 ObjectResizeStart doesn't work - tinymce

I have latest version of tinyMCE I need to use this function:
http://www.tinymce.com/wiki.php/api4:event.tinymce.Editor.ObjectResizeStart
to prevent image resizing when I'm in read mode because in Chrome images and tables can be rezised even when I'm saying readonly: true.

You can disable resizing with
object_resizing : false

Related

Dropdown list for Insert/edit video

I am integrating TinyMCE in my CMS and want to have a feature to choose a video/audio by selecting media icon instead of typing the path in Source field.
[https://i.stack.imgur.com/1zmlD.png]
I was able to achieve this for choosing images through image_list
but, did not have luck using external_media_list_url
You are referencing documentation for TinyMCE 3.x which is no longer being updated. Your screenshot appears to be TinyMCE 4.x so you should look at the documentation for that release:
https://www.tinymce.com/docs/
There are APIs to create your own file picker for TinyMCE 4:
https://www.tinymce.com/docs/configure/file-image-upload/#file_picker_callback
...and example of that is here:
https://www.tinymce.com/docs/demo/file-picker/

Some Icons of TYPO3 Icon API don't appear

In TYPO3 7.6, I used the TYPO3 icon API to display an icon for a new CType.
All worked well on the local machine.
After copying the code to a staging-machine, the icons I used are displayed as "missing" (i.e. the red "default-not-found"-icon is displayed instead.)
If I change my icon to a more common one, like "content-table", it is correctly shown. If I change it to a less popular like "content-briefcase", the default-icon is shown.
Deleting chaches didn't solve the problem.
Do I have to activate/load the icons before use?
The problem seems to be depending on the minor version.
I tried it with TYPO3 7.6.15.
There, some of the icon-files where missing in typo3/sysext/core/Resources/Public/Icons/T3Icons/content
After update to TYPO3 7.6.19 everything works as expected

TYPO3 7.6.15 htmlarea buttons has no icons

I got a weired problem with my RTE after updating to 7.6.15. it looks like this
htmlarea buttons without icons
It seems, that the spritesheet "actions.png" (typo3/sysext/t3skin/rtehtmlarea/images/sprites) is not loaded.
Any ideas why?
have you checked the usual information?
does the file exist?
is the file accessible?
what does the browser (e.g. firebug) report? (console, net)
I notice some problems with the icons when the mod_pagespeed was installed. Maybe you have this also installed. Disabling is then required for the backend.
i got the same problem and a frame (where the rte is in) reload does the trick.

Issue with .addClass method of tinymce.dom.DOMUtils class in tinymce 4.3.12

I am trying to migrate from tinymce version 4.1.9 to latest tinymce version 4.3.12. I have a custom button which fires an event and simultaneously toggle (change the image of the button). It works fine with earlier versions of tinymce (all versions of 3.x and 4.1.2) but now giving an error message in tinymce 4.3.12.
Error message is: Uncaught TypeError: self.addClass is not a function in chrome debug console.
I have checked the latest documentation and which clearly shows .addClass is part of the library (tinymce.dom.DOMUtils class).
See below part of the code I am using:
tinymce.init({
setup: function (ed) {
ed.addButton('autosave', {
image: '/images/autosave_disk_off.png',
cmd: 'autosave',
selectable: true,
onClick: toggleAutoSave,
onPostRender: function() {
var self = this;
self.addClass('classAutosave');
ed.on('autosaveStateChanged', function(e) {
self.active(e.state);
});
}});
}
});
I want to add a class to current element so that image switching can be done.
Can someone help to understand the reason why this code is not working in tinymce 4.3.12?
Is there alternate way to add class in onPostRender?
Thanks
I sort of figured out the reason, what I have done is that compared the code of tinymce.js version 3.1.10 and tinymce.js version 3.2.0. I chose 3.1.10 because this is the last version in which my addClass() works. This is breaking in and after from 3.2.0.
While comparing, I found a lot of code changes has been done for addClass() and removeClass() API's. I also found that internally tinymce is using self.classes.add('classAutosave') to add new class. So I tried the same way in my plug-in and it works. So far, I haven't found any documentation mentioning this change. I am still checking in tinymce forums probably I will open a ticket with tinymce dev. Will update answer if any new info arrives.
Observation:
Use self.classes.add('classAutosave') instead of self.addclass('classAutosave')for adding new class with tinymce 3.20 -> tinymce 4.3.12.

How to config writing direction from right to left in tinyMce with impresspages plugin

I try to update tinyMce plugin to be able writing from right to left (like Arabic,Urdu,Persian) .
So i found this code in tinyMce support
tinymce.init({
directionality : 'rtl',
});
The problem is that i don't found where i can add this lines ?
So what is the file to edit this issue
Wait for you answer ... Thank you
Here's the documentation about TinyMCE configuration in ImpressPages - http://www.impresspages.org/docs/tinymce
And example plugins to get you started - http://market.impresspages.org/plugins/?q=tinymce
Download any of it, check how it's built and change to your needs.
Yes its works, i turn it on to support right to left:
For the default settings it was just edit Ip/Internal/Core/assets/tinymce/default.js
and add : directionality : 'rtl', over ipTinyMceConfig = function ()
For update the pluging FullTinyMCE http://market.impresspages.org/plugins/FullTinyMCE
i edited the file Plugin/TinyMceComplete/assets/tinymcecomplete.js
and add this line : tinyMceDefault.directionality = 'rtl';