Hello all,
So I've been playing around with CKEditor a lot.. and I'm stuck on two separate issues.
First, Content boundaries inside of an element. If I set a style on all divs, or paragraphs, to be shown in the wysiwyg area, a height and background color, let's say. When I type, eventually I will reach the height of the tag, and it will extend past the bottom. I wanted to handle when that happens.. say though the height of the internal html, or whatnot.. I'm not sure. Then I can take the overflow and put it into the next paragraph or div with a new background color. I was thinking I could use either the htmlparser.parse and run through each element until I hit my height limit, and then use the parser.writer to wrap overflow in new tags. Is that the correct way to be going?
Second, I was looking for somewhere in the core files that is fired everytime the content changes. Be it through key up, mouse click, pasting, dragging.. somewhere the editor has to know that it is needing to redraw or reparse or something. Basically, is there some code anywhere in CKEditor that is always run when there is any change to the visible content at all?
Thank you very much for the help.
So I've been playing around with CKEditor a lot.. and I'm stuck on two separate issues.
First, Content boundaries inside of an element. If I set a style on all divs, or paragraphs, to be shown in the wysiwyg area, a height and background color, let's say. When I type, eventually I will reach the height of the tag, and it will extend past the bottom. I wanted to handle when that happens.. say though the height of the internal html, or whatnot.. I'm not sure. Then I can take the overflow and put it into the next paragraph or div with a new background color. I was thinking I could use either the htmlparser.parse and run through each element until I hit my height limit, and then use the parser.writer to wrap overflow in new tags. Is that the correct way to be going?
Second, I was looking for somewhere in the core files that is fired everytime the content changes. Be it through key up, mouse click, pasting, dragging.. somewhere the editor has to know that it is needing to redraw or reparse or something. Basically, is there some code anywhere in CKEditor that is always run when there is any change to the visible content at all?
Thank you very much for the help.