Skip to content
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.

Problem with CmCaReT #26

Closed
Daijobou opened this issue Dec 2, 2016 · 6 comments
Closed

Problem with CmCaReT #26

Daijobou opened this issue Dec 2, 2016 · 6 comments
Assignees

Comments

@Daijobou
Copy link

Daijobou commented Dec 2, 2016

I can't explain the reason, but I have two chrome with same version number, but one of it show me in source code this html code:

<span class="CmCaReT" style="display: none;">�</span>

and after close, I have a invisible span in my text and open source code again, I have two of this lines. Both browser tested on the identical tinymce and same page. After many STRG+F5 its disappear. Any clue for a reason?

@thomich
Copy link
Collaborator

thomich commented Dec 5, 2016

Hey @Daijobou

Thanks for reporting.
I hope you use latest code.. and do you also cleared browser Cache?

What about doing same in other browser? Fiefox, Vivaldi?
What OS you use for this Chrome versions?

Same OS for both or different OS's

thanks for reply

Regards
thomi

@thomich thomich self-assigned this Jan 20, 2017
@dupont-kedama
Copy link

I have same trouble and saveCursorPosition:true dose not work.
It has occurred always on my PC.
In Windows7 + Chrome57 / IE11 / Firefox52 . (Cleared browser cache)
With TinyMCE 4.5.6 + CodeMirror for TinyMCE4 Version 1.5.1 + codemirror-5.25.0.

Can I do something else?

@dariusj18
Copy link
Contributor

Same here

Windows 10 + Chrome 59
TinyMCE 4.6.4, CodeMirror 4.8 (from repo)

@RickJelier
Copy link

I ran into this problem as well, I decided to find out what was happening.
The problem doesn't occur when you use
var html = editor.getContent({format: 'raw'});

However the problem does occur when using the default source_view: true

This is because the source viewer changes the order of the attributes of the element, therefore the regex is not working that is used to replace the span. (see image)

regex will never work

@dupont-kedama
Copy link

Thank you RickJelier.

I can't understand how to use var html = editor.getContent({format: 'raw'});.
My code is

var options = {
  selector: "#myid",
  language: "ja",
  plugins: [.... codemirror....],
  codemirror: {
    indentOnInit: true,
    path: 'codemirror-5.25.0',
    saveCursorPosition: true
  },
  ....
};
tinymce.init(options);

Can I use that?

@thomich
Copy link
Collaborator

thomich commented Jul 31, 2019

Please check: #46

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants