New issue
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
CKeditor update #348
Comments
@xho worked recently with CKeditor 4 - he could help |
The Rich Text Editor in the Newsletter Module is broken after replacement of CKeditor with CKeditor4. There are a bunch of things to do:
|
The CKeditor4 initialization in CKEDITOR.replace( 'data[abstract]' );
CKEDITOR.add The above code and other initializations would be in specific initialization js file loaded when CKeditor4 is used. In previous version of CKeditor we used jquery adapter and the initialization of a CKeditor instance was done by jQuery selector with specific css class $( '.richtext' ).ckeditor(configFull);
$( '.richtextSimple' ).ckeditor(configSimple);
$( '.richtextNewsletterTemplate' ).ckeditor(configNewsletterTemplate); For backward compatibility these classes have to be mantained as selectors of specific instances of the RTE. |
Richtext editors in many modules (core and plugins) are not working anymore. I agree with @batopa: in a .tpl file you should just write down a class to define a richtext editor, like: <textarea class="richtext" name="data[description]"> .... </textarea> without having to code javascript or other stuff - otherwise we have to modify many .tpl files every time we change editor.... |
- ckeditor_default_init.js and jquery adapter added. Now, ckeditor 4 replacement starts only when the editor is setted as default
Now all richtext fields seem ok again, apart from newsletter (didn't test it) |
About Newsletter module: Templateurl:
Newsletter messageurl:
|
When template associated to newsletter message haven't css use the default /css/newsletter.css file
* disable button if two bedita content blocks are present * enable button if less then two content blocks are present
add default conf for newsletter message that doesn't show html outline blocks
correct a bug that prevents to save documents
if tinyMCE isn't used then tinyMCE trigger is excluded in autosave function
Now it seems all work well. We open specific issues for bug or correction. |
…n the form (areas and section elements)
I think it's necessary to upgrade the text editor to the CKeditor last release (4.01)
http://ckeditor.com/download
before releasing some customizations (images placeholders, drag n drop etc)
see #190
The text was updated successfully, but these errors were encountered: