Hi people !
I have a ckeditor with the readonly addon.
I am looking for a way to use the readonly feature but with the possibility of but the text in bold or in italic.
To be more specifique, i'm making a website where some users ( lets called them "student" ) can creat new post with all the ck editor feature, and some other users ( lets called them "teacher" ) can edit those post. But the teachers can't edit the text (read-only ) , they can only underline some of the text.
i hope i made myself clear enought, tell me me if you didnt understand.
There's no such feature that
There's no such feature that would work out of the box. You would need to block typing (cancel keydown events) and dragging (cancel dragstart) and perhaps something more. Check out how to attach listeners to the editable element.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
alright, thx for the answer !
alright, thx for the answer !