I have to re-do a website with complex text area. Texts are in divs next to each other. Some divs have only images. For instance a page may start with 3 divs next to each other: 1st div text, 2nd photo, 3rd logo, and continue with 2 divs (under the 3 divs), both containing some lists.
Everything is tight.
Because it is tight, it will not fit into an online editor with scroll bar.
So I though I'll use codeeditor... problem: the cursor is one letter off! Let's say I want to correct this: "t|xt" where | is the cursor. Now I type "e". Result: "etxt"... well, not always, but often.
Another thing: no practical image filemanager: clicking on an image in the image filemanager just inserts the filename... would be more practical if it would insert the whole img code with image dimensions.
Another thing: toggle preview Ctrl p doesn't go to preview but to some intermediate view where the preview is shown plus a div with the code. Unfortunately this div attaches itself to the last small div in the text. Would be nice, if it would keep some distance...
codeeditor problems
Re: codeeditor problems
Just another problem:
it seems that Codeeditor is not working at all for the default textareas (stylesheet / template) with XH 1.6+, because the class has changed.
it seems that Codeeditor is not working at all for the default textareas (stylesheet / template) with XH 1.6+, because the class has changed.
Re: codeeditor problems
Well, I'm having this problem on my website, too, since a long time. Apparently, I'm not the only one, but others told me, that this doesn't happen on their site.svasti wrote:problem: the cursor is one letter off! Let's say I want to correct this: "t|xt" where | is the cursor. Now I type "e". Result: "etxt"... well, not always, but often.
Yes, I had thought about it, too. But I wanted to be able to insert links to images (particularly for lightboxes), so I did it this way. Furthermore it is not stricly necessary to set the width and height properties for the images (yes, I know, it's better to avoid reflow).svasti wrote:Another thing: no practical image filemanager: clicking on an image in the image filemanager just inserts the filename... would be more practical if it would insert the whole img code with image dimensions.
Well, I'm not happy with the preview either, but I can't use the normal view mode, as that would require to save the editor contents.svasti wrote:Another thing: toggle preview Ctrl p doesn't go to preview but to some intermediate view where the preview is shown plus a div with the code. Unfortunately this div attaches itself to the last small div in the text. Would be nice, if it would keep some distance...
Thanks for the reminder.Holger wrote:it seems that Codeeditor is not working at all for the default textareas (stylesheet / template) with XH 1.6+, because the class has changed.
All in all I'll see what I can do. I had started to overhaul Codeeditor_XH a few months ago, but hadn't any time since then to continue.
Anyway, a viable workaround for the problems would be to copy&paste the contents between the online installation and a good text editor; sometimes I'm doing this myself, because Codeeditor sucks in comparison to real code editor.
Christoph M. Becker – Plugins for CMSimple_XH
Re: codeeditor problems
Could you make 2 different commands? one for the link and one for a nicely prepared <img...>?cmb wrote:Yes, I had thought about it, too. But I wanted to be able to insert links to images (particularly for lightboxes), so I did it this way. Furthermore it is not stricly necessary to set the width and height properties for the images (yes, I know, it's better to avoid reflow).svasti wrote:Another thing: no practical image filemanager: clicking on an image in the image filemanager just inserts the filename... would be more practical if it would insert the whole img code with image dimensions.
Re: codeeditor problems
still I am quite happy that it exists.cmb wrote:Codeeditor sucks
Re: codeeditor problems
Thanks. The new version is supposed to solve at least the most annoying bug.svasti wrote:still I am quite happy that it exists.
I've reconsidered this, and wrt. to the new userfiles folder layout of CMSimple_XH 1.6+ it might be practical to rework the respective functionality. One major issue is to retrieve the image dimensions, though. It seems there is an Ajax request necessary. I'll try to see to it.cmb wrote:Yes, I had thought about it, too. But I wanted to be able to insert links to images (particularly for lightboxes), so I did it this way. Furthermore it is not stricly necessary to set the width and height properties for the images (yes, I know, it's better to avoid reflow).svasti wrote:Another thing: no practical image filemanager: clicking on an image in the image filemanager just inserts the filename... would be more practical if it would insert the whole img code with image dimensions.
Christoph M. Becker – Plugins for CMSimple_XH