8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just to let anybody in the need of a "fullscreen" button know that i've successfully managed to have one working. Code and explanations are here: http://stackoverflow.com/questions/10525448/cleditor-text-editor-on-fullscreen-mode
Pasted in-line here:
(function($) { //Style for fullscreen mode var fullscreen = 'display:block; height: 100%; left: 0; position: fixed; top: 0; width: 100%; z-index: 9999;', fullscreenIframe = 'height: 100%; width: 100%;', style = ''; // Define the fullscreen button $.cleditor.buttons.fullscreen = { name: 'fullscreen', image: 'fullscreen.gif', title: 'Fullscreen', command: '', popupName: '', popupClass: '', popupContent: '', getPressed: fullscreenGetPressed, buttonClick: fullscreenButtonClick, }; // Add the button to the default controls before the bold button $.cleditor.defaultOptions.controls = $.cleditor.defaultOptions.controls.replace("bold", "fullscreen | bold"); function fullscreenGetPressed(data) { return data.editor.$main.hasClass('fullscreen'); }; function fullscreenButtonClick(e, data) { var main = data.editor.$main; var iframe = data.editor.$frame; if (main.hasClass('fullscreen')) { main.attr('style', style).removeClass('fullscreen'); } else { style = main.attr('style'); main.attr('style', fullscreen).addClass('fullscreen'); iframe.attr('style', fullscreenIframe).removeClass('fullscreen'); }; editor.refresh(data.editor); editor.focus(); return false; } })(jQuery);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Just to let anybody in the need of a "fullscreen" button know that i've successfully managed to have one working. Code and explanations are here: http://stackoverflow.com/questions/10525448/cleditor-text-editor-on-fullscreen-mode
Pasted in-line here:
The text was updated successfully, but these errors were encountered: