MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Dec 04, 2008, 01:07 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Module, Plugin & Snippet Usage
(Moderators:
zi
,
PaulGregory
)
»
[Patch/Mod] Editor Selection when editing a document
Pages: [
1
]
Go Down
« Previous topic
Next topic »
Print
Author
Topic: [Patch/Mod] Editor Selection when editing a document (Read 2661 times)
0 Members and 1 Guest are viewing this topic.
Bravado
Coding Team
Posts: 1,078
"I can learn to resist anything but temptation..."
[Patch/Mod] Editor Selection when editing a document
«
on:
Mar 05, 2006, 01:07 PM »
Ok...this is a bit of a sneak peek on a feature that has been added for the next MODx release. In a nutshell, I've had a few folks asking if there was a way to use a plain textarea instead of FCKEditor or TinyMCE when editing a document. The answer? Yes...but it would have required a bogus plugin...which doesn't make sense in this case. So...instead, I opted to just add an option to allow selecting "None" under the System Configuration thus forcing the content area to display a plain textarea instead of an RTE. Simple...and it works well!
Now that that's out of the way, another thing I thought would be nice is to allow switching between the different editors without having to visit the System Configuration page each time. I ran into this problem while attempting to add a document that would act as a pure CSS content page...which can be a bitch to edit without FCKEditor and TinyMCE screwing up the code! So, what I thought would be nice is to have a simple dropdown menu that allows you to select the editor you want to use: None, FCKEditor, or any other editor that has been added in (TinyMCE, Xinha). This way, if I edit a document that just has pure CSS code in it, I can switch to 'None' and safely edit my document knowing that FCKEditor isn't going to screw it up. Works great and I'm happy! The dropdown was added just below the main content editor like so:
Attached is a zip file of the three files that have changes to them. These are based off of the default files in version 0.9.1 so if you've made changes to these file make sure and run a comparison check against them. These files will go in your /manager/actions/dynamic directory. I've tested the code in Firefox and IE 6 on XP and feel pretty confident that it'll work nicely on the Mac and Linux as well. Let me know if you find a problem with it.
Aside from these changes, I'm also planning to change the way the Template and Chunk editing works. I don't see any reason why we couldn't implement similar functionality in these sections. I'll be experimenting with the code here and if all goes well I'll submit my changes for the next version very soon.
Have fun!
Jeff
MODx-0.9.1_editor_selection_patch.zip
(28.73 KB - downloaded 290 times.)
modx_editor_selection.png
(3.11 KB, 291x150 - viewed 580 times.)
«
Last Edit: Mar 05, 2006, 01:11 PM by Bravado
»
Logged
Jeff Whitfield
"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"
-George Carlin
sottwell
Documentation Team
Posts: 8,170
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #1 on:
Mar 05, 2006, 01:38 PM »
Um...scratches head...Can't you just un-set the Rich Text checkbox in the Page Settings tab of a document? And click No in the system configuration? I think I'm missing something here.
What would be useful is to have the Resource Browser available even if the RTE isn't.
I also found useful the patch that allows an individual user to be set to use None as well as which editor to use.
Logged
sottwell.com has moved to a lovely Solaris 10 server!
Log in
username guest, password guestuser.
Templates are now becoming available at
http://sottwell.com/templates.html
rthrash
Foundation
Posts: 9,575
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #2 on:
Mar 05, 2006, 02:13 PM »
This is really awesome as it allows you to set different editors for different docs in the same in stall. Sweet. I can see instances where FCK would be preferable, and others where Tiny would work, and (most) others where a plain text would be my preference. Killer job!
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
Bravado
Coding Team
Posts: 1,078
"I can learn to resist anything but temptation..."
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #3 on:
Mar 05, 2006, 03:48 PM »
Quote from: rthrash on Mar 05, 2006, 02:13 PM
This is really awesome as it allows you to set different editors for different docs in the same in stall. Sweet. I can see instances where FCK would be preferable, and others where Tiny would work, and (most) others where a plain text would be my preference. Killer job!
The editor preference isn't actually saved with the document...however though, I'm sure that could easily be changed!
Definitely something to think about!
Logged
Jeff Whitfield
"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"
-George Carlin
Bravado
Coding Team
Posts: 1,078
"I can learn to resist anything but temptation..."
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #4 on:
Mar 06, 2006, 07:29 AM »
Another thing that was brought up is the ability to set permissions on a per-user basis on which editors are available for use. If you add a per-page /per-document setting then it's probably necessary to implement a different approach to per-user and global settings for the editors. Need to brain-storm this...and quick! LOL!
Logged
Jeff Whitfield
"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"
-George Carlin
Djamoer
Testers
Posts: 1,492
No one can limit a man other than the man himself.
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #5 on:
Mar 06, 2006, 09:08 AM »
Quote from: Bravado on Mar 06, 2006, 07:29 AM
Another thing that was brought up is the ability to set permissions on a per-user basis on which editors are available for use. If you add a per-page /per-document setting then it's probably necessary to implement a different approach to per-user and global settings for the editors. Need to brain-storm this...and quick! LOL!
In fact we spell it ja-son
Anyway, I think the format does need to be a commonly used format. I like the idea of xml, but I also like the idea of having other text format.
I think suggestion or comment will be awesome.
Sincerely,
NOTE:
I think I post on the wrong topic. It's suppose to response Jason's response on Json
«
Last Edit: Mar 06, 2006, 03:47 PM by Djamoer
»
Logged
Wendy Novianto (
DJAMOER Solution and Design
)
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
chanh
Guest
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #6 on:
Mar 06, 2006, 03:42 PM »
Quote from: Bravado on Mar 06, 2006, 07:29 AM
Another thing that was brought up is the ability to set permissions on a per-user basis on which editors are available for use. If you add a per-page /per-document setting then it's probably necessary to implement a different approach to per-user and global settings for the editors. Need to brain-storm this...and quick! LOL!
Jeff, (updated after Wendy point it out)
To have this feature that you just sighted it would be really nice!
I tried out your patch it works very nicely! Well done!
«
Last Edit: Mar 06, 2006, 04:26 PM by chanh
»
Logged
Djamoer
Testers
Posts: 1,492
No one can limit a man other than the man himself.
Re: [Patch/Mod] Editor Selection when editing a document
«
Reply #7 on:
Mar 06, 2006, 03:48 PM »
Quote from: chanh on Mar 06, 2006, 03:42 PM
Jason,
To have this feature that you just sighted it would be really nice!
I tried out your patch it works very nicely! Well done!
I think it's suppose to be Jeff, not Jason. Sorry for my previous post
Logged
Wendy Novianto (
DJAMOER Solution and Design
)
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Pages: [
1
]
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Czech Community
-----------------------------
=> Oznámení
===> Důležitá oznámení/novinky
===> Bezpečnost
=> Podpora
===> FAQ (často kladené otázky)
===> Instalace
===> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
===> Design & Šablony
=> Dokumentace, tutoriály (návody) a překlady
===> Dokumentace
===> Tutoriály (návody)
===> Překlady (lokalizace)
=> Komunita
===> Oznámení
===> Představte se, prosím
===> Ukázky práce
===> Různé aneb cokoli co se jinam nehodí
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı