nytimes / ice

track changes with javascript
Other
1.71k stars 194 forks source link

trackchange default off #135

Open doctsh opened 6 years ago

doctsh commented 6 years ago

Thanks for lovely plugin Can we make track change in off mode by default, and can enabled by a user when he wants so?

osaruagbonaye commented 3 years ago

Set isTracking to false in the ice configuration in the tinymce init setttings

{
        plugins: [ ice icesearchreplace ],
        toolbar: .....
       ice: {
            user: { name: username, id: userid },
            isTracking: false,
          }
}
sunilparida commented 2 months ago

How to destroy the ice api, as there is a requirement to generate the element dynamically and the element are created inside a loop. While calling the window.tracker = new ice.InlineChangeEditor inside loop it is working but while entering "space" it takes multiple spaces. So need to destroy the ice init before re-init. Is there any such method available to destroy the object??