"....and then make modifications to it. "

Um, thanks, but *what* modifications?

Update


I neglected to include code in my first post. Here is the original, default 
code:


var tinymce_config = {

 

 height: '500px', 

 language: language_codes[window.__language_code] || 'en', 

 plugins: [ 

 "advlist autolink lists link image charmap print preview anchor", 

 "searchreplace visualblocks code fullscreen", 

 "insertdatetime media table contextmenu paste" 

 ], 

 link_list: window.__link_list_url, 

 relative_urls: false, 

 convert_urls: false, 

 menubar: false, 

 statusbar: false, 

 toolbar: ("insertfile undo redo | styleselect | bold italic | " + 

 "alignleft aligncenter alignright alignjustify | " + 

 "bullist numlist outdent indent | link image table | " + 

 "code fullscreen"), 

 file_browser_callback: custom_file_browser, 

 content_css: window.__tinymce_css, 

 valid_elements: "*[*]" // Don't strip anything since this is handled by 
bleach. 

 }; 




This is the link to the code from TinyMCE that I used


https://www.tinymce.com/docs/demo/classic/ 



And this is what my code looks like now


var tinymce_config = {

 

 height: '500px', 

 language: language_codes[window.__language_code] || 'en', 

 plugins: [ 

 "advlist autolink autosave link image lists charmap print preview hr 
anchor pagebreak", 

 "searchreplace wordcount visualblocks visualchars code fullscreen 
insertdatetime media nonbreaking", 

 "table contextmenu directionality emoticons template textcolor paste 
fullpage textcolor colorpicker textpattern" 

 ], 

 link_list: window.__link_list_url, 

 relative_urls: false, 

 convert_urls: false, 

 menubar: false, 

 statusbar: false, 

 toolbar1: "newdocument fullpage | bold italic underline strikethrough | 
alignleft aligncenter alignright alignjustify | styleselect formatselect 
fontselect fontsizeselect", 

 toolbar2: "cut copy paste | searchreplace | bullist numlist | outdent 
indent blockquote | undo redo | link unlink anchor image media code | 
insertdatetime preview | forecolor backcolor", 

 toolbar3: "table | hr removeformat | subscript superscript | charmap 
emoticons | print fullscreen | ltr rtl | visualchars visualblocks 
nonbreaking template pagebreak restoredraft", 

 // content_css: [ 

 // '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i', 

 // '//www.tinymce.com/css/codepen.min.css'], 

 file_browser_callback: custom_file_browser, 

 content_css: window.__tinymce_css, 

 valid_elements: "*[*]" // Don't strip anything since this is handled by 
bleach. 

 };




I have since discovered that it is relatively easy to make one of these 
things yourself. There are youtube tutorials on how. The problem for me in 
diving into this option is that Mezzanine has scattered TinyMCE throughout 
the program, including inside grapelli and filebrowser, so I'm not sure how 
to go about surgically removing all that nor do I know what sort of 
collateral damage might result.  

On Wednesday, August 16, 2017 at 6:29:52 PM UTC-7, Ryne Everett wrote:
>
> Quoting Malik Rumi (2017-08-13 20:00:19) 
>
> > *2. In the docs at* 
> > 
> > 
> > 
> http://mezzanine.jupo.org/docs/packages.html?highlight=settings#mezzanine.conf.Settings
>  
> > 
> > 
> > I see a reference to *class* mezzanine.conf.*Settings**.* I have no such 
> > file at that location, or any location that I have searched for. 
>
> The Settings class is not a file but an internal abstraction around the 
> settings you provide (conventionally in settings.py). 
>
> > *3. In the TinyMCE docs * 
> > 
> > 
> > https://www.tinymce.com/docs/get-started/basic-setup/ 
> > 
> > 
> > It talks about snippet examples. I do see these examples, but what I am 
> > supposed to do with them remains a mystery. Thinking that I could just 
> copy 
> > and paste these snippets into an existing file, I've been looking all 
> over 
> > my code for a working example of 
> > 
> > 
> > "tinymce.init" 
> > 
> > 
> > but been unable to find one. 
>
> Copy the default setup from 
> `mezzanine/core/static/mezzanine/js/tinymce_setup.js` into your static 
> assets, change the `TINYMCE_SETUP_JS ` 
> (http://mezzanine.jupo.org/docs/configuration.html#tinymce-setup-js) 
> value to your custom path, and then make modifications to it. 
>
> > 5 mg is too big!? 
>
> Django's default maximum is 2.5mb: 
> <
> https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-FILE_UPLOAD_MAX_MEMORY_SIZE>
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to