Hi all,
This is one of my first times working with FCKeditor and I'm wondering if it's possible to change the behavior of the PageBreak button.
Currently, it closes all opened tags (thank you! this seems to be the ONLY editor that handles this correctly), inserts
<div style="page-break-after: always;"><span style="display: none;"> </span></div>, and then re-opens the tags.
I'm wondering if anyone knows how/where to change the html that's dropped in to indicate the page break. For what I'm doing, it's extremely important that the tags are closed and reopened with the pagebreak separator between them which is what led me to this editor in the first place; however, what's being inserted is less than ideal for me. I've searched through the source all over the place for some indication of this code, but I can't find it anywhere. I would ideally replace that whole string with some sort of <!--pagebreak--> html comment (which I'll then pass into PHP's explode() function); I'm mostly concerned that if something goes wrong on the back-end, the result won't interrupt the page flow too badly, which this div may.
Does anyone have any suggestions or guidance for a FCKeditor newbie?
Thanks!
Eric
This is one of my first times working with FCKeditor and I'm wondering if it's possible to change the behavior of the PageBreak button.
Currently, it closes all opened tags (thank you! this seems to be the ONLY editor that handles this correctly), inserts
<div style="page-break-after: always;"><span style="display: none;"> </span></div>, and then re-opens the tags.
I'm wondering if anyone knows how/where to change the html that's dropped in to indicate the page break. For what I'm doing, it's extremely important that the tags are closed and reopened with the pagebreak separator between them which is what led me to this editor in the first place; however, what's being inserted is less than ideal for me. I've searched through the source all over the place for some indication of this code, but I can't find it anywhere. I would ideally replace that whole string with some sort of <!--pagebreak--> html comment (which I'll then pass into PHP's explode() function); I'm mostly concerned that if something goes wrong on the back-end, the result won't interrupt the page flow too badly, which this div may.
Does anyone have any suggestions or guidance for a FCKeditor newbie?
Thanks!
Eric
Re: Changing behavior of pagebreak button
Anyone knows how to?
Re: Changing behavior of pagebreak button
Everything is hardcoded, so if you want to change the behavior, I suggest you don't touch the code at all. Instead, create your own plugin that does exactly what you want using the code there, and replace the standard one with it.