Comments (10)
In version 4, we migrated from TinyMCE 5 to TinyMCE 6. Search for formatselect
on https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ and you will find your answer!
from django-tinymce.
checklist
,casechange
,permanentpen
,formatpainter
,insertfile
,pageembed
,template
,a11ycheck
,showcomments
,addcomment
are only available for paid TinyMCE subscriptions. I'll remove them from the docs.emoticons
,save
,codesample
are plugins and should be mentioned under the "plugins" key.ltr
andrtl
need thedirectionality
plugin.
Thanks a lot for your review ❤️, I'll suggest a second patch for these updates.
from django-tinymce.
Thank you for the quick help!
replaced formatselect
with blocks
TINYMCE_DEFAULT_CONFIG = {
"theme": "silver",
"height": 500,
"menubar": False,
"plugins": "advlist,autolink,lists,link,image,charmap,print,preview,anchor,"
"searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste,"
"code,help,wordcount",
"toolbar": "undo redo | blocks | "
"bold italic backcolor | alignleft aligncenter "
"alignright alignjustify | bullist numlist outdent indent | "
"removeformat | help",
}
The default for TINYMCE_DEFAULT_CONFIG
(when not specified in settings.py) is the old schema
Also the documentation examples:
https://django-tinymce.readthedocs.io/en/latest/installation.html#configuration
from django-tinymce.
Oh yes, absolutely, we need to fix that!
from django-tinymce.
Would you like to check the pull request referenced above?
from django-tinymce.
The pull request looks good to me for this issue in particular.
However, I have also cross-checked the more extensive example with version 3.7.1
to test if there are any elements (in the toolbar) missing.
Yes, there are. Additionally, there is a mismatch between:
-
OLD:
fontsizeselect
-
NEW:
fontsize
-
OLD:
fontselect
-
NEW:
fontfamily
So, the updated configuration should be:
TINYMCE_DEFAULT_CONFIG = {
"height": "320px",
"width": "960px",
"menubar": "file edit view insert format tools table help",
"plugins": "advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code "
"fullscreen insertdatetime media table paste code help wordcount spellchecker",
"toolbar": "undo redo | bold italic underline strikethrough | fontfamily fontsize blocks | alignleft "
"aligncenter alignright alignjustify | outdent indent | numlist bullist checklist | forecolor "
"backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | "
"fullscreen preview save print | insertfile image media pageembed template link anchor codesample | "
"a11ycheck ltr rtl | showcomments addcomment code",
"custom_undo_redo_levels": 10,
"language": "es_ES", # To force a specific language instead of the Django current language.
}
(matching yours)
However, I have noticed that in both versions, you don't see any interactable changes in the toolbar for the following items:
checklist
casechange
permanentpen
formatpainter
emoticons
save
insertfile
pageembed
(no effect, media submenu)template
codesample
a11ycheck
ltr
rtl
showcomments
addcomment
I'm not sure if these require any other special treatment to show up.
The menu bar seems fine, but I can't guarantee I didn't miss something 🤣
from django-tinymce.
Updates suggested in pr #472
from django-tinymce.
Thank you for addressing this issue so promptly and professionally. Your quick and efficient handling of the matter was truly extraordinary.
This experience has significantly increased my trust in the django-tinymce
project, and I look forward to its ongoing support and development.
from django-tinymce.
Thanks for your kind words!
from django-tinymce.
I think we can consider now this as fixed. Thanks very much for the report.
from django-tinymce.
Related Issues (20)
- tinymce HOT 1
- ModuleNotFoundError Django HOT 5
- Editor does not work properly with formsets HOT 3
- admin.TabularInline editing not working before saving HOT 1
- Empty field value when loaded by HTMX HOT 1
- Safari problem and disable tinymce for it
- Support for Django 4.2 HOT 3
- set callback functions HOT 3
- Release 3.7.0 misses files HOT 2
- TinyMCE not working inside tabs
- Problems with tinymce and image display after upload HOT 3
- Missing .map files causing collectstatic to fail using current master branch (TinyMCE 6) HOT 5
- init_tinymce.js not coming over CDN HOT 1
- Using django-tinymce in inline editing mode HOT 5
- images_upload_handler doesn't work for TinyMCE 6 HOT 3
- Version 4.0.0 listed pypi but not on Github or documentation HOT 2
- Support for TinyMCE 7 and beyond HOT 2
- The TinyMCE javascript code is not being loaded in the admin HOT 2
- Upgrade to TinyMCE 6.8.4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-tinymce.