I'm trying to do two things in the inline editor.
- Trying to add an H1 element within a custom div. I start by selecting a custom-div from the Styles dropdown, and begin typing or copy and paste some text. Then I select an H1 element from the styles dropdown and see that the H1 will break the div I've set up. How do I keep the H1 tag contained within the div? It is worth saying that if I create the div with the actualy DIV button, all is well and seems to work. However the div does have a paragraph tag automatically placed inside of it, yet I can't delete it. I HAVE to start typing inside the <p> tag.
- How do I exit the div and continue entering content outside of it?
All of the items in #1 can be clearly seem if you select the "Show Blocks" button.
One bump. *cross fingers*
One bump. *cross fingers*
I'm trying to visualize what
I'm trying to visualize what you are saying but I guess I'm too dense... On our demo it retains the div and h1 tags when you mix both. Can you enumerate a step-by-step thingy of how to reproduce it on our demo page?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Sure!
Sure!
Ok this is a little different, but you can definately see the point I'm making (I hope).
The heading causes the div to stretch beyond it's original state. I would expect it to be confined within the "special container" div's width.
Also, let's go back to step 5.
First sentence being highlighted, go to the "Styles" dropdown and select "Subtitle". As far as I know, there isn't an easy, intuitive way to add a div within a div. It switches the current div to the newly-selected one. Makes sense I guess, but how would you go about adding a div within a div in the demo?
Thanks for any help!
This is how it works
Hi,
I'm having an issue with what
I'm having an issue with what you described in #2.
I have a div set up. I enter some text, highlight it with my mouse, and then go to the Styles dropdown and select my custom H1 "title" tag. If I click "Show Blocks", I can clearly see that the H1 tag is rendered outside of the div element I had it typed in.
This happens whether the text is first, in the middle of other text within the div, etc. Always breaks out of the div container.
Am I doing something wrong? Seems like it should be contained within the div if I have it highlighted as you and I described.
I took a screenshot. You can see how the H1 tag causes the div to break into two divs while the H1 tag is rendered seperately in between rather than simply contained within the text in the div.
Attachments:
I think I found why it's
I think I found why it's possibly doing this, but not sure how to proceed.
I found that when I go to the demo page here, I click on "Full Sized Editor" so I can add div's and "Show Blocks". I found that the demo will add <p> tags, which can then be changed to another block-element from the styles dropdown, Italic Title for example, which stays contained within the main div 'container'.
In my page, I do not use <p> tags within the divs. I simply have plain text with line breaks. Do I have to alter my markup and css to adhere to how CKEditor handles this stuff?