We can target only visible textareas when invoking the plugin. This will allow us to leave Drupal's teaser handling alone.

Comments

mlsamuelson’s picture

Status: Active » Fixed

I'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

mlsamuelson’s picture

Status: Fixed » Active

Not 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.

mlsamuelson’s picture

I 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.

anders.fajerson’s picture

The 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.