7 likes
·
3.5K reads
14 comments
Hi Louis, How can I configure the editor to get a sticky toolbar? The docs say I should configure toolbar_sticky: true but i cannot figure out how to put it on the Apex initialization javascript. Tks for your help.
Hi Cezar Rosaneli, you can use this to enable the sticky toolbar:
function(options){
options.editorOptions.toolbar_sticky = true;
options.editorOptions.toolbar_sticky_offset = 100;
return options;
};
You will have to find the correct offset for your page
Just a tiny observation / question. plugins+= bit is fine but I could only get the toolbar to work when I referenced the toolbar array by index and append my plugin ... e.g. options.editorOptions.toolbar[4].items.push("image"); += syntax replaced the contents of the toolbar with just the new button
Hi Mohamed A.Helal, I double checked the code and the documentation and you are right, depending on the type of toolbar it could be an array or a string. I will update the blog post to handle it. Thanks
if (Array.isArray(options.editorOptions.toolbar)) {
options.editorOptions.toolbar[4].items.push("emoticons");
}
else {
options.editorOptions.toolbar +=" emoticons";
}
:-)
Hi. How can I put the contains readonly and How Can I print the contains? Cause CKEDITOR it's not working anymore, for example CKeditor.contains. Thanks in advance.
Hi Dennys Montero, I am not sure to understand what you are trying to achieve. Maybe you could give me a little more details about your problem. Regards, Louis
Hi, Louis. How can i configure custom bottons?
Thanks
Hi Antonio Luis Gallardo Fernandez, Look at this thread on the Oracle APEX forum you could find useful things forums.oracle.com/ords/apexds/post/tinymce…
Louis Moreaux Hi Louis.
I had already read that article, but it didn't work. However, there was an entry 2 days ago that solves it
Thanks for all.
Yes Antonio Luis Gallardo Fernandez, that's why I mentioned it 😉. I'm happy that it works for you
Is this transferrable to ORTL as TinyMCE is being deprecated in 24.1 patch version 5 (36926831)
ORTL seems to be a fork of CKEditor so anything that works for that library should work for ORTL