Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We can target only visible textareas when invoking the plugin. This will allow us to leave Drupal's teaser handling alone.
Comments
Comment #1
mlsamuelson CreditAttribution: mlsamuelson commentedI've committed updates so markItUp invokes only on visible textareas ($("textarea:visible")), and put Drupal's handling of teasers back into effect. Additionally, I added a jQuery command to remove div.grippie since markItUp provides its own textarea resizing.
mlsamuelson
Comment #2
mlsamuelson CreditAttribution: mlsamuelson commentedNot so quick...
Teaser splitter only works if the page loads as already split.
If our page loads with just a body (no teaser split) then the markItUp editor prevents the teaser splitter from functioning correctly - no textarea appears when we click the splitter button.
Obviously more work is required.
Comment #3
mlsamuelson CreditAttribution: mlsamuelson commentedI just made a commit to turn off Drupal's teaser splitter once again. It functioned well enough alongside markItUp when pages loaded where the split had already occurred, but if trying to use the splitter button on a page where no split had previously separated the textareas, the teaser textarea never became visible.
Initial attempts to track it down didn't turn up much, so I've decided to leave it for now and move forward with other items.
The teaser handling will continue to function using
<!--break-->
handling.Comment #4
anders.fajerson CreditAttribution: anders.fajerson commentedThe 1.1 release of markitup should include an option to turn it's resizing off (on my request), which I think is the best option.