PolicyStat / ckeditor-spell-check-plugin-js-dev-edge

User interface enhancements and beta features for http://ckeditor-spellcheck.nanospell.com . This repo is for nanospell developers and trusted partners to modify and fork plugin.js
Other
0 stars 0 forks source link

Break elements in list items don't count as word boundaries #17

Open caffodian opened 8 years ago

caffodian commented 8 years ago

For example:

<ol class="list-lower-alpha">
                <li>Surrogate may not consent to:<br />
                <br />
                Voluntary inpatient mental health services<br />
                Electroconvulsive therapy<br />
                Appointment of another surrogate decision maker.</li>
            </ol>

a spellcheck span instead wraps serviceselectroconvulsive and therapyAppointment

caffodian commented 8 years ago

I think this might actually be a really similar case to #15 , perhaps a similar solution

caffodian commented 8 years ago

Might be worth visiting tags that can be phrasing content in general and figuring out what makes sense as a special boundary.

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content

For example, em/strong shouldn't be a boundary (bolding part of a word should not cause a word break), but super/subscript perhaps should be

caffodian commented 8 years ago

I'd be curious what imgs do as well. We can probably ignore the form-related elements and script tags