View Full Version : HTMLEditor inserting non-editable blocks.
JorisA
14 Jul 2007, 3:34 PM
Is it possible to add non-editable code blocks to the HTMLEditor?
For example "Insert Topic" would open a prompt for a topic id, and insert a locked div element with a icon and the topic title. Adding the element shouldn't be a problem, but I don't know how to make "the div" readonly.
JorisA
25 Jul 2007, 9:53 AM
*Bump* :">
Still looking for a solution, another useful application could be inserting blocks in a wysiwyg content management system, like:
- List Sub pages
- Poll
- Insert shop item/link
- Insert currentuser name
I think tinymce had a plugin that support this.
Edit:
Ok it might not be that hard after all. It seems the plugin just disables focusing certain elements (if hasClass(noteditable) > place cursor before/after element) Will have a look into it myself :P
JorisA
27 Jul 2007, 4:55 PM
*sigh* :P
For the ones interested, first test:
http://ux.designism.nl/ux/noneditable/
Currently only works in gecko, ie support should be really easy, but to tired right now.
Need some tweaking on the selecting when dragging, and using arrow keys.
Feel free to improve. (See tinymce plugin for stuff)
prophet
13 Aug 2007, 12:29 PM
I would love this functionality, and am trying to get the ux you created to work, but I am getting a couple errors and a lot of console log messages. I'm running Ext 1.1.
Is there a newer version by any chance?
Thanks!
JorisA
13 Aug 2007, 1:49 PM
Hi, not right now, but I'll continue development soon as I will be needing it for my app.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.