Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forumlar / Cotonti / Extensions / Some tweaks for MarkItUp editors

If you also have suggestions for improving the editor, let's wri

#1 2008-09-04 06:33
I do not like that header code editor included everywhere

A small tweaks:

in file: markitup.header.php

$editor_locations = array('add','edit','editpost','newtopic','posts','profile');
if(in_array($m, $editor_locations) || $comments) 
***load header editor code***

Enjoy :)

If you also have suggestions for improving the editor, let's write them in this topic

Bu konu Asmo tarafından düzenlendi(2008-09-04 06:40, 13 yıllar önce)
#2 2008-09-04 15:08
Great idea! I think instead of hardcoding it, this should be a configuration option for markItUp, so that it would be easier to connect markItUp to other modules and plugins. And I will also provide 2 simple functions, so that new plugins are automatically connected/disconnected from markItUp on install/uninstall (no extra SQL tables, don't worry).
May the Source be with you!
#3 2008-09-09 22:51
I dont' have a tweak for this but, maybe there is an option someone can find.

My only grief so far with the editor, is that when you have a long post, and you decide to hit enter, to return to new lines, it doesn't auto scroll to the bottom. That just sucks bad. It annoys the hell out of me.

Any Ideas or fixes ?
#4 2008-09-10 01:48
Not quite understood what you mean. In Textboxer there was an opposite problem: when you hit any button it scrolls to the top of the post because it looses caret position. I haven't noticed any problems of that kind in MarkItUp.
May the Source be with you!
#5 2008-09-10 03:56
Ah Yea I know what you mean there, but thats not what i'm referring too.

When you Prese Enter(Return) Key for a linebreak in your text. On a large post, A scroll bar will appear, and or it will input the line break, but it doesn't automatically scroll to the bottom
#6 2008-09-10 05:03
Ok, try this:

type some text
hit the Preview button
and (in editor window) hit Enter

the result is: 2 new lines added AND Preview call

And like Kilandor says "It annoys the hell out of me" :D
Perl - the only language that looks the same before and after RSA encryption.
#7 2008-09-10 13:35
Thats because I Turned Auto-Refresh on, though it only seems to refresh on Enter, kinda lame but still nice